// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/ldump.c
// Function: DumpFunction
static void DumpFunction(const Proto* f, const TString* p, DumpState* D)
{
 DumpString((f->source==p || D->strip) ? NULL : f->source,D);
 DumpInt(f->linedefined,D);
 DumpInt(f->lastlinedefined,D);
 DumpChar(f->nups,D);
 DumpChar(f->numparams,D);
 DumpChar(f->is_vararg,D);
 DumpChar(f->maxstacksize,D);
 DumpCode(f,D);
 DumpConstants(f,D);
 DumpDebug(f,D);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movq 0x40(%rdi), %rax
xorl %edi, %edi
cmpq %rsi, %rax
je 0x658a7
cmpl $0x0, 0x18(%rbx)
cmoveq %rax, %rdi
movq %rbx, %rsi
callq 0x65bba
movl 0x60(%r14), %eax
movl %eax, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x658d1
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movl 0x64(%r14), %eax
movl %eax, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x658f3
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movb 0x70(%r14), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x65915
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x1, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movb 0x71(%r14), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x65937
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x1, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movb 0x72(%r14), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x65959
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x1, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movb 0x73(%r14), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x6597b
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x1, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movq 0x18(%r14), %rdi
movl 0x50(%r14), %esi
movq %rbx, %rdx
callq 0x65c34
movl 0x4c(%r14), %r12d
movl %r12d, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x659ae
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
testl %r12d, %r12d
jle 0x65a5b
shlq $0x4, %r12
xorl %r13d, %r13d
movq %rsp, %r15
movq 0x10(%r14), %rbp
movb 0x8(%rbp,%r13), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x659e8
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movl $0x1, %edx
movq %r15, %rsi
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movl 0x8(%rbp,%r13), %eax
cmpl $0x4, %eax
je 0x65a41
cmpl $0x3, %eax
je 0x65a18
cmpl $0x1, %eax
jne 0x65a4e
movb (%rbp,%r13), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x65a4e
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movl $0x1, %edx
jmp 0x65a36
movsd (%rbp,%r13), %xmm0
movsd %xmm0, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x65a4e
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movl $0x8, %edx
movq %r15, %rsi
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
jmp 0x65a4e
movq (%rbp,%r13), %rdi
movq %rbx, %rsi
callq 0x65bba
addq $0x10, %r13
cmpq %r13, %r12
jne 0x659c1
movl 0x58(%r14), %r15d
movl %r15d, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x65a7e
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
testl %r15d, %r15d
jle 0x65aa2
xorl %r12d, %r12d
movq 0x20(%r14), %rax
movq 0x40(%r14), %rsi
movq (%rax,%r12,8), %rdi
movq %rbx, %rdx
callq 0x65883
incq %r12
cmpq %r12, %r15
jne 0x65a86
xorl %ebp, %ebp
cmpl $0x0, 0x18(%rbx)
movl $0x0, %esi
jne 0x65ab3
movl 0x54(%r14), %esi
movq 0x28(%r14), %rdi
movq %rbx, %rdx
callq 0x65c34
cmpl $0x0, 0x18(%rbx)
jne 0x65ac9
movl 0x5c(%r14), %ebp
movl %ebp, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x65ae7
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
testl %ebp, %ebp
jle 0x65b5f
movl %ebp, %r12d
shlq $0x4, %r12
xorl %r13d, %r13d
movq %rsp, %r15
movq 0x30(%r14), %rax
movq (%rax,%r13), %rdi
movq %rbx, %rsi
callq 0x65bba
movq 0x30(%r14), %rax
movl 0x8(%rax,%r13), %eax
movl %eax, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x65b2f
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movl $0x4, %edx
movq %r15, %rsi
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movq 0x30(%r14), %rax
movl 0xc(%rax,%r13), %eax
movl %eax, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x65b56
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movl $0x4, %edx
movq %r15, %rsi
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
addq $0x10, %r13
cmpq %r13, %r12
jne 0x65af8
xorl %ebp, %ebp
cmpl $0x0, 0x18(%rbx)
jne 0x65b6b
movl 0x48(%r14), %ebp
movl %ebp, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x65b89
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
testl %ebp, %ebp
jle 0x65bab
movl %ebp, %r15d
xorl %r12d, %r12d
movq 0x38(%r14), %rax
movq (%rax,%r12,8), %rdi
movq %rbx, %rsi
callq 0x65bba
incq %r12
cmpq %r12, %r15
jne 0x65b93
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq