// File: /workspace/github_c_makefile_star2_O0/0x0203[P]schack_poc/./calculator.c
// Function: calculator
static int
calculator(struct nk_context *ctx, int show)
{
    int has_focus;

    if (show)
    {
	nk_window_show(ctx, WIN_CALC_NAME, NK_SHOWN);
	nk_window_set_focus(ctx, WIN_CALC_NAME);
    }
    else
	return 0;

    if (nk_begin(ctx, WIN_CALC_NAME, nk_rect(10, 10, 200, 350),
        NK_WINDOW_BORDER|NK_WINDOW_TITLE|NK_WINDOW_CLOSABLE|NK_WINDOW_MINIMIZABLE|
	NK_WINDOW_NO_SCROLLBAR|NK_WINDOW_MOVABLE))
    {
	has_focus = nk_window_has_focus(ctx);

        static int set = 0, prev = 0, op = 0;
	static long a = 0, b = 0;
	static long *current = &a;
	int base;

        int solve = 0;

	{
	    int len;
	    char in_buffer[256];
	    nk_plugin_filter filter;

	    nk_layout_row_dynamic(ctx, 35, 2);
	    if (nk_option_label(ctx, "Hexicecimal (0x)", sel_mode == MODE_HEX)) sel_mode = MODE_HEX;
	    if (nk_option_label(ctx, "Decimal", sel_mode == MODE_DEC)) sel_mode = MODE_DEC;
	    filter = sel_mode == MODE_HEX ? nk_filter_hex : nk_filter_decimal;
	    nk_layout_row_dynamic(ctx, 35, 1);
	    len = snprintf(in_buffer, 256, sel_mode == MODE_HEX ? "0x%lX" : "%ld", *current);
	    nk_edit_string(ctx, NK_EDIT_SIMPLE | NK_EDIT_READ_ONLY, in_buffer, &len, 255, filter);
	    in_buffer[len] = 0;
	    *current = strtol(in_buffer, NULL, 0);

	    nk_layout_row_dynamic(ctx, 25, 1);
	    nk_labelf(ctx, NK_TEXT_RIGHT, sel_mode == MODE_DEC ? "Hex: 0x%lX": "Dec: %ld", *current);
	}

	base = sel_mode == MODE_HEX ? 16 : 10;

	nk_layout_row_dynamic(ctx, 35, 6);
	if (nk_button_label(ctx, "D") && sel_mode == MODE_HEX){*current = *current * base + 0xd;set=0;}
	if (nk_button_label(ctx, "E") && sel_mode == MODE_HEX){*current = *current * base + 0xe;set=0;}
	if (nk_button_label(ctx, "F") && sel_mode == MODE_HEX){*current = *current * base + 0xf;set=0;}
	nk_label(ctx, "", NK_TEXT_CENTERED);
	if (nk_button_label(ctx, "^")){if (!set){if (current !=&b) current = &b; else {prev = op; solve=1;}}op='^';set=1;}
	if (nk_button_label(ctx, "&")){if (!set){if (current !=&b) current = &b; else {prev = op; solve=1;}}op='&';set=1;}

	nk_layout_row_dynamic(ctx, 35, 6);
	if (nk_button_label(ctx, "A") && sel_mode == MODE_HEX){*current = *current * base + 0xa;set=0;}
	if (nk_button_label(ctx, "B") && sel_mode == MODE_HEX){*current = *current * base + 0xb;set=0;}
	if (nk_button_label(ctx, "C") && sel_mode == MODE_HEX){*current = *current * base + 0xc;set=0;}
	nk_label(ctx, "", NK_TEXT_CENTERED);
	if (nk_button_label(ctx, "|")){if (!set){if (current !=&b) current = &b; else{ prev = op; solve=1;}}op='|';set=1;}
	nk_label(ctx, "", NK_TEXT_CENTERED);

	nk_layout_row_dynamic(ctx, 35, 6);
	if (nk_button_label(ctx, "7")){*current = *current * base + 7;set=0;}
	if (nk_button_label(ctx, "8")){*current = *current * base + 8;set=0;}
	if (nk_button_label(ctx, "9")){*current = *current * base + 9;set=0;}
	nk_label(ctx, "", NK_TEXT_CENTERED);
	if (nk_button_label(ctx, "+")){if (!set){if (current !=&b) current = &b; else {prev = op; solve=1;}}op='+';set=1;}
	if (nk_button_label(ctx, "-")){if (!set){if (current !=&b) current = &b; else {prev = op; solve=1;}}op='-';set=1;}

	nk_layout_row_dynamic(ctx, 35, 6);
	if (nk_button_label(ctx, "4")){*current = *current * base + 4;set=0;}
	if (nk_button_label(ctx, "5")){*current = *current * base + 5;set=0;}
	if (nk_button_label(ctx, "6")){*current = *current * base + 6;set=0;}
	nk_label(ctx, "", NK_TEXT_CENTERED);
	if (nk_button_label(ctx, "*")){if (!set){if (current !=&b) current = &b; else {prev = op; solve=1;}}op='*';set=1;}
	if (nk_button_label(ctx, "/")){if (!set){if (current !=&b) current = &b; else {prev = op; solve=1;}}op='/';set=1;}

	nk_layout_row_dynamic(ctx, 35, 6);
	if (nk_button_label(ctx, "1")){*current = *current * base + 1;set=0;}
	if (nk_button_label(ctx, "2")){*current = *current * base + 2;set=0;}
	if (nk_button_label(ctx, "3")){*current = *current * base + 3;set=0;}
	if (nk_button_label(ctx, "0")){*current = *current * base + 0;set=0;}
	if (nk_button_label(ctx, "Clr")){a = b = op = 0; current = &a; set = 0;}
	if (nk_button_label(ctx, "=")){solve=1; prev=op; op=0;}

        if (solve) {
            if (prev == '^') a = a ^ b;
            if (prev == '&') a = a & b;
            if (prev == '|') a = a | b;
            if (prev == '+') a = a + b;
            if (prev == '-') a = a - b;
            if (prev == '*') a = a * b;
            if (prev == '/') a = a / b;
            current = &a;
            if (set) current = &b;
            b = 0; set = 0;
        }
    }
    nk_end(ctx);

    if (nk_window_is_hidden(ctx, WIN_CALC_NAME) || nk_window_is_closed(ctx, WIN_CALC_NAME))
	return 0;

    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x36e6f
movq -0x10(%rbp), %rdi
leaq 0x14637(%rip), %rsi     # 0x4b48a
movl $0x1, %edx
callq 0x16930
movq -0x10(%rbp), %rdi
leaq 0x14622(%rip), %rsi     # 0x4b48a
callq 0x16a50
jmp 0x36e7b
movl $0x0, -0x4(%rbp)
jmp 0x37a33
movq -0x10(%rbp), %rax
movq %rax, -0x150(%rbp)
movss 0xb1ae(%rip), %xmm1     # 0x4203c
movss 0xb1da(%rip), %xmm2     # 0x42070
movss 0xb1fe(%rip), %xmm3     # 0x4209c
movaps %xmm1, %xmm0
callq 0x36c0
movq -0x150(%rbp), %rdi
movlpd %xmm0, -0x28(%rbp)
movlpd %xmm1, -0x20(%rbp)
movsd -0x28(%rbp), %xmm0
movsd -0x20(%rbp), %xmm1
leaq 0x145c2(%rip), %rsi     # 0x4b48a
movl $0x7b, %edx
callq 0x12320
cmpl $0x0, %eax
je 0x379f0
movq -0x10(%rbp), %rdi
callq 0x15f10
movl %eax, -0x18(%rbp)
movl $0x0, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movss 0xb182(%rip), %xmm0     # 0x4207c
movl $0x2, %esi
callq 0x1aba0
movq -0x10(%rbp), %rdi
cmpl $0x0, 0x21849(%rip)     # 0x58758
sete %al
andb $0x1, %al
movzbl %al, %edx
leaq 0x1457f(%rip), %rsi     # 0x4b49d
callq 0x23910
cmpl $0x0, %eax
je 0x36f32
movl $0x0, 0x21826(%rip)     # 0x58758
movq -0x10(%rbp), %rdi
cmpl $0x1, 0x2181b(%rip)     # 0x58758
sete %al
andb $0x1, %al
movzbl %al, %edx
leaq 0x14562(%rip), %rsi     # 0x4b4ae
callq 0x23910
cmpl $0x0, %eax
je 0x36f60
movl $0x1, 0x217f8(%rip)     # 0x58758
movl 0x217f2(%rip), %edx     # 0x58758
leaq -0xffad(%rip), %rax     # 0x26fc0
leaq -0xff74(%rip), %rcx     # 0x27000
cmpl $0x0, %edx
cmoveq %rcx, %rax
movq %rax, -0x148(%rbp)
movq -0x10(%rbp), %rdi
movss 0xb0ee(%rip), %xmm0     # 0x4207c
movl $0x1, %esi
callq 0x1aba0
leaq -0x140(%rbp), %rdi
movl 0x217b3(%rip), %ecx     # 0x58758
leaq 0x1451a(%rip), %rdx     # 0x4b4c6
leaq 0x14508(%rip), %rax     # 0x4b4bb
cmpl $0x0, %ecx
cmoveq %rax, %rdx
movq 0x1d6f7(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movl $0x100, %esi            # imm = 0x100
movb $0x0, %al
callq 0x3090
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x140(%rbp), %rdx
movq -0x148(%rbp), %r9
movl $0x201, %esi            # imm = 0x201
leaq -0x34(%rbp), %rcx
movl $0xff, %r8d
callq 0x27240
movslq -0x34(%rbp), %rax
movb $0x0, -0x140(%rbp,%rax)
leaq -0x140(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x3330
movq %rax, %rcx
movq 0x1d697(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movq -0x10(%rbp), %rdi
movss 0xb034(%rip), %xmm0     # 0x42064
movl $0x1, %esi
callq 0x1aba0
movq -0x10(%rbp), %rdi
movl 0x21714(%rip), %ecx     # 0x58758
leaq 0x14476(%rip), %rdx     # 0x4b4c1
leaq 0x14464(%rip), %rax     # 0x4b4b6
cmpl $0x1, %ecx
cmoveq %rax, %rdx
movq 0x1d658(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movl $0x14, %esi
movb $0x0, %al
callq 0x20960
movl 0x216e3(%rip), %edx     # 0x58758
movl $0xa, %eax
movl $0x10, %ecx
cmpl $0x0, %edx
cmovel %ecx, %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
movss 0xafe8(%rip), %xmm0     # 0x4207c
movl $0x6, %esi
callq 0x1aba0
movq -0x10(%rbp), %rdi
leaq 0x10a8b(%rip), %rsi     # 0x47b34
callq 0x21b10
cmpl $0x0, %eax
je 0x370e6
cmpl $0x0, 0x2169e(%rip)     # 0x58758
jne 0x370e6
movq 0x1d5f5(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0xd, %rcx
movq 0x1d5df(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x21656(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x123ff(%rip), %rsi     # 0x494f0
callq 0x21b10
cmpl $0x0, %eax
je 0x3712e
cmpl $0x0, 0x21656(%rip)     # 0x58758
jne 0x3712e
movq 0x1d5ad(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0xe, %rcx
movq 0x1d597(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x2160e(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x14391(%rip), %rsi     # 0x4b4ca
callq 0x21b10
cmpl $0x0, %eax
je 0x37176
cmpl $0x0, 0x2160e(%rip)     # 0x58758
jne 0x37176
movq 0x1d565(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0xf, %rcx
movq 0x1d54f(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x215c6(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x10eea(%rip), %rsi     # 0x4806b
movl $0x12, %edx
callq 0x20cc0
movq -0x10(%rbp), %rdi
leaq 0x14336(%rip), %rsi     # 0x4b4cc
callq 0x21b10
cmpl $0x0, %eax
je 0x371f2
cmpl $0x0, 0x21595(%rip)     # 0x5873c
jne 0x371de
leaq 0x215a0(%rip), %rax     # 0x58750
cmpq %rax, 0x1d501(%rip)     # 0x546b8
je 0x371c9
leaq 0x21590(%rip), %rax     # 0x58750
movq %rax, 0x1d4f1(%rip)     # 0x546b8
jmp 0x371dc
movl 0x21575(%rip), %eax     # 0x58744
movl %eax, 0x2156b(%rip)     # 0x58740
movl $0x1, -0x30(%rbp)
jmp 0x371de
movl $0x5e, 0x2155c(%rip)    # 0x58744
movl $0x1, 0x2154a(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x142d1(%rip), %rsi     # 0x4b4ce
callq 0x21b10
cmpl $0x0, %eax
je 0x37259
cmpl $0x0, 0x2152e(%rip)     # 0x5873c
jne 0x37245
leaq 0x21539(%rip), %rax     # 0x58750
cmpq %rax, 0x1d49a(%rip)     # 0x546b8
je 0x37230
leaq 0x21529(%rip), %rax     # 0x58750
movq %rax, 0x1d48a(%rip)     # 0x546b8
jmp 0x37243
movl 0x2150e(%rip), %eax     # 0x58744
movl %eax, 0x21504(%rip)     # 0x58740
movl $0x1, -0x30(%rbp)
jmp 0x37245
movl $0x26, 0x214f5(%rip)    # 0x58744
movl $0x1, 0x214e3(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
movss 0xae17(%rip), %xmm0     # 0x4207c
movl $0x6, %esi
callq 0x1aba0
movq -0x10(%rbp), %rdi
leaq 0x14014(%rip), %rsi     # 0x4b28e
callq 0x21b10
cmpl $0x0, %eax
je 0x372b7
cmpl $0x0, 0x214cd(%rip)     # 0x58758
jne 0x372b7
movq 0x1d424(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0xa, %rcx
movq 0x1d40e(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x21485(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x1420e(%rip), %rsi     # 0x4b4d0
callq 0x21b10
cmpl $0x0, %eax
je 0x372ff
cmpl $0x0, 0x21485(%rip)     # 0x58758
jne 0x372ff
movq 0x1d3dc(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0xb, %rcx
movq 0x1d3c6(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x2143d(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x11d11(%rip), %rsi     # 0x4901b
callq 0x21b10
cmpl $0x0, %eax
je 0x37347
cmpl $0x0, 0x2143d(%rip)     # 0x58758
jne 0x37347
movq 0x1d394(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0xc, %rcx
movq 0x1d37e(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x213f5(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x10d19(%rip), %rsi     # 0x4806b
movl $0x12, %edx
callq 0x20cc0
movq -0x10(%rbp), %rdi
leaq 0x1416b(%rip), %rsi     # 0x4b4d2
callq 0x21b10
cmpl $0x0, %eax
je 0x373c3
cmpl $0x0, 0x213c4(%rip)     # 0x5873c
jne 0x373af
leaq 0x213cf(%rip), %rax     # 0x58750
cmpq %rax, 0x1d330(%rip)     # 0x546b8
je 0x3739a
leaq 0x213bf(%rip), %rax     # 0x58750
movq %rax, 0x1d320(%rip)     # 0x546b8
jmp 0x373ad
movl 0x213a4(%rip), %eax     # 0x58744
movl %eax, 0x2139a(%rip)     # 0x58740
movl $0x1, -0x30(%rbp)
jmp 0x373af
movl $0x7c, 0x2138b(%rip)    # 0x58744
movl $0x1, 0x21379(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x10c9d(%rip), %rsi     # 0x4806b
movl $0x12, %edx
callq 0x20cc0
movq -0x10(%rbp), %rdi
movss 0xac98(%rip), %xmm0     # 0x4207c
movl $0x6, %esi
callq 0x1aba0
movq -0x10(%rbp), %rdi
leaq 0x140db(%rip), %rsi     # 0x4b4d4
callq 0x21b10
cmpl $0x0, %eax
je 0x3742d
movq 0x1d2ae(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0x7, %rcx
movq 0x1d298(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x2130f(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x1409e(%rip), %rsi     # 0x4b4d6
callq 0x21b10
cmpl $0x0, %eax
je 0x3746c
movq 0x1d26f(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0x8, %rcx
movq 0x1d259(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x212d0(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x14061(%rip), %rsi     # 0x4b4d8
callq 0x21b10
cmpl $0x0, %eax
je 0x374ab
movq 0x1d230(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0x9, %rcx
movq 0x1d21a(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x21291(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x10bb5(%rip), %rsi     # 0x4806b
movl $0x12, %edx
callq 0x20cc0
movq -0x10(%rbp), %rdi
leaq 0x13d90(%rip), %rsi     # 0x4b25b
callq 0x21b10
cmpl $0x0, %eax
je 0x37527
cmpl $0x0, 0x21260(%rip)     # 0x5873c
jne 0x37513
leaq 0x2126b(%rip), %rax     # 0x58750
cmpq %rax, 0x1d1cc(%rip)     # 0x546b8
je 0x374fe
leaq 0x2125b(%rip), %rax     # 0x58750
movq %rax, 0x1d1bc(%rip)     # 0x546b8
jmp 0x37511
movl 0x21240(%rip), %eax     # 0x58744
movl %eax, 0x21236(%rip)     # 0x58740
movl $0x1, -0x30(%rbp)
jmp 0x37513
movl $0x2b, 0x21227(%rip)    # 0x58744
movl $0x1, 0x21215(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x13d2b(%rip), %rsi     # 0x4b25d
callq 0x21b10
cmpl $0x0, %eax
je 0x3758e
cmpl $0x0, 0x211f9(%rip)     # 0x5873c
jne 0x3757a
leaq 0x21204(%rip), %rax     # 0x58750
cmpq %rax, 0x1d165(%rip)     # 0x546b8
je 0x37565
leaq 0x211f4(%rip), %rax     # 0x58750
movq %rax, 0x1d155(%rip)     # 0x546b8
jmp 0x37578
movl 0x211d9(%rip), %eax     # 0x58744
movl %eax, 0x211cf(%rip)     # 0x58740
movl $0x1, -0x30(%rbp)
jmp 0x3757a
movl $0x2d, 0x211c0(%rip)    # 0x58744
movl $0x1, 0x211ae(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
movss 0xaae2(%rip), %xmm0     # 0x4207c
movl $0x6, %esi
callq 0x1aba0
movq -0x10(%rbp), %rdi
leaq 0xffd5(%rip), %rsi      # 0x47584
callq 0x21b10
cmpl $0x0, %eax
je 0x375e3
movq 0x1d0f8(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0x4, %rcx
movq 0x1d0e2(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x21159(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x13eec(%rip), %rsi     # 0x4b4da
callq 0x21b10
cmpl $0x0, %eax
je 0x37622
movq 0x1d0b9(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0x5, %rcx
movq 0x1d0a3(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x2111a(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0xe6c9(%rip), %rsi      # 0x45cf6
callq 0x21b10
cmpl $0x0, %eax
je 0x37661
movq 0x1d07a(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0x6, %rcx
movq 0x1d064(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x210db(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x109ff(%rip), %rsi     # 0x4806b
movl $0x12, %edx
callq 0x20cc0
movq -0x10(%rbp), %rdi
leaq 0x13e5b(%rip), %rsi     # 0x4b4dc
callq 0x21b10
cmpl $0x0, %eax
je 0x376dd
cmpl $0x0, 0x210aa(%rip)     # 0x5873c
jne 0x376c9
leaq 0x210b5(%rip), %rax     # 0x58750
cmpq %rax, 0x1d016(%rip)     # 0x546b8
je 0x376b4
leaq 0x210a5(%rip), %rax     # 0x58750
movq %rax, 0x1d006(%rip)     # 0x546b8
jmp 0x376c7
movl 0x2108a(%rip), %eax     # 0x58744
movl %eax, 0x21080(%rip)     # 0x58740
movl $0x1, -0x30(%rbp)
jmp 0x376c9
movl $0x2a, 0x21071(%rip)    # 0x58744
movl $0x1, 0x2105f(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x13df6(%rip), %rsi     # 0x4b4de
callq 0x21b10
cmpl $0x0, %eax
je 0x37744
cmpl $0x0, 0x21043(%rip)     # 0x5873c
jne 0x37730
leaq 0x2104e(%rip), %rax     # 0x58750
cmpq %rax, 0x1cfaf(%rip)     # 0x546b8
je 0x3771b
leaq 0x2103e(%rip), %rax     # 0x58750
movq %rax, 0x1cf9f(%rip)     # 0x546b8
jmp 0x3772e
movl 0x21023(%rip), %eax     # 0x58744
movl %eax, 0x21019(%rip)     # 0x58740
movl $0x1, -0x30(%rbp)
jmp 0x37730
movl $0x2f, 0x2100a(%rip)    # 0x58744
movl $0x1, 0x20ff8(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
movss 0xa92c(%rip), %xmm0     # 0x4207c
movl $0x6, %esi
callq 0x1aba0
movq -0x10(%rbp), %rdi
leaq 0x13d7b(%rip), %rsi     # 0x4b4e0
callq 0x21b10
cmpl $0x0, %eax
je 0x37799
movq 0x1cf42(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0x1, %rcx
movq 0x1cf2c(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x20fa3(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x13d3e(%rip), %rsi     # 0x4b4e2
callq 0x21b10
cmpl $0x0, %eax
je 0x377d8
movq 0x1cf03(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0x2, %rcx
movq 0x1ceed(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x20f64(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x13d01(%rip), %rsi     # 0x4b4e4
callq 0x21b10
cmpl $0x0, %eax
je 0x37817
movq 0x1cec4(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0x3, %rcx
movq 0x1ceae(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x20f25(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0xbf6f(%rip), %rsi      # 0x43791
callq 0x21b10
cmpl $0x0, %eax
je 0x37856
movq 0x1ce85(%rip), %rax     # 0x546b8
movq (%rax), %rcx
movslq -0x2c(%rbp), %rax
imulq %rax, %rcx
addq $0x0, %rcx
movq 0x1ce6f(%rip), %rax     # 0x546b8
movq %rcx, (%rax)
movl $0x0, 0x20ee6(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x13c85(%rip), %rsi     # 0x4b4e6
callq 0x21b10
cmpl $0x0, %eax
je 0x378a3
movl $0x0, 0x20ecf(%rip)     # 0x58744
movq $0x0, 0x20ed0(%rip) # 0x58750
movq $0x0, 0x20ebd(%rip) # 0x58748
leaq 0x20eb6(%rip), %rax     # 0x58748
movq %rax, 0x1ce1f(%rip)     # 0x546b8
movl $0x0, 0x20e99(%rip)     # 0x5873c
movq -0x10(%rbp), %rdi
leaq 0x13c3c(%rip), %rsi     # 0x4b4ea
callq 0x21b10
cmpl $0x0, %eax
je 0x378d5
movl $0x1, -0x30(%rbp)
movl 0x20e7f(%rip), %eax     # 0x58744
movl %eax, 0x20e75(%rip)     # 0x58740
movl $0x0, 0x20e6f(%rip)     # 0x58744
cmpl $0x0, -0x30(%rbp)
je 0x379ee
cmpl $0x5e, 0x20e5a(%rip)    # 0x58740
jne 0x378fd
movq 0x20e59(%rip), %rax     # 0x58748
xorq 0x20e5a(%rip), %rax     # 0x58750
movq %rax, 0x20e4b(%rip)     # 0x58748
cmpl $0x26, 0x20e3c(%rip)    # 0x58740
jne 0x3791b
movq 0x20e3b(%rip), %rax     # 0x58748
andq 0x20e3c(%rip), %rax     # 0x58750
movq %rax, 0x20e2d(%rip)     # 0x58748
cmpl $0x7c, 0x20e1e(%rip)    # 0x58740
jne 0x37939
movq 0x20e1d(%rip), %rax     # 0x58748
orq 0x20e1e(%rip), %rax     # 0x58750
movq %rax, 0x20e0f(%rip)     # 0x58748
cmpl $0x2b, 0x20e00(%rip)    # 0x58740
jne 0x37957
movq 0x20dff(%rip), %rax     # 0x58748
addq 0x20e00(%rip), %rax     # 0x58750
movq %rax, 0x20df1(%rip)     # 0x58748
cmpl $0x2d, 0x20de2(%rip)    # 0x58740
jne 0x37975
movq 0x20de1(%rip), %rax     # 0x58748
subq 0x20de2(%rip), %rax     # 0x58750
movq %rax, 0x20dd3(%rip)     # 0x58748
cmpl $0x2a, 0x20dc4(%rip)    # 0x58740
jne 0x37994
movq 0x20dc3(%rip), %rax     # 0x58748
imulq 0x20dc3(%rip), %rax     # 0x58750
movq %rax, 0x20db4(%rip)     # 0x58748
cmpl $0x2f, 0x20da5(%rip)    # 0x58740
jne 0x379b4
movq 0x20da4(%rip), %rax     # 0x58748
cqto
idivq 0x20da3(%rip)           # 0x58750
movq %rax, 0x20d94(%rip)     # 0x58748
leaq 0x20d8d(%rip), %rax     # 0x58748
movq %rax, 0x1ccf6(%rip)     # 0x546b8
cmpl $0x0, 0x20d73(%rip)     # 0x5873c
je 0x379d9
leaq 0x20d7e(%rip), %rax     # 0x58750
movq %rax, 0x1ccdf(%rip)     # 0x546b8
movq $0x0, 0x20d6c(%rip) # 0x58750
movl $0x0, 0x20d4e(%rip)     # 0x5873c
jmp 0x379f0
movq -0x10(%rbp), %rdi
callq 0x142e0
movq -0x10(%rbp), %rdi
leaq 0x13a86(%rip), %rsi     # 0x4b48a
callq 0x16400
cmpl $0x0, %eax
jne 0x37a23
movq -0x10(%rbp), %rdi
leaq 0x13a71(%rip), %rsi     # 0x4b48a
callq 0x16350
cmpl $0x0, %eax
je 0x37a2c
movl $0x0, -0x4(%rbp)
jmp 0x37a33
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nop