// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x38(%rdi), %rbx
orb $0x4, 0x9(%rbx)
movzbl 0x8(%rbx), %ecx
xorl %eax, %eax
addl $-0x5, %ecx
cmpl $0x4, %ecx
ja 0x86cf
movq %rdi, %r14
leaq 0xbf15(%rip), %rdx      # 0x14130
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x30(%rbx), %rax
movq %rax, 0x38(%r14)
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x8243
testb $0x3, 0x9(%rsi)
je 0x8243
movq %r14, %rdi
callq 0x4593
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x84e9
testb $0x8, 0xa(%rdi)
jne 0x84e9
movq 0x140(%r14), %rdx
movl $0x3, %esi
callq 0x7682
jmp 0x84eb
movq 0xa0(%rbx), %rax
movq %rax, 0x38(%r14)
movq 0x40(%r14), %rax
movq %rax, 0xa0(%rbx)
movq %rbx, 0x40(%r14)
andb $-0x5, 0x9(%rbx)
cmpl $0x4, 0x80(%rbx)
jl 0x82a9
movq 0x78(%rbx), %rsi
testb $0x3, 0x9(%rsi)
je 0x82a9
movq %r14, %rdi
callq 0x4593
movq 0x10(%rbx), %r15
movq 0x28(%rbx), %rax
movq 0x50(%rbx), %rcx
cmpq %rax, %rcx
ja 0x82cb
movq 0x10(%rcx), %rdx
cmpq %rdx, %r15
cmovbq %rdx, %r15
addq $0x28, %rcx
jmp 0x82b5
movq 0x40(%rbx), %r12
cmpq 0x10(%rbx), %r12
jae 0x8302
cmpl $0x4, 0x8(%r12)
jl 0x82ef
movq (%r12), %rsi
testb $0x3, 0x9(%rsi)
je 0x82ef
movq %r14, %rdi
callq 0x4593
addq $0x10, %r12
jmp 0x82cf
movl $0x0, 0x8(%r12)
addq $0x10, %r12
cmpq %r15, %r12
jbe 0x82f5
movl 0x5c(%rbx), %esi
cmpl $0x4e20, %esi           # imm = 0x4E20
jg 0x8360
subq 0x40(%rbx), %r15
cmpl $0x11, %esi
jl 0x833b
movq 0x28(%rbx), %rax
subq 0x50(%rbx), %rax
shrq $0x3, %rax
imull $0x33333334, %eax, %eax # imm = 0x33333334
cmpl %esi, %eax
jge 0x833b
shrl %esi
movq %rbx, %rdi
callq 0x464e
shrq $0x2, %r15
andl $-0x4, %r15d
movl 0x58(%rbx), %esi
cmpl %esi, %r15d
setge %al
cmpl $0x5b, %esi
setl %cl
orb %al, %cl
jne 0x8360
shrl %esi
movq %rbx, %rdi
callq 0x4f7b
movslq 0x58(%rbx), %rax
shlq $0x4, %rax
movslq 0x5c(%rbx), %rcx
leaq (%rcx,%rcx,4), %rcx
leaq (%rax,%rcx,8), %rax
addq $0xb8, %rax
jmp 0x86cf
movq 0x10(%rbx), %rax
movq %rax, 0x38(%r14)
movq 0x18(%rbx), %rsi
testb $0x3, 0x9(%rsi)
je 0x8399
movq %r14, %rdi
callq 0x4593
cmpb $0x0, 0xa(%rbx)
je 0x867e
cmpb $0x0, 0xb(%rbx)
je 0x86b8
leaq 0x30(%rbx), %r15
xorl %r12d, %r12d
cmpl $0x4, (%r15)
jl 0x83cc
movq -0x8(%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0x83cc
movq %r14, %rdi
callq 0x4593
incq %r12
movzbl 0xb(%rbx), %eax
addq $0x10, %r15
cmpq %rax, %r12
jb 0x83b4
jmp 0x86b8
movq 0x68(%rbx), %rax
movq %rax, 0x38(%r14)
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x83f6
andb $-0x4, 0x9(%rax)
cmpl $0x0, 0x4c(%rbx)
jle 0x8433
movl $0x8, %r15d
xorl %r12d, %r12d
movq 0x10(%rbx), %rax
cmpl $0x4, (%rax,%r15)
jl 0x8423
movq -0x8(%rax,%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0x8423
movq %r14, %rdi
callq 0x4593
incq %r12
movslq 0x4c(%rbx), %rax
addq $0x10, %r15
cmpq %rax, %r12
jl 0x8405
cmpl $0x0, 0x48(%rbx)
jle 0x8458
xorl %eax, %eax
movq 0x38(%rbx), %rcx
movq (%rcx,%rax,8), %rcx
testq %rcx, %rcx
je 0x844c
andb $-0x4, 0x9(%rcx)
incq %rax
movslq 0x48(%rbx), %rcx
cmpq %rcx, %rax
jl 0x843b
cmpl $0x0, 0x58(%rbx)
jle 0x8488
xorl %r15d, %r15d
movq 0x20(%rbx), %rax
movq (%rax,%r15,8), %rsi
testq %rsi, %rsi
je 0x847c
testb $0x3, 0x9(%rsi)
je 0x847c
movq %r14, %rdi
callq 0x4593
incq %r15
movslq 0x58(%rbx), %rax
cmpq %rax, %r15
jl 0x8461
cmpl $0x0, 0x5c(%rbx)
jle 0x84b3
xorl %eax, %eax
xorl %ecx, %ecx
movq 0x30(%rbx), %rdx
movq (%rdx,%rax), %rdx
testq %rdx, %rdx
je 0x84a3
andb $-0x4, 0x9(%rdx)
incq %rcx
movslq 0x5c(%rbx), %rdx
addq $0x10, %rax
cmpq %rdx, %rcx
jl 0x8492
movslq 0x50(%rbx), %rax
movslq 0x58(%rbx), %rcx
movslq 0x4c(%rbx), %rdx
movslq 0x54(%rbx), %rsi
movslq 0x5c(%rbx), %rdi
addq %rdx, %rdi
movslq 0x48(%rbx), %rdx
shlq $0x4, %rdi
addq %rcx, %rdx
addq %rax, %rsi
leaq (%rdi,%rsi,4), %rax
leaq (%rax,%rdx,8), %rax
addq $0x78, %rax
jmp 0x86cf
xorl %eax, %eax
testq %rax, %rax
je 0x855d
cmpl $0x4, 0x8(%rax)
jne 0x855d
movq (%rax), %r12
addq $0x18, %r12
movq %r12, %rdi
movl $0x6b, %esi
callq 0x30f0
movq %rax, %r15
testq %rax, %rax
setne %bpl
movq %r12, %rdi
movl $0x76, %esi
callq 0x30f0
testq %rax, %rax
setne %r12b
movq %r15, %rcx
orq %rax, %rcx
je 0x8562
testq %rax, %rax
setne %al
testq %r15, %r15
setne %cl
movb 0x9(%rbx), %dl
andb $-0x19, %dl
shlb $0x3, %cl
shlb $0x4, %al
orb %cl, %al
orb %dl, %al
movb %al, 0x9(%rbx)
movq 0x48(%r14), %rax
movq %rax, 0x30(%rbx)
movq %rbx, 0x48(%r14)
jmp 0x8562
xorl %ebp, %ebp
xorl %r12d, %r12d
testb %r12b, %bpl
jne 0x865e
movl %ebp, 0x4(%rsp)
testb %r12b, %r12b
jne 0x85b2
movslq 0x38(%rbx), %r15
testq %r15, %r15
je 0x85b2
movq %r15, %r13
shlq $0x4, %r13
addq $-0x8, %r13
movq 0x18(%rbx), %rax
cmpl $0x4, (%rax,%r13)
jl 0x85a6
movq -0x8(%rax,%r13), %rsi
testb $0x3, 0x9(%rsi)
je 0x85a6
movq %r14, %rdi
callq 0x4593
decq %r15
addq $-0x10, %r13
testq %r15, %r15
jne 0x8588
movzbl 0xb(%rbx), %ecx
cmpq $0x1f, %rcx
movl 0x4(%rsp), %eax
ja 0x8657
movabsq $0x100000000, %r15      # imm = 0x100000000
shlq %cl, %r15
sarq $0x20, %r15
leaq (%r15,%r15,4), %rax
leaq -0x10(,%rax,8), %r13
movl 0x4(%rsp), %eax
movq 0x20(%rbx), %rbp
cmpl $0x0, -0x10(%rbp,%r13)
je 0x863a
testb %al, %al
jne 0x8614
cmpl $0x4, (%rbp,%r13)
jl 0x8614
movq -0x8(%rbp,%r13), %rsi
testb $0x3, 0x9(%rsi)
je 0x8614
movq %r14, %rdi
callq 0x4593
movl 0x4(%rsp), %eax
testb %r12b, %r12b
jne 0x864b
cmpl $0x4, -0x10(%rbp,%r13)
jl 0x864b
movq -0x18(%rbp,%r13), %rsi
testb $0x3, 0x9(%rsi)
je 0x864b
movq %r14, %rdi
callq 0x4593
movl 0x4(%rsp), %eax
jmp 0x864b
cmpl $0x4, (%rbp,%r13)
jl 0x864b
movl $0xb, (%rbp,%r13)
decq %r15
addq $-0x28, %r13
testq %r15, %r15
jne 0x85e5
orb %r12b, %al
testb $0x1, %al
je 0x8662
andb $-0x5, 0x9(%rbx)
movslq 0x38(%rbx), %rax
shlq $0x4, %rax
movb 0xb(%rbx), %cl
movl $0x28, %edx
shlq %cl, %rdx
addq %rdx, %rax
addq $0x40, %rax
jmp 0x86cf
movq 0x20(%rbx), %rsi
testb $0x3, 0x9(%rsi)
je 0x8690
movq %r14, %rdi
callq 0x4593
cmpb $0x0, 0xb(%rbx)
je 0x86b8
xorl %r15d, %r15d
movq 0x28(%rbx,%r15,8), %rsi
testb $0x3, 0x9(%rsi)
je 0x86ac
movq %r14, %rdi
callq 0x4593
incq %r15
movzbl 0xb(%rbx), %eax
cmpq %rax, %r15
jb 0x8699
cmpb $0x1, 0xa(%rbx)
movzbl 0xb(%rbx), %eax
movb $0x4, %cl
sbbb $0x0, %cl
shll %cl, %eax
addl $0x28, %eax
andl $0xfff8, %eax           # imm = 0xFFF8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq