// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: traversetable
static int traversetable(global_State*g,Table*h){
int i;
int weakkey=0;
int weakvalue=0;
const TValue*mode;
if(h->metatable)
markobject(g,h->metatable);
mode=gfasttm(g,h->metatable,TM_MODE);
if(mode&&ttisstring(mode)){
weakkey=(strchr(svalue(mode),'k')!=NULL);
weakvalue=(strchr(svalue(mode),'v')!=NULL);
if(weakkey||weakvalue){
h->marked&=~(bitmask(3)|bitmask(4));
h->marked|=cast_byte((weakkey<<3)|
(weakvalue<<4));
h->gclist=g->weak;
g->weak=obj2gco(h);
}
}
if(weakkey&&weakvalue)return 1;
if(!weakvalue){
i=h->sizearray;
while(i--)
markvalue(g,&h->array[i]);
}
i=sizenode(h);
while(i--){
Node*n=gnode(h,i);
if(ttisnil(gval(n)))
removeentry(n);
else{
if(!weakkey)markvalue(g,gkey(n));
if(!weakvalue)markvalue(g,gval(n));
}
}
return weakkey||weakvalue;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movl $0x0, 0x38(%rsp)
movl $0x0, 0x34(%rsp)
movq 0x40(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0xdfc4
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0xdfc2
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x51c0
jmp 0xdfc4
movq 0x40(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0xdfd9
xorl %eax, %eax
movq %rax, 0x18(%rsp)
jmp 0xe025
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movzbl 0xa(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0xdff7
xorl %eax, %eax
movq %rax, 0x10(%rsp)
jmp 0xe01b
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x48(%rsp), %rax
movq 0x140(%rax), %rdx
movl $0x3, %esi
callq 0xba80
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0xe0f6
movq 0x28(%rsp), %rax
cmpl $0x4, 0x8(%rax)
jne 0xe0f6
movq 0x28(%rsp), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movl $0x6b, %esi
callq 0x3100
cmpq $0x0, %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x38(%rsp)
movq 0x28(%rsp), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movl $0x76, %esi
callq 0x3100
cmpq $0x0, %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x34(%rsp)
cmpl $0x0, 0x38(%rsp)
jne 0xe0a4
cmpl $0x0, 0x34(%rsp)
je 0xe0f4
movq 0x40(%rsp), %rax
movzbl 0x9(%rax), %ecx
andl $-0x19, %ecx
movb %cl, 0x9(%rax)
movl 0x38(%rsp), %eax
shll $0x3, %eax
movl 0x34(%rsp), %ecx
shll $0x4, %ecx
orl %ecx, %eax
movzbl %al, %edx
movq 0x40(%rsp), %rax
movzbl 0x9(%rax), %ecx
orl %edx, %ecx
movb %cl, 0x9(%rax)
movq 0x48(%rsp), %rax
movq 0x48(%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x48(%rax)
jmp 0xe0f6
cmpl $0x0, 0x38(%rsp)
je 0xe111
cmpl $0x0, 0x34(%rsp)
je 0xe111
movl $0x1, 0x54(%rsp)
jmp 0xe2a2
cmpl $0x0, 0x34(%rsp)
jne 0xe19f
movq 0x40(%rsp), %rax
movl 0x38(%rax), %eax
movl %eax, 0x3c(%rsp)
movl 0x3c(%rsp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, 0x3c(%rsp)
cmpl $0x0, %eax
je 0xe19d
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x3c(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x4, 0x8(%rax)
jl 0xe19b
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x3c(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0xe19b
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x3c(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rsi
callq 0x51c0
jmp 0xe128
jmp 0xe19f
movq 0x40(%rsp), %rax
movzbl 0xb(%rax), %eax
movl %eax, %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
movl %eax, 0x3c(%rsp)
movl 0x3c(%rsp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, 0x3c(%rsp)
cmpl $0x0, %eax
je 0xe27c
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rax
movslq 0x3c(%rsp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpl $0x0, 0x8(%rax)
jne 0xe1ff
movq 0x20(%rsp), %rdi
callq 0xe740
jmp 0xe277
cmpl $0x0, 0x38(%rsp)
jne 0xe23b
movq 0x20(%rsp), %rax
cmpl $0x4, 0x18(%rax)
jl 0xe239
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0xe239
movq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x51c0
jmp 0xe23b
cmpl $0x0, 0x34(%rsp)
jne 0xe275
movq 0x20(%rsp), %rax
cmpl $0x4, 0x8(%rax)
jl 0xe273
movq 0x20(%rsp), %rax
movq (%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0xe273
movq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rax
movq (%rax), %rsi
callq 0x51c0
jmp 0xe275
jmp 0xe277
jmp 0xe1b8
movb $0x1, %al
cmpl $0x0, 0x38(%rsp)
movb %al, 0xf(%rsp)
jne 0xe295
cmpl $0x0, 0x34(%rsp)
setne %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax,%rax)