void qemu_macaddr_default_if_unset(MACAddr *macaddr)

{

    static int index = 0;

    static const MACAddr zero = { .a = { 0,0,0,0,0,0 } };



    if (memcmp(macaddr, &zero, sizeof(zero)) != 0)

        return;

    macaddr->a[0] = 0x52;

    macaddr->a[1] = 0x54;

    macaddr->a[2] = 0x00;

    macaddr->a[3] = 0x12;

    macaddr->a[4] = 0x34;

    macaddr->a[5] = 0x56 + index++;

}

void qemu_macaddr_default_if_unset(MACAddr *macaddr)

{

    static int index = 0;

    static const MACAddr zero = { .a = { 0,0,0,0,0,0 } };



    if (memcmp(macaddr, &zero, sizeof(zero)) != 0)

        return;

    macaddr->a[0] = 0x52;

    macaddr->a[1] = 0x54;

    macaddr->a[2] = 0x00;

    macaddr->a[3] = 0x12;

    macaddr->a[4] = 0x34;

    macaddr->a[5] = 0x56 + index++;

}

    static int index = 0;     if (memcmp(macaddr, &zero, sizeof(zero)) != 0)     macaddr->a[5] = 0x56 + index++;
void FUNC_0(MACAddr *VAR_0)

{

    static int VAR_1 = 0;

    static const MACAddr VAR_2 = { .a = { 0,0,0,0,0,0 } };



    if (memcmp(VAR_0, &VAR_2, sizeof(VAR_2)) != 0)

        return;

    VAR_0->a[0] = 0x52;

    VAR_0->a[1] = 0x54;

    VAR_0->a[2] = 0x00;

    VAR_0->a[3] = 0x12;

    VAR_0->a[4] = 0x34;

    VAR_0->a[5] = 0x56 + VAR_1++;

}

void FUNC_0(MACAddr *VAR_0)
{ static int VAR_1 = 0; static const MACAddr VAR_2 = { .a = { 0,0,0,0,0,0 } }; if (memcmp(VAR_0, &VAR_2, sizeof(VAR_2)) != 0)
return; VAR_0->a[0] = 0x52; VAR_0->a[1] = 0x54; VAR_0->a[2] = 0x00; VAR_0->a[3] = 0x12; VAR_0->a[4] = 0x34; VAR_0->a[5] = 0x56 + VAR_1++; }