// File: /workspace/github_c_makefile_star2_O0/tylerneylon[P]APIsWithLua/lua/lparser.c
// Function: close_func
static void close_func (LexState *ls) {
  lua_State *L = ls->L;
  FuncState *fs = ls->fs;
  Proto *f = fs->f;
  luaK_ret(fs, 0, 0);  /* final return */
  leaveblock(fs);
  luaM_reallocvector(L, f->code, f->sizecode, fs->pc, Instruction);
  f->sizecode = fs->pc;
  luaM_reallocvector(L, f->lineinfo, f->sizelineinfo, fs->pc, int);
  f->sizelineinfo = fs->pc;
  luaM_reallocvector(L, f->k, f->sizek, fs->nk, TValue);
  f->sizek = fs->nk;
  luaM_reallocvector(L, f->p, f->sizep, fs->np, Proto *);
  f->sizep = fs->np;
  luaM_reallocvector(L, f->locvars, f->sizelocvars, fs->nlocvars, LocVar);
  f->sizelocvars = fs->nlocvars;
  luaM_reallocvector(L, f->upvalues, f->sizeupvalues, fs->nups, Upvaldesc);
  f->sizeupvalues = fs->nups;
  lua_assert(fs->bl == NULL);
  ls->fs = fs->prev;
  luaC_checkGC(L);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x21f60
movq -0x18(%rbp), %rdi
callq 0x12fa0
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rsi
movq -0x20(%rbp), %rax
movslq 0x18(%rax), %rdx
shlq $0x2, %rdx
movq -0x18(%rbp), %rax
movslq 0x20(%rax), %rcx
shlq $0x2, %rcx
callq 0x10130
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x18(%rbp), %rax
movl 0x20(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x48(%rax), %rsi
movq -0x20(%rbp), %rax
movslq 0x1c(%rax), %rdx
shlq $0x2, %rdx
movq -0x18(%rbp), %rax
movslq 0x20(%rax), %rcx
shlq $0x2, %rcx
callq 0x10130
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x18(%rbp), %rax
movl 0x20(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x30(%rax), %rsi
movq -0x20(%rbp), %rax
movslq 0x14(%rax), %rdx
shlq $0x4, %rdx
movq -0x18(%rbp), %rax
movslq 0x2c(%rax), %rcx
shlq $0x4, %rcx
callq 0x10130
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x18(%rbp), %rax
movl 0x2c(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rsi
movq -0x20(%rbp), %rax
movslq 0x20(%rax), %rdx
shlq $0x3, %rdx
movq -0x18(%rbp), %rax
movslq 0x30(%rax), %rcx
shlq $0x3, %rcx
callq 0x10130
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x18(%rbp), %rax
movl 0x30(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x50(%rax), %rsi
movq -0x20(%rbp), %rax
movslq 0x24(%rax), %rdx
shlq $0x4, %rdx
movq -0x18(%rbp), %rax
movswq 0x38(%rax), %rcx
shlq $0x4, %rcx
callq 0x10130
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0x18(%rbp), %rax
movswl 0x38(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x24(%rax)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x58(%rax), %rsi
movq -0x20(%rbp), %rax
movslq 0x10(%rax), %rdx
shlq $0x4, %rdx
movq -0x18(%rbp), %rax
movzbl 0x3b(%rax), %eax
movl %eax, %ecx
shlq $0x4, %rcx
callq 0x10130
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x58(%rax)
movq -0x18(%rbp), %rax
movzbl 0x3b(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x18(%rax)
jle 0x11fee
movq -0x10(%rbp), %rdi
callq 0xe0b0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)