// File: /workspace/github_c_makefile_star2_O2/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 0x8078
movq %rdi, %r14
leaq 0xa548(%rip), %rdx      # 0x12130
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 0x7f36
testb $0x3, 0x9(%rsi)
je 0x7c21
movq %r14, %rdi
callq 0x43dc
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x7f36
testb $0x8, 0xa(%rsi)
jne 0x7f36
movq 0x140(%r14), %rdx
pushq $0x3
popq %rax
movq %rsi, %rdi
movl %eax, %esi
callq 0x7239
testq %rax, %rax
je 0x7f36
cmpl $0x4, 0x8(%rax)
jne 0x7f36
movq (%rax), %r12
addq $0x18, %r12
pushq $0x6b
popq %rsi
movq %r12, %rdi
callq 0x30f0
movq %rax, %r15
testq %rax, %rax
setne %al
movl %eax, 0x4(%rsp)
pushq $0x76
popq %rsi
movq %r12, %rdi
callq 0x30f0
movq %r15, %rcx
orq %rax, %rcx
je 0x7f36
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 0x800e
movb $0x1, %r15b
testq %rax, %rax
jne 0x7f7a
jmp 0x7f3e
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 0x7d12
movq 0x78(%rbx), %rsi
testb $0x3, 0x9(%rsi)
je 0x7d12
movq %r14, %rdi
callq 0x43dc
movq 0x10(%rbx), %rax
movq 0x28(%rbx), %rcx
movq 0x50(%rbx), %rdx
movq %rax, %r15
cmpq %rcx, %rdx
ja 0x7d37
movq 0x10(%rdx), %rsi
cmpq %rsi, %r15
cmovbq %rsi, %r15
addq $0x28, %rdx
jmp 0x7d21
movq 0x40(%rbx), %r12
cmpq %rax, %r12
jae 0x7d6e
cmpl $0x4, 0x8(%r12)
jl 0x7d5e
movq (%r12), %rsi
testb $0x3, 0x9(%rsi)
je 0x7d5e
movq %r14, %rdi
callq 0x43dc
movq 0x10(%rbx), %rax
addq $0x10, %r12
jmp 0x7d3b
andl $0x0, 0x8(%r12)
addq $0x10, %r12
cmpq %r15, %r12
jbe 0x7d64
movl 0x5c(%rbx), %esi
cmpl $0x4e20, %esi           # imm = 0x4E20
jg 0x7dcd
subq 0x40(%rbx), %r15
movq 0x28(%rbx), %rax
subq 0x50(%rbx), %rax
pushq $0x28
popq %rcx
cqto
idivq %rcx
cmpl $0x11, %esi
jl 0x7da8
shll $0x2, %eax
cmpl %esi, %eax
jge 0x7da8
shrl %esi
movq %rbx, %rdi
callq 0x4499
shrq $0x2, %r15
andl $-0x4, %r15d
movl 0x58(%rbx), %esi
cmpl %esi, %r15d
setge %al
cmpl $0x5b, %esi
setl %cl
orb %al, %cl
jne 0x7dcd
shrl %esi
movq %rbx, %rdi
callq 0x4dcc
movslq 0x58(%rbx), %rax
shlq $0x4, %rax
movslq 0x5c(%rbx), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
addq $0xb8, %rax
jmp 0x8078
movq 0x10(%rbx), %rax
movq %rax, 0x38(%r14)
movq 0x18(%rbx), %rsi
testb $0x3, 0x9(%rsi)
je 0x7e05
movq %r14, %rdi
callq 0x43dc
cmpb $0x0, 0xa(%rbx)
je 0x802c
leaq 0x30(%rbx), %r15
xorl %r12d, %r12d
movzbl 0xb(%rbx), %eax
cmpq %rax, %r12
jae 0x8062
cmpl $0x4, (%r15)
jl 0x7e3b
movq -0x8(%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0x7e3b
movq %r14, %rdi
callq 0x43dc
incq %r12
addq $0x10, %r15
jmp 0x7e16
movq 0x68(%rbx), %rax
movq %rax, 0x38(%r14)
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x7e59
andb $-0x4, 0x9(%rax)
pushq $0x8
popq %r15
xorl %r12d, %r12d
movslq 0x4c(%rbx), %rax
cmpq %rax, %r12
jge 0x7e90
movq 0x10(%rbx), %rax
cmpl $0x4, (%rax,%r15)
jl 0x7e87
movq -0x8(%rax,%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0x7e87
movq %r14, %rdi
callq 0x43dc
incq %r12
addq $0x10, %r15
jmp 0x7e60
xorl %eax, %eax
movslq 0x48(%rbx), %rcx
cmpq %rcx, %rax
jge 0x7eb1
movq 0x38(%rbx), %rcx
movq (%rcx,%rax,8), %rcx
testq %rcx, %rcx
je 0x7eac
andb $-0x4, 0x9(%rcx)
incq %rax
jmp 0x7e92
xorl %r15d, %r15d
movslq 0x58(%rbx), %rax
cmpq %rax, %r15
jge 0x7edd
movq 0x20(%rbx), %rax
movq (%rax,%r15,8), %rsi
testq %rsi, %rsi
je 0x7ed8
testb $0x3, 0x9(%rsi)
je 0x7ed8
movq %r14, %rdi
callq 0x43dc
incq %r15
jmp 0x7eb4
xorl %eax, %eax
xorl %ecx, %ecx
movslq 0x5c(%rbx), %rdx
cmpq %rdx, %rcx
jge 0x7f04
movq 0x30(%rbx), %rdx
movq (%rdx,%rax), %rdx
testq %rdx, %rdx
je 0x7efb
andb $-0x4, 0x9(%rdx)
incq %rcx
addq $0x10, %rax
jmp 0x7ee1
movslq 0x50(%rbx), %rax
movslq 0x58(%rbx), %rcx
movslq 0x4c(%rbx), %rsi
movslq 0x54(%rbx), %rdi
movslq 0x48(%rbx), %r8
addq %rcx, %r8
addq %rax, %rdi
addq %rdx, %rsi
shlq $0x4, %rsi
leaq (%rsi,%rdi,4), %rax
leaq (%rax,%r8,8), %rax
addq $0x78, %rax
jmp 0x8078
movl $0x0, 0x4(%rsp)
movslq 0x38(%rbx), %r15
movq %r15, %r12
shlq $0x4, %r12
addq $-0x8, %r12
subq $0x1, %r15
jb 0x7f77
movq 0x18(%rbx), %rax
cmpl $0x4, (%rax,%r12)
jl 0x7f71
movq -0x8(%rax,%r12), %rsi
testb $0x3, 0x9(%rsi)
je 0x7f71
movq %r14, %rdi
callq 0x43dc
addq $-0x10, %r12
jmp 0x7f4d
xorl %r15d, %r15d
movb 0xb(%rbx), %cl
movabsq $0x100000000, %r12      # imm = 0x100000000
shlq %cl, %r12
sarq $0x20, %r12
imulq $0x28, %r12, %r13
addq $-0x10, %r13
subq $0x1, %r12
jb 0x8003
movq 0x20(%rbx), %rbp
cmpl $0x0, -0x10(%rbp,%r13)
je 0x7fec
cmpb $0x0, 0x4(%rsp)
jne 0x7fca
cmpl $0x4, (%rbp,%r13)
jl 0x7fca
movq -0x8(%rbp,%r13), %rsi
testb $0x3, 0x9(%rsi)
je 0x7fca
movq %r14, %rdi
callq 0x43dc
testb %r15b, %r15b
jne 0x7ffd
cmpl $0x4, -0x10(%rbp,%r13)
jl 0x7ffd
movq -0x18(%rbp,%r13), %rsi
testb $0x3, 0x9(%rsi)
je 0x7ffd
movq %r14, %rdi
callq 0x43dc
jmp 0x7ffd
cmpl $0x4, (%rbp,%r13)
jl 0x7ffd
movl $0xb, (%rbp,%r13)
addq $-0x28, %r13
jmp 0x7f96
movl 0x4(%rsp), %eax
orb %r15b, %al
cmpb $0x1, %al
jne 0x8012
andb $-0x5, 0x9(%rbx)
movslq 0x38(%rbx), %rax
shlq $0x4, %rax
movb 0xb(%rbx), %cl
pushq $0x28
popq %rdx
shlq %cl, %rdx
addq %rdx, %rax
addq $0x40, %rax
jmp 0x8078
movq 0x20(%rbx), %rsi
testb $0x3, 0x9(%rsi)
je 0x803e
movq %r14, %rdi
callq 0x43dc
xorl %r15d, %r15d
movzbl 0xb(%rbx), %eax
cmpq %rax, %r15
jae 0x8062
movq 0x28(%rbx,%r15,8), %rsi
testb $0x3, 0x9(%rsi)
je 0x805d
movq %r14, %rdi
callq 0x43dc
incq %r15
jmp 0x8041
cmpb $0x1, 0xa(%rbx)
movb $0x4, %cl
sbbb $0x0, %cl
movzbl %al, %eax
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