// File: cphinton42[P]hinton-language/src/ast.cpp
// Function: print_dot_rec(Print_Buffer*, AST*)
internal void print_dot_rec(Print_Buffer *pb, AST *ast)
{
    u32 s = ast->s;
    switch(ast->type)
    {
        case AST_Type::ident_ast: {
            Ident_AST *ident_ast = static_cast<Ident_AST*>(ast);
            String str = *ident_ast->atom.str;
            print_buf(pb, "n%ld[label=\"%.*s\"];\n", s, str.count, str.data);
        } break;
        case AST_Type::decl_ast: {
            Decl_AST *decl_ast = static_cast<Decl_AST*>(ast);
            
            String str = *decl_ast->ident.atom.str;
            print_buf(pb, "n%ld[label=\"Declare %.*s\"];\nn%ld[shape=box];\n", s, str.count, str.data, s);
            if(decl_ast->decl_type)
            {
                print_dot_child(pb, decl_ast->decl_type, s);
            }
            if(decl_ast->expr)
            {
                print_dot_child(pb, decl_ast->expr, s);
            }
        } break;
        case AST_Type::block_ast: {
            Block_AST *block_ast = static_cast<Block_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"Block\"];\nn%ld[shape=box];\n", s, s);
            
            for(u64 i = 0; i < block_ast->statements.count; ++i)
            {
                print_dot_child(pb, block_ast->statements[i], s);
            }
        } break;
        case AST_Type::function_type_ast: {
            Function_Type_AST *type_ast = static_cast<Function_Type_AST*>(ast);
            print_buf(pb, "n%ld[label=\"Function Type\"];\n", s);
            
            for(u64 i = 0; i < type_ast->parameter_types.count; ++i)
            {
                if(type_ast->parameter_types[i])
                {
                    print_dot_child(pb, type_ast->parameter_types[i], s);
                }
            }
            for(u64 i = 0; i < type_ast->return_types.count; ++i)
            {
                if(type_ast->return_types[i])
                {
                    print_dot_child(pb, type_ast->return_types[i], s);
                }
            }
        } break;
        case AST_Type::function_ast: {
            Function_AST *function_ast = static_cast<Function_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"Function\"];\nn%ld[shape=box];\n", s, s);
            
            print_dot_child(pb, function_ast->prototype, s);
            for(u64 i = 0; i < function_ast->param_names.count; ++i)
            {
                if(function_ast->param_names[i])
                {
                    print_dot_child(pb, function_ast->param_names[i], s);
                }
            }
            for(u64 i = 0; i < function_ast->default_values.count; ++i)
            {
                if(function_ast->default_values[i])
                {
                    print_dot_child(pb, function_ast->default_values[i], s);
                }
            }
            print_dot_child(pb, function_ast->block, s);
        } break;
        case AST_Type::function_call_ast: {
            Function_Call_AST *call_ast = static_cast<Function_Call_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"function call\"];\n", s);
            print_dot_child(pb, call_ast->function, s);
            for(u64 i = 0; i < call_ast->args.count; ++i)
            {
                print_dot_child(pb, call_ast->args[i], s);
            }
        } break;
        case AST_Type::access_ast: {
            Access_AST *access_ast = static_cast<Access_AST*>(ast);
            print_buf(pb, "n%ld[label=\".\"];\n", s);
            print_dot_child(pb, access_ast->lhs, s);
        } break;
        case AST_Type::binary_operator_ast: {
            Binary_Operator_AST *bin_ast = static_cast<Binary_Operator_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"%s\"];\n", s, binary_operator_names[(u64)bin_ast->op]);
            print_dot_child(pb, bin_ast->lhs, s);
            print_dot_child(pb, bin_ast->rhs, s);
        } break;
        case AST_Type::number_ast: {
            Number_AST *number_ast = static_cast<Number_AST*>(ast);
            print_buf(pb, "n%ld[label=\"%.*s\"];\n", s, (u32)number_ast->literal.count, number_ast->literal.data);
        } break;
        case AST_Type::while_ast: {
            While_AST *while_ast = static_cast<While_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"while\"];\n", s);
            print_dot_child(pb, while_ast->guard, s);
            print_dot_child(pb, while_ast->body, s);
        } break;
        case AST_Type::for_ast: {
            For_AST *for_ast = static_cast<For_AST*>(ast);
            
            if(for_ast->flags & FOR_FLAG_OVER_ARRAY)
            {
                if(for_ast->flags & FOR_FLAG_BY_POINTER)
                {
                    print_buf(pb, "n%ld[label=\"for &(array)\"];\n", s);
                }
                else
                {
                    print_buf(pb, "n%ld[label=\"for (array)\"];\n", s);
                }
            }
            else
            {
                assert(!(for_ast->flags & FOR_FLAG_BY_POINTER));
                print_buf(pb, "n%ld[label=\"for (range)\"];\n", s);
            }
            print_buf(pb, "n%ld[shape=box];\n", s);
            
            if(for_ast->induction_var)
            {
                print_dot_child(pb, for_ast->induction_var, s);
            }
            if(for_ast->flags & FOR_FLAG_OVER_ARRAY)
            {
                if(for_ast->index_var)
                {
                    print_dot_child(pb, for_ast->index_var, s);
                }
                print_dot_child(pb, for_ast->array_expr, s);
            }
            else
            {
                print_dot_child(pb, for_ast->low_expr, s);
                print_dot_child(pb, for_ast->high_expr, s);
            }
            
            print_dot_child(pb, for_ast->body, s);
        } break;
        case AST_Type::if_ast: {
            If_AST *if_ast = static_cast<If_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"if\"];\n", s);
            print_dot_child(pb, if_ast->guard, s);
            print_dot_child(pb, if_ast->then_block, s);
            if(if_ast->else_block)
            {
                print_dot_child(pb, if_ast->else_block, s);
            }
        } break;
        case AST_Type::struct_ast: {
            Struct_AST *struct_ast = static_cast<Struct_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"struct\"];\n", s);
            for(u64 i = 0; i < struct_ast->constants.count; ++i)
            {
                print_dot_child(pb, struct_ast->constants[i], s);
            }
            for(u64 i = 0; i < struct_ast->fields.count; ++i)
            {
                print_dot_child(pb, struct_ast->fields[i], s);
            }
        } break;
        case AST_Type::enum_ast: {
            Enum_AST *enum_ast = static_cast<Enum_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"enum\"];\n", s);
            for(u64 i = 0; i < enum_ast->values.count; ++i)
            {
                print_dot_child(pb, enum_ast->values[i], s);
            }
        } break;
        case AST_Type::assign_ast: {
            Assign_AST *assign_ast = static_cast<Assign_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"%s\"];\n", s, assign_names[(u64)assign_ast->assign_type]);
            print_dot_child(pb, assign_ast->lhs, s);
            print_dot_child(pb, assign_ast->rhs, s);
        } break;
        case AST_Type::unary_ast: {
            Unary_Operator_AST *unary_ast = static_cast<Unary_Operator_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"%s\"];\n", s, unary_operator_names[(u64)unary_ast->op]);
            print_dot_child(pb, unary_ast->operand, s);
        } break;
        case AST_Type::return_ast: {
            Return_AST *return_ast = static_cast<Return_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"return\"];\n", s);
            print_dot_child(pb, return_ast->expr, s);
        } break;
        case AST_Type::primitive_ast: {
            Primitive_AST *primitive_ast = static_cast<Primitive_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"%s\"];\n", s, primitive_names[(u64)primitive_ast->primitive]);
        } break;
        case AST_Type::string_ast: {
            String_AST *string_ast = static_cast<String_AST*>(ast);
            
            print_buf(pb, "n%ld[label=\"\\\"%.*s\\\"\"];\n", s, string_ast->literal.count, string_ast->literal.data);
        } break;
        case AST_Type::bool_ast: {
            Bool_AST *bool_ast = static_cast<Bool_AST*>(ast);
            if(bool_ast->value)
            {
                print_buf(pb, "n%ld[label=\"true\"];\n", s);
            }
            else
            {
                print_buf(pb, "n%ld[label=\"false\"];\n", s);
            }
        } break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movzwl (%rax), %eax
movq %rax, -0x128(%rbp)
subq $0x13, %rax
ja 0x48a6
movq -0x128(%rbp), %rax
leaq 0x1521d(%rip), %rcx     # 0x19010
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq (%rax), %rcx
movq %rcx, -0x30(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %r8
leaq 0x166f6(%rip), %rsi     # 0x1a527
movb $0x0, %al
callq 0x3d10
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq 0x30(%rax), %rax
movq (%rax), %rcx
movq %rcx, -0x48(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movl -0x14(%rbp), %r9d
leaq 0x166c6(%rip), %rsi     # 0x1a53c
movb $0x0, %al
callq 0x3d10
movq -0x38(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x3e9e
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rax
movq 0x50(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0x38(%rbp), %rax
cmpq $0x0, 0x58(%rax)
je 0x3ebf
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rax
movq 0x58(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x14(%rbp), %ecx
leaq 0x1668d(%rip), %rsi     # 0x1a56a
movb $0x0, %al
callq 0x3d10
movq $0x0, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq -0x50(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x3f38
movq -0x8(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x50(%rbp), %rdi
addq $0x10, %rdi
movq -0x58(%rbp), %rsi
callq 0x16fe0
movq -0x130(%rbp), %rdi
movq (%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0x3eec
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x1663e(%rip), %rsi     # 0x1a591
movb $0x0, %al
callq 0x3d10
movq $0x0, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq -0x60(%rbp), %rcx
cmpq 0x20(%rcx), %rax
jae 0x3fc7
movq -0x60(%rbp), %rdi
addq $0x20, %rdi
movq -0x68(%rbp), %rsi
callq 0x17050
cmpq $0x0, (%rax)
je 0x3fb7
movq -0x8(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x60(%rbp), %rdi
addq $0x20, %rdi
movq -0x68(%rbp), %rsi
callq 0x17050
movq -0x138(%rbp), %rdi
movq (%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x3fb9
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0x3f62
movq $0x0, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq -0x60(%rbp), %rcx
cmpq 0x30(%rcx), %rax
jae 0x4034
movq -0x60(%rbp), %rdi
addq $0x30, %rdi
movq -0x70(%rbp), %rsi
callq 0x17050
cmpq $0x0, (%rax)
je 0x4024
movq -0x8(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x60(%rbp), %rdi
addq $0x30, %rdi
movq -0x70(%rbp), %rsi
callq 0x17050
movq -0x140(%rbp), %rdi
movq (%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x4026
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x3fcf
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x14(%rbp), %ecx
leaq 0x1655d(%rip), %rsi     # 0x1a5af
movb $0x0, %al
callq 0x3d10
movq -0x8(%rbp), %rdi
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq $0x0, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq -0x78(%rbp), %rcx
cmpq 0x28(%rcx), %rax
jae 0x40dc
movq -0x78(%rbp), %rdi
addq $0x28, %rdi
movq -0x80(%rbp), %rsi
callq 0x172d0
cmpq $0x0, (%rax)
je 0x40cc
movq -0x8(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x78(%rbp), %rdi
addq $0x28, %rdi
movq -0x80(%rbp), %rsi
callq 0x172d0
movq -0x148(%rbp), %rdi
movq (%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x40ce
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x4077
movq $0x0, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq -0x78(%rbp), %rcx
cmpq 0x38(%rcx), %rax
jae 0x415b
movq -0x78(%rbp), %rdi
addq $0x38, %rdi
movq -0x88(%rbp), %rsi
callq 0x17050
cmpq $0x0, (%rax)
je 0x4145
movq -0x8(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x78(%rbp), %rdi
addq $0x38, %rdi
movq -0x88(%rbp), %rsi
callq 0x17050
movq -0x150(%rbp), %rdi
movq (%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x4147
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x40e7
movq -0x8(%rbp), %rdi
movq -0x78(%rbp), %rax
movq 0x48(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x1644a(%rip), %rsi     # 0x1a5d9
movb $0x0, %al
callq 0x3d10
movq -0x8(%rbp), %rdi
movq -0x90(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq $0x0, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq -0x90(%rbp), %rcx
cmpq 0x28(%rcx), %rax
jae 0x4218
movq -0x8(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x90(%rbp), %rdi
addq $0x28, %rdi
movq -0x98(%rbp), %rsi
callq 0x17050
movq -0x158(%rbp), %rdi
movq (%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x41ba
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x163c1(%rip), %rsi     # 0x1a5f7
movb $0x0, %al
callq 0x3d10
movq -0x8(%rbp), %rdi
movq -0xa0(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movq -0xa8(%rbp), %rax
movq 0x20(%rax), %rcx
leaq 0x1b411(%rip), %rax     # 0x1f690
movq (%rax,%rcx,8), %rcx
leaq 0x1637f(%rip), %rsi     # 0x1a609
movb $0x0, %al
callq 0x3d10
movq -0x8(%rbp), %rdi
movq -0xa8(%rbp), %rax
movq 0x28(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0x8(%rbp), %rdi
movq -0xa8(%rbp), %rax
movq 0x30(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movq -0xb0(%rbp), %rax
movq 0x20(%rax), %rax
movl %eax, %ecx
movq -0xb0(%rbp), %rax
movq 0x28(%rax), %r8
leaq 0x1622e(%rip), %rsi     # 0x1a527
movb $0x0, %al
callq 0x3d10
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x162fe(%rip), %rsi     # 0x1a61c
movb $0x0, %al
callq 0x3d10
movq -0x8(%rbp), %rdi
movq -0xb8(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0x8(%rbp), %rdi
movq -0xb8(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movzwl 0x2(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x43bb
movq -0xc0(%rbp), %rax
movzwl 0x2(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x43a4
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x16297(%rip), %rsi     # 0x1a632
movb $0x0, %al
callq 0x3d10
jmp 0x43b9
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x1629d(%rip), %rsi     # 0x1a64f
movb $0x0, %al
callq 0x3d10
jmp 0x440d
movq -0xc0(%rbp), %rax
movzwl 0x2(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x43d7
jmp 0x43d9
jmp 0x43f8
leaq 0x1628b(%rip), %rdi     # 0x1a66b
leaq 0x162ac(%rip), %rsi     # 0x1a693
movl $0x112, %edx            # imm = 0x112
leaq 0x162ac(%rip), %rcx     # 0x1a69f
callq 0x3080
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x162c3(%rip), %rsi     # 0x1a6c9
movb $0x0, %al
callq 0x3d10
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x16164(%rip), %rsi     # 0x1a57f
movb $0x0, %al
callq 0x3d10
movq -0xc0(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x4449
movq -0x8(%rbp), %rdi
movq -0xc0(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0xc0(%rbp), %rax
movzwl 0x2(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x449e
movq -0xc0(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x4483
movq -0x8(%rbp), %rdi
movq -0xc0(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0x8(%rbp), %rdi
movq -0xc0(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x44d0
movq -0x8(%rbp), %rdi
movq -0xc0(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0x8(%rbp), %rdi
movq -0xc0(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0x8(%rbp), %rdi
movq -0xc0(%rbp), %rax
movq 0x28(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x161de(%rip), %rsi     # 0x1a6e5
movb $0x0, %al
callq 0x3d10
movq -0x8(%rbp), %rdi
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0x8(%rbp), %rdi
movq -0xc8(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0xc8(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x4567
movq -0x8(%rbp), %rdi
movq -0xc8(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x16173(%rip), %rsi     # 0x1a6f8
movb $0x0, %al
callq 0x3d10
movq $0x0, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movq -0xd0(%rbp), %rcx
cmpq 0x20(%rcx), %rax
jae 0x45f5
movq -0x8(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0xd0(%rbp), %rdi
addq $0x20, %rdi
movq -0xd8(%rbp), %rsi
callq 0x16fb0
movq -0x160(%rbp), %rdi
movq (%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0xd8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xd8(%rbp)
jmp 0x4597
movq $0x0, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movq -0xd0(%rbp), %rcx
cmpq 0x30(%rcx), %rax
jae 0x465e
movq -0x8(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0xd0(%rbp), %rdi
addq $0x30, %rdi
movq -0xe0(%rbp), %rsi
callq 0x16fb0
movq -0x168(%rbp), %rdi
movq (%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0xe0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe0(%rbp)
jmp 0x4600
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x16093(%rip), %rsi     # 0x1a70f
movb $0x0, %al
callq 0x3d10
movq $0x0, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movq -0xe8(%rbp), %rcx
cmpq 0x20(%rcx), %rax
jae 0x46ec
movq -0x8(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0xe8(%rbp), %rdi
addq $0x20, %rdi
movq -0xf0(%rbp), %rsi
callq 0x16fb0
movq -0x170(%rbp), %rdi
movq (%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0xf0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xf0(%rbp)
jmp 0x468e
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movq -0xf8(%rbp), %rax
movq 0x10(%rax), %rcx
leaq 0x1afbb(%rip), %rax     # 0x1f6d0
movq (%rax,%rcx,8), %rcx
leaq 0x15ee9(%rip), %rsi     # 0x1a609
movb $0x0, %al
callq 0x3d10
movq -0x8(%rbp), %rdi
movq -0xf8(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
movq -0x8(%rbp), %rdi
movq -0xf8(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movq -0x100(%rbp), %rax
movq 0x20(%rax), %rcx
leaq 0x1af7e(%rip), %rax     # 0x1f700
movq (%rax,%rcx,8), %rcx
leaq 0x15e7c(%rip), %rsi     # 0x1a609
movb $0x0, %al
callq 0x3d10
movq -0x8(%rbp), %rdi
movq -0x100(%rbp), %rax
movq 0x28(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x15f59(%rip), %rsi     # 0x1a724
movb $0x0, %al
callq 0x3d10
movq -0x8(%rbp), %rdi
movq -0x108(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x11fc0
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movq -0x110(%rbp), %rax
movq 0x20(%rax), %rcx
leaq 0x1a94c(%rip), %rax     # 0x1f160
movq (%rax,%rcx,8), %rcx
leaq 0x15dea(%rip), %rsi     # 0x1a609
movb $0x0, %al
callq 0x3d10
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movq -0x118(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x118(%rbp), %rax
movq 0x28(%rax), %r8
leaq 0x15ee4(%rip), %rsi     # 0x1a73b
movb $0x0, %al
callq 0x3d10
jmp 0x48a6
movq -0x10(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
testb $0x1, 0x20(%rax)
je 0x488f
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x15ece(%rip), %rsi     # 0x1a754
movb $0x0, %al
callq 0x3d10
jmp 0x48a4
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x15ecc(%rip), %rsi     # 0x1a769
movb $0x0, %al
callq 0x3d10
jmp 0x48a6
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
nop