// File: /workspace/github_c_makefile_star2_O2/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 0xfda1
testq %rax, %rax
cmovneq %rax, %r15
movq %r15, 0x68(%rbx)
movq %r14, %rdi
callq 0xfe3a
movl %eax, 0x28(%rbx)
movq %r14, %rdi
callq 0xfe3a
movl %eax, 0x2c(%rbx)
movq %r14, %rdi
callq 0xf8f8
movb %al, 0xa(%rbx)
movq %r14, %rdi
callq 0xf8f8
movb %al, 0xb(%rbx)
movq %r14, %rdi
callq 0xf8f8
movb %al, 0xc(%rbx)
movq %r14, %rdi
callq 0xfe3a
movq (%r14), %rdi
movslq %eax, %r13
leaq (,%r13,4), %r15
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xab76
movq %rax, 0x38(%rbx)
movl %r13d, 0x18(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0xfd7e
movq %r14, %rdi
callq 0xfe3a
movq (%r14), %rdi
movslq %eax, %r13
movq %r13, %rcx
shlq $0x4, %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0xab76
movq %rax, 0x30(%rbx)
movl %r13d, 0x14(%rbx)
testl %r13d, %r13d
movl $0x0, %r15d
cmovgl %r13d, %r15d
shlq $0x4, %r15
cmpq %r12, %r15
je 0xf9f3
andl $0x0, 0x8(%rax,%r12)
addq $0x10, %r12
jmp 0xf9e2
xorl %r12d, %r12d
leaq 0x104af(%rip), %r13     # 0x1feac
cmpq %r12, %r15
je 0xfa88
movq 0x30(%rbx), %rbp
movq %r14, %rdi
callq 0xf8f8
movzbl %al, %eax
cmpb $0x4, %al
ja 0xfa37
movslq (%r13,%rax,4), %rcx
addq %r13, %rcx
jmpq *%rcx
movq %r14, %rdi
callq 0xf8f8
movzbl %al, %eax
movl %eax, (%rbp,%r12)
pushq $0x1
jmp 0xfa79
cmpl $0x13, %eax
je 0xfa6a
cmpl $0x14, %eax
jne 0xfa7f
movq %r14, %rdi
callq 0xfda1
movq %rax, (%rbp,%r12)
movzbl 0x8(%rax), %eax
orl $0x40, %eax
jmp 0xfa7a
movq %r14, %rdi
callq 0xfd5f
movsd %xmm0, (%rbp,%r12)
pushq $0x3
jmp 0xfa79
movq %r14, %rdi
callq 0xfd41
movq %rax, (%rbp,%r12)
pushq $0x13
popq %rax
movl %eax, 0x8(%rbp,%r12)
addq $0x10, %r12
jmp 0xf9fd
movq %r14, %rdi
callq 0xfe3a
movq (%r14), %rdi
movslq %eax, %r13
movq %r13, %rcx
shlq $0x4, %rcx
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
callq 0xab76
movq %rax, 0x58(%rbx)
movl %r13d, 0x10(%rbx)
testl %r13d, %r13d
movl $0x0, %r15d
cmovgl %r13d, %r15d
shlq $0x4, %r15
cmpq %r12, %r15
je 0xfad2
andq $0x0, (%rax,%r12)
addq $0x10, %r12
jmp 0xfac2
xorl %r12d, %r12d
movq %r14, %rdi
cmpq %r12, %r15
je 0xfb02
callq 0xf8f8
movq 0x58(%rbx), %rcx
movb %al, 0x8(%rcx,%r12)
movq %r14, %rdi
callq 0xf8f8
movq 0x58(%rbx), %rcx
movb %al, 0x9(%rcx,%r12)
addq $0x10, %r12
jmp 0xfad5
callq 0xfe3a
movq (%r14), %rdi
movslq %eax, %r13
leaq (,%r13,8), %rcx
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
callq 0xab76
movq %rax, 0x40(%rbx)
movl %r13d, 0x20(%rbx)
testl %r13d, %r13d
movl $0x0, %r15d
cmovgl %r13d, %r15d
cmpq %r12, %r15
je 0xfb49
movq 0x40(%rbx), %rax
andq $0x0, (%rax,%r12,8)
incq %r12
jmp 0xfb36
xorl %r12d, %r12d
cmpq %r12, %r15
je 0xfb7a
movq (%r14), %rdi
callq 0x961d
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 0xf915
incq %r12
jmp 0xfb4c
movq %r14, %rdi
callq 0xfe3a
movq (%r14), %rdi
movslq %eax, %r13
leaq (,%r13,4), %r15
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xab76
movq %rax, 0x48(%rbx)
movl %r13d, 0x1c(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0xfd7e
movq %r14, %rdi
callq 0xfe3a
movq (%r14), %rdi
movslq %eax, %r13
movq %r13, %rcx
shlq $0x4, %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0xab76
movq %rax, 0x50(%rbx)
movl %r13d, 0x24(%rbx)
testl %r13d, %r13d
movl $0x0, %r15d
cmovgl %r13d, %r15d
shlq $0x4, %r15
cmpq %r12, %r15
je 0xfbfc
andq $0x0, (%rax,%r12)
addq $0x10, %r12
jmp 0xfbec
xorl %r12d, %r12d
movq %r14, %rdi
cmpq %r12, %r15
je 0xfc3c
callq 0xfda1
movq 0x50(%rbx), %rcx
movq %rax, (%rcx,%r12)
movq %r14, %rdi
callq 0xfe3a
movq 0x50(%rbx), %rcx
movl %eax, 0x8(%rcx,%r12)
movq %r14, %rdi
callq 0xfe3a
movq 0x50(%rbx), %rcx
movl %eax, 0xc(%rcx,%r12)
addq $0x10, %r12
jmp 0xfbff
callq 0xfe3a
movl %eax, %r15d
xorl %r12d, %r12d
testl %eax, %eax
cmovlel %r12d, %r15d
shlq $0x4, %r15
cmpq %r12, %r15
je 0xfc6c
movq %r14, %rdi
callq 0xfda1
movq 0x58(%rbx), %rcx
movq %rax, (%rcx,%r12)
addq $0x10, %r12
jmp 0xfc51
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq