// File: /workspace/github_c_makefile_star2_O2/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), %r15
movq 0x38(%rdi), %r12
movq (%r15), %r13
movslq 0x20(%r13), %rbp
cmpl %ebp, 0x30(%r15)
jge 0xd011
movq %r12, %rdi
callq 0x961d
movq %rax, %rbp
movq 0x40(%r13), %rax
movslq 0x30(%r15), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x30(%r15)
movq %rbp, (%rax,%rcx,8)
testb $0x4, 0x9(%r13)
je 0xcf6e
testb $0x3, 0x9(%rbp)
je 0xcf6e
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x972c
leaq 0x28(%rsp), %rsi
movq %rbp, (%rsi)
movl 0x8(%rsp), %eax
movl %eax, 0x28(%rbp)
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0xb8e7
pushq $0x28
popq %rsi
movq %rbx, %rdi
callq 0xc7d6
cmpl $0x0, 0xc(%rsp)
je 0xcfb9
leaq 0x12b44(%rip), %rsi     # 0x1fae7
pushq $0x4
popq %rdx
movq %rbx, %rdi
callq 0xd3a1
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xd3b3
movq 0x30(%rbx), %r15
movq (%r15), %rbp
movb $0x0, 0xb(%rbp)
movl 0x10(%rbx), %eax
xorl %r12d, %r12d
cmpl $0x29, %eax
je 0xd06c
xorl %r12d, %r12d
pushq $0x2c
popq %r13
cmpl $0x124, %eax            # imm = 0x124
jne 0xd055
movq %rbx, %rdi
callq 0xc746
movq %rbx, %rdi
movq %rax, %rsi
callq 0xd3f6
cmpb $0x0, 0xb(%rbp)
jne 0xd050
movq %rbx, %rdi
movl %r13d, %esi
callq 0xc731
testl %eax, %eax
je 0xd050
movl 0x10(%rbx), %eax
incl %r12d
jmp 0xcfda
leaq 0x20(%r13), %rdx
movq 0x40(%r13), %rsi
leaq 0x13bff(%rip), %r9      # 0x20c1f
pushq $0x8
popq %rcx
movq %r12, %rdi
movl $0x3ffff, %r8d          # imm = 0x3FFFF
callq 0xab14
movq %rax, 0x40(%r13)
movslq 0x20(%r13), %rax
cmpq %rax, %rbp
jge 0xcf35
movq 0x40(%r13), %rcx
andq $0x0, (%rcx,%rbp,8)
incq %rbp
jmp 0xd039
incl %r12d
jmp 0xd06c
cmpl $0x119, %eax            # imm = 0x119
jne 0xd109
movq %rbx, %rdi
callq 0x157ec
movb $0x2, 0xb(%rbp)
movq %rbx, %rdi
movl %r12d, %esi
callq 0xd3b3
movzbl 0x3a(%r15), %esi
movb %sil, 0xa(%rbp)
movq %r15, %rdi
callq 0x14536
pushq $0x29
popq %rsi
movq %rbx, %rdi
callq 0xc7d6
movq %rbx, %rdi
callq 0xba1e
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 0xc6ba
movq 0x30(%rbx), %rax
movq 0x8(%rax), %r15
movl 0x30(%r15), %ecx
decl %ecx
pushq $0x2c
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x1430b
orq $-0x1, 0x10(%r14)
movl $0xc, (%r14)
movl %eax, 0x8(%r14)
movq %r15, %rdi
movq %r14, %rsi
callq 0x14836
movq %rbx, %rdi
callq 0xba6c
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x129ec(%rip), %rsi     # 0x1fafc
movq %rbx, %rdi
callq 0x15676