// File: /workspace/github_c_makefile_star2_O3/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 0x8afb
movq %rdi, %r14
leaq 0xccb7(%rip), %rdx      # 0x151a0
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 0x8985
testb $0x3, 0x9(%rsi)
je 0x8522
movq %r14, %rdi
callq 0x46ab
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x8985
testb $0x8, 0xa(%rsi)
jne 0x8985
movq 0x140(%r14), %rdx
movq %rsi, %rdi
movl $0x3, %esi
callq 0x792f
testq %rax, %rax
je 0x8985
cmpl $0x4, 0x8(%rax)
jne 0x8985
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
movq %r15, %rcx
orq %rax, %rcx
je 0x8985
testq %rax, %rax
setne %cl
testq %r15, %r15
setne %dl
movb 0x9(%rbx), %sil
andb $-0x19, %sil
leal (,%rdx,8), %edi
movl %ecx, %r8d
shlb $0x4, %r8b
orb %dil, %r8b
orb %sil, %r8b
movb %r8b, 0x9(%rbx)
movq 0x48(%r14), %rsi
movq %rsi, 0x30(%rbx)
movq %rbx, 0x48(%r14)
testb %cl, %dl
jne 0x8add
movb $0x1, %r15b
testq %rax, %rax
movl %ebp, %eax
jne 0x8a31
jmp 0x8987
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 0x8616
movq 0x78(%rbx), %rsi
testb $0x3, 0x9(%rsi)
je 0x8616
movq %r14, %rdi
callq 0x46ab
movq 0x10(%rbx), %rax
movq 0x28(%rbx), %rcx
movq 0x50(%rbx), %rdx
movq %rax, %r15
cmpq %rcx, %rdx
ja 0x8641
movq %rax, %r15
movq 0x10(%rdx), %rsi
cmpq %rsi, %r15
cmovbq %rsi, %r15
addq $0x28, %rdx
cmpq %rcx, %rdx
jbe 0x862d
movq 0x40(%rbx), %r12
cmpq %rax, %r12
jae 0x866e
cmpl $0x4, 0x8(%r12)
jl 0x8668
movq (%r12), %rsi
testb $0x3, 0x9(%rsi)
je 0x8668
movq %r14, %rdi
callq 0x46ab
movq 0x10(%rbx), %rax
addq $0x10, %r12
jmp 0x8645
cmpq %r15, %r12
ja 0x8793
leaq 0x10(%r12), %rax
leaq 0x1(%r15), %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq %r12, %rax
notq %rax
addq %rcx, %rax
movq %rax, %xmm0
shrq $0x4, %rax
addq $0x4, %rax
andq $-0x4, %rax
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
psrlq $0x4, %xmm0
addq $0x38, %r12
xorl %ecx, %ecx
movdqa 0xc957(%rip), %xmm1     # 0x15010
movdqa 0xc95f(%rip), %xmm2     # 0x15020
movdqa 0xc967(%rip), %xmm3     # 0x15030
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movq %rcx, %xmm5
pshufd $0x44, %xmm5, %xmm5     # xmm5 = xmm5[0,1,0,1]
movdqa %xmm5, %xmm6
por %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %edx
notl %edx
testb $0x1, %dl
je 0x871c
movl $0x0, -0x30(%r12)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x8733
movl $0x0, -0x20(%r12)
por %xmm1, %xmm5
pxor %xmm3, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
pxor %xmm4, %xmm5
pextrw $0x0, %xmm5, %edx
testb $0x1, %dl
je 0x8770
movl $0x0, -0x10(%r12)
pextrw $0x4, %xmm5, %edx
testb $0x1, %dl
je 0x8782
movl $0x0, (%r12)
addq $0x4, %rcx
addq $0x40, %r12
cmpq %rcx, %rax
jne 0x86d1
movl 0x5c(%rbx), %esi
cmpl $0x4e20, %esi           # imm = 0x4E20
jg 0x87ec
subq 0x40(%rbx), %r15
cmpl $0x11, %esi
jl 0x87c7
movq 0x28(%rbx), %rax
subq 0x50(%rbx), %rax
shrq $0x3, %rax
imull $0x33333334, %eax, %eax # imm = 0x33333334
cmpl %esi, %eax
jge 0x87c7
shrl %esi
movq %rbx, %rdi
callq 0x476a
shrq $0x2, %r15
andl $-0x4, %r15d
movl 0x58(%rbx), %esi
cmpl %esi, %r15d
setge %al
cmpl $0x5b, %esi
setl %cl
orb %al, %cl
jne 0x87ec
shrl %esi
movq %rbx, %rdi
callq 0x50e7
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 0x8afb
movq 0x10(%rbx), %rax
movq %rax, 0x38(%r14)
movq 0x18(%rbx), %rsi
testb $0x3, 0x9(%rsi)
je 0x8825
movq %r14, %rdi
callq 0x46ab
cmpb $0x0, 0xa(%rbx)
je 0x89d2
movb 0xb(%rbx), %al
testb %al, %al
je 0x8a11
leaq 0x30(%rbx), %r15
xorl %r12d, %r12d
cmpl $0x4, (%r15)
jl 0x885c
movq -0x8(%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0x885c
movq %r14, %rdi
callq 0x46ab
movb 0xb(%rbx), %al
incq %r12
movzbl %al, %ecx
addq $0x10, %r15
cmpq %rcx, %r12
jb 0x8841
jmp 0x8a13
movq 0x68(%rbx), %rax
movq %rax, 0x38(%r14)
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x8885
andb $-0x4, 0x9(%rax)
movl 0x4c(%rbx), %eax
testl %eax, %eax
jle 0x88c5
movl $0x8, %r15d
xorl %r12d, %r12d
movq 0x10(%rbx), %rcx
cmpl $0x4, (%rcx,%r15)
jl 0x88b6
movq -0x8(%rcx,%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0x88b6
movq %r14, %rdi
callq 0x46ab
movl 0x4c(%rbx), %eax
incq %r12
movslq %eax, %rcx
addq $0x10, %r15
cmpq %rcx, %r12
jl 0x8895
movl 0x48(%rbx), %eax
testl %eax, %eax
jle 0x88ed
xorl %ecx, %ecx
movq 0x38(%rbx), %rdx
movq (%rdx,%rcx,8), %rdx
testq %rdx, %rdx
je 0x88e2
andb $-0x4, 0x9(%rdx)
movl 0x48(%rbx), %eax
incq %rcx
movslq %eax, %rdx
cmpq %rdx, %rcx
jl 0x88ce
movl 0x58(%rbx), %eax
testl %eax, %eax
jle 0x8920
xorl %r15d, %r15d
movq 0x20(%rbx), %rcx
movq (%rcx,%r15,8), %rsi
testq %rsi, %rsi
je 0x8915
testb $0x3, 0x9(%rsi)
je 0x8915
movq %r14, %rdi
callq 0x46ab
movl 0x58(%rbx), %eax
incq %r15
movslq %eax, %rcx
cmpq %rcx, %r15
jl 0x88f7
movslq 0x5c(%rbx), %rcx
testq %rcx, %rcx
jle 0x8955
xorl %eax, %eax
movl %ecx, %esi
xorl %edx, %edx
movq 0x30(%rbx), %rcx
movq (%rcx,%rax), %rcx
testq %rcx, %rcx
je 0x8943
andb $-0x4, 0x9(%rcx)
movl 0x5c(%rbx), %esi
incq %rdx
movslq %esi, %rcx
addq $0x10, %rax
cmpq %rcx, %rdx
jl 0x892f
movl 0x58(%rbx), %eax
movslq 0x50(%rbx), %rdx
cltq
movslq 0x4c(%rbx), %rsi
addq %rcx, %rsi
movslq 0x54(%rbx), %rcx
movslq 0x48(%rbx), %rdi
shlq $0x4, %rsi
addq %rax, %rdi
addq %rdx, %rcx
leaq (%rsi,%rcx,4), %rax
leaq (%rax,%rdi,8), %rax
addq $0x78, %rax
jmp 0x8afb
xorl %eax, %eax
movslq 0x38(%rbx), %r15
testq %r15, %r15
je 0x8a2e
movl %eax, %ebp
movq %r15, %r12
shlq $0x4, %r12
addq $-0x8, %r12
movq 0x18(%rbx), %rax
cmpl $0x4, (%rax,%r12)
jl 0x89bf
movq -0x8(%rax,%r12), %rsi
testb $0x3, 0x9(%rsi)
je 0x89bf
movq %r14, %rdi
callq 0x46ab
decq %r15
addq $-0x10, %r12
testq %r15, %r15
jne 0x89a1
xorl %r15d, %r15d
movl %ebp, %eax
jmp 0x8a31
movq 0x20(%rbx), %rsi
testb $0x3, 0x9(%rsi)
je 0x89e4
movq %r14, %rdi
callq 0x46ab
movb 0xb(%rbx), %al
testb %al, %al
je 0x8a11
xorl %r15d, %r15d
movq 0x28(%rbx,%r15,8), %rsi
testb $0x3, 0x9(%rsi)
je 0x8a04
movq %r14, %rdi
callq 0x46ab
movb 0xb(%rbx), %al
incq %r15
movzbl %al, %ecx
cmpq %rcx, %r15
jb 0x89ee
jmp 0x8a13
xorl %eax, %eax
cmpb $0x1, 0xa(%rbx)
movb $0x4, %cl
sbbb $0x0, %cl
movzbl %al, %eax
shll %cl, %eax
addl $0x28, %eax
andl $0xfff8, %eax           # imm = 0xFFF8
jmp 0x8afb
xorl %r15d, %r15d
movzbl 0xb(%rbx), %ecx
cmpq $0x1f, %rcx
ja 0x8ad6
movabsq $0x100000000, %r12      # imm = 0x100000000
shlq %cl, %r12
sarq $0x20, %r12
movl %eax, 0x4(%rsp)
leaq (%r12,%r12,4), %rax
leaq -0x10(,%rax,8), %r13
movl 0x4(%rsp), %eax
movq 0x20(%rbx), %rbp
cmpl $0x0, -0x10(%rbp,%r13)
je 0x8ab9
testb %al, %al
jne 0x8a93
cmpl $0x4, (%rbp,%r13)
jl 0x8a93
movq -0x8(%rbp,%r13), %rsi
testb $0x3, 0x9(%rsi)
je 0x8a93
movq %r14, %rdi
callq 0x46ab
movl 0x4(%rsp), %eax
testb %r15b, %r15b
jne 0x8aca
cmpl $0x4, -0x10(%rbp,%r13)
jl 0x8aca
movq -0x18(%rbp,%r13), %rsi
testb $0x3, 0x9(%rsi)
je 0x8aca
movq %r14, %rdi
callq 0x46ab
movl 0x4(%rsp), %eax
jmp 0x8aca
cmpl $0x4, (%rbp,%r13)
jl 0x8aca
movl $0xb, (%rbp,%r13)
decq %r12
addq $-0x28, %r13
testq %r12, %r12
jne 0x8a64
orb %r15b, %al
cmpb $0x1, %al
jne 0x8ae1
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
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq