Automatically switching from battery to DC wall adapter on insertion
The discrete design exactly mirrors Microchip's AN1149, "Design A Load Sharing System Power Path Management with Microchip's Stand-Alone Li-Ion Battery Charger". The only difference is that your design does not include battery charging capability or multiple external inputs.