Branching Processes with Two Types Emigration and State-Dependent Immigration