// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lundump.c
// Function: LoadFunction
static Proto* LoadFunction(LoadState* S, TString* p)
{
 Proto* f;
 if (++S->L->nCcalls > LUAI_MAXCCALLS) error(S,"code too deep");
 f=luaF_newproto(S->L);
 setptvalue2s(S->L,S->L->top,f); incr_top(S->L);
 f->source=LoadString(S); if (f->source==NULL) f->source=p;
 f->linedefined=LoadInt(S);
 f->lastlinedefined=LoadInt(S);
 f->nups=LoadByte(S);
 f->numparams=LoadByte(S);
 f->is_vararg=LoadByte(S);
 f->maxstacksize=LoadByte(S);
 LoadCode(S,f);
 LoadConstants(S,f);
 LoadDebug(S,f);
 IF (!luaG_checkcode(f), "bad code");
 S->L->top--;
 S->L->nCcalls--;
 return f;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdi), %rdi
movl 0x60(%rdi), %eax
incl %eax
movw %ax, 0x60(%rdi)
cmpw $0xc9, %ax
jb 0xd327
leaq 0xca0f(%rip), %rsi      # 0x19d2b
movq %rbx, %rdi
callq 0xd725
movq (%rbx), %rdi
callq 0x86fa
movq %rax, %r14
movq (%rbx), %rax
movq 0x10(%rax), %rax
movq %r14, (%rax)
movl $0x9, 0x8(%rax)
movq (%rbx), %rdi
movq 0x10(%rdi), %rax
movq 0x38(%rdi), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jg 0xd363
pushq $0x1
popq %rsi
callq 0x7732
movq (%rbx), %rdi
movq 0x10(%rdi), %rax
addq $0x10, %rax
movq %rax, 0x10(%rdi)
movq %rbx, %rdi
callq 0xd74d
testq %rax, %rax
cmovneq %rax, %r15
movq %r15, 0x40(%r14)
movq %rbx, %rdi
callq 0xd7a6
movl %eax, 0x60(%r14)
movq %rbx, %rdi
callq 0xd7a6
movl %eax, 0x64(%r14)
movq %rbx, %rdi
callq 0xd7df
movb %al, 0x70(%r14)
movq %rbx, %rdi
callq 0xd7df
movb %al, 0x71(%r14)
movq %rbx, %rdi
callq 0xd7df
movb %al, 0x72(%r14)
movq %rbx, %rdi
callq 0xd7df
movb %al, 0x73(%r14)
movq %rbx, %rdi
callq 0xd7a6
movl %eax, %ebp
movq (%rbx), %rdi
movslq %eax, %r15
cmpl $-0x1, %eax
jl 0xd3ed
shlq $0x2, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0x97a6
jmp 0xd3f6
callq 0x97f0
shlq $0x2, %r15
movq %rax, 0x18(%r14)
movl %ebp, 0x50(%r14)
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0xd704
movq %rbx, %rdi
callq 0xd7a6
movl %eax, %r15d
movq (%rbx), %rdi
cmpl $-0x1, %eax
jl 0xd431
movslq %r15d, %rcx
shlq $0x4, %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0x97a6
jmp 0xd436
callq 0x97f0
movq %rax, 0x10(%r14)
movl %r15d, 0x4c(%r14)
xorl %ecx, %ecx
testl %r15d, %r15d
cmovlel %ecx, %r15d
shlq $0x4, %r15
cmpq %rcx, %r15
je 0xd45b
andl $0x0, 0x8(%rax,%rcx)
addq $0x10, %rcx
jmp 0xd44b
xorl %r12d, %r12d
leaq 0xc86b(%rip), %r13      # 0x19cd0
cmpq %r12, %r15
je 0xd507
movq 0x10(%r14), %rbp
movq %rbx, %rdi
callq 0xd7df
cmpl $0x4, %eax
ja 0xd4ef
movl %eax, %eax
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
andl $0x0, 0x8(%rbp,%r12)
jmp 0xd4fe
movq %rbx, %rdi
movq %rsp, %rsi
pushq $0x8
popq %rdx
callq 0xd704
movsd (%rsp), %xmm0
movsd %xmm0, (%rbp,%r12)
movl $0x3, 0x8(%rbp,%r12)
jmp 0xd4fe
movq %rbx, %rdi
callq 0xd7df
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movl %ecx, (%rbp,%r12)
movl $0x1, 0x8(%rbp,%r12)
jmp 0xd4fe
movq %rbx, %rdi
callq 0xd74d
movq %rax, (%rbp,%r12)
movl $0x4, 0x8(%rbp,%r12)
jmp 0xd4fe
movq %rbx, %rdi
leaq 0xc855(%rip), %rsi      # 0x19d4e
callq 0xd725
addq $0x10, %r12
jmp 0xd465
movq %rbx, %rdi
callq 0xd7a6
movl %eax, %r15d
movq (%rbx), %rdi
cmpl $-0x1, %eax
jl 0xd52c
movslq %r15d, %rcx
shlq $0x3, %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0x97a6
jmp 0xd531
callq 0x97f0
movq %rax, 0x20(%r14)
movl %r15d, 0x58(%r14)
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
cmpq %rax, %r15
je 0xd555
movq 0x20(%r14), %rcx
andq $0x0, (%rcx,%rax,8)
incq %rax
jmp 0xd542
xorl %r12d, %r12d
cmpq %r12, %r15
je 0xd576
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0xd2f2
movq 0x20(%r14), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
jmp 0xd558
movq %rbx, %rdi
callq 0xd7a6
movl %eax, %ebp
movq (%rbx), %rdi
cmpl $-0x1, %eax
jl 0xd59d
movslq %ebp, %r15
shlq $0x2, %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0x97a6
jmp 0xd5a9
callq 0x97f0
movslq %ebp, %r15
shlq $0x2, %r15
movq %rax, 0x28(%r14)
movl %ebp, 0x54(%r14)
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0xd704
movq %rbx, %rdi
callq 0xd7a6
movl %eax, %r15d
movq (%rbx), %rdi
cmpl $-0x1, %eax
jl 0xd5e4
movslq %r15d, %rcx
shlq $0x4, %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0x97a6
jmp 0xd5e9
callq 0x97f0
movq %rax, 0x30(%r14)
movl %r15d, 0x5c(%r14)
xorl %ecx, %ecx
testl %r15d, %r15d
cmovlel %ecx, %r15d
shlq $0x4, %r15
cmpq %rcx, %r15
je 0xd60e
andq $0x0, (%rax,%rcx)
addq $0x10, %rcx
jmp 0xd5fe
xorl %r12d, %r12d
movq %rbx, %rdi
cmpq %r12, %r15
je 0xd64e
callq 0xd74d
movq 0x30(%r14), %rcx
movq %rax, (%rcx,%r12)
movq %rbx, %rdi
callq 0xd7a6
movq 0x30(%r14), %rcx
movl %eax, 0x8(%rcx,%r12)
movq %rbx, %rdi
callq 0xd7a6
movq 0x30(%r14), %rcx
movl %eax, 0xc(%rcx,%r12)
addq $0x10, %r12
jmp 0xd611
callq 0xd7a6
movl %eax, %r15d
movq (%rbx), %rdi
cmpl $-0x1, %eax
jl 0xd670
movslq %r15d, %rcx
shlq $0x3, %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0x97a6
jmp 0xd675
callq 0x97f0
movq %rax, 0x38(%r14)
movl %r15d, 0x48(%r14)
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
cmpq %rax, %r15
je 0xd699
movq 0x38(%r14), %rcx
andq $0x0, (%rcx,%rax,8)
incq %rax
jmp 0xd686
xorl %r12d, %r12d
cmpq %r12, %r15
je 0xd6b6
movq %rbx, %rdi
callq 0xd74d
movq 0x38(%r14), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
jmp 0xd69c
movq %r14, %rdi
callq 0x693c
testl %eax, %eax
jne 0xd6d1
leaq 0xc670(%rip), %rsi      # 0x19d39
movq %rbx, %rdi
callq 0xd725
movq (%rbx), %rax
addq $-0x10, 0x10(%rax)
decw 0x60(%rax)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq