// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/lundump.c
// Function: LoadFunction
static void LoadFunction (LoadState *S, Proto *f, TString *psource) {
  f->source = LoadString(S);
  if (f->source == NULL)  /* no source in dump? */
    f->source = psource;  /* reuse parent's source */
  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);
  LoadProtos(S, f);
  LoadDebug(S, f);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
callq 0x10cfb
testq %rax, %rax
cmovneq %rax, %r15
movq %r15, 0x68(%rbx)
movq %rsp, %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movl (%r15), %eax
movl %eax, 0x28(%rbx)
movq %rsp, %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movl (%r15), %eax
movl %eax, 0x2c(%rbx)
movq %rsp, %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movb (%r15), %al
movb %al, 0xa(%rbx)
movq %rsp, %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movb (%r15), %al
movb %al, 0xb(%rbx)
movq %rsp, %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movb (%r15), %al
movb %al, 0xc(%rbx)
movq %rsp, %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movslq (%r15), %r12
movq (%r14), %rdi
movq %r12, %r15
shlq $0x2, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xb3eb
movq %rax, 0x38(%rbx)
movl %r12d, 0x18(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x10cd8
movq %rsp, %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movslq (%r15), %r12
movq (%r14), %rdi
movq %r12, %r15
shlq $0x4, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xb3eb
movq %rax, 0x30(%rbx)
movl %r12d, 0x14(%rbx)
testq %r12, %r12
jle 0x109ab
xorl %ecx, %ecx
movl $0x0, 0x8(%rax,%rcx)
addq $0x10, %rcx
cmpq %rcx, %r15
jne 0x108ca
testl %r12d, %r12d
jle 0x109ab
xorl %r13d, %r13d
movq %rsp, %r12
movq 0x30(%rbx), %rbp
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x10cd8
movzbl (%rsp), %eax
cmpq $0x4, %rax
ja 0x10938
leaq 0x11511(%rip), %rdx     # 0x21e20
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x10cd8
movzbl (%rsp), %eax
movl %eax, (%rbp,%r13)
movl $0x1, %eax
jmp 0x10999
cmpl $0x13, %eax
je 0x1097b
cmpl $0x14, %eax
jne 0x1099e
movq %r14, %rdi
callq 0x10cfb
movq %rax, (%rbp,%r13)
movzbl 0x8(%rax), %eax
orl $0x40, %eax
jmp 0x10999
movl $0x8, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x10cd8
movsd (%rsp), %xmm0
movsd %xmm0, (%rbp,%r13)
movl $0x3, %eax
jmp 0x10999
movl $0x8, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x10cd8
movq (%rsp), %rax
movq %rax, (%rbp,%r13)
movl $0x13, %eax
movl %eax, 0x8(%rbp,%r13)
addq $0x10, %r13
cmpq %r13, %r15
jne 0x108ea
movq %rsp, %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movslq (%r15), %r12
movq (%r14), %rdi
movq %r12, %r15
shlq $0x4, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xb3eb
movq %rax, 0x58(%rbx)
movl %r12d, 0x10(%rbx)
testq %r12, %r12
jle 0x10a43
xorl %ecx, %ecx
movq $0x0, (%rax,%rcx)
addq $0x10, %rcx
cmpq %rcx, %r15
jne 0x109e6
testl %r12d, %r12d
jle 0x10a43
xorl %r13d, %r13d
movq %rsp, %r12
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x10cd8
movb (%rsp), %al
movq 0x58(%rbx), %rcx
movb %al, 0x8(%rcx,%r13)
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x10cd8
movb (%rsp), %al
movq 0x58(%rbx), %rcx
movb %al, 0x9(%rcx,%r13)
addq $0x10, %r13
cmpq %r13, %r15
jne 0x10a02
movq %rsp, %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movslq (%r15), %r15
movq (%r14), %rdi
leaq (,%r15,8), %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0xb3eb
movq %rax, 0x40(%rbx)
movl %r15d, 0x20(%rbx)
testq %r15, %r15
jle 0x10a90
xorl %eax, %eax
movq 0x40(%rbx), %rcx
movq $0x0, (%rcx,%rax,8)
incq %rax
cmpq %rax, %r15
jne 0x10a7c
testl %r15d, %r15d
jle 0x10ac4
xorl %r12d, %r12d
movq (%r14), %rdi
callq 0x9cc0
movq 0x40(%rbx), %rcx
movq %rax, (%rcx,%r12,8)
movq 0x40(%rbx), %rax
movq 0x68(%rbx), %rdx
movq (%rax,%r12,8), %rsi
movq %r14, %rdi
callq 0x107a8
incq %r12
cmpq %r12, %r15
jne 0x10a98
movq %rsp, %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movslq (%r15), %r12
movq (%r14), %rdi
movq %r12, %r15
shlq $0x2, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xb3eb
movq %rax, 0x48(%rbx)
movl %r12d, 0x1c(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x10cd8
movq %rsp, %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movslq (%r15), %r12
movq (%r14), %rdi
movq %r12, %r15
shlq $0x4, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xb3eb
movq %rax, 0x50(%rbx)
movl %r12d, 0x24(%rbx)
testq %r12, %r12
jle 0x10bae
xorl %ecx, %ecx
movq $0x0, (%rax,%rcx)
addq $0x10, %rcx
cmpq %rcx, %r15
jne 0x10b41
testl %r12d, %r12d
jle 0x10bae
xorl %r13d, %r13d
movq %rsp, %r12
movq %r14, %rdi
callq 0x10cfb
movq 0x50(%rbx), %rcx
movq %rax, (%rcx,%r13)
movl $0x4, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x10cd8
movl (%rsp), %eax
movq 0x50(%rbx), %rcx
movl %eax, 0x8(%rcx,%r13)
movl $0x4, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x10cd8
movl (%rsp), %eax
movq 0x50(%rbx), %rcx
movl %eax, 0xc(%rcx,%r13)
addq $0x10, %r13
cmpq %r13, %r15
jne 0x10b5d
movq %rsp, %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd8
movslq (%r15), %r15
testq %r15, %r15
jle 0x10be9
shlq $0x4, %r15
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x10cfb
movq 0x58(%rbx), %rcx
movq %rax, (%rcx,%r12)
addq $0x10, %r12
cmpq %r12, %r15
jne 0x10bd0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq