// File: /workspace/github_c_makefile_star2_O2/kieselsteini[P]PiXL-old/lua53.c
// Function: luaH_resize
void luaH_resize (lua_State *L, Table *t, unsigned int nasize,
                                          unsigned int nhsize) {
  unsigned int i;
  int j;
  unsigned int oldasize = t->sizearray;
  int oldhsize = allocsizenode(t);
  Node *nold = t->node;  /* save old hash ... */
  if (nasize > oldasize)  /* array part must grow? */
    setarrayvector(L, t, nasize);
  /* create new hash part with appropriate size */
  setnodevector(L, t, nhsize);
  if (nasize < oldasize) {  /* array part must shrink? */
    t->sizearray = nasize;
    /* re-insert elements from vanishing slice */
    for (i=nasize; i<oldasize; i++) {
      if (!ttisnil(&t->array[i]))
        luaH_setint(L, t, i + 1, &t->array[i]);
    }
    /* shrink array */
    luaM_reallocvector(L, t->array, oldasize, nasize, TValue);
  }
  /* re-insert elements from hash part */
  for (j = oldhsize - 1; j >= 0; j--) {
    Node *old = nold + j;
    if (!ttisnil(gval(old))) {
      /* doesn't need barrier/invalidate cache, as entry was
         already present in the table */
      setobjt2t(L, luaH_set(L, t, gkey(old)), gval(old));
    }
  }
  if (oldhsize > 0)  /* not the dummy node? */
    luaM_freearray(L, nold, cast(size_t, oldhsize)); /* free old hash */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r8d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl 0xc(%rsi), %r12d
cmpq $0x0, 0x20(%rsi)
pushq $0x1
popq %r15
je 0x88df
movb 0xb(%r14), %cl
movl %r15d, %eax
shll %cl, %eax
movl %eax, 0x8(%rsp)
jmp 0x88e7
movl $0x0, 0x8(%rsp)
movq 0x18(%r14), %rax
movq %rax, 0x10(%rsp)
movl %ebp, %r13d
cmpl %ebp, %r12d
jae 0x8947
movl %r8d, 0x4(%rsp)
movq 0x10(%r14), %rsi
movq %r12, %rdx
shlq $0x4, %rdx
movq %r13, %rcx
shlq $0x4, %rcx
movq %rbx, %rdi
callq 0xde9a
movq %rax, 0x10(%r14)
movl 0xc(%r14), %ecx
movq %rcx, %rdx
shlq $0x4, %rdx
addq %rdx, %rax
addq $0x8, %rax
cmpq %r13, %rcx
jae 0x893e
andl $0x0, (%rax)
incq %rcx
addq $0x10, %rax
jmp 0x892d
movl %ebp, 0xc(%r14)
movl 0x4(%rsp), %r8d
testl %r8d, %r8d
je 0x89af
movl %ebp, 0x4(%rsp)
movl %r8d, %edi
callq 0x1224b
cmpl $0x1f, %eax
jge 0x8a9d
movl %eax, 0xc(%rsp)
movl %eax, %ecx
shll %cl, %r15d
shlq $0x5, %r15
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0xde9a
movq %rax, 0x18(%r14)
cmpq %rbp, %r15
je 0x899d
movq 0x18(%r14), %rax
andq $0x0, 0x18(%rax,%rbp)
andl $0x0, 0x8(%rax,%rbp)
addq $0x20, %rbp
jmp 0x8983
movl 0xc(%rsp), %eax
movb %al, 0xb(%r14)
addq 0x18(%r14), %r15
movl 0x4(%rsp), %ebp
jmp 0x89c2
leaq 0x213ba(%rip), %rax     # 0x29d70
movq %rax, 0x18(%r14)
movb $0x0, 0xb(%r14)
xorl %r15d, %r15d
movq %r15, 0x20(%r14)
cmpl %ebp, %r12d
jbe 0x8a20
movl %ebp, 0xc(%r14)
movq %r13, %rbp
shlq $0x4, %rbp
movq %r13, %r15
movq 0x10(%r14), %rcx
cmpq %r12, %r15
jae 0x8a03
incq %r15
cmpl $0x0, 0x8(%rcx,%rbp)
je 0x89fd
addq %rbp, %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x909c
addq $0x10, %rbp
jmp 0x89d9
shlq $0x4, %r12
shlq $0x4, %r13
movq %rbx, %rdi
movq %rcx, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0xde9a
movq %rax, 0x10(%r14)
movl 0x8(%rsp), %ebp
movl %ebp, %r15d
shlq $0x5, %r15
movq 0x10(%rsp), %rax
leaq (%r15,%rax), %r12
addq $-0x10, %r12
testl %ebp, %ebp
jle 0x8a67
cmpl $0x0, -0x8(%r12)
je 0x8a5f
leaq -0x10(%r12), %r13
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x8ff3
movups (%r13), %xmm0
movups %xmm0, (%rax)
decl %ebp
addq $-0x20, %r12
jmp 0x8a38
cmpl $0x0, 0x8(%rsp)
jle 0x8a8e
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r15, %rdx
xorl %ecx, %ecx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xde9a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x23062(%rip), %rsi     # 0x2bb06
movq %rbx, %rdi
xorl %eax, %eax
callq 0xd5f7