// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/ldump.c
// Function: DumpFunction
static void DumpFunction (const Proto *f, TString *psource, DumpState *D) {
  if (D->strip || f->source == psource)
    DumpString(NULL, D);  /* no debug info or same source as its parent */
  else
    DumpString(f->source, D);
  DumpInt(f->linedefined, D);
  DumpInt(f->lastlinedefined, D);
  DumpByte(f->numparams, D);
  DumpByte(f->is_vararg, D);
  DumpByte(f->maxstacksize, D);
  DumpCode(f, D);
  DumpConstants(f, D);
  DumpUpvalues(f, D);
  DumpProtos(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
cmpl $0x0, 0x18(%rdx)
je 0x9609
movb $0x0, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x961a
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x1, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
jmp 0x961a
movq 0x68(%r14), %rdi
cmpq %rsi, %rdi
je 0x95e8
movq %rbx, %rsi
callq 0x9a17
movl 0x28(%r14), %eax
movl %eax, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x963c
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movl 0x2c(%r14), %eax
movl %eax, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x965e
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movb 0xa(%r14), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x9680
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x1, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movb 0xb(%r14), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x96a2
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x1, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movb 0xc(%r14), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x96c4
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x1, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movl 0x18(%r14), %eax
movl %eax, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x96e6
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movslq 0x18(%r14), %rdx
testq %rdx, %rdx
je 0x970a
cmpl $0x0, 0x1c(%rbx)
jne 0x970a
shlq $0x2, %rdx
movq 0x38(%r14), %rsi
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movl 0x14(%r14), %r12d
movl %r12d, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x972d
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
testl %r12d, %r12d
jle 0x97f9
shlq $0x4, %r12
xorl %r13d, %r13d
movq %rsp, %r15
movq 0x30(%r14), %rbp
movb 0x8(%rbp,%r13), %al
andb $0x3f, %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x9769
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
andl $0x3f, %eax
cmpl $0x3, %eax
jle 0x9794
cmpl $0x4, %eax
je 0x9785
cmpl $0x13, %eax
je 0x97ac
cmpl $0x14, %eax
jne 0x97ec
movq (%rbp,%r13), %rdi
movq %rbx, %rsi
callq 0x9a17
jmp 0x97ec
cmpl $0x1, %eax
je 0x97c9
cmpl $0x3, %eax
jne 0x97ec
movsd (%rbp,%r13), %xmm0
movsd %xmm0, (%rsp)
jmp 0x97b5
movq (%rbp,%r13), %rax
movq %rax, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x97ec
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movl $0x8, %edx
jmp 0x97e3
movb (%rbp,%r13), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x97ec
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movl $0x1, %edx
movq %r15, %rsi
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
addq $0x10, %r13
cmpq %r13, %r12
jne 0x9740
movl 0x10(%r14), %r12d
movl %r12d, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x981c
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
testl %r12d, %r12d
jle 0x9882
shlq $0x4, %r12
xorl %r13d, %r13d
movq %rsp, %r15
movq 0x58(%r14), %rax
movb 0x8(%rax,%r13), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x9852
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movl $0x1, %edx
movq %r15, %rsi
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movq 0x58(%r14), %rax
movb 0x9(%rax,%r13), %al
movb %al, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x9879
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movl $0x1, %edx
movq %r15, %rsi
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
addq $0x10, %r13
cmpq %r13, %r12
jne 0x982b
movl 0x20(%r14), %r15d
movl %r15d, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x98a5
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
testl %r15d, %r15d
jle 0x98c9
xorl %r12d, %r12d
movq 0x40(%r14), %rax
movq 0x68(%r14), %rsi
movq (%rax,%r12,8), %rdi
movq %rbx, %rdx
callq 0x95d1
incq %r12
cmpq %r12, %r15
jne 0x98ad
xorl %ebp, %ebp
cmpl $0x0, 0x18(%rbx)
jne 0x98d5
movl 0x1c(%r14), %ebp
movl %ebp, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x98f3
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
testl %ebp, %ebp
je 0x9915
cmpl $0x0, 0x1c(%rbx)
jne 0x9915
movslq %ebp, %rdx
shlq $0x2, %rdx
movq 0x48(%r14), %rsi
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
xorl %ebp, %ebp
cmpl $0x0, 0x18(%rbx)
jne 0x9921
movl 0x24(%r14), %ebp
movl %ebp, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x993f
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
testl %ebp, %ebp
jle 0x99b7
movl %ebp, %r12d
shlq $0x4, %r12
xorl %r13d, %r13d
movq %rsp, %r15
movq 0x50(%r14), %rax
movq (%rax,%r13), %rdi
movq %rbx, %rsi
callq 0x9a17
movq 0x50(%r14), %rax
movl 0x8(%rax,%r13), %eax
movl %eax, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x9987
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movl $0x4, %edx
movq %r15, %rsi
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
movq 0x50(%r14), %rax
movl 0xc(%rax,%r13), %eax
movl %eax, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x99ae
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 0x9950
xorl %ebp, %ebp
cmpl $0x0, 0x18(%rbx)
jne 0x99c3
movl 0x10(%r14), %ebp
movl %ebp, (%rsp)
cmpl $0x0, 0x1c(%rbx)
jne 0x99e1
movq (%rbx), %rdi
movq 0x10(%rbx), %rcx
movq %rsp, %rsi
movl $0x4, %edx
callq *0x8(%rbx)
movl %eax, 0x1c(%rbx)
testl %ebp, %ebp
jle 0x9a08
movl %ebp, %r15d
shlq $0x4, %r15
xorl %r12d, %r12d
movq 0x58(%r14), %rax
movq (%rax,%r12), %rdi
movq %rbx, %rsi
callq 0x9a17
addq $0x10, %r12
cmpq %r12, %r15
jne 0x99ef
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq