// File: /workspace/github_c_makefile_star2_O1/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
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x18957
movl %eax, 0x68(%rbx)
movq %r14, %rdi
callq 0x18957
movl %eax, 0x6c(%rbx)
leaq 0xd(%rsp), %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1890b
movb (%r15), %al
movb %al, 0x78(%rbx)
leaq 0xe(%rsp), %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1890b
movb (%r15), %al
movb %al, 0x79(%rbx)
leaq 0xf(%rsp), %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1890b
movb (%r15), %al
movb %al, 0x7a(%rbx)
movq %r14, %rdi
callq 0x18957
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
shlq $0x2, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xfa40
movq %rax, 0x18(%rbx)
movl %ebp, 0x58(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1890b
movq %r14, %rdi
callq 0x18957
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
movq %r15, %rcx
shlq $0x4, %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0xfa40
movq %rax, 0x10(%rbx)
movl %ebp, 0x54(%rbx)
testl %ebp, %ebp
je 0x185e2
movq %r15, %rbp
shlq $0x4, %rbp
decq %r15
movq %r15, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq 0x30(%rbp), %rcx
andq $-0x40, %rcx
movdqa 0x83fd(%rip), %xmm1     # 0x20860
movdqa 0x8405(%rip), %xmm2     # 0x20870
xorl %edx, %edx
movdqa 0x840b(%rip), %xmm3     # 0x20880
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movdqa 0x987b(%rip), %xmm5     # 0x21d00
movdqa %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %esi
notl %esi
testb $0x1, %sil
je 0x184c2
movl $0x0, 0x8(%rax,%rdx)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %esi
testb $0x1, %sil
je 0x184d9
movl $0x0, 0x18(%rax,%rdx)
movdqa %xmm1, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
pxor %xmm4, %xmm6
pextrw $0x0, %xmm6, %esi
testb $0x1, %sil
je 0x18519
movl $0x0, 0x28(%rax,%rdx)
pextrw $0x4, %xmm6, %esi
testb $0x1, %sil
je 0x1852c
movl $0x0, 0x38(%rax,%rdx)
paddq %xmm5, %xmm2
paddq %xmm5, %xmm1
addq $0x40, %rdx
cmpq %rdx, %rcx
jne 0x18485
xorl %r12d, %r12d
leaq 0x97d5(%rip), %r13      # 0x21d20
movq 0x10(%rbx), %r15
movl $0x1, %edx
movq %r14, %rdi
leaq 0xc(%rsp), %rsi
callq 0x1890b
movzbl 0xc(%rsp), %eax
cmpq $0x4, %rax
ja 0x185d5
movslq (%r13,%rax,4), %rcx
addq %r13, %rcx
jmpq *%rcx
movl $0x1, %edx
movq %r14, %rdi
leaq 0xb(%rsp), %rsi
callq 0x1890b
movsbl 0xb(%rsp), %eax
movl %eax, (%r15,%r12)
movl $0x1, %eax
jmp 0x185d0
movl $0x8, %edx
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
callq 0x1890b
movq 0x10(%rsp), %xmm0
movq %xmm0, (%r15,%r12)
movl $0x3, %eax
jmp 0x185d0
movq %r14, %rdi
callq 0x1898e
movq %rax, (%r15,%r12)
movzbl 0x8(%rax), %eax
orl $0x40, %eax
movl %eax, 0x8(%r15,%r12)
addq $0x10, %r12
cmpq %r12, %rbp
jne 0x1854b
movq %r14, %rdi
callq 0x18957
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
leaq (,%r15,8), %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0xfa40
movq %rax, 0x20(%rbx)
movl %ebp, 0x60(%rbx)
testl %ebp, %ebp
je 0x1864f
xorl %eax, %eax
movq 0x20(%rbx), %rcx
movq $0x0, (%rcx,%rax,8)
incq %rax
cmpq %rax, %r15
jne 0x18610
xorl %r12d, %r12d
movq (%r14), %rdi
callq 0xc71e
movq 0x20(%rbx), %rcx
movq %rax, (%rcx,%r12,8)
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rsi
movq %r14, %rdi
callq 0x18363
incq %r12
cmpq %r12, %r15
jne 0x18627
movq %r14, %rdi
callq 0x18957
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r12d
movq %r12, %r15
shlq $0x4, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xfa40
movq %rax, 0x38(%rbx)
movl %ebp, 0x50(%rbx)
testl %ebp, %ebp
je 0x18764
decq %r12
movq %r12, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq 0x10(%r15), %rcx
andq $-0x20, %rcx
movdqa 0x81d2(%rip), %xmm1     # 0x20870
xorl %edx, %edx
movdqa 0x81d8(%rip), %xmm2     # 0x20880
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0x9658(%rip), %xmm4     # 0x21d10
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %esi
notl %esi
testb $0x1, %sil
je 0x186f2
movq $0x0, (%rax,%rdx)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x1870a
movq $0x0, 0x10(%rax,%rdx)
paddq %xmm4, %xmm1
addq $0x20, %rdx
cmpq %rdx, %rcx
jne 0x186b8
xorl %ebp, %ebp
leaq 0x9(%rsp), %r12
leaq 0xa(%rsp), %r13
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x1890b
movb 0x9(%rsp), %al
movq 0x38(%rbx), %rcx
movb %al, 0x8(%rcx,%rbp)
movl $0x1, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x1890b
movb 0xa(%rsp), %al
movq 0x38(%rbx), %rcx
movb %al, 0x9(%rcx,%rbp)
addq $0x10, %rbp
cmpq %rbp, %r15
jne 0x18723
movq %r14, %rdi
callq 0x1898e
movq %rax, 0x48(%rbx)
movq %r14, %rdi
callq 0x18957
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
shlq $0x2, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xfa40
movq %rax, 0x28(%rbx)
movl %ebp, 0x5c(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1890b
movq %r14, %rdi
callq 0x18957
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r12d
movq %r12, %r15
shlq $0x4, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xfa40
movq %rax, 0x30(%rbx)
movl %ebp, 0x64(%rbx)
testl %ebp, %ebp
je 0x188ab
decq %r12
movq %r12, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq 0x10(%r15), %rcx
andq $-0x20, %rcx
movdqa 0x807c(%rip), %xmm1     # 0x20870
xorl %edx, %edx
movdqa 0x8082(%rip), %xmm2     # 0x20880
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0x9502(%rip), %xmm4     # 0x21d10
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %esi
notl %esi
testb $0x1, %sil
je 0x18848
movq $0x0, (%rax,%rdx)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x18860
movq $0x0, 0x10(%rax,%rdx)
paddq %xmm4, %xmm1
addq $0x20, %rdx
cmpq %rdx, %rcx
jne 0x1880e
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x1898e
movq 0x30(%rbx), %rcx
movq %rax, (%rcx,%r12)
movq %r14, %rdi
callq 0x18957
movq 0x30(%rbx), %rcx
movl %eax, 0x8(%rcx,%r12)
movq %r14, %rdi
callq 0x18957
movq 0x30(%rbx), %rcx
movl %eax, 0xc(%rcx,%r12)
addq $0x10, %r12
cmpq %r12, %r15
jne 0x18870
movq %r14, %rdi
callq 0x18957
testl %eax, %eax
je 0x188da
movl %eax, %r15d
shlq $0x4, %r15
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x1898e
movq 0x38(%rbx), %rcx
movq %rax, (%rcx,%r12)
addq $0x10, %r12
cmpq %r12, %r15
jne 0x188c1
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq