// File: /workspace/github_c_makefile_star2_O1/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 0xaa63
leaq 0x16b0a(%rip), %rdx     # 0x2152c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x30(%r14), %rax
movq %rax, 0x70(%rbx)
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0xaccc
testb $0x8, 0xa(%rdi)
jne 0xaccc
movq 0xf8(%rbx), %rdx
movl $0x3, %esi
callq 0x102d9
movq %rax, %r15
jmp 0xaccf
cmpl $0x26, %edx
jne 0xaf77
movq 0x10(%r14), %rax
movq %rax, 0x70(%rbx)
movb 0xa(%r14), %al
testb %al, %al
je 0xaaac
leaq 0x28(%r14), %r15
xorl %r12d, %r12d
testb $0x40, (%r15)
je 0xaa9b
movq -0x8(%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xaa9b
movq %rbx, %rdi
callq 0x9dfc
incq %r12
movzbl 0xa(%r14), %eax
addq $0x10, %r15
cmpq %rax, %r12
jb 0xaa83
movzbl %al, %eax
shll $0x4, %eax
addq $0x20, %rax
jmp 0xaf73
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 0xae38
cmpq 0x10(%r14), %r15
jae 0xae10
testb $0x40, 0x8(%r15)
je 0xab04
movq (%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xab04
movq %rbx, %rdi
callq 0x9dfc
addq $0x10, %r15
jmp 0xaae2
movq 0x70(%r14), %rax
movq %rax, 0x70(%rbx)
movq 0x60(%r14), %rax
testq %rax, %rax
je 0xab29
testb $0x3, 0x9(%rax)
je 0xab29
movq $0x0, 0x60(%r14)
movq 0x68(%r14), %rsi
testq %rsi, %rsi
je 0xab40
testb $0x3, 0x9(%rsi)
je 0xab40
movq %rbx, %rdi
callq 0x9dfc
cmpl $0x0, 0x14(%r14)
jle 0xab7e
movl $0x8, %r15d
xorl %r12d, %r12d
movq 0x30(%r14), %rax
testb $0x40, (%rax,%r15)
je 0xab6e
movq -0x8(%rax,%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xab6e
movq %rbx, %rdi
callq 0x9dfc
incq %r12
movslq 0x14(%r14), %rax
addq $0x10, %r15
cmpq %rax, %r12
jl 0xab50
cmpl $0x0, 0x10(%r14)
jle 0xabb6
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x58(%r14), %rax
movq (%rax,%r15), %rsi
testq %rsi, %rsi
je 0xaba6
testb $0x3, 0x9(%rsi)
je 0xaba6
movq %rbx, %rdi
callq 0x9dfc
incq %r12
movslq 0x10(%r14), %rax
addq $0x10, %r15
cmpq %rax, %r12
jl 0xab8b
cmpl $0x0, 0x20(%r14)
jle 0xabe7
xorl %r15d, %r15d
movq 0x40(%r14), %rax
movq (%rax,%r15,8), %rsi
testq %rsi, %rsi
je 0xabdb
testb $0x3, 0x9(%rsi)
je 0xabdb
movq %rbx, %rdi
callq 0x9dfc
incq %r15
movslq 0x20(%r14), %rax
cmpq %rax, %r15
jl 0xabc0
movl 0x24(%r14), %eax
testl %eax, %eax
jle 0xac20
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x50(%r14), %rax
movq (%rax,%r15), %rsi
testq %rsi, %rsi
je 0xac10
testb $0x3, 0x9(%rsi)
je 0xac10
movq %rbx, %rdi
callq 0x9dfc
incq %r12
movslq 0x24(%r14), %rax
addq $0x10, %r15
cmpq %rax, %r12
jl 0xabf5
movl 0x1c(%r14), %ecx
addl 0x14(%r14), %eax
addl 0x10(%r14), %eax
movl 0x20(%r14), %edx
shll $0x4, %eax
addl 0x18(%r14), %ecx
shll $0x2, %ecx
leal (%rcx,%rdx,8), %ecx
addl %ecx, %eax
addl $0x78, %eax
cltq
jmp 0xaf73
movq 0x10(%r14), %rax
movq %rax, 0x70(%rbx)
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0xac68
testb $0x3, 0x9(%rsi)
je 0xac68
movq %rbx, %rdi
callq 0x9dfc
movb 0xa(%r14), %al
testb %al, %al
je 0xacbc
xorl %r15d, %r15d
movq 0x20(%r14,%r15,8), %rax
testq %rax, %rax
je 0xacaf
movq (%rax), %rcx
leaq 0x10(%rax), %rdx
cmpq %rdx, %rcx
je 0xac8f
cmpb $0x8, 0x55(%rbx)
jne 0xaca8
testb $0x40, 0x8(%rcx)
je 0xacaf
movq (%rcx), %rsi
testb $0x3, 0x9(%rsi)
je 0xacaf
movq %rbx, %rdi
callq 0x9dfc
jmp 0xacaf
movl $0x1, 0x18(%rax)
incq %r15
movzbl 0xa(%r14), %eax
cmpq %rax, %r15
jb 0xac73
movzbl %al, %eax
leaq 0x20(,%rax,8), %rax
jmp 0xaf73
xorl %r15d, %r15d
movq 0x28(%r14), %rsi
testq %rsi, %rsi
je 0xace6
testb $0x3, 0x9(%rsi)
je 0xace6
movq %rbx, %rdi
callq 0x9dfc
testq %r15, %r15
je 0xad51
movl 0x8(%r15), %eax
andl $0xf, %eax
cmpl $0x4, %eax
jne 0xad51
movq (%r15), %r12
addq $0x18, %r12
movq %r12, %rdi
movl $0x6b, %esi
callq 0x5170
movq %rax, %r15
movq %r12, %rdi
movl $0x76, %esi
callq 0x5170
movq %r15, %rcx
orq %rax, %rcx
je 0xad51
andb $-0x5, 0x9(%r14)
testq %r15, %r15
je 0xae94
testq %rax, %rax
je 0xaf39
movq 0x90(%rbx), %rax
movq %rax, 0x30(%r14)
movq %r14, 0x90(%rbx)
jmp 0xaf52
movb 0xb(%r14), %cl
movl $0x1, %eax
shll %cl, %eax
movslq %eax, %r15
shlq $0x5, %r15
addq 0x18(%r14), %r15
cmpl $0x0, 0xc(%r14)
je 0xada5
movl $0x8, %r12d
xorl %r13d, %r13d
movq 0x10(%r14), %rax
testb $0x40, (%rax,%r12)
je 0xad95
movq -0x8(%rax,%r12), %rsi
testb $0x3, 0x9(%rsi)
je 0xad95
movq %rbx, %rdi
callq 0x9dfc
incq %r13
movl 0xc(%r14), %eax
addq $0x10, %r12
cmpq %rax, %r13
jb 0xad77
movq 0x18(%r14), %r12
cmpq %r15, %r12
jae 0xaf52
cmpl $0x0, 0x8(%r12)
movl 0x18(%r12), %eax
je 0xadf2
testb $0x40, %al
je 0xadd6
movq 0x10(%r12), %rsi
testb $0x3, 0x9(%rsi)
je 0xadd6
movq %rbx, %rdi
callq 0x9dfc
testb $0x40, 0x8(%r12)
je 0xae0a
movq (%r12), %rsi
testb $0x3, 0x9(%rsi)
je 0xae0a
movq %rbx, %rdi
callq 0x9dfc
jmp 0xae0a
testb $0x40, %al
je 0xae0a
movq 0x10(%r12), %rax
testb $0x3, 0x9(%rax)
je 0xae0a
movl $0xa, 0x18(%r12)
addq $0x20, %r12
jmp 0xada9
cmpb $0x8, 0x55(%rbx)
jne 0xae42
movslq 0xb8(%r14), %rax
shlq $0x4, %rax
addq 0x38(%r14), %rax
cmpq %rax, %r15
jae 0xae52
movl $0x0, 0x8(%r15)
addq $0x10, %r15
jmp 0xae25
movl $0x1, %eax
jmp 0xaf73
cmpb $0x1, 0x56(%rbx)
je 0xae71
movq %r14, %rdi
callq 0x8755
jmp 0xae71
cmpq %r14, 0x50(%r14)
jne 0xae71
cmpq $0x0, 0x40(%r14)
je 0xae71
movq 0xa8(%rbx), %rax
movq %rax, 0x50(%r14)
movq %r14, 0xa8(%rbx)
movslq 0xb8(%r14), %rax
shlq $0x4, %rax
movzwl 0xa(%r14), %ecx
leaq (%rcx,%rcx,8), %rcx
leaq (%rax,%rcx,8), %rax
addq $0xd0, %rax
jmp 0xaf73
movb 0xb(%r14), %cl
movl $0x1, %eax
shll %cl, %eax
xorl %ebp, %ebp
cmpl $0x0, 0xc(%r14)
setne %bpl
cmpb $0x1f, %cl
je 0xaf1b
movq 0x18(%r14), %r15
movslq %eax, %r12
shlq $0x5, %r12
addq %r15, %r12
cmpl $0x0, 0x8(%r15)
movl 0x18(%r15), %eax
je 0xaefc
testb $0x40, %al
je 0xaede
movq 0x10(%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xaede
movq %rbx, %rdi
callq 0x9dfc
testl %ebp, %ebp
movl $0x1, %ebp
jne 0xaf12
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb1a0
xorl %ebp, %ebp
testl %eax, %eax
setne %bpl
jmp 0xaf12
testb $0x40, %al
je 0xaf12
movq 0x10(%r15), %rax
testb $0x3, 0x9(%rax)
je 0xaf12
movl $0xa, 0x18(%r15)
addq $0x20, %r15
cmpq %r12, %r15
jb 0xaebd
cmpb $0x0, 0x55(%rbx)
je 0xaf46
testl %ebp, %ebp
je 0xaf52
movq 0x80(%rbx), %rax
movq %rax, 0x30(%r14)
movq %r14, 0x80(%rbx)
jmp 0xaf52
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb047
jmp 0xaf52
movq 0x78(%rbx), %rax
movq %rax, 0x30(%r14)
movq %r14, 0x78(%rbx)
movl 0xc(%r14), %eax
movb 0xb(%r14), %cl
movl $0x1, %edx
shll %cl, %edx
shlq $0x4, %rax
movslq %edx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
addq $0x38, %rax
addq %rax, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq