// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: optimize_func_many_args
static opt_t optimize_func_many_args(s7_scheme *sc, s7_pointer expr, s7_pointer func, int32_t hop, int32_t args, int32_t pairs, int32_t symbols, int32_t quotes, int32_t bad_pairs, s7_pointer e)
                {
                    bool func_is_closure;
                    /* fprintf(stderr, "%s[%d]: %s, args: %d, bad: %d, quotes: %d\n", __func__, __LINE__, DISPLAY_80(expr), args, bad_pairs, quotes); */

                    if (quotes > 0)
                    {
                        if (direct_memq(sc->quote_symbol, e))
                            return(OPT_OOPS);
                        if ((bad_pairs == quotes) &&
                                (is_constant_symbol(sc, car(expr))))
                            hop = 1;
                    }

                    if ((is_c_function(func)) &&
                            (c_function_required_args(func) <= args) &&
                            (c_function_all_args(func) >= args))
                    {
                        if ((hop == 0) && (symbol_id(car(expr)) == 0)) hop = 1;

                        if (is_safe_procedure(func))
                        {
                            if (pairs == 0)
                            {
                                if (symbols == 0)
                                {
                                    set_safe_optimize_op(expr, hop + OP_SAFE_C_D);
                                    choose_c_function(sc, expr, func, args);
                                    return(OPT_T);
                                }
                                if ((symbols == args) &&
                                        (args < GC_TRIGGER_SIZE))
                                {
                                    if (symbols_are_safe(sc, cdr(expr), e))
                                        set_safe_optimize_op(expr, hop + OP_SAFE_C_ALL_S);
                                    else
                                    {
                                        set_safe_optimize_op(expr, hop + ((args == 4) ? OP_SAFE_C_4A : OP_SAFE_C_FX));
                                        annotate_args(sc, cdr(expr), e);
                                    }
                                    set_opt3_arglen(expr, make_permanent_integer(args));
                                    choose_c_function(sc, expr, func, args);
                                    return(OPT_T);
                                }
                            }

                            if (args < GC_TRIGGER_SIZE)
                            {
                                if (fx_count(sc, expr) == args)
                                {
                                    s7_pointer p;
                                    set_optimized(expr);
                                    set_optimize_op(expr, hop + ((args == 4) ? OP_SAFE_C_4A : OP_SAFE_C_FX));
                                    annotate_args(sc, cdr(expr), e);
                                    set_opt3_arglen(expr, make_permanent_integer(args));
                                    choose_c_function(sc, expr, func, args);

                                    for (p = cdr(expr); (is_pair(p)) && (is_pair(cdr(p))); p = cddr(p))
                                    {
                                        if (is_normal_symbol(car(p)))
                                            break;
                                        if ((is_pair(car(p))) &&
                                                ((!is_pair(cdar(p))) || (caar(p) != sc->quote_symbol)))
                                            break;
                                    }
                                    if (is_null(p))
                                    {
                                        set_optimize_op(expr, hop + OP_SAFE_C_ALL_CA);
                                        for (p = cdr(expr); is_pair(p); p = cddr(p))
                                        {
                                            clear_has_fx(p);
                                            set_opt2_any(p, (is_pair(car(p))) ? cadar(p) : car(p));
                                        }
                                    }
                                    return(OPT_T);
                                }
                                return(set_safe_c_fp(sc, func, expr, e, args, hop + OP_SAFE_C_FP));
                            }
                        }
                        else /* c_func is not safe */
                        {
                            if ((args < GC_TRIGGER_SIZE) &&
                                    (fx_count(sc, expr) == args))
                            {
                                set_unsafe_optimize_op(expr, hop + OP_C_FX);
                                annotate_args(sc, cdr(expr), e);
                                set_opt3_arglen(expr, make_permanent_integer(args));
                                choose_c_function(sc, expr, func, args);
                                return(OPT_F);
                            }
                            return(set_safe_c_fp(sc, func, expr, e, 3, hop + OP_SAFE_C_FP));
                        }
                        return((is_optimized(expr)) ? OPT_T : OPT_F);
                    }

                    func_is_closure = is_closure(func);
                    if (func_is_closure)
                    {
                        int32_t arit;

                        arit = closure_arity_to_int(sc, func);
                        if (arit != args)
                        {
                            if ((arit == -1) &&
                                    (is_symbol(closure_args(func))))
                                return(optimize_func_dotted_args(sc, expr, func, hop, args, e));
                            return(OPT_F);
                        }
                        if (is_immutable(func)) hop = 1;

                        if ((fx_count(sc, expr) == args) &&
                                (args < GC_TRIGGER_SIZE))
                        {
                            bool safe_case;
                            set_unsafely_optimized(expr);
                            safe_case = is_safe_closure(func);
                            set_unsafe_optimize_op(expr, hop + ((safe_case) ? OP_SAFE_CLOSURE_FX : OP_CLOSURE_FX));
                            annotate_args(sc, cdr(expr), e);
                            set_opt3_arglen(expr, make_permanent_integer(args));
                            set_opt1_lambda(expr, func);

                            if ((symbols == args) &&
                                    (symbols_are_safe(sc, cdr(expr), e)))
                            {
                                if (safe_case)
                                    set_optimize_op(expr, hop + OP_SAFE_CLOSURE_ALL_S);
                                else set_optimize_op(expr, hop + ((args == 4) ? ((is_null(cdr(closure_body(func)))) ? OP_CLOSURE_4S_P : OP_CLOSURE_4S) : OP_CLOSURE_ALL_S));
                            }
                            return(OPT_F);
                        }

                        if ((is_safe_closure(func)) &&
                                (args < GC_TRIGGER_SIZE))
                            return(set_safe_closure_fp(sc, func, expr, e, args, hop + OP_SAFE_CLOSURE_FP));
                    }

                    if ((is_closure_star(func)) &&
                            ((!lambda_has_simple_defaults(closure_body(func))) ||
                             (closure_star_arity_to_int(sc, func) == 0) ||
                             (closure_star_arity_to_int(sc, func) == 1)))
                        return(OPT_F);

                    if ((is_c_function_star(func)) &&
                            (fx_count(sc, expr) == args))
                    {
                        if (is_immutable(func)) hop = 1;
                        set_safe_optimize_op(expr, hop + OP_SAFE_C_FUNCTION_STAR_FX);
                        annotate_args(sc, cdr(expr), e);
                        set_opt3_arglen(expr, make_permanent_integer(args));
                        set_c_function(expr, func);
                        return(OPT_T);
                    }

                    if (args < GC_TRIGGER_SIZE)
                    {
                        if (((func_is_closure) ||
                                    (is_closure_star(func))) &&
                                (fx_count(sc, expr) == args))
                        {
                            set_unsafely_optimized(expr);
                            if (func_is_closure)
                                set_optimize_op(expr, hop + ((is_safe_closure(func)) ? OP_SAFE_CLOSURE_FX : OP_CLOSURE_FX));
                            else set_optimize_op(expr, hop + ((is_safe_closure(func)) ? OP_SAFE_CLOSURE_STAR_FX : OP_CLOSURE_STAR_FX));
                            annotate_args(sc, cdr(expr), e);
                            set_opt3_arglen(expr, make_permanent_integer(args));
                            set_opt1_lambda(expr, func);
                            return(OPT_F);
                        }
                    }
                    return((is_optimized(expr)) ? OPT_T : OPT_F);
                }

// Assembly:
subq $0x58, %rsp
movq 0x78(%rsp), %rax
movl 0x70(%rsp), %eax
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)
cmpl $0x0, 0x68(%rsp)
jle 0x17eddf
movq 0x48(%rsp), %rax
movq 0x17b0(%rax), %rdi
movq 0x78(%rsp), %rsi
callq 0xde1a0
testb $0x1, %al
jne 0x17eda5
jmp 0x17edb2
movl $0x2, 0x54(%rsp)
jmp 0x17fa1f
movl 0x70(%rsp), %eax
cmpl 0x68(%rsp), %eax
jne 0x17eddd
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0xc57c0
testb $0x1, %al
jne 0x17edd5
jmp 0x17eddd
movl $0x1, 0x34(%rsp)
jmp 0x17eddf
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x30, %eax
jl 0x17f4e8
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x30(%rsp), %rcx
cmpq %rcx, %rax
jg 0x17f4e8
movq 0x38(%rsp), %rax
movq 0x28(%rax), %rax
movslq 0x30(%rsp), %rcx
cmpq %rcx, %rax
jl 0x17f4e8
cmpl $0x0, 0x34(%rsp)
jne 0x17ee3d
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpq $0x0, 0x20(%rax)
jne 0x17ee3d
movl $0x1, 0x34(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
andq $0x200000, %rax         # imm = 0x200000
cmpq $0x0, %rax
je 0x17f368
cmpl $0x0, 0x2c(%rsp)
jne 0x17f089
cmpl $0x0, 0x60(%rsp)
jne 0x17ef1b
jmp 0x17ee6d
movq 0x40(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movl 0x34(%rsp), %eax
addl $0x2, %eax
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x17ee93
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movl 0x30(%rsp), %edx
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
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
movl 0x30(%rsp), %edx
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
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 0x17ef0e
movl $0x1, 0x54(%rsp)
jmp 0x17fa1f
movl 0x60(%rsp), %eax
cmpl 0x30(%rsp), %eax
jne 0x17f087
cmpl $0x40, 0x30(%rsp)
jge 0x17f087
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x78(%rsp), %rdx
callq 0x18aa20
testb $0x1, %al
jne 0x17ef52
jmp 0x17ef7a
jmp 0x17ef54
movq 0x40(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movl 0x34(%rsp), %eax
addl $0x1c, %eax
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x17efcb
jmp 0x17ef7c
movq 0x40(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movl 0x34(%rsp), %eax
movl 0x30(%rsp), %esi
movl $0x78, %ecx
movl $0x76, %edx
cmpl $0x4, %esi
cmovel %edx, %ecx
addl %ecx, %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 0x78(%rsp), %rdx
callq 0x164800
jmp 0x17efcd
movslq 0x30(%rsp), %rdi
callq 0x17fa30
movq %rax, %rcx
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 0x17efff
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movl 0x30(%rsp), %edx
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
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
movl 0x30(%rsp), %edx
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
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 0x17f07a
movl $0x1, 0x54(%rsp)
jmp 0x17fa1f
jmp 0x17f089
cmpl $0x40, 0x30(%rsp)
jge 0x17f363
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x17fae0
cmpl 0x30(%rsp), %eax
jne 0x17f330
movq 0x40(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movl 0x34(%rsp), %eax
movl 0x30(%rsp), %esi
movl $0x78, %ecx
movl $0x76, %edx
cmpl $0x4, %esi
cmovel %edx, %ecx
addl %ecx, %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 0x78(%rsp), %rdx
callq 0x164800
movslq 0x30(%rsp), %rdi
callq 0x17fa30
movq %rax, %rcx
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 0x17f12e
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movl 0x30(%rsp), %edx
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
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
movl 0x30(%rsp), %edx
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
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 0x17f1a9
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movzbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x1, %ecx
movb %al, 0x1a(%rsp)
jne 0x17f1e0
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
sete %al
movb %al, 0x1a(%rsp)
movb 0x1a(%rsp), %al
testb $0x1, %al
jne 0x17f1ed
jmp 0x17f273
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0x17f217
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movzwl 0x6(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
jne 0x17f217
jmp 0x17f273
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x17f25a
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x17f258
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x48(%rsp), %rcx
cmpq 0x17b0(%rcx), %rax
je 0x17f25a
jmp 0x17f273
jmp 0x17f25c
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x17f1b7
movq 0x20(%rsp), %rax
movq 0x48(%rsp), %rcx
cmpq 0x110(%rcx), %rax
jne 0x17f323
movl 0x34(%rsp), %eax
addl $0x7a, %eax
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x17f321
movq 0x20(%rsp), %rax
movzwl 0x6(%rax), %ecx
andl $-0x5, %ecx
movw %cx, 0x6(%rax)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x17f2f1
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
jmp 0x17f2ff
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x17f2ab
jmp 0x17f323
movl $0x1, 0x54(%rsp)
jmp 0x17fa1f
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x78(%rsp), %rcx
movl 0x30(%rsp), %r8d
movl 0x34(%rsp), %eax
addl $0x162, %eax            # imm = 0x162
movslq %eax, %r9
callq 0x18a830
movl %eax, 0x54(%rsp)
jmp 0x17fa1f
jmp 0x17f4c7
cmpl $0x40, 0x30(%rsp)
jge 0x17f493
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x17fae0
cmpl 0x30(%rsp), %eax
jne 0x17f493
jmp 0x17f38e
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 $0x12a, %eax            # imm = 0x12A
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x78(%rsp), %rdx
callq 0x164800
movslq 0x30(%rsp), %rdi
callq 0x17fa30
movq %rax, %rcx
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 0x17f40b
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movl 0x30(%rsp), %edx
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
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
movl 0x30(%rsp), %edx
movq 0x40(%rsp), %rcx
movl $0x1, %r8d
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 0x17f486
movl $0x0, 0x54(%rsp)
jmp 0x17fa1f
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x78(%rsp), %rcx
movl 0x34(%rsp), %eax
addl $0x162, %eax            # imm = 0x162
movslq %eax, %r9
movl $0x3, %r8d
callq 0x18a830
movl %eax, 0x54(%rsp)
jmp 0x17fa1f
movq 0x40(%rsp), %rax
movzwl (%rax), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x801, %edx            # imm = 0x801
cmovel %ecx, %eax
movl %eax, 0x54(%rsp)
jmp 0x17fa1f
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x28, %eax
sete %al
andb $0x1, %al
movb %al, 0x2b(%rsp)
testb $0x1, 0x2b(%rsp)
je 0x17f78d
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x15cd60
movl %eax, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
cmpl 0x30(%rsp), %eax
je 0x17f574
cmpl $-0x1, 0x1c(%rsp)
jne 0x17f567
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0x17f567
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
movl 0x34(%rsp), %ecx
movl 0x30(%rsp), %r8d
movq 0x78(%rsp), %r9
callq 0x182300
movl %eax, 0x54(%rsp)
jmp 0x17fa1f
movl $0x0, 0x54(%rsp)
jmp 0x17fa1f
movq 0x38(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x17f590
movl $0x1, 0x34(%rsp)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x17fae0
cmpl 0x30(%rsp), %eax
jne 0x17f73f
cmpl $0x40, 0x30(%rsp)
jge 0x17f73f
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
movzwl (%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0x1b(%rsp)
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
movb 0x1b(%rsp), %sil
movl $0x108, %ecx            # imm = 0x108
movl $0x112, %edx            # imm = 0x112
testb $0x1, %sil
cmovnel %edx, %ecx
addl %ecx, %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 0x78(%rsp), %rdx
callq 0x164800
movslq 0x30(%rsp), %rdi
callq 0x17fa30
movq %rax, %rcx
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)
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movl 0x60(%rsp), %eax
cmpl 0x30(%rsp), %eax
jne 0x17f732
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x78(%rsp), %rdx
callq 0x18aa20
testb $0x1, %al
jne 0x17f6b3
jmp 0x17f732
testb $0x1, 0x1b(%rsp)
je 0x17f6d1
movl 0x34(%rsp), %eax
addl $0x116, %eax            # imm = 0x116
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x17f730
movl 0x34(%rsp), %eax
movl %eax, 0xc(%rsp)
cmpl $0x4, 0x30(%rsp)
jne 0x17f70f
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rdx
movq 0x48(%rsp), %rax
movq 0x110(%rax), %rsi
movl $0xf8, %eax
movl $0xfa, %ecx
cmpq %rsi, %rdx
cmovel %ecx, %eax
movl %eax, 0x8(%rsp)
jmp 0x17f71a
movl $0x10a, %eax            # imm = 0x10A
movl %eax, 0x8(%rsp)
jmp 0x17f71a
movl 0xc(%rsp), %eax
movl 0x8(%rsp), %ecx
addl %ecx, %eax
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x17f732
movl $0x0, 0x54(%rsp)
jmp 0x17fa1f
movq 0x38(%rsp), %rax
movzwl (%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x17f78b
cmpl $0x40, 0x30(%rsp)
jge 0x17f78b
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x78(%rsp), %rcx
movl 0x30(%rsp), %r8d
movl 0x34(%rsp), %eax
addl $0x128, %eax            # imm = 0x128
movslq %eax, %r9
callq 0x182b10
movl %eax, 0x54(%rsp)
jmp 0x17fa1f
jmp 0x17f78d
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x29, %eax
jne 0x17f7e7
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
andq $0x400, %rax            # imm = 0x400
cmpq $0x0, %rax
je 0x17f7da
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x15d230
cmpl $0x0, %eax
je 0x17f7da
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x15d230
cmpl $0x1, %eax
jne 0x17f7e7
movl $0x0, 0x54(%rsp)
jmp 0x17fa1f
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x2f, %eax
jne 0x17f8de
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x17fae0
cmpl 0x30(%rsp), %eax
jne 0x17f8de
movq 0x38(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x17f82d
movl $0x1, 0x34(%rsp)
jmp 0x17f82f
movq 0x40(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movl 0x34(%rsp), %eax
addl $0x9a, %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 0x78(%rsp), %rdx
callq 0x164800
movslq 0x30(%rsp), %rdi
callq 0x17fa30
movq %rax, %rcx
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 0x17f89f
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %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 0x17f8d1
movl $0x1, 0x54(%rsp)
jmp 0x17fa1f
cmpl $0x40, 0x30(%rsp)
jge 0x17fa03
testb $0x1, 0x2b(%rsp)
jne 0x17f901
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x29, %eax
jne 0x17fa01
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x17fae0
cmpl 0x30(%rsp), %eax
jne 0x17fa01
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x800000, %rcx         # imm = 0x800000
orq $0x800, %rcx            # imm = 0x800
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
testb $0x1, 0x2b(%rsp)
je 0x17f971
movl 0x34(%rsp), %eax
movq 0x38(%rsp), %rcx
movzwl (%rcx), %esi
andl $0x1000, %esi           # imm = 0x1000
movl $0x108, %ecx            # imm = 0x108
movl $0x112, %edx            # imm = 0x112
cmpl $0x0, %esi
cmovnel %edx, %ecx
addl %ecx, %eax
movw %ax, %cx
movq 0x40(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x17f9a1
movl 0x34(%rsp), %eax
movq 0x38(%rsp), %rcx
movzwl (%rcx), %esi
andl $0x1000, %esi           # imm = 0x1000
movl $0x11a, %ecx            # imm = 0x11A
movl $0x120, %edx            # imm = 0x120
cmpl $0x0, %esi
cmovnel %edx, %ecx
addl %ecx, %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 0x78(%rsp), %rdx
callq 0x164800
movslq 0x30(%rsp), %rdi
callq 0x17fa30
movq %rax, %rcx
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)
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movl $0x0, 0x54(%rsp)
jmp 0x17fa1f
jmp 0x17fa03
movq 0x40(%rsp), %rax
movzwl (%rax), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x801, %edx            # imm = 0x801
cmovel %ecx, %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax,%rax)