// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lparser.c
// Function: body
static void body (LexState *ls, expdesc *e, int ismethod, int line) {
  /* body ->  '(' parlist ')' block END */
  FuncState new_fs;
  BlockCnt bl;
  new_fs.f = addprototype(ls);
  new_fs.f->linedefined = line;
  open_func(ls, &new_fs, &bl);
  checknext(ls, '(');
  if (ismethod) {
    new_localvarliteral(ls, "self");  /* create 'self' parameter */
    adjustlocalvars(ls, 1);
  }
  parlist(ls);
  checknext(ls, ')');
  statlist(ls);
  new_fs.f->lastlinedefined = ls->linenumber;
  check_match(ls, TK_END, TK_FUNCTION, line);
  codeclosure(ls, e);
  close_func(ls);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, 0x8(%rsp)
movl %edx, 0xc(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
movq 0x30(%rdi), %r12
movq 0x38(%rdi), %r15
movq (%r12), %r13
movslq 0x20(%r13), %rbp
cmpl %ebp, 0x30(%r12)
jl 0xdf7f
leaq 0x20(%r13), %rdx
movq 0x40(%r13), %rsi
leaq 0x15c43(%rip), %r9      # 0x23b8f
movl $0x8, %ecx
movq %r15, %rdi
movl $0x3ffff, %r8d          # imm = 0x3FFFF
callq 0xb838
movq %rax, 0x40(%r13)
movslq 0x20(%r13), %rax
cmpl %eax, %ebp
jge 0xdf7f
movq 0x40(%r13), %rcx
movq $0x0, (%rcx,%rbp,8)
incq %rbp
cmpq %rbp, %rax
jne 0xdf6b
movq %r15, %rdi
callq 0xa024
movq %rax, %rbp
movq 0x40(%r13), %rax
movslq 0x30(%r12), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x30(%r12)
movq %rbp, (%rax,%rcx,8)
testb $0x4, 0x9(%r13)
je 0xdfba
testb $0x3, 0x9(%rbp)
je 0xdfba
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0xa140
leaq 0x28(%rsp), %rax
movq %rbp, (%rax)
movl 0x8(%rsp), %ecx
movl %ecx, 0x28(%rbp)
movq 0x30(%rbx), %rcx
movq %rcx, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq %rax, 0x30(%rbx)
movaps 0x14930(%rip), %xmm0    # 0x22910
movups %xmm0, 0x20(%rax)
xorl %r15d, %r15d
movl %r15d, 0x30(%rax)
movl %r15d, 0x38(%rax)
movb %r15b, 0x3c(%rax)
movq 0x58(%rbx), %rcx
movl 0x8(%rcx), %edx
movl %edx, 0x34(%rax)
movq 0x60(%rbx), %rdx
movq %rdx, 0x68(%rbp)
movb $0x2, 0xc(%rbp)
leaq 0x10(%rsp), %rdx
movb %r15b, 0x12(%rdx)
movb %r15b, 0x10(%rdx)
movl 0x28(%rcx), %esi
movl %esi, 0x8(%rdx)
movl 0x18(%rcx), %ecx
movl %ecx, 0xc(%rdx)
movb %r15b, 0x11(%rdx)
movq $0x0, (%rdx)
movq %rdx, 0x18(%rax)
movq %rbx, %rdi
movl $0x28, %esi
callq 0xd6fa
cmpl $0x0, 0xc(%rsp)
je 0xe072
leaq 0x14a74(%rip), %rsi     # 0x22ac0
movl $0x4, %edx
movq %rbx, %rdi
callq 0x179a0
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
movq 0x30(%rbx), %rdi
movl $0x1, %esi
callq 0xe3ef
movq 0x30(%rbx), %r12
movq (%r12), %r13
movb $0x0, 0xb(%r13)
movl 0x10(%rbx), %eax
cmpl $0x29, %eax
je 0xe0de
xorl %r15d, %r15d
cmpl $0x124, %eax            # imm = 0x124
jne 0xe0c6
movq %rbx, %rdi
callq 0xd66f
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
cmpb $0x0, 0xb(%r13)
jne 0xe0c1
cmpl $0x2c, 0x10(%rbx)
jne 0xe0c1
movq %rbx, %rdi
callq 0x17a92
movl 0x10(%rbx), %eax
incl %r15d
jmp 0xe08a
incl %r15d
jmp 0xe0de
cmpl $0x119, %eax            # imm = 0x119
jne 0xe184
movq %rbx, %rdi
callq 0x17a92
movb $0x2, 0xb(%r13)
movq 0x30(%rbx), %rdi
movl %r15d, %esi
callq 0xe3ef
movzbl 0x3a(%r12), %esi
movb %sil, 0xa(%r13)
movq %r12, %rdi
callq 0x164fc
movq %rbx, %rdi
movl $0x29, %esi
callq 0xd6fa
movq %rbx, %rdi
callq 0xc8dc
movl 0x4(%rbx), %eax
movq 0x28(%rsp), %rcx
movl %eax, 0x2c(%rcx)
movq %rbx, %rdi
movl $0x106, %esi            # imm = 0x106
movl $0x109, %edx            # imm = 0x109
movl 0x8(%rsp), %ecx
callq 0xd5fe
movq 0x30(%rbx), %rax
movq 0x8(%rax), %r15
movl 0x30(%r15), %ecx
decl %ecx
movq %r15, %rdi
movl $0x2c, %esi
xorl %edx, %edx
callq 0x16297
movq $-0x1, 0x10(%r14)
movl $0xc, (%r14)
movl %eax, 0x8(%r14)
movq %r15, %rdi
movq %r14, %rsi
callq 0x168d7
movq %rbx, %rdi
callq 0xc91e
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1494a(%rip), %rsi     # 0x22ad5
movq %rbx, %rdi
callq 0x1790e