// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: propagatemark
static l_mem propagatemark(global_State*g){
GCObject*o=g->gray;
gray2black(o);
switch(o->gch.tt){
case 5:{
Table*h=gco2h(o);
g->gray=h->gclist;
if(traversetable(g,h))
black2gray(o);
return sizeof(Table)+sizeof(TValue)*h->sizearray+
sizeof(Node)*sizenode(h);
}
case 6:{
Closure*cl=gco2cl(o);
g->gray=cl->c.gclist;
traverseclosure(g,cl);
return(cl->c.isC)?sizeCclosure(cl->c.nupvalues):
sizeLclosure(cl->l.nupvalues);
}
case 8:{
lua_State*th=gco2th(o);
g->gray=th->gclist;
th->gclist=g->grayagain;
g->grayagain=o;
black2gray(o);
traversestack(g,th);
return sizeof(lua_State)+sizeof(TValue)*th->stacksize+
sizeof(CallInfo)*th->size_ci;
}
case(8+1):{
Proto*p=gco2p(o);
g->gray=p->gclist;
traverseproto(g,p);
return sizeof(Proto)+sizeof(Instruction)*p->sizecode+
sizeof(Proto*)*p->sizep+
sizeof(TValue)*p->sizek+
sizeof(int)*p->sizelineinfo+
sizeof(LocVar)*p->sizelocvars+
sizeof(TString*)*p->sizeupvalues;
}
default:return 0;
}
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movb 0x9(%rax), %cl
orb $0x4, %cl
movb %cl, 0x9(%rax)
movq 0x30(%rsp), %rax
movzbl 0x8(%rax), %eax
addl $-0x5, %eax
movl %eax, %ecx
movq %rcx, 0x8(%rsp)
subl $0x4, %eax
ja 0xd940
movq 0x8(%rsp), %rax
leaq 0x14a17(%rip), %rcx     # 0x22134
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x30(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x30(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0xdf70
cmpl $0x0, %eax
je 0xd768
movq 0x30(%rsp), %rax
movzbl 0x9(%rax), %ecx
andl $0xfb, %ecx
movb %cl, 0x9(%rax)
movq 0x28(%rsp), %rax
movslq 0x38(%rax), %rax
shlq $0x4, %rax
addq $0x40, %rax
movq 0x28(%rsp), %rcx
movzbl 0xb(%rcx), %ecx
movl %ecx, %ecx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
jmp 0xd949
movq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x38(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xe2b0
movq 0x20(%rsp), %rax
movzbl 0xa(%rax), %eax
cmpl $0x0, %eax
je 0xd7f4
movq 0x20(%rsp), %rax
movzbl 0xb(%rax), %eax
subl $0x1, %eax
cltq
shlq $0x4, %rax
addl $0x38, %eax
movl %eax, 0x4(%rsp)
jmp 0xd80d
movq 0x20(%rsp), %rax
movzbl 0xb(%rax), %eax
subl $0x1, %eax
cltq
shlq $0x3, %rax
addl $0x30, %eax
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %eax
cltq
movq %rax, 0x40(%rsp)
jmp 0xd949
movq 0x30(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0xa0(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x38(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0xa0(%rax)
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x30(%rsp), %rax
movzbl 0x9(%rax), %ecx
andl $0xfb, %ecx
movb %cl, 0x9(%rax)
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xe410
movq 0x18(%rsp), %rax
movslq 0x58(%rax), %rax
shlq $0x4, %rax
addq $0xb8, %rax
movq 0x18(%rsp), %rcx
movslq 0x5c(%rcx), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
jmp 0xd949
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x68(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x38(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xe550
movq 0x10(%rsp), %rax
movslq 0x50(%rax), %rax
shlq $0x2, %rax
addq $0x78, %rax
movq 0x10(%rsp), %rcx
movslq 0x58(%rcx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq 0x10(%rsp), %rcx
movslq 0x4c(%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x10(%rsp), %rcx
movslq 0x54(%rcx), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq 0x10(%rsp), %rcx
movslq 0x5c(%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x10(%rsp), %rcx
movslq 0x48(%rcx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
jmp 0xd949
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)