// File: /workspace/github_c_makefile_star2_O1/OnionIoT[P]lv_example/lvgl/src/lv_objx/lv_canvas.c
// Function: lv_canvas_rotate
void lv_canvas_rotate(lv_obj_t * canvas, lv_img_dsc_t * img, int16_t angle, lv_coord_t offset_x, lv_coord_t offset_y,
                      int32_t pivot_x, int32_t pivot_y)
{
    LV_ASSERT_OBJ(canvas, LV_OBJX_NAME);
    LV_ASSERT_NULL(img);

    lv_canvas_ext_t * ext_dst = lv_obj_get_ext_attr(canvas);
    const lv_style_t * style  = lv_canvas_get_style(canvas, LV_CANVAS_STYLE_MAIN);
    int32_t sinma             = lv_trigo_sin(-angle);
    int32_t cosma             = lv_trigo_sin(-angle + 90); /* cos */

    int32_t img_width   = img->header.w;
    int32_t img_height  = img->header.h;
    int32_t dest_width  = ext_dst->dsc.header.w;
    int32_t dest_height = ext_dst->dsc.header.h;

    int32_t x;
    int32_t y;
    for(x = -offset_x; x < dest_width - offset_x; x++) {
        for(y = -offset_y; y < dest_height - offset_y; y++) {
            /*Get the target point relative coordinates to the pivot*/
            int32_t xt = x - pivot_x;
            int32_t yt = y - pivot_y;

            /*Get the source pixel from the upscaled image*/
            int32_t xs = ((cosma * xt - sinma * yt) >> (LV_TRIGO_SHIFT - 8)) + pivot_x * 256;
            int32_t ys = ((sinma * xt + cosma * yt) >> (LV_TRIGO_SHIFT - 8)) + pivot_y * 256;

            /*Get the integer part of the source pixel*/
            int xs_int = xs >> 8;
            int ys_int = ys >> 8;

            if(xs_int >= img_width)
                continue;
            else if(xs_int < 0)
                continue;

            if(ys_int >= img_height)
                continue;
            else if(ys_int < 0)
                continue;

            /*Get the fractional part of the source pixel*/
            int xs_fract = xs & 0xff;
            int ys_fract = ys & 0xff;

            /* If the fractional < 0x70 mix the source pixel with the left/top pixel
             * If the fractional > 0x90 mix the source pixel with the right/bottom pixel
             * In the 0x70..0x90 range use the unchanged source pixel */

            int xn;      /*x neightboor*/
            lv_opa_t xr; /*x mix ratio*/
            if(xs_fract < 0x70) {
                xn = xs_int - 1;
                xr = xs_fract * 2;
            } else if(xs_fract > 0x90) {
                xn = xs_int + 1;
                xr = (0xFF - xs_fract) * 2;
            } else {
                xn = xs_int;
                xr = 0xFF;
            }

            /*Handle under/overflow*/
            if(xn >= img_width)
                continue;
            else if(xn < 0)
                continue;

            int yn;      /*y neightboor*/
            lv_opa_t yr; /*y mix ratio*/
            if(ys_fract < 0x70) {
                yn = ys_int - 1;
                yr = ys_fract * 2;
            } else if(ys_fract > 0x90) {
                yn = ys_int + 1;
                yr = (0xFF - ys_fract) * 2;
            } else {
                yn = ys_int;
                yr = 0xFF;
            }

            /*Handle under/overflow*/
            if(yn >= img_height)
                continue;
            else if(yn < 0)
                continue;

            /*Get the mixture of the original source and the neightboor pixels in both directions*/
            lv_color_t c_dest_int = lv_img_buf_get_px_color(img, xs_int, ys_int, style);

            if(lv_img_color_format_is_chroma_keyed(img->header.cf)) {
                lv_color_t ct = LV_COLOR_TRANSP;
                if(c_dest_int.full == ct.full) continue;
            }

            lv_color_t c_dest_xn = lv_img_buf_get_px_color(img, xn, ys_int, style);
            lv_color_t c_dest_yn = lv_img_buf_get_px_color(img, xs_int, yn, style);
            lv_color_t x_dest    = lv_color_mix(c_dest_int, c_dest_xn, xr);
            lv_color_t y_dest    = lv_color_mix(c_dest_int, c_dest_yn, yr);
            lv_color_t color_res = lv_color_mix(x_dest, y_dest, LV_OPA_50);

            if(x + offset_x >= 0 && x + offset_x < dest_width && y + offset_y >= 0 && y + offset_y < dest_height) {
                /*If the image has no alpha channel just simple set the result color on the canvas*/
                if(lv_img_color_format_has_alpha(img->header.cf) == false) {
                    lv_img_buf_set_px_color(&ext_dst->dsc, x + offset_x, y + offset_y, color_res);
                } else {
                    /*Get result pixel opacity*/
                    lv_opa_t opa_int = lv_img_buf_get_px_alpha(img, xs_int, ys_int);
                    lv_opa_t opa_xn  = lv_img_buf_get_px_alpha(img, xn, ys_int);
                    lv_opa_t opa_yn  = lv_img_buf_get_px_alpha(img, xs_int, yn);
                    lv_opa_t opa_x   = (opa_int * xr + (opa_xn * (255 - xr))) >> 8;
                    lv_opa_t opa_y   = (opa_int * yr + (opa_yn * (255 - yr))) >> 8;
                    lv_opa_t opa_res = (opa_x + opa_y) / 2;
                    if(opa_res <= LV_OPA_MIN) continue;

                    lv_color_t bg_color = lv_img_buf_get_px_color(&ext_dst->dsc, x + offset_x, y + offset_y, style);

                    /*If the canvas has no alpha but the image has mix the image's color with
                     * canvas*/
                    if(lv_img_color_format_has_alpha(ext_dst->dsc.header.cf) == false) {
                        if(opa_res < LV_OPA_MAX) color_res = lv_color_mix(color_res, bg_color, opa_res);
                        lv_img_buf_set_px_color(&ext_dst->dsc, x + offset_x, y + offset_y, color_res);
                    }
                    /*Both the image and canvas has alpha channel. Some extra calculation is
                       required*/
                    else {
                        lv_opa_t bg_opa = lv_img_buf_get_px_alpha(&ext_dst->dsc, x + offset_x, y + offset_y);
                        /* Pick the foreground if it's fully opaque or the Background is fully
                         * transparent*/
                        if(opa_res >= LV_OPA_MAX || bg_opa <= LV_OPA_MIN) {
                            lv_img_buf_set_px_color(&ext_dst->dsc, x + offset_x, y + offset_y, color_res);
                            lv_img_buf_set_px_alpha(&ext_dst->dsc, x + offset_x, y + offset_y, opa_res);
                        }
                        /*Opaque background: use simple mix*/
                        else if(bg_opa >= LV_OPA_MAX) {
                            lv_img_buf_set_px_color(&ext_dst->dsc, x + offset_x, y + offset_y,
                                                    lv_color_mix(color_res, bg_color, opa_res));
                        }
                        /*Both colors have alpha. Expensive calculation need to be applied*/
                        else {

                            /*Info:
                             * https://en.wikipedia.org/wiki/Alpha_compositing#Analytical_derivation_of_the_over_operator*/
                            lv_opa_t opa_res_2 = 255 - ((uint16_t)((uint16_t)(255 - opa_res) * (255 - bg_opa)) >> 8);
                            if(opa_res_2 == 0) {
                                opa_res_2 = 1; /*never happens, just to be sure*/
                            }
                            lv_opa_t ratio = (uint16_t)((uint16_t)opa_res * 255) / opa_res_2;

                            lv_img_buf_set_px_color(&ext_dst->dsc, x + offset_x, y + offset_y,
                                                    lv_color_mix(color_res, bg_color, ratio));
                            lv_img_buf_set_px_alpha(&ext_dst->dsc, x + offset_x, y + offset_y, opa_res_2);
                        }
                    }
                }
            }
        }
    }

    lv_obj_invalidate(canvas);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %r9d, %ebx
movl %r8d, %ebp
movl %ecx, %r15d
movl %edx, %r12d
movq %rsi, %r13
movq %rdi, %r14
movl 0x100(%rsp), %eax
movl %eax, 0x44(%rsp)
callq 0x80d4
testb %al, %al
je 0x1801f
movq %r13, %rdi
callq 0x80d4
testb %al, %al
je 0x18030
movq %r13, 0x70(%rsp)
movq %r14, %rdi
callq 0x6ad8
movq %rax, %r13
movq %r14, 0xa0(%rsp)
movq %r14, %rdi
xorl %esi, %esi
callq 0x1767f
movq %rax, 0x80(%rsp)
movl %r12d, %eax
negl %eax
movswl %ax, %edi
callq 0x2ad8c
movl %eax, %r14d
movl $0x5a, %eax
subl %r12d, %eax
movswl %ax, %edi
callq 0x2ad8c
movl $0x7ff, %ecx            # imm = 0x7FF
movq %r13, 0x48(%rsp)
movl 0x18(%r13), %edx
movl %edx, 0x64(%rsp)
shrl $0xa, %edx
andl %ecx, %edx
movl %edx, 0x60(%rsp)
je 0x18041
movswl %r14w, %r12d
movswl %ax, %r8d
movq 0x70(%rsp), %rax
movl (%rax), %r9d
movl %r9d, %r10d
shrl $0xa, %r10d
andl %ecx, %r10d
shrl $0x15, %r9d
addq $0x18, 0x48(%rsp)
movl 0x64(%rsp), %ecx
shrl $0x15, %ecx
movswl %r15w, %edx
movl 0x60(%rsp), %eax
subl %edx, %eax
movl %eax, 0x94(%rsp)
movl %edx, %eax
negl %eax
movq %rax, 0x78(%rsp)
movswl %bp, %eax
movl %ecx, 0x90(%rsp)
movl %ecx, %r11d
subl %eax, %r11d
movl 0x44(%rsp), %ecx
movl %ecx, %esi
addl %eax, %ecx
negl %eax
movq %rax, 0xc0(%rsp)
movl %ebx, %eax
shll $0x8, %eax
movq %rax, 0xb8(%rsp)
shll $0x8, %esi
movq %rsi, 0xb0(%rsp)
movq %rdx, 0xa8(%rsp)
addl %edx, %ebx
negl %ebx
movl %ebx, %eax
imull %r8d, %eax
movl %ecx, %edx
negl %edx
imull %r12d, %ecx
addl %eax, %ecx
movl %ecx, 0x44(%rsp)
imull %r12d, %ebx
imull %r8d, %edx
addl %ebx, %edx
movl %edx, 0x68(%rsp)
movl %r12d, 0x24(%rsp)
movl %r8d, 0x18(%rsp)
movl %r9d, 0x14(%rsp)
movl %r10d, 0x10(%rsp)
movl %r11d, 0xc(%rsp)
cmpl $0x200000, 0x64(%rsp)   # imm = 0x200000
jae 0x179a0
movq 0x78(%rsp), %rax
incl %eax
addl %r8d, 0x44(%rsp)
addl %r12d, 0x68(%rsp)
movq %rax, 0x78(%rsp)
cmpl 0x94(%rsp), %eax
jl 0x17972
jmp 0x18041
movq 0xa8(%rsp), %rax
movq 0x78(%rsp), %rcx
addl %ecx, %eax
xorl %ebx, %ebx
movl %eax, 0x9c(%rsp)
cwtl
movl %eax, 0x1c(%rsp)
movl 0x68(%rsp), %r13d
movl 0x44(%rsp), %r15d
movl %r15d, %esi
sarl $0x7, %esi
movq 0xb8(%rsp), %rax
addl %esi, %eax
sarl $0x8, %eax
cmpl %r10d, %eax
jae 0x17e5a
movl %r13d, %edx
sarl $0x7, %edx
movq 0xb0(%rsp), %rcx
addl %edx, %ecx
sarl $0x8, %ecx
cmpl %r9d, %ecx
jae 0x17e5a
movl %esi, %edi
movl $0xff, %ebp
andl %ebp, %edi
cmpl $0x6f, %edi
ja 0x17a15
leal -0x1(%rax), %r14d
addl %esi, %esi
jmp 0x17a2c
movl %eax, %r14d
cmpl $0x91, %edi
jb 0x17a2e
leal 0x1(%rax), %r14d
addl %esi, %esi
xorl $0x1fe, %esi            # imm = 0x1FE
movl %esi, %ebp
movl %ebp, 0x38(%rsp)
cmpl %r10d, %r14d
jae 0x17e5a
movl %edx, %esi
movl $0xff, %edi
andl %edi, %esi
cmpl $0x6f, %esi
ja 0x17a50
leal -0x1(%rcx), %ebp
addl %edx, %edx
jmp 0x17a65
movl %ecx, %ebp
cmpl $0x91, %esi
jb 0x17a67
leal 0x1(%rcx), %ebp
addl %edx, %edx
xorl $0x1fe, %edx            # imm = 0x1FE
movl %edx, %edi
movl %edi, 0x5c(%rsp)
movl %ebp, 0x34(%rsp)
cmpl %r9d, %ebp
jae 0x17e5a
movswl %ax, %esi
movswl %cx, %edx
movq 0x70(%rsp), %r12
movq %r12, %rdi
movl %esi, 0x58(%rsp)
movl %edx, 0x6c(%rsp)
movq 0x80(%rsp), %rcx
callq 0x3be97
movl %eax, %ebp
movl (%r12), %edi
movl 0x24(%rsp), %r12d
andl $0x1f, %edi
callq 0x3c47b
movl 0xc(%rsp), %r11d
movl 0x10(%rsp), %r10d
movl 0x14(%rsp), %r9d
movl 0x18(%rsp), %r8d
movzwl %bp, %ebp
testb %al, %al
je 0x17ad5
cmpl $0x7e0, %ebp            # imm = 0x7E0
je 0x17e5a
movswl %r14w, %esi
movq 0x70(%rsp), %r14
movq %r14, %rdi
movl %esi, 0x98(%rsp)
movl 0x6c(%rsp), %edx
movq 0x80(%rsp), %r12
movq %r12, %rcx
callq 0x3be97
movl %eax, 0x2c(%rsp)
movswl 0x34(%rsp), %edx
movq %r14, %rdi
movl 0x58(%rsp), %esi
movl %edx, 0x34(%rsp)
movq %r12, %rcx
movl 0x24(%rsp), %r12d
callq 0x3be97
movl 0xc(%rsp), %r11d
movl 0x10(%rsp), %r10d
movl 0x14(%rsp), %r9d
movl 0x18(%rsp), %r8d
movl 0x9c(%rsp), %ecx
cmpl 0x60(%rsp), %ecx
jae 0x17e5a
cmpl 0x90(%rsp), %ebx
jae 0x17e5a
movl 0x2c(%rsp), %r10d
movzwl %r10w, %edx
movzwl %ax, %ecx
movl %ebp, %esi
shrl $0xb, %esi
movl %esi, 0x20(%rsp)
movl $0xff, %r9d
movl 0x38(%rsp), %r14d
andl %r9d, %r14d
movl %r14d, %r8d
imull %esi, %r8d
movl %edx, %esi
shrl $0xb, %esi
movl %r14d, %r11d
xorl %r9d, %r11d
imull %r11d, %esi
addl %r8d, %esi
movl %ebp, %r8d
shrl $0x5, %r8d
andl $0x3f, %r8d
movl %r14d, %r9d
imull %r8d, %r9d
shrl $0x5, %edx
andl $0x3f, %edx
imull %r11d, %edx
addl %r9d, %edx
andl $0x1f, %ebp
movl %r14d, 0x38(%rsp)
movl %r14d, %r9d
imull %ebp, %r9d
andl $0x1f, %r10d
movl %r11d, 0x8c(%rsp)
imull %r11d, %r10d
addl %r9d, %r10d
movl 0x5c(%rsp), %r14d
movl $0xff, %edi
andl %edi, %r14d
movl 0x20(%rsp), %edi
imull %r14d, %edi
movl %edi, 0x20(%rsp)
movl %ecx, %r9d
shrl $0xb, %r9d
movl %r14d, %r11d
movl $0xff, %edi
xorl %edi, %r11d
imull %r11d, %r9d
addl 0x20(%rsp), %r9d
imull %r14d, %r8d
shrl $0x5, %ecx
andl $0x3f, %ecx
imull %r11d, %ecx
addl %r8d, %ecx
movl %r14d, 0x5c(%rsp)
imull %r14d, %ebp
andl $0x1f, %eax
movl %r11d, 0x2c(%rsp)
imull %r11d, %eax
addl %ebp, %eax
shrl $0x8, %esi
andl $0x1f, %esi
movl %esi, %edi
shll $0x7, %edi
subl %esi, %edi
shrl %r9d
movl $0xf80, %r8d            # imm = 0xF80
andl %r8d, %r9d
addl %edi, %r9d
shrl $0x8, %edx
andl $0x3f, %edx
movl %edx, %esi
shll $0x7, %esi
subl %edx, %esi
shrl $0x8, %r10d
andl $0x1f, %r10d
shrl %ecx
andl $0x1f80, %ecx           # imm = 0x1F80
addl %esi, %ecx
movl %r10d, %edx
shll $0x7, %edx
subl %r10d, %edx
shrl %eax
andl %r8d, %eax
addl %edx, %eax
movl %r9d, 0x54(%rsp)
movl %r9d, %edx
andl $0xffff1f00, %edx       # imm = 0xFFFF1F00
shrl $0x3, %ecx
andl $0x7e0, %ecx            # imm = 0x7E0
movzbl %ah, %eax
leal (%rcx,%rdx,8), %ebp
movl %eax, 0x20(%rsp)
orl %eax, %ebp
movq 0x70(%rsp), %r14
movl (%r14), %edi
andl $0x1f, %edi
callq 0x3c48d
testb %al, %al
je 0x17e33
movl %ebp, 0x30(%rsp)
movq %r14, %rdi
movl 0x58(%rsp), %esi
movl 0x6c(%rsp), %ebp
movl %ebp, %edx
callq 0x3bfea
movb %al, 0x2b(%rsp)
movq %r14, %rdi
movl 0x98(%rsp), %esi
movl %ebp, %edx
callq 0x3bfea
movl %eax, %ebp
movq %r14, %rdi
movl 0x58(%rsp), %esi
movl 0x34(%rsp), %edx
callq 0x3bfea
movzbl 0x2b(%rsp), %ecx
movl 0x38(%rsp), %edi
imull %ecx, %edi
movzbl %bpl, %edx
movl 0x8c(%rsp), %esi
imull %edx, %esi
addl %edi, %esi
shrl $0x8, %esi
movl 0x5c(%rsp), %edx
imull %ecx, %edx
movzbl %al, %eax
movl 0x2c(%rsp), %ebp
imull %eax, %ebp
addl %edx, %ebp
shrl $0x8, %ebp
movl $0xff, %eax
andl %eax, %esi
andl %eax, %ebp
addl %esi, %ebp
cmpl $0x22, %ebp
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
movl 0x10(%rsp), %r10d
movl 0xc(%rsp), %r11d
jb 0x17e5a
movl %ebp, 0x2c(%rsp)
shrl %ebp
movswl %bx, %edx
movq 0x48(%rsp), %r12
movq %r12, %rdi
movl 0x1c(%rsp), %r14d
movl %r14d, %esi
movq 0x80(%rsp), %rcx
callq 0x3be97
movq %rax, 0x38(%rsp)
movl (%r12), %edi
andl $0x1f, %edi
callq 0x3c48d
testb %al, %al
je 0x17e80
movswl %bx, %edx
movq %r12, 0x48(%rsp)
movq %r12, %rdi
movl %r14d, %esi
callq 0x3bfea
cmpl $0x1f5, 0x2c(%rsp)      # imm = 0x1F5
ja 0x17f08
cmpb $0x10, %al
jbe 0x17f08
cmpb $-0x5, %al
jb 0x17f50
movswl 0x54(%rsp), %eax
movzbl %ah, %esi
imull %ebp, %esi
movq 0x38(%rsp), %rdi
movzwl %di, %eax
movl %eax, %ecx
shrl $0xb, %ecx
movl %ebp, %edx
xorl $0xff, %edx
imull %edx, %ecx
addl %esi, %ecx
andl $0xffffff00, %ecx       # imm = 0xFFFFFF00
movl 0x30(%rsp), %esi
shrl $0x5, %esi
andl $0x3f, %esi
imull %ebp, %esi
shrl $0x5, %eax
andl $0x3f, %eax
imull %edx, %eax
addl %esi, %eax
shrl $0x3, %eax
andl $0x7e0, %eax            # imm = 0x7E0
movl 0x20(%rsp), %esi
imull %ebp, %esi
andl $0x1f, %edi
imull %edx, %edi
addl %esi, %edi
shrl $0x8, %edi
andl $0x1f, %edi
leal (%rdi,%rcx,8), %ecx
orl %eax, %ecx
movswl %bx, %edx
movq 0x48(%rsp), %rdi
movl 0x1c(%rsp), %esi
callq 0x3c106
jmp 0x18015
movswl %bx, %edx
movq 0x48(%rsp), %rdi
movl 0x1c(%rsp), %esi
movl %ebp, %ecx
callq 0x3c106
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
movl 0x10(%rsp), %r10d
movl 0xc(%rsp), %r11d
movq 0xc0(%rsp), %rax
addl %ebx, %eax
incl %eax
movl %ebx, %ecx
incl %ecx
subl %r12d, %r15d
addl %r8d, %r13d
movl %ecx, %ebx
cmpl %r11d, %eax
jl 0x179c7
jmp 0x1797c
movq %r12, %rdi
cmpl $0x1f5, 0x2c(%rsp)      # imm = 0x1F5
ja 0x17f3b
movswl 0x54(%rsp), %eax
movzbl %ah, %esi
imull %ebp, %esi
movq 0x38(%rsp), %r8
movzwl %r8w, %eax
movl %eax, %ecx
shrl $0xb, %ecx
movl %ebp, %edx
xorl $0xff, %edx
imull %edx, %ecx
addl %esi, %ecx
andl $0xffffff00, %ecx       # imm = 0xFFFFFF00
movl 0x30(%rsp), %esi
shrl $0x5, %esi
andl $0x3f, %esi
imull %ebp, %esi
shrl $0x5, %eax
andl $0x3f, %eax
imull %edx, %eax
addl %esi, %eax
shrl $0x3, %eax
andl $0x7e0, %eax            # imm = 0x7E0
movl 0x20(%rsp), %esi
imull %ebp, %esi
andl $0x1f, %r8d
imull %edx, %r8d
addl %esi, %r8d
shrl $0x8, %r8d
andl $0x1f, %r8d
leal (%r8,%rcx,8), %ecx
orl %eax, %ecx
movl 0x24(%rsp), %r12d
movl 0x1c(%rsp), %esi
jmp 0x17f48
movswl %bx, %edx
movl %edx, 0x38(%rsp)
movq 0x48(%rsp), %r12
movq %r12, %rdi
movl 0x1c(%rsp), %r14d
movl %r14d, %esi
movl 0x30(%rsp), %ecx
callq 0x3c106
movzbl %bpl, %ecx
movq %r12, %rdi
movl %r14d, %esi
movl 0x38(%rsp), %edx
jmp 0x18010
movl 0x24(%rsp), %r12d
movl 0x1c(%rsp), %esi
movl 0x30(%rsp), %ecx
movswl %bx, %edx
jmp 0x17e41
movl %ebp, %ecx
movl $0xff, %edi
xorl %edi, %ecx
notb %al
movzbl %al, %edx
imull %ecx, %edx
shrl $0x8, %edx
notb %dl
movl %ebp, %eax
shll $0x8, %eax
subl %ebp, %eax
movzbl %dl, %ecx
movl %ecx, 0x34(%rsp)
xorl %edx, %edx
divl %ecx
movswl 0x54(%rsp), %ecx
movzbl %ch, %edx
andl %edi, %eax
imull %eax, %edx
movq 0x38(%rsp), %rcx
movzwl %cx, %r10d
movl %r10d, %esi
shrl $0xb, %esi
movl 0x30(%rsp), %r9d
shrl $0x5, %r9d
andl $0x3f, %r9d
imull %eax, %r9d
movl 0x20(%rsp), %r8d
imull %eax, %r8d
xorl %edi, %eax
imull %eax, %esi
addl %edx, %esi
andl $0xffffff00, %esi       # imm = 0xFFFFFF00
shrl $0x5, %r10d
andl $0x3f, %r10d
imull %eax, %r10d
addl %r9d, %r10d
shrl $0x3, %r10d
andl $0x7e0, %r10d           # imm = 0x7E0
leal (%r10,%rsi,8), %edx
andl $0x1f, %ecx
imull %eax, %ecx
addl %r8d, %ecx
shrl $0x8, %ecx
andl $0x1f, %ecx
orl %edx, %ecx
movswl %bx, %ebp
movq 0x48(%rsp), %r12
movq %r12, %rdi
movl 0x1c(%rsp), %r14d
movl %r14d, %esi
movl %ebp, %edx
callq 0x3c106
movq %r12, %rdi
movl %r14d, %esi
movl %ebp, %edx
movl 0x34(%rsp), %ecx
callq 0x3c2b1
movl 0x24(%rsp), %r12d
jmp 0x17e46
leaq 0x2710e(%rip), %rdi     # 0x3f134
movq %r14, %rsi
callq 0x829e
jmp 0x1802e
leaq 0x270fd(%rip), %rdi     # 0x3f134
movq %r13, %rsi
callq 0x829e
jmp 0x1803f
movq 0xa0(%rsp), %rdi
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4c36