// File: /workspace/github_c_makefile_star2_O3/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
movl 0x4(%rdi), %ebp
movq 0x30(%rdi), %r14
movq 0x38(%rdi), %rax
movzwl 0xc6(%rax), %ecx
incl %ecx
movw %cx, 0xc6(%rax)
movzwl %cx, %eax
cmpl $0xc9, %eax
jae 0xd584
movq %rdi, %rbx
movl 0x10(%rdi), %eax
leal -0x102(%rax), %ecx
cmpl $0x14, %ecx
ja 0xcb50
leaq 0x15e00(%rip), %rax     # 0x22930
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %r14, %rdi
callq 0x16257
movq %rbx, %rdi
movl %eax, %esi
callq 0xd691
jmp 0xd505
cmpl $0x120, %eax            # imm = 0x120
je 0xd158
cmpl $0x3b, %eax
je 0xcbde
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xe193
movl 0x10(%rbx), %eax
cmpl $0x3d, %eax
je 0xcb7e
cmpl $0x2c, %eax
jne 0xd3c5
movq %rsp, %rsi
movq $0x0, (%rsi)
movq %rbx, %rdi
movl $0x1, %edx
callq 0xee1d
jmp 0xd505
movq %rbx, %rdi
callq 0x17a92
movq 0x30(%rbx), %r14
movl 0x10(%rbx), %eax
xorl %esi, %esi
leal -0x104(%rax), %ecx
cmpl $0x1d, %ecx
ja 0xd3f2
movl $0x20020007, %edx       # imm = 0x20020007
btl %ecx, %edx
jae 0xd3f2
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %edx
callq 0x162a6
cmpl $0x3b, 0x10(%rbx)
jne 0xd505
movq %rbx, %rdi
callq 0x17a92
jmp 0xd505
movq %rbx, %rdi
callq 0x17a92
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe7c9
movl 0x10(%rbx), %eax
cmpl $0x2e, %eax
jne 0xcc16
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe62c
jmp 0xcc01
cmpl $0x3a, %eax
jne 0xd32d
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xe62c
movl $0x1, %edx
jmp 0xd32f
movq %rbx, %rdi
callq 0x17a92
cmpl $0x109, 0x10(%rbx)      # imm = 0x109
jne 0xd360
movq %rbx, %rdi
callq 0x17a92
movq 0x30(%rbx), %r15
movq %rbx, %rdi
callq 0xd66f
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
movq 0x30(%rbx), %rdi
movl $0x1, %esi
callq 0xe3ef
movl 0x4(%rbx), %ecx
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xdf0a
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 0xd505
movq %rbx, %rdi
callq 0x17a92
movq %rbx, %rdi
callq 0xd5b0
movq %rbx, %rdi
movl $0x106, %esi            # imm = 0x106
movl $0x103, %edx            # imm = 0x103
movl %ebp, %ecx
callq 0xd5fe
jmp 0xd505
movl %ebp, 0x20(%rsp)
leaq 0x24(%rsp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
leaq 0x28(%rsp), %r12
xorl %ebp, %ebp
movq %rsp, %r15
movq 0x30(%rbx), %r13
movq %rbx, %rdi
callq 0x17a92
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xd88f
movq %rbx, %rdi
movl $0x113, %esi            # imm = 0x113
callq 0xd6fa
movl 0x10(%rbx), %eax
orl $0x8, %eax
cmpl $0x10a, %eax            # imm = 0x10A
jne 0xcdba
movq 0x30(%rbx), %rdi
movq %r12, %rsi
callq 0x16e9a
movb %bpl, 0x12(%rsp)
movb 0x3a(%r13), %al
movb %al, 0x10(%rsp)
movq 0x10(%r13), %rax
movq 0x58(%rax), %rax
movl 0x28(%rax), %ecx
movl %ecx, 0x8(%rsp)
movl 0x18(%rax), %eax
movl %eax, 0xc(%rsp)
movb %bpl, 0x11(%rsp)
movq 0x18(%r13), %rax
movq %rax, (%rsp)
movq %r15, 0x18(%r13)
movl 0x38(%rsp), %esi
movq %rbx, %rdi
callq 0xd691
movl 0x10(%rbx), %eax
cmpl $0x11f, %eax            # imm = 0x11F
jg 0xcd92
cmpl $0x3b, %eax
je 0xcd99
jmp 0xcda3
cmpl $0x120, %eax            # imm = 0x120
jne 0xce01
movq %rbx, %rdi
callq 0xcae1
jmp 0xcd81
addl $0xfffffefc, %eax       # imm = 0xFFFFFEFC
cmpl $0x3, %eax
jae 0xce08
movq %r13, %rdi
callq 0xd709
jmp 0xce55
movq 0x30(%rbx), %rdi
movq %r12, %rsi
callq 0x16d47
movb %bpl, 0x12(%rsp)
movb 0x3a(%r13), %al
movb %al, 0x10(%rsp)
movq 0x10(%r13), %rax
movq 0x58(%rax), %rax
movl 0x28(%rax), %ecx
movl %ecx, 0x8(%rsp)
movl 0x18(%rax), %eax
movl %eax, 0xc(%rsp)
movb %bpl, 0x11(%rsp)
movq 0x18(%r13), %rax
movq %rax, (%rsp)
movq %r15, 0x18(%r13)
movl 0x3c(%rsp), %r15d
jmp 0xce13
cmpl $0x121, %eax            # imm = 0x121
je 0xcdad
movq %r13, %rdi
callq 0x16257
movl %eax, %r15d
movq %rbx, %rdi
callq 0xc8dc
movq %r13, %rdi
callq 0xd709
movl 0x10(%rbx), %eax
andl $-0x2, %eax
cmpl $0x104, %eax            # imm = 0x104
jne 0xce47
movq %r13, %rdi
callq 0x16257
movq %r13, %rdi
leaq 0x24(%rsp), %rsi
movl %eax, %edx
callq 0x161d4
movq %r13, %rdi
movl %r15d, %esi
callq 0x162c3
movq %rsp, %r15
movl 0x10(%rbx), %eax
cmpl $0x105, %eax            # imm = 0x105
je 0xccfe
cmpl $0x104, %eax            # imm = 0x104
jne 0xce7a
movq %rbx, %rdi
callq 0x17a92
movq %rbx, %rdi
callq 0xd5b0
movq %rbx, %rdi
movl $0x106, %esi            # imm = 0x106
movl $0x10b, %edx            # imm = 0x10B
movl 0x20(%rsp), %ecx
callq 0xd5fe
movl 0x24(%rsp), %esi
movq %r14, %rdi
jmp 0xd14e
leaq 0x28(%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 0x17a92
movq %rbx, %rdi
callq 0xd66f
movq %rax, %r12
movl 0x10(%rbx), %eax
cmpl $0x2c, %eax
je 0xd1fa
cmpl $0x10c, %eax            # imm = 0x10C
je 0xd1fa
cmpl $0x3d, %eax
jne 0xd5a1
movq 0x30(%rbx), %r13
movzbl 0x3c(%r13), %r15d
leaq 0x15ce9(%rip), %rsi     # 0x22bfb
movl $0xb, %edx
movq %rbx, %rdi
callq 0x179a0
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
leaq 0x15cd6(%rip), %rsi     # 0x22c07
movl $0xb, %edx
movq %rbx, %rdi
callq 0x179a0
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
leaq 0x15cc3(%rip), %rsi     # 0x22c13
movl $0xa, %edx
movq %rbx, %rdi
callq 0x179a0
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe43f
movq %rbx, %rdi
movl $0x3d, %esi
callq 0xd6fa
movq %rsp, %r12
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xd88f
movq 0x30(%rbx), %rdi
movq %r12, %rsi
callq 0x168d7
movq %rbx, %rdi
movl $0x2c, %esi
callq 0xd6fa
movq %rsp, %r12
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xd88f
movq 0x30(%rbx), %rdi
movq %r12, %rsi
callq 0x168d7
cmpl $0x2c, 0x10(%rbx)
jne 0xd4a5
movq %rbx, %rdi
callq 0x17a92
movq %rsp, %r12
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xd88f
movq 0x30(%rbx), %rdi
movq %r12, %rsi
callq 0x168d7
jmp 0xd4d1
movq %r14, %rdi
callq 0x162bc
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)
leaq 0x28(%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 0x17a92
movq %rbx, %rdi
callq 0xc8dc
movq %rbx, %rdi
movl $0x115, %esi            # imm = 0x115
movl $0x111, %edx            # imm = 0x111
movl %ebp, %ecx
callq 0xd5fe
movq %rbx, %rdi
callq 0xebf4
movl %eax, %ebp
cmpb $0x0, 0x11(%r12)
je 0xd099
movzbl 0x38(%rsp), %edx
movq %r14, %rdi
movl %ebp, %esi
callq 0x16375
movq %r14, %rdi
callq 0xd709
movq %r14, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x162d4
jmp 0xd4fd
movq %rbx, %rdi
callq 0x17a92
movq %r14, %rdi
callq 0x162bc
movl %eax, %r12d
movq %rbx, %rdi
callq 0xebf4
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 0xd6fa
movq %rbx, %rdi
callq 0xd5b0
movq %r14, %rdi
callq 0x16257
movq %r14, %rdi
movl %eax, %esi
movl %r12d, %edx
callq 0x162d4
movq %rbx, %rdi
movl $0x106, %esi            # imm = 0x106
movl $0x116, %edx            # imm = 0x116
movl %ebp, %ecx
callq 0xd5fe
movq %r14, %rdi
callq 0xd709
movq %r14, %rdi
movl %r15d, %esi
callq 0x162c3
jmp 0xd505
movq %rbx, %rdi
callq 0x17a92
movq %rbx, %rdi
callq 0xd66f
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 0xd1a7
subq %rcx, %rax
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rcx
addq (%r15), %rcx
cmpq %r12, (%rcx)
je 0xd558
addq $0x18, %rcx
decq %rax
jne 0xd195
movq %rbx, %rdi
movl $0x120, %esi            # imm = 0x120
callq 0xd6fa
movq %r14, %rdi
callq 0x162bc
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %ebp, %ecx
movl %eax, %r8d
callq 0xe9c7
movl %eax, %ebp
movl 0x10(%rbx), %eax
cmpl $0x11f, %eax            # imm = 0x11F
jg 0xd1e5
cmpl $0x3b, %eax
je 0xd1f0
jmp 0xd2f5
cmpl $0x120, %eax            # imm = 0x120
jne 0xd48f
movq %rbx, %rdi
callq 0xcae1
jmp 0xd1d1
movq 0x30(%rbx), %rax
movq %rax, 0x40(%rsp)
movzbl 0x3c(%rax), %eax
movl %eax, 0x20(%rsp)
leaq 0x15a0c(%rip), %rsi     # 0x22c1e
movl $0xf, %edx
movq %rbx, %rdi
callq 0x179a0
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
leaq 0x159fd(%rip), %rsi     # 0x22c2e
movl $0xb, %edx
movq %rbx, %rdi
callq 0x179a0
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
leaq 0x159ea(%rip), %rsi     # 0x22c3a
movl $0xd, %edx
movq %rbx, %rdi
callq 0x179a0
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe43f
movl $0x1, %r12d
cmpl $0x2c, 0x10(%rbx)
jne 0xd29f
movq %rbx, %rdi
callq 0x17a92
movq %rbx, %rdi
callq 0xd66f
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
incl %r12d
jmp 0xd279
movq %rbx, %rdi
movl $0x10c, %esi            # imm = 0x10C
callq 0xd6fa
movl 0x4(%rbx), %r15d
movq %rsp, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe932
movq 0x30(%rbx), %rdi
movl $0x3, %esi
movl %eax, %edx
movq %r13, %rcx
callq 0xeda2
movq 0x40(%rsp), %rdi
movl $0x3, %esi
callq 0x164cf
movq %rbx, %rdi
movl 0x20(%rsp), %esi
movl %r15d, %edx
movl %r12d, %ecx
xorl %r8d, %r8d
jmp 0xd4e4
addl $0xfffffefc, %eax       # imm = 0xFFFFFEFC
cmpl $0x3, %eax
jae 0xd49a
movq 0x18(%r14), %rax
movb 0x10(%rax), %dl
movq (%r15), %rax
movslq %ebp, %rcx
leaq (%rcx,%rcx,2), %rsi
movb %dl, 0x10(%rax,%rsi,8)
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
movq %rbx, %rdi
callq 0xea4b
jmp 0xd505
xorl %edx, %edx
leaq 0x28(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0xdf0a
movq 0x30(%rbx), %rdi
movq %rsp, %rsi
movq %r14, %rdx
callq 0x16bc4
movq 0x30(%rbx), %rdi
movl %ebp, %esi
callq 0x17508
jmp 0xd505
movq %rbx, %rdi
callq 0xd66f
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
movl 0x10(%rbx), %eax
movl $0x1, %ebp
cmpl $0x2c, %eax
jne 0xd3a2
movq %rbx, %rdi
callq 0x17a92
movq %rbx, %rdi
callq 0xd66f
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43f
incl %ebp
movl 0x10(%rbx), %eax
jmp 0xd37b
cmpl $0x3d, %eax
jne 0xd46b
movq %rbx, %rdi
callq 0x17a92
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xe932
movl %eax, %edx
jmp 0xd474
cmpl $0xd, 0x8(%rsp)
jne 0xd598
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 0xd505
movl $0x0, %ebp
cmpl $0x3b, %eax
je 0xcbca
movq %rsp, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe932
movl %eax, %r15d
movl (%r12), %eax
addl $-0xd, %eax
cmpl $0x1, %eax
ja 0xd529
movq %rsp, %r12
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %r14, %rdi
movq %r12, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x16789
movl (%r12), %eax
xorl $0xd, %eax
xorl $0x1, %r15d
orl %eax, %r15d
jne 0xd461
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 0xcbca
movl $0x0, (%rsp)
xorl %edx, %edx
movq 0x30(%rbx), %rdi
movq %rsp, %rcx
movl %ebp, %esi
callq 0xeda2
movq 0x30(%rbx), %rdi
movl %ebp, %esi
callq 0xe3ef
jmp 0xd505
cmpl $0x121, %eax            # imm = 0x121
je 0xd303
movq (%r15), %rax
movslq %ebp, %rcx
jmp 0xd318
movzbl 0x3c(%r13), %r12d
movl $0x1, %esi
movq %r13, %rdi
callq 0x1675a
movq %r13, %rdi
movl %r12d, %esi
movl %eax, %edx
callq 0x16481
movq %r13, %rdi
movl $0x1, %esi
callq 0x164fc
movq %rbx, %rdi
movl %r15d, %esi
movl %ebp, %edx
movl $0x1, %ecx
movl $0x1, %r8d
callq 0xec61
movq %rbx, %rdi
movl $0x106, %esi            # imm = 0x106
movl $0x108, %edx            # imm = 0x108
movl %ebp, %ecx
callq 0xd5fe
movq %r14, %rdi
callq 0xd709
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 %rsp, %rsi
movq %r14, %rdi
cmpl $0x1, %r15d
jne 0xd546
callq 0x16a59
movl %eax, %esi
movl $0x1, %ebp
jmp 0xcbca
callq 0x168d7
movzbl 0x3a(%r14), %esi
movl %r15d, %ebp
jmp 0xcbca
movq 0x10(%r14), %rax
movq 0x38(%rax), %rdi
addq $0x18, %r12
movl 0xc(%rcx), %ecx
leaq 0x156da(%rip), %rsi     # 0x22c48
movq %r12, %rdx
xorl %eax, %eax
callq 0xc391
movq 0x10(%r14), %rdi
movq %rax, %rsi
callq 0xeb67
leaq 0x15501(%rip), %rdx     # 0x22a8c
movq %r14, %rdi
movl $0xc8, %esi
callq 0xca81
leaq 0x156cf(%rip), %rsi     # 0x22c6e
jmp 0xd5a8
leaq 0x1563e(%rip), %rsi     # 0x22be6
movq %rbx, %rdi
callq 0x1790e