H1b transfer + h1b extension

Recently my h1b got transferred. Do companies extend h1b visa when a h1b visa is transferred to them ? or do they transfer it first and then after I move to the company and start working then they apply for h1b extension ?

The change of employer (aka transfer) is applied with extension.