// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lgc.c
// Function: propagatemark
static void propagatemark (global_State *g) {
  lu_mem size;
  GCObject *o = g->gray;
  lua_assert(isgray(o));
  gray2black(o);
  switch (o->tt) {
    case LUA_TTABLE: {
      Table *h = gco2t(o);
      g->gray = h->gclist;  /* remove from 'gray' list */
      size = traversetable(g, h);
      break;
    }
    case LUA_TLCL: {
      LClosure *cl = gco2lcl(o);
      g->gray = cl->gclist;  /* remove from 'gray' list */
      size = traverseLclosure(g, cl);
      break;
    }
    case LUA_TCCL: {
      CClosure *cl = gco2ccl(o);
      g->gray = cl->gclist;  /* remove from 'gray' list */
      size = traverseCclosure(g, cl);
      break;
    }
    case LUA_TTHREAD: {
      lua_State *th = gco2th(o);
      g->gray = th->gclist;  /* remove from 'gray' list */
      linkgclist(th, g->grayagain);  /* insert into 'grayagain' list */
      black2gray(o);
      size = traversethread(g, th);
      break;
    }
    case LUA_TPROTO: {
      Proto *p = gco2p(o);
      g->gray = p->gclist;  /* remove from 'gray' list */
      size = traverseproto(g, p);
      break;
    }
    default: lua_assert(0); return;
  }
  g->GCmemtrav += size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x70(%rdi), %r14
movb 0x9(%r14), %al
movl %eax, %ecx
orb $0x4, %cl
movb %cl, 0x9(%r14)
movzbl 0x8(%r14), %edx
leal -0x5(%rdx), %ecx
cmpl $0x4, %ecx
ja 0xadc4
leaq 0x177e5(%rip), %rdx     # 0x22558
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x30(%r14), %rax
movq %rax, 0x70(%rbx)
movq 0x28(%r14), %rsi
testq %rsi, %rsi
je 0xb25b
testb $0x8, 0xa(%rsi)
jne 0xb1df
movq 0xf8(%rbx), %rdx
movq %rsi, %rdi
movl $0x3, %esi
callq 0x10949
movq %rax, %r15
movq 0x28(%r14), %rsi
testq %rsi, %rsi
jne 0xb1e2
jmp 0xb1f0
cmpl $0x26, %edx
jne 0xb349
movq 0x10(%r14), %rax
movq %rax, 0x70(%rbx)
movb 0xa(%r14), %al
testb %al, %al
je 0xb043
leaq 0x28(%r14), %r15
xorl %r12d, %r12d
testb $0x40, (%r15)
je 0xae04
movq -0x8(%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xae04
movq %rbx, %rdi
callq 0xa160
movb 0xa(%r14), %al
incq %r12
movzbl %al, %ecx
addq $0x10, %r15
cmpq %rcx, %r12
jb 0xade8
shll $0x4, %ecx
addq $0x20, %rcx
jmp 0xb345
movq 0x48(%r14), %rcx
movq %rcx, 0x70(%rbx)
movq 0x78(%rbx), %rcx
movq %rcx, 0x48(%r14)
movq %r14, 0x78(%rbx)
andb $-0x5, %al
movb %al, 0x9(%r14)
movq 0x38(%r14), %r15
testq %r15, %r15
je 0xb1a3
movq 0x10(%r14), %rax
cmpq %rax, %r15
jae 0xb04d
testb $0x40, 0x8(%r15)
je 0xae6f
movq (%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xae6f
movq %rbx, %rdi
callq 0xa160
movq 0x10(%r14), %rax
addq $0x10, %r15
jmp 0xae4a
movq 0x70(%r14), %rax
movq %rax, 0x70(%rbx)
movq 0x60(%r14), %rax
testq %rax, %rax
je 0xae94
testb $0x3, 0x9(%rax)
je 0xae94
movq $0x0, 0x60(%r14)
movq 0x68(%r14), %rsi
testq %rsi, %rsi
je 0xaeab
testb $0x3, 0x9(%rsi)
je 0xaeab
movq %rbx, %rdi
callq 0xa160
movl 0x14(%r14), %eax
testl %eax, %eax
jle 0xaeed
movl $0x8, %r15d
xorl %r12d, %r12d
movq 0x30(%r14), %rcx
testb $0x40, (%rcx,%r15)
je 0xaede
movq -0x8(%rcx,%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xaede
movq %rbx, %rdi
callq 0xa160
movl 0x14(%r14), %eax
incq %r12
movslq %eax, %rcx
addq $0x10, %r15
cmpq %rcx, %r12
jl 0xaebc
movl 0x10(%r14), %eax
testl %eax, %eax
jle 0xaf29
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x58(%r14), %rcx
movq (%rcx,%r15), %rsi
testq %rsi, %rsi
je 0xaf1a
testb $0x3, 0x9(%rsi)
je 0xaf1a
movq %rbx, %rdi
callq 0xa160
movl 0x10(%r14), %eax
incq %r12
movslq %eax, %rcx
addq $0x10, %r15
cmpq %rcx, %r12
jl 0xaefb
movl 0x20(%r14), %ecx
testl %ecx, %ecx
jle 0xaf5e
xorl %r15d, %r15d
movq 0x40(%r14), %rax
movq (%rax,%r15,8), %rsi
testq %rsi, %rsi
je 0xaf53
testb $0x3, 0x9(%rsi)
je 0xaf53
movq %rbx, %rdi
callq 0xa160
movl 0x20(%r14), %ecx
incq %r15
movslq %ecx, %rax
cmpq %rax, %r15
jl 0xaf34
movl 0x24(%r14), %eax
testl %eax, %eax
jle 0xaf9e
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x50(%r14), %rcx
movq (%rcx,%r15), %rsi
testq %rsi, %rsi
je 0xaf8b
testb $0x3, 0x9(%rsi)
je 0xaf8b
movq %rbx, %rdi
callq 0xa160
movl 0x24(%r14), %eax
incq %r12
movslq %eax, %rcx
addq $0x10, %r15
cmpq %rcx, %r12
jl 0xaf6c
movl 0x20(%r14), %ecx
addl 0x14(%r14), %eax
addl 0x10(%r14), %eax
movl 0x1c(%r14), %edx
shll $0x4, %eax
addl 0x18(%r14), %edx
shll $0x2, %edx
leal (%rdx,%rcx,8), %ecx
addl %ecx, %eax
addl $0x78, %eax
movslq %eax, %rcx
jmp 0xb345
movq 0x10(%r14), %rax
movq %rax, 0x70(%rbx)
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0xafe3
testb $0x3, 0x9(%rsi)
je 0xafe3
movq %rbx, %rdi
callq 0xa160
cmpb $0x0, 0xa(%r14)
je 0xb043
xorl %r15d, %r15d
movq 0x20(%r14,%r15,8), %rax
testq %rax, %rax
je 0xb029
movq (%rax), %rcx
leaq 0x10(%rax), %rdx
cmpq %rdx, %rcx
je 0xb009
cmpb $0x8, 0x55(%rbx)
jne 0xb022
testb $0x40, 0x8(%rcx)
je 0xb029
movq (%rcx), %rsi
testb $0x3, 0x9(%rsi)
je 0xb029
movq %rbx, %rdi
callq 0xa160
jmp 0xb029
movl $0x1, 0x18(%rax)
incq %r15
movzbl 0xa(%r14), %eax
cmpq %rax, %r15
jb 0xafed
leaq 0x20(,%rax,8), %rcx
jmp 0xb345
movl $0x20, %ecx
jmp 0xb345
cmpb $0x8, 0x55(%rbx)
jne 0xb1ad
movslq 0xb8(%r14), %rax
shlq $0x4, %rax
addq 0x38(%r14), %rax
cmpq %rax, %r15
jae 0xb182
leaq 0x10(%r15), %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq %r15, %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, %r15
xorl %ecx, %ecx
movdqa 0x17034(%rip), %xmm1    # 0x220e0
movdqa 0x1703c(%rip), %xmm2    # 0x220f0
movdqa 0x17044(%rip), %xmm3    # 0x22100
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 0xb10e
movl $0x0, -0x30(%r15)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0xb124
movl $0x0, -0x20(%r15)
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 0xb160
movl $0x0, -0x10(%r15)
pextrw $0x4, %xmm5, %edx
testb $0x1, %dl
je 0xb171
movl $0x0, (%r15)
addq $0x4, %rcx
addq $0x40, %r15
cmpq %rcx, %rax
jne 0xb0c4
cmpq %r14, 0x50(%r14)
jne 0xb1bb
cmpq $0x0, 0x40(%r14)
je 0xb1bb
movq 0xa8(%rbx), %rax
movq %rax, 0x50(%r14)
movq %r14, 0xa8(%rbx)
jmp 0xb1bb
movl $0x1, %ecx
jmp 0xb345
cmpb $0x1, 0x56(%rbx)
je 0xb1bb
movq %r14, %rdi
callq 0x892b
movslq 0xb8(%r14), %rax
shlq $0x4, %rax
movzwl 0xa(%r14), %ecx
leaq (%rcx,%rcx,8), %rcx
leaq (%rax,%rcx,8), %rcx
addq $0xd0, %rcx
jmp 0xb345
xorl %r15d, %r15d
testb $0x3, 0x9(%rsi)
je 0xb1f0
movq %rbx, %rdi
callq 0xa160
testq %r15, %r15
je 0xb25b
movl 0x8(%r15), %eax
andl $0xf, %eax
cmpl $0x4, %eax
jne 0xb25b
movq (%r15), %r12
addq $0x18, %r12
movq %r12, %rdi
movl $0x6b, %esi
callq 0x5160
movq %rax, %r15
movq %r12, %rdi
movl $0x76, %esi
callq 0x5160
movq %r15, %rcx
orq %rax, %rcx
je 0xb25b
andb $-0x5, 0x9(%r14)
testq %r15, %r15
je 0xb358
testq %rax, %rax
je 0xb3f3
movq 0x90(%rbx), %rax
movq %rax, 0x30(%r14)
movq %r14, 0x90(%rbx)
jmp 0xb324
movq 0x18(%r14), %r12
movb 0xb(%r14), %cl
movl $0x1, %eax
shll %cl, %eax
movslq %eax, %r15
shlq $0x5, %r15
addq %r12, %r15
movl 0xc(%r14), %eax
testl %eax, %eax
je 0xb31f
movl $0x8, %r12d
xorl %r13d, %r13d
movq 0x10(%r14), %rcx
testb $0x40, (%rcx,%r12)
je 0xb2ab
movq -0x8(%rcx,%r12), %rsi
testb $0x3, 0x9(%rsi)
je 0xb2ab
movq %rbx, %rdi
callq 0xa160
movl 0xc(%r14), %eax
incq %r13
movl %eax, %ecx
addq $0x10, %r12
cmpq %rcx, %r13
jb 0xb289
movq 0x18(%r14), %r12
jmp 0xb31f
movl 0x8(%r12), %eax
movl 0x18(%r12), %ecx
testl %eax, %eax
je 0xb302
testb $0x40, %cl
je 0xb2ea
movq 0x10(%r12), %rsi
testb $0x3, 0x9(%rsi)
je 0xb2ea
movq %rbx, %rdi
callq 0xa160
movl 0x8(%r12), %eax
testb $0x40, %al
je 0xb31b
movq (%r12), %rsi
testb $0x3, 0x9(%rsi)
je 0xb31b
movq %rbx, %rdi
callq 0xa160
jmp 0xb31b
testb $0x40, %cl
je 0xb31b
movq 0x10(%r12), %rax
testb $0x3, 0x9(%rax)
je 0xb31b
movl $0xa, 0x18(%r12)
addq $0x20, %r12
cmpq %r15, %r12
jb 0xb2bf
movl 0xc(%r14), %eax
movb 0xb(%r14), %cl
movl $0x1, %edx
shll %cl, %edx
shlq $0x4, %rax
movslq %edx, %rcx
shlq $0x5, %rcx
addq %rax, %rcx
addq $0x38, %rcx
addq %rcx, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb 0xb(%r14), %cl
movl $0x1, %eax
shll %cl, %eax
xorl %ebp, %ebp
cmpl $0x0, 0xc(%r14)
setne %bpl
cmpb $0x1f, %cl
je 0xb3df
movq 0x18(%r14), %r15
movslq %eax, %r12
shlq $0x5, %r12
addq %r15, %r12
cmpl $0x0, 0x8(%r15)
movl 0x18(%r15), %eax
je 0xb3c0
testb $0x40, %al
je 0xb3a2
movq 0x10(%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xb3a2
movq %rbx, %rdi
callq 0xa160
testl %ebp, %ebp
movl $0x1, %ebp
jne 0xb3d6
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb637
xorl %ebp, %ebp
testl %eax, %eax
setne %bpl
jmp 0xb3d6
testb $0x40, %al
je 0xb3d6
movq 0x10(%r15), %rax
testb $0x3, 0x9(%rax)
je 0xb3d6
movl $0xa, 0x18(%r15)
addq $0x20, %r15
cmpq %r12, %r15
jb 0xb381
cmpb $0x0, 0x55(%rbx)
je 0xb403
movl $0x80, %eax
testl %ebp, %ebp
jne 0xb408
jmp 0xb324
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb4da
jmp 0xb324
movl $0x78, %eax
movq (%rbx,%rax), %rcx
movq %rcx, 0x30(%r14)
movq %r14, (%rbx,%rax)
jmp 0xb324