static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, unsigned segment_width,

                           unsigned x, unsigned y, unsigned w, unsigned h)

{

    int i;

    int step = 3;



    dst += segment_width * (step * x + y * dst_linesize);

    w *= segment_width * step;

    h *= segment_width;

    for (i = 0; i < h; i++) {

        memset(dst, val, w);

        dst += dst_linesize;

    }

}

static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, unsigned segment_width,

                           unsigned x, unsigned y, unsigned w, unsigned h)

{

    int i;

    int step = 3;



    dst += segment_width * (step * x + y * dst_linesize);

    w *= segment_width * step;

    h *= segment_width;

    for (i = 0; i < h; i++) {

        memset(dst, val, w);

        dst += dst_linesize;

    }

}

static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, unsigned segment_width,                            unsigned x, unsigned y, unsigned w, unsigned h)
static void FUNC_0(unsigned VAR_0, uint8_t *VAR_1, int VAR_2, unsigned VAR_3,

                           unsigned VAR_4, unsigned VAR_5, unsigned VAR_6, unsigned VAR_7)

{

    int VAR_8;

    int VAR_9 = 3;



    VAR_1 += VAR_3 * (VAR_9 * VAR_4 + VAR_5 * VAR_2);

    VAR_6 *= VAR_3 * VAR_9;

    VAR_7 *= VAR_3;

    for (VAR_8 = 0; VAR_8 < VAR_7; VAR_8++) {

        memset(VAR_1, VAR_0, VAR_6);

        VAR_1 += VAR_2;

    }

}

static void FUNC_0(unsigned VAR_0, uint8_t *VAR_1, int VAR_2, unsigned VAR_3,
unsigned VAR_4, unsigned VAR_5, unsigned VAR_6, unsigned VAR_7)
{ int VAR_8; int VAR_9 = 3; VAR_1 += VAR_3 * (VAR_9 * VAR_4 + VAR_5 * VAR_2); VAR_6 *= VAR_3 * VAR_9; VAR_7 *= VAR_3; for (VAR_8 = 0; VAR_8 < VAR_7; VAR_8++) { memset(VAR_1, VAR_0, VAR_6); VAR_1 += VAR_2; } }