// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/lparser.c
// Function: statement
static void statement (LexState *ls) {
  int line = ls->linenumber;  /* may be needed for error messages */
  enterlevel(ls);
  switch (ls->t.token) {
    case ';': {  /* stat -> ';' (empty statement) */
      luaX_next(ls);  /* skip ';' */
      break;
    }
    case TK_IF: {  /* stat -> ifstat */
      ifstat(ls, line);
      break;
    }
    case TK_WHILE: {  /* stat -> whilestat */
      whilestat(ls, line);
      break;
    }
    case TK_DO: {  /* stat -> DO block END */
      luaX_next(ls);  /* skip DO */
      block(ls);
      check_match(ls, TK_END, TK_DO, line);
      break;
    }
    case TK_FOR: {  /* stat -> forstat */
      forstat(ls, line);
      break;
    }
    case TK_REPEAT: {  /* stat -> repeatstat */
      repeatstat(ls, line);
      break;
    }
    case TK_FUNCTION: {  /* stat -> funcstat */
      funcstat(ls, line);
      break;
    }
    case TK_LOCAL: {  /* stat -> localstat */
      luaX_next(ls);  /* skip LOCAL */
      if (testnext(ls, TK_FUNCTION))  /* local function? */
        localfunc(ls);
      else
        localstat(ls);
      break;
    }
    case TK_DBCOLON: {  /* stat -> label */
      luaX_next(ls);  /* skip double colon */
      labelstat(ls, str_checkname(ls), line);
      break;
    }
    case TK_RETURN: {  /* stat -> retstat */
      luaX_next(ls);  /* skip RETURN */
      retstat(ls);
      break;
    }
    case TK_BREAK:   /* stat -> breakstat */
    case TK_GOTO: {  /* stat -> 'goto' NAME */
      gotostat(ls, luaK_jump(ls->fs));
      break;
    }
    default: {  /* stat -> func | assignment */
      exprstat(ls);
      break;
    }
  }
  lua_assert(ls->fs->f->maxstacksize >= ls->fs->freereg &&
             ls->fs->freereg >= ls->fs->nactvar);
  ls->fs->freereg = ls->fs->nactvar;  /* free registers */
  leavelevel(ls);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movl 0x4(%rdi), %ebp
movq 0x38(%rdi), %rax
movzwl 0xc6(%rax), %ecx
incl %ecx
movw %cx, 0xc6(%rax)
movzwl %cx, %eax
cmpl $0xc9, %eax
jae 0xcf0c
movl 0x10(%rbx), %eax
leal -0x102(%rax), %ecx
cmpl $0x14, %ecx
ja 0xc633
leaq 0x152de(%rip), %rax     # 0x218f0
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x30(%rbx), %rdi
callq 0x1577c
movq %rbx, %rdi
movl %eax, %esi
callq 0xd01a
jmp 0xcebc
cmpl $0x120, %eax            # imm = 0x120
je 0xcb48
cmpl $0x3b, %eax
je 0xceb4
movq 0x30(%rbx), %r14
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xdcb1
movl 0x10(%rbx), %eax
cmpl $0x3d, %eax
je 0xc669
cmpl $0x2c, %eax
jne 0xcdab
movq %rsp, %rsi
movq $0x0, (%rsi)
movq %rbx, %rdi
movl $0x1, %edx
callq 0xe8d7
jmp 0xcebc
movq %rbx, %rdi
callq 0x16f0a
movl 0x10(%rbx), %edi
leal -0x104(%rdi), %ecx
cmpl $0x1e, %ecx
setb %al
movl $0x20020007, %edx       # imm = 0x20020007
shrl %cl, %edx
movq 0x30(%rbx), %r14
xorl %esi, %esi
cmpl $0x3b, %edi
je 0xcdd8
movl $0x0, %ebp
andb %dl, %al
jne 0xcea4
movq %rsp, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe3df
movl %eax, %r15d
movl (%r12), %eax
addl $-0xd, %eax
cmpl $0x1, %eax
ja 0xcddf
movq %rsp, %r12
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %r14, %rdi
movq %r12, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x15bc7
movl (%r12), %eax
xorl $0xd, %eax
xorl $0x1, %r15d
orl %eax, %r15d
jne 0xc720
movq (%r14), %rax
movq 0x38(%rax), %rax
movslq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %edx
andl $-0x40, %edx
orl $0x25, %edx
movl %edx, (%rax,%rcx,4)
movzbl 0x3a(%r14), %esi
jmp 0xcea4
movq %rbx, %rdi
callq 0x16f0a
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe264
movl 0x10(%rbx), %eax
cmpl $0x2e, %eax
jne 0xc755
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe0cb
jmp 0xc740
cmpl $0x3a, %eax
jne 0xcd1e
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xe0cb
movl $0x1, %edx
jmp 0xcd20
movq %rbx, %rdi
callq 0x16f0a
cmpl $0x109, 0x10(%rbx)      # imm = 0x109
jne 0xcd51
movq %rbx, %rdi
callq 0x16f0a
movq 0x30(%rbx), %r15
movq %rbx, %rdi
callq 0xcff8
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
movq %rbx, %rdi
movl $0x1, %esi
callq 0xdf0d
movl 0x4(%rbx), %ecx
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xda27
movl 0x20(%r15), %eax
movslq 0x8(%r14), %rcx
movq (%r15), %rdx
movq 0x10(%r15), %rsi
movq 0x58(%rsi), %rsi
movq (%rsi), %rsi
movslq 0x34(%r15), %rdi
addq %rcx, %rdi
movswq (%rsi,%rdi,2), %rcx
movq 0x50(%rdx), %rdx
shlq $0x4, %rcx
movl %eax, 0x8(%rdx,%rcx)
jmp 0xcebc
movq %rbx, %rdi
callq 0x16f0a
movq %rbx, %rdi
callq 0xcf39
movq %rbx, %rdi
movl $0x106, %esi            # imm = 0x106
movl $0x103, %edx            # imm = 0x103
movl %ebp, %ecx
callq 0xcf87
jmp 0xcebc
movq 0x30(%rbx), %r14
movq %rsp, %r15
movl $0xffffffff, (%r15)     # imm = 0xFFFFFFFF
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd083
movl 0x10(%rbx), %eax
cmpl $0x105, %eax            # imm = 0x105
je 0xc831
cmpl $0x104, %eax            # imm = 0x104
jne 0xc85d
movq %rbx, %rdi
callq 0x16f0a
movq %rbx, %rdi
callq 0xcf39
movq %rbx, %rdi
movl $0x106, %esi            # imm = 0x106
movl $0x10b, %edx            # imm = 0x10B
movl %ebp, %ecx
callq 0xcf87
movl (%rsp), %esi
movq %r14, %rdi
jmp 0xcb3e
movq 0x30(%rbx), %r14
leaq 0x30(%rsp), %rax
movb $0x1, 0x12(%rax)
movb 0x3a(%r14), %cl
movb %cl, 0x10(%rax)
movq 0x10(%r14), %rcx
movq 0x58(%rcx), %rcx
movl 0x28(%rcx), %edx
movl %edx, 0x8(%rax)
movl 0x18(%rcx), %ecx
movl %ecx, 0xc(%rax)
movb $0x0, 0x11(%rax)
movq 0x18(%r14), %rcx
movq %rcx, (%rax)
movq %rax, 0x18(%r14)
movq %rbx, %rdi
callq 0x16f0a
movq %rbx, %rdi
callq 0xcff8
movq %rax, %r12
movl 0x10(%rbx), %eax
cmpl $0x2c, %eax
je 0xcbea
cmpl $0x10c, %eax            # imm = 0x10C
je 0xcbea
cmpl $0x3d, %eax
jne 0xcf2a
movq 0x30(%rbx), %r13
movzbl 0x3c(%r13), %r15d
leaq 0x15295(%rip), %rsi     # 0x21b8b
movl $0xb, %edx
movq %rbx, %rdi
callq 0x16e18
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
leaq 0x15282(%rip), %rsi     # 0x21b97
movl $0xb, %edx
movq %rbx, %rdi
callq 0x16e18
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
leaq 0x1526f(%rip), %rsi     # 0x21ba3
movl $0xa, %edx
movq %rbx, %rdi
callq 0x16e18
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
movq %rbx, %rdi
movq %r12, %rsi
callq 0xdf67
movq %rbx, %rdi
movl $0x3d, %esi
callq 0xd1f5
movq %rsp, %r12
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xd37c
movq 0x30(%rbx), %rdi
movq %r12, %rsi
callq 0x15d1e
movq %rbx, %rdi
movl $0x2c, %esi
callq 0xd1f5
movq %rsp, %r12
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xd37c
movq 0x30(%rbx), %rdi
movq %r12, %rsi
callq 0x15d1e
cmpl $0x2c, 0x10(%rbx)
jne 0xce35
movq %rbx, %rdi
callq 0x16f0a
movq %rsp, %r12
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xd37c
movq 0x30(%rbx), %rdi
movq %r12, %rsi
callq 0x15d1e
jmp 0xce61
movq 0x30(%rbx), %r14
movq %r14, %rdi
callq 0x157e1
movl %eax, %r15d
movq %rsp, %rax
movb $0x1, 0x12(%rax)
movb 0x3a(%r14), %cl
movb %cl, 0x10(%rax)
movq 0x10(%r14), %rdx
movq 0x58(%rdx), %rdx
movl 0x28(%rdx), %esi
movl %esi, 0x8(%rax)
movl 0x18(%rdx), %edx
movl %edx, 0xc(%rax)
movb $0x0, 0x11(%rax)
movq 0x18(%r14), %rdi
movq %rdi, (%rax)
movq %rax, 0x18(%r14)
leaq 0x30(%rsp), %r12
movb %cl, 0x10(%r12)
movl %esi, 0x8(%r12)
movl %edx, 0xc(%r12)
movw $0x0, 0x11(%r12)
movq %rax, (%r12)
movq %r12, 0x18(%r14)
movq %rbx, %rdi
callq 0x16f0a
movq %rbx, %rdi
callq 0xc3c2
movq %rbx, %rdi
movl $0x115, %esi            # imm = 0x115
movl $0x111, %edx            # imm = 0x111
movl %ebp, %ecx
callq 0xcf87
movq %rbx, %rdi
callq 0xe6b1
movl %eax, %ebp
cmpb $0x0, 0x11(%r12)
je 0xca85
movzbl 0x40(%rsp), %edx
movq %r14, %rdi
movl %ebp, %esi
callq 0x15897
movq %r14, %rdi
callq 0xd204
movq %r14, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x157f9
jmp 0xce8d
movq 0x30(%rbx), %r14
movq %rbx, %rdi
callq 0x16f0a
movq %r14, %rdi
callq 0x157e1
movl %eax, %r12d
movq %rbx, %rdi
callq 0xe6b1
movl %eax, %r15d
movq %rsp, %rax
movb $0x1, 0x12(%rax)
movb 0x3a(%r14), %cl
movb %cl, 0x10(%rax)
movq 0x10(%r14), %rcx
movq 0x58(%rcx), %rcx
movl 0x28(%rcx), %edx
movl %edx, 0x8(%rax)
movl 0x18(%rcx), %ecx
movl %ecx, 0xc(%rax)
movb $0x0, 0x11(%rax)
movq 0x18(%r14), %rcx
movq %rcx, (%rax)
movq %rax, 0x18(%r14)
movq %rbx, %rdi
movl $0x103, %esi            # imm = 0x103
callq 0xd1f5
movq %rbx, %rdi
callq 0xcf39
movq %r14, %rdi
callq 0x1577c
movq %r14, %rdi
movl %eax, %esi
movl %r12d, %edx
callq 0x157f9
movq %rbx, %rdi
movl $0x106, %esi            # imm = 0x106
movl $0x116, %edx            # imm = 0x116
movl %ebp, %ecx
callq 0xcf87
movq %r14, %rdi
callq 0xd204
movq %r14, %rdi
movl %r15d, %esi
callq 0x157e8
jmp 0xcebc
movq %rbx, %rdi
callq 0x16f0a
movq %rbx, %rdi
callq 0xcff8
movq %rax, %r12
movq 0x30(%rbx), %r14
movq 0x58(%rbx), %r15
movq 0x18(%r14), %rax
movslq 0x8(%rax), %rcx
movslq 0x28(%r15), %rax
addq $0x20, %r15
cmpl %eax, %ecx
jge 0xcb97
subq %rcx, %rax
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rcx
addq (%r15), %rcx
cmpq %r12, (%rcx)
je 0xcee0
addq $0x18, %rcx
decq %rax
jne 0xcb85
movq %rbx, %rdi
movl $0x120, %esi            # imm = 0x120
callq 0xd1f5
movq %r14, %rdi
callq 0x157e1
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %ebp, %ecx
movl %eax, %r8d
callq 0xe474
movl %eax, %ebp
movl 0x10(%rbx), %eax
cmpl $0x11f, %eax            # imm = 0x11F
jg 0xcbd5
cmpl $0x3b, %eax
je 0xcbe0
jmp 0xcce4
cmpl $0x120, %eax            # imm = 0x120
jne 0xce25
movq %rbx, %rdi
callq 0xc5c7
jmp 0xcbc1
movq 0x30(%rbx), %rax
movq %rax, 0x28(%rsp)
movzbl 0x3c(%rax), %eax
movl %eax, 0x24(%rsp)
leaq 0x14fac(%rip), %rsi     # 0x21bae
movl $0xf, %edx
movq %rbx, %rdi
callq 0x16e18
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
leaq 0x14f9d(%rip), %rsi     # 0x21bbe
movl $0xb, %edx
movq %rbx, %rdi
callq 0x16e18
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
leaq 0x14f8a(%rip), %rsi     # 0x21bca
movl $0xd, %edx
movq %rbx, %rdi
callq 0x16e18
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
movq %rbx, %rdi
movq %r12, %rsi
callq 0xdf67
movl $0x1, %r12d
cmpl $0x2c, 0x10(%rbx)
jne 0xcc8f
movq %rbx, %rdi
callq 0x16f0a
movq %rbx, %rdi
callq 0xcff8
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
incl %r12d
jmp 0xcc69
movq %rbx, %rdi
movl $0x10c, %esi            # imm = 0x10C
callq 0xd1f5
movl 0x4(%rbx), %r15d
movq %rsp, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe3df
movq %rbx, %rdi
movl $0x3, %esi
movl %eax, %edx
movq %r13, %rcx
callq 0xe85b
movq 0x28(%rsp), %rdi
movl $0x3, %esi
callq 0x159e5
movq %rbx, %rdi
movl 0x24(%rsp), %esi
movl %r15d, %edx
movl %r12d, %ecx
xorl %r8d, %r8d
jmp 0xce74
addl $0xfffffefc, %eax       # imm = 0xFFFFFEFC
cmpl $0x3, %eax
jae 0xcd03
movq 0x18(%r14), %rax
movb 0x10(%rax), %al
movq (%r15), %rcx
movslq %ebp, %rdx
leaq (%rdx,%rdx,2), %rdx
movb %al, 0x10(%rcx,%rdx,8)
movslq %ebp, %rax
leaq (%rax,%rax,2), %rsi
shlq $0x3, %rsi
addq (%r15), %rsi
movq %rbx, %rdi
callq 0xe4f8
jmp 0xcebc
xorl %edx, %edx
leaq 0x30(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0xda27
movq 0x30(%rbx), %rdi
movq %rsp, %rsi
movq %r14, %rdx
callq 0x16000
movq 0x30(%rbx), %rdi
movl %ebp, %esi
callq 0x1697a
jmp 0xcebc
movq %rbx, %rdi
callq 0xcff8
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
movl $0x1, %ebp
cmpl $0x2c, 0x10(%rbx)
jne 0xcd8e
movq %rbx, %rdi
callq 0x16f0a
movq %rbx, %rdi
callq 0xcff8
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdf67
incl %ebp
jmp 0xcd69
cmpl $0x3d, 0x10(%rbx)
jne 0xce00
movq %rbx, %rdi
callq 0x16f0a
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xe3df
movl %eax, %edx
jmp 0xce09
cmpl $0xd, 0x8(%rsp)
jne 0xcf21
movq (%r14), %rax
movq 0x38(%rax), %rax
movslq 0x10(%rsp), %rcx
movl $0xff803fff, %edx       # imm = 0xFF803FFF
andl (%rax,%rcx,4), %edx
orl $0x4000, %edx           # imm = 0x4000
movl %edx, (%rax,%rcx,4)
jmp 0xcebc
xorl %ebp, %ebp
jmp 0xcea4
movq %rsp, %rsi
movq %r14, %rdi
cmpl $0x1, %r15d
jne 0xce97
callq 0x15e97
movl %eax, %esi
movl $0x1, %ebp
jmp 0xcea4
movl $0x0, (%rsp)
xorl %edx, %edx
movq %rsp, %rcx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe85b
movq %rbx, %rdi
movl %ebp, %esi
callq 0xdf0d
jmp 0xcebc
cmpl $0x121, %eax            # imm = 0x121
je 0xccee
jmp 0xcd03
movzbl 0x3c(%r13), %r12d
movl $0x1, %esi
movq %r13, %rdi
callq 0x15b98
movq %r13, %rdi
movl %r12d, %esi
movl %eax, %edx
callq 0x15997
movq %r13, %rdi
movl $0x1, %esi
callq 0x15a12
movq %rbx, %rdi
movl %r15d, %esi
movl %ebp, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0xe71e
movq %rbx, %rdi
movl $0x106, %esi            # imm = 0x106
movl $0x108, %edx            # imm = 0x108
movl %ebp, %ecx
callq 0xcf87
movq %r14, %rdi
callq 0xd204
jmp 0xcebc
callq 0x15d1e
movzbl 0x3a(%r14), %esi
movl %r15d, %ebp
movq %r14, %rdi
movl %ebp, %edx
callq 0x157cb
cmpl $0x3b, 0x10(%rbx)
jne 0xcebc
movq %rbx, %rdi
callq 0x16f0a
movq 0x30(%rbx), %rax
movb 0x3a(%rax), %cl
movb %cl, 0x3c(%rax)
movq 0x38(%rbx), %rax
decw 0xc6(%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r14), %rax
movq 0x38(%rax), %rdi
addq $0x18, %r12
movl 0xc(%rcx), %ecx
leaq 0x14ce2(%rip), %rsi     # 0x21bd8
movq %r12, %rdx
xorl %eax, %eax
callq 0xbf04
movq 0x10(%r14), %rdi
movq %rax, %rsi
callq 0xe610
movq 0x30(%rbx), %rdi
leaq 0x14b05(%rip), %rdx     # 0x21a1c
movl $0xc8, %esi
callq 0xc567
leaq 0x14cd6(%rip), %rsi     # 0x21bfe
jmp 0xcf31
leaq 0x14c45(%rip), %rsi     # 0x21b76
movq %rbx, %rdi
callq 0x16d86