static void idiv64(uint64_t *plow, uint64_t *phigh, int64_t b)

{

    int sa, sb;

    sa = ((int64_t)*phigh < 0);

    if (sa)

        neg128(plow, phigh);

    sb = (b < 0);

    if (sb)

        b = -b;

    div64(plow, phigh, b);

    if (sa ^ sb)

        *plow = - *plow;

    if (sa)

        *phigh = - *phigh;

}

static void idiv64(uint64_t *plow, uint64_t *phigh, int64_t b)

{

    int sa, sb;

    sa = ((int64_t)*phigh < 0);

    if (sa)

        neg128(plow, phigh);

    sb = (b < 0);

    if (sb)

        b = -b;

    div64(plow, phigh, b);

    if (sa ^ sb)

        *plow = - *plow;

    if (sa)

        *phigh = - *phigh;

}

static void idiv64(uint64_t *plow, uint64_t *phigh, int64_t b)     div64(plow, phigh, b);     if (sa ^ sb)
static void FUNC_0(uint64_t *VAR_0, uint64_t *VAR_1, int64_t VAR_2)

{

    int VAR_3, VAR_4;

    VAR_3 = ((int64_t)*VAR_1 < 0);

    if (VAR_3)

        neg128(VAR_0, VAR_1);

    VAR_4 = (VAR_2 < 0);

    if (VAR_4)

        VAR_2 = -VAR_2;

    div64(VAR_0, VAR_1, VAR_2);

    if (VAR_3 ^ VAR_4)

        *VAR_0 = - *VAR_0;

    if (VAR_3)

        *VAR_1 = - *VAR_1;

}

static void FUNC_0(uint64_t *VAR_0, uint64_t *VAR_1, int64_t VAR_2)
{ int VAR_3, VAR_4; VAR_3 = ((int64_t)*VAR_1 < 0); if (VAR_3)
neg128(VAR_0, VAR_1); VAR_4 = (VAR_2 < 0); if (VAR_4)
VAR_2 = -VAR_2; div64(VAR_0, VAR_1, VAR_2); if (VAR_3 ^ VAR_4)
*VAR_0 = - *VAR_0; if (VAR_3)
*VAR_1 = - *VAR_1; }