// File: /workspace/github_c_makefile_star2_O3/OnionIoT[P]lv_example/lvgl/src/lv_draw/lv_draw_basic.c
// Function: lv_draw_letter
void lv_draw_letter(const lv_point_t * pos_p, const lv_area_t * mask_p, const lv_font_t * font_p, uint32_t letter,
                    lv_color_t color, lv_opa_t opa)
{
    /*clang-format off*/
    const uint8_t bpp1_opa_table[2]  = {0, 255};          /*Opacity mapping with bpp = 1 (Just for compatibility)*/
    const uint8_t bpp2_opa_table[4]  = {0, 85, 170, 255}; /*Opacity mapping with bpp = 2*/
    const uint8_t bpp4_opa_table[16] = {0,  17, 34,  51,  /*Opacity mapping with bpp = 4*/
                                        68, 85, 102, 119, 136, 153, 170, 187, 204, 221, 238, 255};
    /*clang-format on*/

    if(opa < LV_OPA_MIN) return;
    if(opa > LV_OPA_MAX) opa = LV_OPA_COVER;

    if(font_p == NULL) {
        LV_LOG_WARN("Font: character's bitmap not found");
        return;
    }

    lv_font_glyph_dsc_t g;
    bool g_ret = lv_font_get_glyph_dsc(font_p, &g, letter, '\0');
    if(g_ret == false) return;


    lv_coord_t pos_x = pos_p->x + g.ofs_x;
    lv_coord_t pos_y = pos_p->y + (font_p->line_height - font_p->base_line) - g.box_h - g.ofs_y;

    const uint8_t * bpp_opa_table;
    uint8_t bitmask_init;
    uint8_t bitmask;

    /*bpp = 3 should be converted to bpp = 4 in lv_font_get_glyph_bitmap */
    if(g.bpp == 3) g.bpp = 4;

    switch(g.bpp) {
        case 1:
            bpp_opa_table = bpp1_opa_table;
            bitmask_init  = 0x80;
            break;
        case 2:
            bpp_opa_table = bpp2_opa_table;
            bitmask_init  = 0xC0;
            break;
        case 4:
            bpp_opa_table = bpp4_opa_table;
            bitmask_init  = 0xF0;
            break;
        case 8:
            bpp_opa_table = NULL;
            bitmask_init  = 0xFF;
            break;       /*No opa table, pixel value will be used directly*/
        default: return; /*Invalid bpp. Can't render the letter*/
    }

    const uint8_t * map_p = lv_font_get_glyph_bitmap(font_p, letter);

    if(map_p == NULL) return;

    /*If the letter is completely out of mask don't draw it */
    if(pos_x + g.box_w < mask_p->x1 || pos_x > mask_p->x2 || pos_y + g.box_h < mask_p->y1 || pos_y > mask_p->y2) return;

    lv_disp_t * disp    = lv_refr_get_disp_refreshing();
    lv_disp_buf_t * vdb = lv_disp_get_buf(disp);

    lv_coord_t vdb_width     = lv_area_get_width(&vdb->area);
    lv_color_t * vdb_buf_tmp = vdb->buf_act;
    lv_coord_t col, row;

    uint8_t width_byte_scr = g.box_w >> 3; /*Width in bytes (on the screen finally) (e.g. w = 11 -> 2 bytes wide)*/
    if(g.box_w & 0x7) width_byte_scr++;
    uint16_t width_bit = g.box_w * g.bpp; /*Letter width in bits*/

    bool subpx = font_p->subpx == LV_FONT_SUBPX_NONE ? false : true;

    /* Calculate the col/row start/end on the map*/
    lv_coord_t col_start;
    lv_coord_t col_end;
    lv_coord_t row_start;
    lv_coord_t row_end;

    if(subpx == false) {
        col_start = pos_x >= mask_p->x1 ? 0 : mask_p->x1 - pos_x;
        col_end   = pos_x + g.box_w <= mask_p->x2 ? g.box_w : mask_p->x2 - pos_x + 1;
        row_start = pos_y >= mask_p->y1 ? 0 : mask_p->y1 - pos_y;
        row_end   = pos_y + g.box_h <= mask_p->y2 ? g.box_h : mask_p->y2 - pos_y + 1;
    } else {
        col_start = pos_x >= mask_p->x1 ? 0 : (mask_p->x1 - pos_x) * 3;
        col_end   = pos_x + g.box_w / 3 <= mask_p->x2 ? g.box_w : (mask_p->x2 - pos_x + 1) * 3;
        row_start = pos_y >= mask_p->y1 ? 0 : mask_p->y1 - pos_y;
        row_end   = pos_y + g.box_h <= mask_p->y2 ? g.box_h : mask_p->y2 - pos_y + 1;
    }

    /*Set a pointer on VDB to the first pixel of the letter*/
    vdb_buf_tmp += ((pos_y - vdb->area.y1) * vdb_width) + pos_x - vdb->area.x1;

    /*If the letter is partially out of mask the move there on VDB*/
    if(subpx) vdb_buf_tmp += (row_start * vdb_width) + col_start / 3;
    else vdb_buf_tmp += (row_start * vdb_width) + col_start;

    /*Move on the map too*/
    uint32_t bit_ofs = (row_start * width_bit) + (col_start * g.bpp);
    map_p += bit_ofs >> 3;

    uint8_t letter_px;
    lv_opa_t px_opa = 0;
    uint16_t col_bit;
    col_bit = bit_ofs & 0x7; /* "& 0x7" equals to "% 8" just faster */

    bool scr_transp = false;
#if LV_COLOR_DEPTH == 32 && LV_COLOR_SCREEN_TRANSP
    scr_transp = disp->driver.screen_transp;
#endif

    uint8_t font_rgb[3];
    uint8_t txt_rgb[3] = {LV_COLOR_GET_R(color), LV_COLOR_GET_G(color), LV_COLOR_GET_B(color)};

    for(row = row_start; row < row_end; row++) {
        bitmask = bitmask_init >> col_bit;
        uint8_t sub_px_cnt = 0;
        for(col = col_start; col < col_end; col++) {
            letter_px = (*map_p & bitmask) >> (8 - col_bit - g.bpp);

            /*subpx == 0*/
            if(subpx == false) {
                if(letter_px != 0) {
                    if(opa == LV_OPA_COVER) {
                        px_opa = g.bpp == 8 ? letter_px : bpp_opa_table[letter_px];
                    } else {
                        px_opa = g.bpp == 8 ? (uint16_t)((uint16_t)letter_px * opa) >> 8
                                : (uint16_t)((uint16_t)bpp_opa_table[letter_px] * opa) >> 8;
                    }

                    if(disp->driver.set_px_cb) {
                        disp->driver.set_px_cb(&disp->driver, (uint8_t *)vdb->buf_act, vdb_width,
                                (col + pos_x) - vdb->area.x1, (row + pos_y) - vdb->area.y1, color, px_opa);
                    } else if(vdb_buf_tmp->full != color.full) {
                        if(px_opa > LV_OPA_MAX) {
                            *vdb_buf_tmp = color;
                        } else if(px_opa > LV_OPA_MIN) {
                            if(scr_transp == false) {
                                *vdb_buf_tmp = lv_color_mix(color, *vdb_buf_tmp, px_opa);
                            } else {
#if LV_COLOR_DEPTH == 32 && LV_COLOR_SCREEN_TRANSP
        *vdb_buf_tmp = color_mix_2_alpha(*vdb_buf_tmp, (*vdb_buf_tmp).ch.alpha, color, px_opa);
#endif
                            }
                        }
                    }
                }
                vdb_buf_tmp++;
            }
            /*Handle subpx drawing*/
            else {
                if(letter_px != 0) {
                    if(opa == LV_OPA_COVER) {
                        px_opa = g.bpp == 8 ? letter_px : bpp_opa_table[letter_px];
                    } else {
                        px_opa = g.bpp == 8 ? (uint16_t)((uint16_t)letter_px * opa) >> 8
                                : (uint16_t)((uint16_t)bpp_opa_table[letter_px] * opa) >> 8;
                    }

                    font_rgb[sub_px_cnt] = px_opa;
                } else {
                    font_rgb[sub_px_cnt] = 0;
                }
                sub_px_cnt ++;

                if(sub_px_cnt == 3) {
                    lv_color_t res_color;

                    if(font_rgb[0] == 0 && font_rgb[1] == 0 && font_rgb[2] == 0) {
                        res_color = *vdb_buf_tmp;
                    } else {

                        uint8_t bg_rgb[3] = {LV_COLOR_GET_R(*vdb_buf_tmp), LV_COLOR_GET_G(*vdb_buf_tmp), LV_COLOR_GET_B(*vdb_buf_tmp)};

#if LV_FONT_SUBPX_BGR
                        LV_COLOR_SET_B(res_color, (uint16_t)((uint16_t)txt_rgb[0] * font_rgb[0] + (bg_rgb[2] * (255 - font_rgb[0]))) >> 8);
                        LV_COLOR_SET_R(res_color, (uint16_t)((uint16_t)txt_rgb[2] * font_rgb[2] + (bg_rgb[0] * (255 - font_rgb[2]))) >> 8);
#else
                        LV_COLOR_SET_R(res_color, (uint16_t)((uint16_t)txt_rgb[0] * font_rgb[0] + (bg_rgb[0] * (255 - font_rgb[0]))) >> 8);
                        LV_COLOR_SET_B(res_color, (uint16_t)((uint16_t)txt_rgb[2] * font_rgb[2] + (bg_rgb[2] * (255 - font_rgb[2]))) >> 8);
#endif
                        LV_COLOR_SET_G(res_color, (uint16_t)((uint16_t)txt_rgb[1] * font_rgb[1] + (bg_rgb[1] * (255 - font_rgb[1]))) >> 8);
                    }
                    if(scr_transp == false) {
                        vdb_buf_tmp->full = res_color.full;
#if LV_COLOR_DEPTH == 32 && LV_COLOR_SCREEN_TRANSP
                    } else {
                        *vdb_buf_tmp = color_mix_2_alpha(*vdb_buf_tmp, (*vdb_buf_tmp).ch.alpha, color, px_opa);
#endif
                    }
                    sub_px_cnt = 0;
                    vdb_buf_tmp++;
                }
            }


            if(col_bit < 8 - g.bpp) {
                col_bit += g.bpp;
                bitmask = bitmask >> g.bpp;
            } else {
                col_bit = 0;
                bitmask = bitmask_init;
                map_p++;
            }
        }

        col_bit += ((g.box_w - col_end) + col_start) * g.bpp;

        map_p += (col_bit >> 3);
        col_bit = col_bit & 0x7;

        /*Next row in VDB*/
        if(subpx) vdb_buf_tmp += vdb_width - (col_end - col_start) / 3;
        else vdb_buf_tmp += vdb_width - (col_end - col_start);
    }
}

// Assembly:
cmpb $0x10, %r9b
jb 0x3612e
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %ecx, %r14d
movq %rdx, %r15
cmpb $-0x4, %r9b
movzbl %r9b, %eax
movl $0xff, %ecx
cmovbl %eax, %ecx
testq %rdx, %rdx
je 0x3611d
movq %rsi, %r13
movq %rdi, %r12
movl %ecx, 0x20(%rsp)
movl %r8d, 0x3c(%rsp)
movl %r9d, 0x4c(%rsp)
leaq 0xc(%rsp), %rsi
movq %r15, %rdi
movl %r14d, %edx
xorl %ecx, %ecx
callq 0x28482
testb %al, %al
je 0x3611d
movzbl 0x12(%rsp), %eax
decl %eax
cmpl $0x7, %eax
ja 0x3611d
movsbl 0x10(%rsp), %ebx
addw (%r12), %bx
movzbl 0x10(%r15), %ecx
movzbl 0x11(%r15), %ebp
movzbl 0xf(%rsp), %edx
movl %edx, 0x24(%rsp)
addw 0x2(%r12), %cx
movq %rcx, 0x40(%rsp)
movsbl 0x11(%rsp), %r12d
leaq 0xd852(%rip), %rcx      # 0x43370
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xd862(%rip), %rax      # 0x43390
movq %rax, 0x28(%rsp)
movb $-0x80, 0xa(%rsp)
jmp 0x35b73
leaq 0xd851(%rip), %rax      # 0x43392
movq %rax, 0x28(%rsp)
movb $-0x40, 0xa(%rsp)
jmp 0x35b73
movb $0x4, 0x12(%rsp)
leaq 0xd847(%rip), %rax      # 0x433a0
movq %rax, 0x28(%rsp)
movb $-0x10, 0xa(%rsp)
jmp 0x35b73
movb $-0x1, 0xa(%rsp)
movq $0x0, 0x28(%rsp)
movq %r15, %rdi
movl %r14d, %esi
callq 0x2847c
testq %rax, %rax
je 0x3611d
movq %rax, %r14
movq %rbx, %rdx
movswl %dx, %esi
movzbl 0xe(%rsp), %eax
addl %esi, %eax
movswl (%r13), %ecx
cmpl %ecx, %eax
jl 0x3611d
cmpw 0x4(%r13), %dx
jg 0x3611d
addl 0x24(%rsp), %ebp
addl %r12d, %ebp
movq 0x40(%rsp), %rcx
subl %ebp, %ecx
movq %rcx, 0x40(%rsp)
movswl %cx, %ebx
movzbl 0xf(%rsp), %eax
addl %ebx, %eax
movswl 0x2(%r13), %ecx
cmpl %ecx, %eax
jl 0x3611d
movq 0x40(%rsp), %rax
cmpw 0x6(%r13), %ax
jg 0x3611d
movq %rsi, %r12
movq %rdx, 0x78(%rsp)
callq 0x7293
movq %rax, 0x80(%rsp)
movq %rax, %rdi
callq 0x85d8
movq 0x78(%rsp), %rdi
movq %rax, 0x70(%rsp)
movb 0xe(%rsp), %cl
movzbl %cl, %eax
movb 0x12(%r15), %sil
movb %sil, 0xb(%rsp)
movzwl (%r13), %edx
movl %edx, %r15d
subl %edi, %r15d
testb $0x3, %sil
je 0x35c5f
xorl %esi, %esi
cmpw %di, %dx
leal (%r15,%r15,2), %r15d
cmovlel %esi, %r15d
imull $0xab, %eax, %edx
shrl $0x9, %edx
movq %r12, %r10
addl %r10d, %edx
movswl 0x4(%r13), %esi
movl %esi, %edi
subl %r10d, %edi
cmpl %esi, %edx
leal 0x3(%rdi,%rdi,2), %esi
jmp 0x35c7d
xorl %esi, %esi
cmpw %di, %dx
cmovlel %esi, %r15d
movq %r12, %r10
leal (%rax,%r12), %edx
movswl 0x4(%r13), %edi
movl %edi, %esi
subl %r10d, %esi
incl %esi
cmpl %edi, %edx
cmovlel %eax, %esi
movzwl 0x2(%r13), %r9d
xorl %edx, %edx
subw 0x40(%rsp), %r9w
cmovlel %edx, %r9d
movzbl 0xf(%rsp), %edx
leal (%rdx,%rbx), %edi
movswl 0x6(%r13), %r8d
movq %r9, %r13
movl %r8d, %r9d
subl %ebx, %r9d
incl %r9d
cmpl %r8d, %edi
cmovlel %edx, %r9d
movswl %r13w, %edi
movswl %r9w, %edx
movl %edx, 0x60(%rsp)
cmpl %edi, %edx
jle 0x3611d
movq 0x70(%rsp), %r8
movswl 0x1c(%r8), %edx
movl %edx, 0x18(%rsp)
movq %r10, 0x50(%rsp)
movzwl 0x20(%r8), %r10d
subl %edx, %r10d
incl %r10d
movl 0x3c(%rsp), %r12d
movzwl %r12w, %r9d
movl %r9d, %edx
shrl $0xb, %edx
movl %edx, 0x38(%rsp)
movl %r9d, 0x64(%rsp)
shrl $0x5, %r9d
andl $0x3f, %r9d
movl %r9d, 0x1c(%rsp)
movl %esi, %edx
movl %esi, 0x34(%rsp)
movswl %r15w, %esi
imull $0x5556, %esi, %ebp     # imm = 0x5556
movl %ebp, %r11d
shrl $0x1f, %r11d
shrl $0x10, %ebp
addl %r11d, %ebp
movswl %dx, %edx
movl %edx, %r11d
subl %esi, %r11d
movslq %r11d, %r11
movq %r15, 0x68(%rsp)
imulq $0x55555555, %r11, %r15 # imm = 0x55555555
shrq $0x20, %r15
subl %r11d, %r15d
movl %r15d, %r11d
shrl $0x1f, %r11d
sarl %r15d
addl %r11d, %r15d
movl %r12d, %r11d
andl $0x1f, %r11d
movswl %r10w, %r9d
movl %edi, %r12d
imull %r9d, %r12d
movl %esi, %r10d
movl %edx, 0x24(%rsp)
subl %edx, %r10d
testb $0x3, 0xb(%rsp)
movq %r13, %rdx
movl %esi, %r13d
cmovnel %ebp, %r13d
cmovnel %r15d, %r10d
movq 0x68(%rsp), %r15
movswl %r13w, %ebp
movq %rdx, %r13
addl %r12d, %ebp
movq 0x50(%rsp), %r12
subl 0x18(%rsp), %r12d
movswl 0x1e(%r8), %edx
subl %edx, %ebx
imull %r9d, %ebx
addl %r12d, %ebx
movq 0x10(%r8), %rdx
xorl %r8d, %r8d
movslq %ebx, %rbx
leaq (%rdx,%rbx,2), %rbx
movb 0x12(%rsp), %dl
imull %edi, %eax
movzbl %dl, %edi
addl %esi, %eax
imull %edi, %eax
movl %eax, %edi
shrl $0x3, %edi
addq %rdi, %r14
movslq %ebp, %rdi
leaq (%rbx,%rdi,2), %rbp
movzbl 0x20(%rsp), %edi
movl %edi, 0x20(%rsp)
movzwl 0x38(%rsp), %edi
movl %edi, 0x50(%rsp)
movzwl 0x1c(%rsp), %edi
movl %edi, 0x1c(%rsp)
movzwl %r11w, %edi
movl %edi, 0x18(%rsp)
movl 0x4c(%rsp), %r11d
movl %esi, 0x5c(%rsp)
movl %esi, %ebx
subl 0x34(%rsp), %ebx
movl %r9d, 0x34(%rsp)
addl %r9d, %r10d
movslq %r10d, %r9
movb 0xa(%rsp), %r10b
movl %ebx, 0x58(%rsp)
movq %r9, 0x88(%rsp)
andl $0x7, %eax
movl 0x24(%rsp), %esi
cmpl 0x5c(%rsp), %esi
jle 0x360f1
movl %r10d, %r12d
movl %eax, %ecx
shrb %cl, %r12b
movq 0x40(%rsp), %rcx
movq %r13, 0x90(%rsp)
addl %r13d, %ecx
movl %ecx, 0x38(%rsp)
xorl %ebx, %ebx
movb 0xb(%rsp), %r9b
movb (%r14), %cl
andb %r12b, %cl
movzwl %ax, %r13d
movzbl %dl, %esi
addl %r13d, %esi
movzbl %cl, %eax
movb $0x8, %cl
subb %sil, %cl
shrq %cl, %rax
testb $0x3, %r9b
je 0x35e8f
testl %eax, %eax
je 0x35ebf
cmpb $-0x4, %r11b
jb 0x35ec3
cmpb $0x8, %dl
je 0x35ed9
movq 0x28(%rsp), %rcx
movb (%rcx,%rax), %al
jmp 0x35ed9
testl %eax, %eax
je 0x3608c
cmpb $-0x4, %r11b
jb 0x35f93
cmpb $0x8, %dl
movq 0x80(%rsp), %rdi
je 0x35fb1
movq 0x28(%rsp), %rcx
movb (%rcx,%rax), %al
jmp 0x35fb1
xorl %eax, %eax
jmp 0x35ed9
cmpb $0x8, %dl
je 0x35ed1
movq 0x28(%rsp), %rcx
movzbl (%rcx,%rax), %eax
imull 0x20(%rsp), %eax
shrl $0x8, %eax
movzbl %bl, %ebx
movb %al, 0x15(%rsp,%rbx)
incb %bl
cmpb $0x3, %bl
jne 0x36090
movzbl 0x15(%rsp), %eax
movb 0x16(%rsp), %cl
movb 0x17(%rsp), %dl
movl %eax, %esi
orb %cl, %sil
orb %dl, %sil
jne 0x35f08
movzwl (%rbp), %eax
jmp 0x35f84
movzbl %cl, %ecx
movzbl %dl, %esi
movzwl (%rbp), %edi
movl %edi, %r8d
shrl $0xb, %r8d
movl %edi, %edx
shrl $0x5, %edx
andl $0x3f, %edx
andl $0x1f, %edi
movzwl %ax, %eax
movl 0x50(%rsp), %r9d
imull %eax, %r9d
movl $0xff, %ebx
xorl %ebx, %eax
imull %r8d, %eax
addl %r9d, %eax
movb 0xb(%rsp), %r9b
andl $0xffff3f00, %eax       # imm = 0xFFFF3F00
movzwl %si, %esi
movl 0x18(%rsp), %r8d
imull %esi, %r8d
xorl %ebx, %esi
imull %edi, %esi
addl %r8d, %esi
xorl %r8d, %r8d
shrl $0x8, %esi
movzwl %cx, %ecx
movl 0x1c(%rsp), %edi
imull %ecx, %edi
xorl %ebx, %ecx
imull %edx, %ecx
addl %edi, %ecx
shrl $0x3, %ecx
andl $0x7e0, %ecx            # imm = 0x7E0
andl $0x1f, %esi
leal (%rsi,%rax,8), %eax
orl %ecx, %eax
movw %ax, (%rbp)
addq $0x2, %rbp
xorl %ebx, %ebx
jmp 0x36090
cmpb $0x8, %dl
movq 0x80(%rsp), %rdi
je 0x35fa9
movq 0x28(%rsp), %rcx
movzbl (%rcx,%rax), %eax
imull 0x20(%rsp), %eax
shrl $0x8, %eax
movq 0x28(%rdi), %r10
testq %r10, %r10
je 0x36009
movq 0x78(%rsp), %rcx
addl %r15d, %ecx
movq 0x70(%rsp), %r8
subw 0x1c(%r8), %cx
movq 0x10(%r8), %rsi
movl 0x38(%rsp), %edx
subw 0x1e(%r8), %dx
movzbl %al, %eax
movl %eax, (%rsp)
movswl %cx, %ecx
movswl %dx, %r8d
movl 0x34(%rsp), %edx
movl 0x64(%rsp), %r9d
callq *%r10
xorl %r8d, %r8d
movb 0xb(%rsp), %r9b
movl 0x4c(%rsp), %r11d
movb 0xa(%rsp), %r10b
jmp 0x3608c
movzwl (%rbp), %ecx
cmpw 0x3c(%rsp), %cx
movb 0xa(%rsp), %r10b
je 0x3608c
cmpb $-0x4, %al
jb 0x36023
movl 0x3c(%rsp), %eax
jmp 0x36088
cmpb $0x11, %al
jb 0x3608c
movzbl %al, %edx
movl %edx, %esi
imull 0x50(%rsp), %esi
movl %ecx, %eax
shrl $0xb, %eax
movl %edx, %edi
xorl $0xff, %edi
imull %edi, %eax
addl %esi, %eax
andl $0x3f00, %eax           # imm = 0x3F00
movl %edx, %esi
imull 0x1c(%rsp), %esi
movl %ecx, %r8d
shrl $0x5, %r8d
andl $0x3f, %r8d
imull %edi, %r8d
addl %esi, %r8d
shrl $0x3, %r8d
andl $0x7e0, %r8d            # imm = 0x7E0
imull 0x18(%rsp), %edx
andl $0x1f, %ecx
imull %edi, %ecx
addl %edx, %ecx
shrl $0x8, %ecx
andl $0x1f, %ecx
leal (%rcx,%rax,8), %eax
orl %r8d, %eax
xorl %r8d, %r8d
movw %ax, (%rbp)
addq $0x2, %rbp
movzbl %r12b, %esi
movzbl 0x12(%rsp), %edx
movl $0x8, %edi
subl %edx, %edi
leal (%rdx,%r13), %eax
movl %edx, %ecx
shrl %cl, %esi
xorl %ecx, %ecx
cmpl %r13d, %edi
cmovlel %r8d, %eax
setle %cl
movzbl %r10b, %r12d
cmovgl %esi, %r12d
addq %rcx, %r14
incl %r15d
movswl %r15w, %ecx
cmpl %ecx, 0x24(%rsp)
jg 0x35e55
movb 0xe(%rsp), %cl
movl %edx, %esi
movq 0x68(%rsp), %r15
movq 0x90(%rsp), %r13
movl 0x58(%rsp), %ebx
movq 0x88(%rsp), %r9
jmp 0x360f4
movzbl %dl, %esi
movzbl %cl, %edi
addl %ebx, %edi
imull %esi, %edi
addl %edi, %eax
movzwl %ax, %esi
shrl $0x3, %esi
addq %rsi, %r14
leaq (%rbp,%r9,2), %rbp
incl %r13d
movswl %r13w, %esi
cmpl %esi, 0x60(%rsp)
jg 0x35e21
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq