// File: /workspace/github_c_makefile_star2_O2/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lundump.c
// Function: LoadFunction
static void LoadFunction(LoadState* S, Proto* f)
{
 f->linedefined=LoadInt(S);
 f->lastlinedefined=LoadInt(S);
 f->numparams=LoadByte(S);
 f->is_vararg=LoadByte(S);
 f->maxstacksize=LoadByte(S);
 LoadCode(S,f);
 LoadConstants(S,f);
 LoadUpvalues(S,f);
 LoadDebug(S,f);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x16ea3
movl %eax, 0x68(%rbx)
movq %r14, %rdi
callq 0x16ea3
movl %eax, 0x6c(%rbx)
movq %r14, %rdi
callq 0x16ed8
movb %al, 0x78(%rbx)
movq %r14, %rdi
callq 0x16ed8
movb %al, 0x79(%rbx)
movq %r14, %rdi
callq 0x16ed8
movb %al, 0x7a(%rbx)
movq %r14, %rdi
callq 0x16ea3
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
shlq $0x2, %r15
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xed73
movq %rax, 0x18(%rbx)
movl %ebp, 0x58(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x16e59
movq %r14, %rdi
callq 0x16ea3
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
shlq $0x4, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xed73
movq %rax, 0x10(%rbx)
movl %ebp, 0x54(%rbx)
cmpq %r12, %r15
je 0x16bf8
andl $0x0, 0x8(%rax,%r12)
addq $0x10, %r12
jmp 0x16be7
xorl %ebp, %ebp
leaq 0x90db(%rip), %r12      # 0x1fcdc
cmpq %rbp, %r15
je 0x16c71
movq 0x10(%rbx), %r13
movq %r14, %rdi
callq 0x16ed8
cmpl $0x4, %eax
ja 0x16c6b
movl %eax, %ecx
movslq (%r12,%rcx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
movq %r14, %rdi
callq 0x16ed8
movl %eax, (%r13,%rbp)
pushq $0x1
jmp 0x16c4f
movq %r14, %rdi
movq %rsp, %rsi
pushq $0x8
popq %rdx
callq 0x16e59
movsd (%rsp), %xmm0
movsd %xmm0, (%r13,%rbp)
pushq $0x3
popq %rax
jmp 0x16c66
movq %r14, %rdi
callq 0x16ef6
movq %rax, (%r13,%rbp)
movzbl 0x8(%rax), %eax
orl $0x40, %eax
movl %eax, 0x8(%r13,%rbp)
addq $0x10, %rbp
jmp 0x16c01
movq %r14, %rdi
callq 0x16ea3
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
leaq (,%r15,8), %rcx
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
callq 0xed73
movq %rax, 0x20(%rbx)
movl %ebp, 0x60(%rbx)
cmpq %r12, %r15
je 0x16caf
movq 0x20(%rbx), %rax
andq $0x0, (%rax,%r12,8)
incq %r12
jmp 0x16c9c
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x16cdc
movq (%r14), %rdi
callq 0xbfa4
movq 0x20(%rbx), %rcx
movq %rax, (%rcx,%r12,8)
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rsi
movq %r14, %rdi
callq 0x16b43
incq %r12
jmp 0x16cb2
movq %r14, %rdi
callq 0x16ea3
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
shlq $0x4, %r15
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xed73
movq %rax, 0x38(%rbx)
movl %ebp, 0x50(%rbx)
cmpq %r12, %r15
je 0x16d16
andq $0x0, (%rax,%r12)
addq $0x10, %r12
jmp 0x16d06
xorl %r12d, %r12d
movq %r14, %rdi
cmpq %r12, %r15
je 0x16d46
callq 0x16ed8
movq 0x38(%rbx), %rcx
movb %al, 0x8(%rcx,%r12)
movq %r14, %rdi
callq 0x16ed8
movq 0x38(%rbx), %rcx
movb %al, 0x9(%rcx,%r12)
addq $0x10, %r12
jmp 0x16d19
callq 0x16ef6
movq %rax, 0x48(%rbx)
movq %r14, %rdi
callq 0x16ea3
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
shlq $0x2, %r15
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xed73
movq %rax, 0x28(%rbx)
movl %ebp, 0x5c(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x16e59
movq %r14, %rdi
callq 0x16ea3
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
shlq $0x4, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xed73
movq %rax, 0x30(%rbx)
movl %ebp, 0x64(%rbx)
cmpq %r12, %r15
je 0x16dbe
andq $0x0, (%rax,%r12)
addq $0x10, %r12
jmp 0x16dae
xorl %r12d, %r12d
movq %r14, %rdi
cmpq %r12, %r15
je 0x16dfe
callq 0x16ef6
movq 0x30(%rbx), %rcx
movq %rax, (%rcx,%r12)
movq %r14, %rdi
callq 0x16ea3
movq 0x30(%rbx), %rcx
movl %eax, 0x8(%rcx,%r12)
movq %r14, %rdi
callq 0x16ea3
movq 0x30(%rbx), %rcx
movl %eax, 0xc(%rcx,%r12)
addq $0x10, %r12
jmp 0x16dc1
callq 0x16ea3
movl %eax, %r15d
shlq $0x4, %r15
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x16e28
movq %r14, %rdi
callq 0x16ef6
movq 0x38(%rbx), %rcx
movq %rax, (%rcx,%r12)
addq $0x10, %r12
jmp 0x16e0d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq