// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lundump.c
// Function: LoadConstants
static void LoadConstants(LoadState* S, Proto* f)
{
 int i,n;
 n=LoadInt(S);
 f->k=luaM_newvector(S->L,n,TValue);
 f->sizek=n;
 for (i=0; i<n; i++) setnilvalue(&f->k[i]);
 for (i=0; i<n; i++)
 {
  TValue* o=&f->k[i];
  int t=LoadChar(S);
  switch (t)
  {
   case LUA_TNIL:
	setnilvalue(o);
	break;
   case LUA_TBOOLEAN:
	setbvalue(o,LoadChar(S));
	break;
   case LUA_TNUMBER:
	setnvalue(o,LoadNumber(S));
	break;
   case LUA_TSTRING:
	setsvalue2n(S->L,o,LoadString(S));
	break;
    default: lua_assert(0);
  }
 }
 n=LoadInt(S);
 f->p=luaM_newvector(S->L,n,Proto*);
 f->sizep=n;
 for (i=0; i<n; i++) f->p[i]=NULL;
 for (i=0; i<n; i++)
 {
  f->p[i]=luaF_newproto(S->L);
  LoadFunction(S,f->p[i]);
 }
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq 0x50(%rsp), %rdi
callq 0x26b10
movl %eax, 0x40(%rsp)
movl 0x40(%rsp), %eax
addl $0x1, %eax
cltq
movabsq $0xfffffffffffffff, %rcx # imm = 0xFFFFFFFFFFFFFFF
cmpq %rcx, %rax
jbe 0x26c61
movq 0x50(%rsp), %rax
movq (%rax), %rdi
callq 0x18150
jmp 0x26c63
movq 0x50(%rsp), %rax
movq (%rax), %rdi
movslq 0x40(%rsp), %rcx
shlq $0x4, %rcx
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x18170
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x10(%rax)
movl 0x40(%rsp), %ecx
movq 0x48(%rsp), %rax
movl %ecx, 0x54(%rax)
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
cmpl 0x40(%rsp), %eax
jge 0x26cd3
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movslq 0x44(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl $0x0, 0x8(%rax)
movl 0x44(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x44(%rsp)
jmp 0x26ca0
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
cmpl 0x40(%rsp), %eax
jge 0x26df0
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movslq 0x44(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x38(%rsp)
movq 0x50(%rsp), %rdi
callq 0x26b50
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
movq %rax, 0x8(%rsp)
subq $0x4, %rax
ja 0x26ddc
movq 0x8(%rsp), %rax
leaq 0x1028c(%rip), %rcx     # 0x36fbc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x38(%rsp), %rax
movl $0x0, 0x8(%rax)
jmp 0x26dde
movq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x50(%rsp), %rdi
callq 0x26b50
movl %eax, %ecx
movq 0x28(%rsp), %rax
movl %ecx, (%rax)
movq 0x28(%rsp), %rax
movl $0x1, 0x8(%rax)
jmp 0x26dde
movq 0x38(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x50(%rsp), %rdi
callq 0x27250
movq 0x20(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x20(%rsp), %rax
movl $0x3, 0x8(%rax)
jmp 0x26dde
movq 0x38(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x50(%rsp), %rdi
callq 0x27280
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
movq 0x10(%rsp), %rax
movzbl 0x8(%rax), %ecx
orl $0x40, %ecx
movq 0x18(%rsp), %rax
movl %ecx, 0x8(%rax)
jmp 0x26dde
jmp 0x26dde
jmp 0x26de0
movl 0x44(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x44(%rsp)
jmp 0x26cdb
movq 0x50(%rsp), %rdi
callq 0x26b10
movl %eax, 0x40(%rsp)
movl 0x40(%rsp), %eax
addl $0x1, %eax
cltq
movabsq $0x1fffffffffffffff, %rcx # imm = 0x1FFFFFFFFFFFFFFF
cmpq %rcx, %rax
jbe 0x26e23
movq 0x50(%rsp), %rax
movq (%rax), %rdi
callq 0x18150
jmp 0x26e25
movq 0x50(%rsp), %rax
movq (%rax), %rdi
movslq 0x40(%rsp), %rcx
shlq $0x3, %rcx
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x18170
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x20(%rax)
movl 0x40(%rsp), %ecx
movq 0x48(%rsp), %rax
movl %ecx, 0x60(%rax)
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
cmpl 0x40(%rsp), %eax
jge 0x26e8f
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rax
movslq 0x44(%rsp), %rcx
movq $0x0, (%rax,%rcx,8)
movl 0x44(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x44(%rsp)
jmp 0x26e62
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
cmpl 0x40(%rsp), %eax
jge 0x26eec
movq 0x50(%rsp), %rax
movq (%rax), %rdi
callq 0x127a0
movq %rax, %rdx
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rax
movslq 0x44(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rax
movslq 0x44(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x268b0
movl 0x44(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x44(%rsp)
jmp 0x26e97
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)