// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: optimize_c_function_one_arg
static opt_t optimize_c_function_one_arg(s7_scheme *sc, s7_pointer expr, s7_pointer func,
                        int32_t hop, int32_t pairs, int32_t symbols, int32_t quotes, int32_t bad_pairs, s7_pointer e)
                {
                    s7_pointer arg1;
                    bool func_is_safe;

                    arg1 = cadr(expr);
                    func_is_safe = is_safe_procedure(func);
                    if ((hop == 0) && (symbol_id(car(expr)) == 0)) hop = 1;

                    if (pairs == 0)
                    {
                        if (func_is_safe)                  /* safe c function */
                        {
                            set_safe_optimize_op(expr, hop + ((symbols == 0) ? OP_SAFE_C_D : (OP_SAFE_C_S)));
                            choose_c_function(sc, expr, func, 1);
                            return(OPT_T);
                        }
                        /* c function is not safe */
                        if (symbols == 0)
                        {
                            set_unsafe_optimize_op(expr, hop + OP_C_A); /* OP_C_C never happens */
                            annotate_arg(sc, cdr(expr), e);
                            set_opt3_arglen(expr, small_int(1));
                        }
                        else
                        {
                            set_unsafely_optimized(expr);
                            if (c_function_call(func) == g_read)
                                set_optimize_op(expr, hop + OP_READ_S);
                            else set_optimize_op(expr, hop + OP_C_S);
                        }
                        choose_c_function(sc, expr, func, 1);
                        return(OPT_F);
                    }
                    /* pairs == 1 */
                    if (bad_pairs == 0)
                    {
                        if (func_is_safe)
                        {
                            int32_t op;
                            op = combine_ops(sc, func, expr, E_C_P, arg1, NULL);
                            if ((hop == 1) &&
                                    (is_not_h_optimized(arg1)))
                                hop = 0;
                            set_safe_optimize_op(expr, hop + op);
                            if ((!hop) && (is_h_optimized(arg1)))
                                clear_hop(arg1);
                            else
                            {
                                if ((op == OP_SAFE_C_P) &&
                                        (is_fxable(sc, arg1)))
                                {
                                    set_optimize_op(expr, hop + OP_SAFE_C_A);
                                    annotate_arg(sc, cdr(expr), e);
                                }
                            }
                            choose_c_function(sc, expr, func, 1);
                            return(OPT_T);
                        }
                        if (is_fxable(sc, arg1))
                        {
                            set_unsafe_optimize_op(expr, hop + OP_C_A);
                            annotate_arg(sc, cdr(expr), e);
                            set_opt3_arglen(expr, small_int(1));
                            choose_c_function(sc, expr, func, 1);
                            return(OPT_F);
                        }
                    }
                    else /* bad_pairs == 1 */
                    {
                        if (quotes == 1)
                        {
                            annotate_arg(sc, cdr(expr), e);
                            set_opt3_arglen(expr, small_int(1));
                            if (func_is_safe)
                            {
                                set_safe_optimize_op(expr, hop + OP_SAFE_C_A);
                                choose_c_function(sc, expr, func, 1);
                                return(OPT_T);
                            }
                            set_unsafe_optimize_op(expr, hop + OP_C_A);
                            choose_c_function(sc, expr, func, 1);
                            return(OPT_F);
                        }
                        /* quotes == 0 */
                        if (!func_is_safe)
                        {
                            s7_pointer lambda_expr;
                            lambda_expr = arg1;
                            if ((is_pair(lambda_expr)) &&
                                    (is_lambda(sc, car(lambda_expr))) &&               /* check for stuff like (define (f) (eval (lambda 2))) */
                                    (is_pair(cdr(lambda_expr))) &&
                                    (is_pair(cddr(lambda_expr))))
                            {
                                if ((c_function_call(func) == g_call_with_exit) &&
                                        (is_proper_list_1(sc, cadr(lambda_expr))) &&
                                        (is_symbol(caadr(lambda_expr))) &&
                                        (!is_probably_constant(caadr(lambda_expr))) && /* (call-with-exit (lambda (pi) ...) */
                                        (!direct_memq(car(lambda_expr), e)) &&         /* (let ((lambda #f)) (call-with-exit (lambda ...))) */
                                        (s7_is_proper_list(sc, cddr(lambda_expr))))
                                        {
                                        if (is_null(cdddr(lambda_expr)))
                                        set_unsafe_optimize_op(expr, hop + OP_CALL_WITH_EXIT_P);
                                        else set_unsafe_optimize_op(expr, hop + OP_CALL_WITH_EXIT);
                                        choose_c_function(sc, expr, func, 1);
                                        set_opt2_pair(expr, cdr(lambda_expr));
                                        return(OPT_F);
                                        }
                                        }
                                        set_unsafe_optimize_op(expr, hop + OP_C_P);
                                        choose_c_function(sc, expr, func, 1);
                                        return(OPT_F);
                                        }
                                        set_unsafe_optimize_op(expr, hop + ((car(expr) == sc->not_symbol) ? OP_NOT_P : OP_SAFE_C_P));
                                        choose_c_function(sc, expr, func, 1);
                                        return(OPT_F);
                    }

                    if (func_is_safe)
                        set_unsafe_optimize_op(expr, hop + ((is_safely_optimized(arg1)) ? OP_SAFE_C_P : ((car(expr) == sc->not_symbol) ? OP_NOT_P : OP_SAFE_C_P)));
                    else set_unsafe_optimize_op(expr, hop + OP_C_P);
                    choose_c_function(sc, expr, func, 1);
                    return(OPT_F);
                }

// Assembly:
subq $0x58, %rsp
movq 0x70(%rsp), %rax
movl 0x68(%rsp), %eax
movl 0x60(%rsp), %eax
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movl %ecx, 0x34(%rsp)
movl %r8d, 0x30(%rsp)
movl %r9d, 0x2c(%rsp)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
andq $0x200000, %rax         # imm = 0x200000
cmpq $0x0, %rax
setne %al
andb $0x1, %al
movb %al, 0x1f(%rsp)
cmpl $0x0, 0x34(%rsp)
jne 0x1804ea
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpq $0x0, 0x20(%rax)
jne 0x1804ea
movl $0x1, 0x34(%rsp)
cmpl $0x0, 0x30(%rsp)
jne 0x180727
testb $0x1, 0x1f(%rsp)
je 0x1805c1
jmp 0x180502
movq 0x40(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movl 0x34(%rsp), %eax
movl 0x2c(%rsp), %esi
movl $0x4, %ecx
movl $0x2, %edx
cmpl $0x0, %esi
cmovel %edx, %ecx
addl %ecx, %eax
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x18053b
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x1805b4
movl $0x1, 0x54(%rsp)
jmp 0x1810c7
cmpl $0x0, 0x2c(%rsp)
jne 0x180641
jmp 0x1805ca
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x800000, %rcx         # imm = 0x800000
orq $0x800, %rcx            # imm = 0x800
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x34(%rsp), %eax
addl $0x148, %eax            # imm = 0x148
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x70(%rsp), %rdx
callq 0x15d020
movq 0x95e6c(%rip), %rcx     # 0x216488
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x28(%rax)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rcx
andq $-0x40001, %rcx         # imm = 0xFFFBFFFF
movq %rcx, (%rax)
jmp 0x18069f
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x800000, %rcx         # imm = 0x800000
orq $0x800, %rcx            # imm = 0x800
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movq 0x38(%rsp), %rax
leaq -0x112c7b(%rip), %rcx   # 0x6d9f0
cmpq %rcx, 0x10(%rax)
jne 0x180688
movl 0x34(%rsp), %eax
addl $0x140, %eax            # imm = 0x140
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x18069d
movl 0x34(%rsp), %eax
addl $0x13e, %eax            # imm = 0x13E
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x18069f
jmp 0x1806a1
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x18071a
movl $0x0, 0x54(%rsp)
jmp 0x1810c7
cmpl $0x0, 0x68(%rsp)
jne 0x1809ca
testb $0x1, 0x1f(%rsp)
je 0x1808ae
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x20(%rsp), %r8
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %r9d
callq 0x181730
movl %eax, 0x18(%rsp)
cmpl $0x1, 0x34(%rsp)
jne 0x180780
movq 0x20(%rsp), %rdi
callq 0x1821e0
testb $0x1, %al
jne 0x180778
jmp 0x180780
movl $0x0, 0x34(%rsp)
jmp 0x180782
movq 0x40(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movl 0x34(%rsp), %eax
addl 0x18(%rsp), %eax
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
cmpl $0x0, 0x34(%rsp)
jne 0x1807da
movq 0x20(%rsp), %rdi
callq 0x182250
testb $0x1, %al
jne 0x1807be
jmp 0x1807da
movq 0x20(%rsp), %rax
movzwl 0x4(%rax), %eax
andl $0xfffe, %eax           # imm = 0xFFFE
movw %ax, %cx
movq 0x20(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x180826
cmpl $0x9c, 0x18(%rsp)
jne 0x180824
movq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x15cfb0
testb $0x1, %al
jne 0x1807f9
jmp 0x180824
movl 0x34(%rsp), %eax
addl $0x6c, %eax
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x70(%rsp), %rdx
callq 0x15d020
jmp 0x180826
jmp 0x180828
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x1808a1
movl $0x1, 0x54(%rsp)
jmp 0x1810c7
movq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x15cfb0
testb $0x1, %al
jne 0x1808c6
jmp 0x1809c5
jmp 0x1808c8
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x800000, %rcx         # imm = 0x800000
orq $0x800, %rcx            # imm = 0x800
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x34(%rsp), %eax
addl $0x148, %eax            # imm = 0x148
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x70(%rsp), %rdx
callq 0x15d020
movq 0x95b6e(%rip), %rcx     # 0x216488
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x28(%rax)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rcx
andq $-0x40001, %rcx         # imm = 0xFFFBFFFF
movq %rcx, (%rax)
jmp 0x18093f
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x1809b8
movl $0x0, 0x54(%rsp)
jmp 0x1810c7
jmp 0x180f78
cmpl $0x1, 0x60(%rsp)
jne 0x180b8d
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x70(%rsp), %rdx
callq 0x15d020
movq 0x95a94(%rip), %rcx     # 0x216488
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x28(%rax)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rcx
andq $-0x40001, %rcx         # imm = 0xFFFBFFFF
movq %rcx, (%rax)
testb $0x1, 0x1f(%rsp)
je 0x180ad0
jmp 0x180a24
movq 0x40(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movl 0x34(%rsp), %eax
addl $0x6c, %eax
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x180a4a
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x180ac3
movl $0x1, 0x54(%rsp)
jmp 0x1810c7
jmp 0x180ad2
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x800000, %rcx         # imm = 0x800000
orq $0x800, %rcx            # imm = 0x800
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x34(%rsp), %eax
addl $0x148, %eax            # imm = 0x148
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x180b07
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x180b80
movl $0x0, 0x54(%rsp)
jmp 0x1810c7
testb $0x1, 0x1f(%rsp)
jne 0x180e99
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x180ddc
movq 0x48(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x1822c0
testb $0x1, %al
jne 0x180bcf
jmp 0x180ddc
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x180ddc
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x180ddc
movq 0x38(%rsp), %rax
leaq -0xe3b49(%rip), %rcx    # 0x9d0c0
cmpq %rcx, 0x10(%rax)
jne 0x180dda
movq 0x48(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
callq 0xfd500
testb $0x1, %al
jne 0x180c33
jmp 0x180dda
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0x180dda
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
movabsq $0x1000001000000, %rax  # imm = 0x1000001000000
andq (%rcx), %rax
cmpq $0x0, %rax
jne 0x180dda
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x70(%rsp), %rsi
callq 0xde1a0
testb $0x1, %al
jne 0x180dda
movq 0x48(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
callq 0x31a40
testb $0x1, %al
jne 0x180cb3
jmp 0x180dda
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x48(%rsp), %rcx
cmpq 0x110(%rcx), %rax
jne 0x180d09
jmp 0x180cd4
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x800000, %rcx         # imm = 0x800000
orq $0x800, %rcx            # imm = 0x800
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x34(%rsp), %eax
addl $0x12e, %eax            # imm = 0x12E
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x180d40
jmp 0x180d0b
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x800000, %rcx         # imm = 0x800000
orq $0x800, %rcx            # imm = 0x800
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x34(%rsp), %eax
addl $0x12c, %eax            # imm = 0x12C
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x180d40
jmp 0x180d42
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x180dbb
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
movl $0x0, 0x54(%rsp)
jmp 0x1810c7
jmp 0x180ddc
jmp 0x180dde
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x800000, %rcx         # imm = 0x800000
orq $0x800, %rcx            # imm = 0x800
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x34(%rsp), %eax
addl $0x142, %eax            # imm = 0x142
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x180e13
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x180e8c
movl $0x0, 0x54(%rsp)
jmp 0x1810c7
jmp 0x180e9b
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x800000, %rcx         # imm = 0x800000
orq $0x800, %rcx            # imm = 0x800
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x34(%rsp), %eax
movq 0x40(%rsp), %rcx
movq 0x8(%rcx), %rsi
movq 0x48(%rsp), %rcx
movq 0x1368(%rcx), %rdi
movl $0x9c, %ecx
movl $0x146, %edx            # imm = 0x146
cmpq %rdi, %rsi
cmovel %edx, %ecx
addl %ecx, %eax
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x180ef2
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x180f6b
movl $0x0, 0x54(%rsp)
jmp 0x1810c7
testb $0x1, 0x1f(%rsp)
je 0x18100d
jmp 0x180f85
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x800000, %rcx         # imm = 0x800000
orq $0x800, %rcx            # imm = 0x800
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x34(%rsp), %eax
movl %eax, 0xc(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rax
andq $0x800800, %rax         # imm = 0x800800
cmpq $0x800, %rax            # imm = 0x800
jne 0x180fcc
movl $0x9c, %eax
movl %eax, 0x8(%rsp)
jmp 0x180ff5
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rdx
movq 0x48(%rsp), %rax
movq 0x1368(%rax), %rsi
movl $0x9c, %eax
movl $0x146, %ecx            # imm = 0x146
cmpq %rsi, %rdx
cmovel %ecx, %eax
movl %eax, 0x8(%rsp)
movl 0xc(%rsp), %eax
movl 0x8(%rsp), %ecx
addl %ecx, %eax
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x181044
jmp 0x18100f
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x800000, %rcx         # imm = 0x800000
orq $0x800, %rcx            # imm = 0x800
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x34(%rsp), %eax
addl $0x142, %eax            # imm = 0x142
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x181044
jmp 0x181046
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
movl %r8d, %edx
callq *%rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x1810bf
movl $0x0, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq