// File: /workspace/github_c_makefile_star2_O3/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 0x18a18
movl %eax, 0x68(%rbx)
movq %r14, %rdi
callq 0x18a18
movl %eax, 0x6c(%rbx)
leaq 0xd(%rsp), %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x189cc
movb (%r15), %al
movb %al, 0x78(%rbx)
leaq 0xe(%rsp), %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x189cc
movb (%r15), %al
movb %al, 0x79(%rbx)
leaq 0xf(%rsp), %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x189cc
movb (%r15), %al
movb %al, 0x7a(%rbx)
movq %r14, %rdi
callq 0x18a18
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
shlq $0x2, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xfb80
movq %rax, 0x18(%rbx)
movl %ebp, 0x58(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x189cc
movq %r14, %rdi
callq 0x18a18
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 0xfb80
movq %rax, 0x10(%rbx)
movl %ebp, 0x54(%rbx)
testl %ebp, %ebp
je 0x1869e
leaq -0x1(%r12), %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq 0x30(%r15), %rcx
andq $-0x40, %rcx
movdqa 0x7dea(%rip), %xmm1     # 0x20300
movdqa 0x7df2(%rip), %xmm2     # 0x20310
xorl %edx, %edx
movdqa 0x7df8(%rip), %xmm3     # 0x20320
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movdqa 0x97c8(%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 0x18575
movl $0x0, 0x8(%rax,%rdx)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %esi
testb $0x1, %sil
je 0x1858c
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 0x185cc
movl $0x0, 0x28(%rax,%rdx)
pextrw $0x4, %xmm6, %esi
testb $0x1, %sil
je 0x185df
movl $0x0, 0x38(%rax,%rdx)
paddq %xmm5, %xmm2
paddq %xmm5, %xmm1
addq $0x40, %rdx
cmpq %rdx, %rcx
jne 0x18538
testq %r12, %r12
je 0x1869e
xorl %r13d, %r13d
leaq 0x9719(%rip), %rbp      # 0x21d20
movq 0x10(%rbx), %r12
movl $0x1, %edx
movq %r14, %rdi
leaq 0xc(%rsp), %rsi
callq 0x189cc
movzbl 0xc(%rsp), %eax
cmpq $0x4, %rax
ja 0x18691
movslq (%rbp,%rax,4), %rcx
addq %rbp, %rcx
jmpq *%rcx
movl $0x1, %edx
movq %r14, %rdi
leaq 0xb(%rsp), %rsi
callq 0x189cc
movsbl 0xb(%rsp), %eax
movl %eax, (%r12,%r13)
movl $0x1, %eax
jmp 0x1868c
movl $0x8, %edx
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
callq 0x189cc
movq 0x10(%rsp), %xmm0
movq %xmm0, (%r12,%r13)
movl $0x3, %eax
jmp 0x1868c
movq %r14, %rdi
callq 0x18a4f
movq %rax, (%r12,%r13)
movzbl 0x8(%rax), %eax
orl $0x40, %eax
movl %eax, 0x8(%r12,%r13)
addq $0x10, %r13
cmpq %r13, %r15
jne 0x18607
movq %r14, %rdi
callq 0x18a18
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
leaq (,%r15,8), %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0xfb80
movq %rax, 0x20(%rbx)
movl %ebp, 0x60(%rbx)
testl %ebp, %ebp
je 0x18710
xorl %eax, %eax
movq 0x20(%rbx), %rcx
movq $0x0, (%rcx,%rax,8)
incq %rax
cmpq %rax, %r15
jne 0x186cc
testq %r15, %r15
je 0x18710
xorl %r12d, %r12d
movq (%r14), %rdi
callq 0xc831
movq 0x20(%rbx), %rcx
movq %rax, (%rcx,%r12,8)
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rsi
movq %r14, %rdi
callq 0x18418
incq %r12
cmpq %r12, %r15
jne 0x186e8
movq %r14, %rdi
callq 0x18a18
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 0xfb80
movq %rax, 0x38(%rbx)
movl %ebp, 0x50(%rbx)
testl %ebp, %ebp
je 0x18825
decq %r12
movq %r12, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq 0x10(%r15), %rcx
andq $-0x20, %rcx
movdqa 0x7bb1(%rip), %xmm1     # 0x20310
xorl %edx, %edx
movdqa 0x7bb7(%rip), %xmm2     # 0x20320
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0x9597(%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 0x187b3
movq $0x0, (%rax,%rdx)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x187cb
movq $0x0, 0x10(%rax,%rdx)
paddq %xmm4, %xmm1
addq $0x20, %rdx
cmpq %rdx, %rcx
jne 0x18779
xorl %ebp, %ebp
leaq 0x9(%rsp), %r12
leaq 0xa(%rsp), %r13
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x189cc
movb 0x9(%rsp), %al
movq 0x38(%rbx), %rcx
movb %al, 0x8(%rcx,%rbp)
movl $0x1, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x189cc
movb 0xa(%rsp), %al
movq 0x38(%rbx), %rcx
movb %al, 0x9(%rcx,%rbp)
addq $0x10, %rbp
cmpq %rbp, %r15
jne 0x187e4
movq %r14, %rdi
callq 0x18a4f
movq %rax, 0x48(%rbx)
movq %r14, %rdi
callq 0x18a18
movl %eax, %ebp
movq (%r14), %rdi
movl %eax, %r15d
shlq $0x2, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xfb80
movq %rax, 0x28(%rbx)
movl %ebp, 0x5c(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x189cc
movq %r14, %rdi
callq 0x18a18
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 0xfb80
movq %rax, 0x30(%rbx)
movl %ebp, 0x64(%rbx)
testl %ebp, %ebp
je 0x1896c
decq %r12
movq %r12, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq 0x10(%r15), %rcx
andq $-0x20, %rcx
movdqa 0x7a5b(%rip), %xmm1     # 0x20310
xorl %edx, %edx
movdqa 0x7a61(%rip), %xmm2     # 0x20320
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0x9441(%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 0x18909
movq $0x0, (%rax,%rdx)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x18921
movq $0x0, 0x10(%rax,%rdx)
paddq %xmm4, %xmm1
addq $0x20, %rdx
cmpq %rdx, %rcx
jne 0x188cf
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x18a4f
movq 0x30(%rbx), %rcx
movq %rax, (%rcx,%r12)
movq %r14, %rdi
callq 0x18a18
movq 0x30(%rbx), %rcx
movl %eax, 0x8(%rcx,%r12)
movq %r14, %rdi
callq 0x18a18
movq 0x30(%rbx), %rcx
movl %eax, 0xc(%rcx,%r12)
addq $0x10, %r12
cmpq %r12, %r15
jne 0x18931
movq %r14, %rdi
callq 0x18a18
testl %eax, %eax
je 0x1899b
movl %eax, %r15d
shlq $0x4, %r15
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x18a4f
movq 0x38(%rbx), %rcx
movq %rax, (%rcx,%r12)
addq $0x10, %r12
cmpq %r12, %r15
jne 0x18982
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq