void ahci_uninit(AHCIState *s)

{

    int i, j;



    for (i = 0; i < s->ports; i++) {

        AHCIDevice *ad = &s->dev[i];



        for (j = 0; j < 2; j++) {

            IDEState *s = &ad->port.ifs[j];



            ide_exit(s);

        }


    }



    g_free(s->dev);

}
void ahci_uninit(AHCIState *s)

{

    int i, j;



    for (i = 0; i < s->ports; i++) {

        AHCIDevice *ad = &s->dev[i];



        for (j = 0; j < 2; j++) {

            IDEState *s = &ad->port.ifs[j];



            ide_exit(s);

        }


    }



    g_free(s->dev);

}
void FUNC_0(AHCIState *VAR_0)

{

    int VAR_1, VAR_2;



    for (VAR_1 = 0; VAR_1 < VAR_0->ports; VAR_1++) {

        AHCIDevice *ad = &VAR_0->dev[VAR_1];



        for (VAR_2 = 0; VAR_2 < 2; VAR_2++) {

            IDEState *VAR_0 = &ad->port.ifs[VAR_2];



            ide_exit(VAR_0);

        }


    }



    g_free(VAR_0->dev);

}
void FUNC_0(AHCIState *VAR_0)
{ int VAR_1, VAR_2; for (VAR_1 = 0; VAR_1 < VAR_0->ports; VAR_1++) { AHCIDevice *ad = &VAR_0->dev[VAR_1]; for (VAR_2 = 0; VAR_2 < 2; VAR_2++) { IDEState *VAR_0 = &ad->port.ifs[VAR_2]; ide_exit(VAR_0); } } g_free(VAR_0->dev); }