// File: /workspace/github_c_makefile_star2_O1/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 0xda9c
leaq 0x20(%r13), %rdx
movq 0x40(%r13), %rsi
leaq 0x15096(%rip), %r9      # 0x22aff
movl $0x8, %ecx
movq %r15, %rdi
movl $0x3ffff, %r8d          # imm = 0x3FFFF
callq 0xb38c
movq %rax, 0x40(%r13)
movslq 0x20(%r13), %rax
cmpl %eax, %ebp
jge 0xda9c
movq 0x40(%r13), %rcx
movq $0x0, (%rcx,%rbp,8)
incq %rbp
cmpq %rbp, %rax
jne 0xda88
movq %r15, %rdi
callq 0x9cc0
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 0xdad7
testb $0x3, 0x9(%rbp)
je 0xdad7
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x9ddc
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 0x13de3(%rip), %xmm0    # 0x218e0
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 %r15, 0x18(%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 %r15, (%rdx)
movq %rdx, 0x18(%rax)
movq %rbx, %rdi
movl $0x28, %esi
callq 0xd1f5
cmpl $0x0, 0xc(%rsp)
je 0xdb8e
leaq 0x13ee7(%rip), %rsi     # 0x21a50
movl $0x4, %edx
movq %rbx, %rdi
callq 0x16e18
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
movq %rbx, %rdi
movl $0x1, %esi
callq 0xdf0d
movq 0x30(%rbx), %r12
movq (%r12), %r13
movb $0x0, 0xb(%r13)
cmpl $0x29, 0x10(%rbx)
jne 0xdc4a
movq %rbx, %rdi
movl %r15d, %esi
callq 0xdf0d
movzbl 0x3a(%r12), %esi
movb %sil, 0xa(%r13)
movq %r12, %rdi
callq 0x15a12
movq %rbx, %rdi
movl $0x29, %esi
callq 0xd1f5
movq %rbx, %rdi
callq 0xc3c2
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 0xcf87
movq 0x30(%rbx), %rax
movq 0x8(%rax), %r15
movl 0x30(%r15), %ecx
decl %ecx
movq %r15, %rdi
movl $0x2c, %esi
xorl %edx, %edx
callq 0x157bc
movq $-0x1, 0x10(%r14)
movl $0xc, (%r14)
movl %eax, 0x8(%r14)
movq %r15, %rdi
movq %r14, %rsi
callq 0x15d1e
movq %rbx, %rdi
callq 0xc404
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
movl 0x10(%rbx), %eax
cmpl $0x119, %eax            # imm = 0x119
je 0xdc76
cmpl $0x124, %eax            # imm = 0x124
jne 0xdca2
movq %rbx, %rdi
callq 0xcff8
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
incl %r15d
jmp 0xdc83
movq %rbx, %rdi
callq 0x16f0a
movb $0x2, 0xb(%r13)
cmpb $0x0, 0xb(%r13)
jne 0xdba5
cmpl $0x2c, 0x10(%rbx)
jne 0xdba5
movq %rbx, %rdi
callq 0x16f0a
jmp 0xdc4d
leaq 0x13dbc(%rip), %rsi     # 0x21a65
movq %rbx, %rdi
callq 0x16d86