// File: /workspace/github_c_makefile_star2_O2/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 0xa2a0
leaq 0x15325(%rip), %rdx     # 0x1f574
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 0xa5d5
testb $0x8, 0xa(%rsi)
jne 0xa55d
movq 0xf8(%rbx), %rdx
pushq $0x3
popq %rax
movq %rsi, %rdi
movl %eax, %esi
callq 0xf48b
movq %rax, %r15
movq 0x28(%r14), %rsi
testq %rsi, %rsi
jne 0xa560
jmp 0xa56e
cmpl $0x26, %edx
jne 0xa743
movq 0x10(%r14), %rax
movq %rax, 0x70(%rbx)
leaq 0x28(%r14), %r15
xorl %r12d, %r12d
movzbl 0xa(%r14), %eax
cmpq %rax, %r12
jae 0xa500
testb $0x40, (%r15)
je 0xa2de
movq -0x8(%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xa2de
movq %rbx, %rdi
callq 0x974c
incq %r12
addq $0x10, %r15
jmp 0xa2b8
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
jne 0xa32e
pushq $0x1
popq %rax
jmp 0xa73f
testb $0x40, 0x8(%r15)
je 0xa32a
movq (%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xa32a
movq %rbx, %rdi
callq 0x974c
addq $0x10, %r15
cmpq 0x10(%r14), %r15
jb 0xa312
cmpb $0x8, 0x55(%rbx)
jne 0xa50c
movslq 0xb8(%r14), %rax
shlq $0x4, %rax
addq 0x38(%r14), %rax
cmpq %rax, %r15
jae 0xa51c
andl $0x0, 0x8(%r15)
addq $0x10, %r15
jmp 0xa34d
movq 0x70(%r14), %rax
movq %rax, 0x70(%rbx)
movq 0x60(%r14), %rax
testq %rax, %rax
je 0xa37d
testb $0x3, 0x9(%rax)
je 0xa37d
andq $0x0, 0x60(%r14)
movq 0x68(%r14), %rsi
testq %rsi, %rsi
je 0xa394
testb $0x3, 0x9(%rsi)
je 0xa394
movq %rbx, %rdi
callq 0x974c
pushq $0x8
popq %r15
xorl %r12d, %r12d
movslq 0x14(%r14), %rax
cmpq %rax, %r12
jge 0xa3cb
movq 0x30(%r14), %rax
testb $0x40, (%rax,%r15)
je 0xa3c2
movq -0x8(%rax,%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xa3c2
movq %rbx, %rdi
callq 0x974c
incq %r12
addq $0x10, %r15
jmp 0xa39b
xorl %r15d, %r15d
xorl %r12d, %r12d
movslq 0x10(%r14), %rax
cmpq %rax, %r12
jge 0xa3fe
movq 0x58(%r14), %rax
movq (%rax,%r15), %rsi
testq %rsi, %rsi
je 0xa3f5
testb $0x3, 0x9(%rsi)
je 0xa3f5
movq %rbx, %rdi
callq 0x974c
incq %r12
addq $0x10, %r15
jmp 0xa3d1
xorl %r15d, %r15d
movslq 0x20(%r14), %rax
cmpq %rax, %r15
jge 0xa42a
movq 0x40(%r14), %rax
movq (%rax,%r15,8), %rsi
testq %rsi, %rsi
je 0xa425
testb $0x3, 0x9(%rsi)
je 0xa425
movq %rbx, %rdi
callq 0x974c
incq %r15
jmp 0xa401
xorl %r15d, %r15d
xorl %r12d, %r12d
movslq 0x24(%r14), %rax
cmpq %rax, %r12
jge 0xa45d
movq 0x50(%r14), %rax
movq (%rax,%r15), %rsi
testq %rsi, %rsi
je 0xa454
testb $0x3, 0x9(%rsi)
je 0xa454
movq %rbx, %rdi
callq 0x974c
incq %r12
addq $0x10, %r15
jmp 0xa430
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 0xa73f
movq 0x10(%r14), %rax
movq %rax, 0x70(%rbx)
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0xa4a5
testb $0x3, 0x9(%rsi)
je 0xa4a5
movq %rbx, %rdi
callq 0x974c
xorl %r15d, %r15d
movzbl 0xa(%r14), %eax
cmpq %rax, %r15
jae 0xa4f3
movq 0x20(%r14,%r15,8), %rax
testq %rax, %rax
je 0xa4ee
movq (%rax), %rcx
leaq 0x10(%rax), %rdx
cmpq %rdx, %rcx
je 0xa4ce
cmpb $0x8, 0x55(%rbx)
jne 0xa4e7
testb $0x40, 0x8(%rcx)
je 0xa4ee
movq (%rcx), %rsi
testb $0x3, 0x9(%rsi)
je 0xa4ee
movq %rbx, %rdi
callq 0x974c
jmp 0xa4ee
movl $0x1, 0x18(%rax)
incq %r15
jmp 0xa4a8
leaq 0x20(,%rax,8), %rax
jmp 0xa73f
shll $0x4, %eax
addq $0x20, %rax
jmp 0xa73f
cmpb $0x1, 0x56(%rbx)
je 0xa53b
movq %r14, %rdi
callq 0x83b9
jmp 0xa53b
cmpq %r14, 0x50(%r14)
jne 0xa53b
cmpq $0x0, 0x40(%r14)
je 0xa53b
movq 0xa8(%rbx), %rax
movq %rax, 0x50(%r14)
movq %r14, 0xa8(%rbx)
movslq 0xb8(%r14), %rax
shlq $0x4, %rax
movzwl 0xa(%r14), %ecx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
addq $0xd0, %rax
jmp 0xa73f
xorl %r15d, %r15d
testb $0x3, 0x9(%rsi)
je 0xa56e
movq %rbx, %rdi
callq 0x974c
testq %r15, %r15
je 0xa5d5
movl 0x8(%r15), %eax
andl $0xf, %eax
cmpl $0x4, %eax
jne 0xa5d5
movq (%r15), %r12
addq $0x18, %r12
pushq $0x6b
popq %rsi
movq %r12, %rdi
callq 0x5160
movq %rax, %r15
pushq $0x76
popq %rsi
movq %r12, %rdi
callq 0x5160
movq %r15, %rcx
orq %rax, %rcx
je 0xa5d5
andb $-0x5, 0x9(%r14)
testq %r15, %r15
je 0xa67c
testq %rax, %rax
je 0xa704
movq 0x90(%rbx), %rax
movq %rax, 0x30(%r14)
movq %r14, 0x90(%rbx)
jmp 0xa720
movq 0x18(%r14), %r12
movzbl 0xb(%r14), %ebp
pushq $0x8
popq %r15
xorl %r13d, %r13d
movl 0xc(%r14), %eax
cmpq %rax, %r13
jae 0xa615
movq 0x10(%r14), %rax
testb $0x40, (%rax,%r15)
je 0xa60c
movq -0x8(%rax,%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xa60c
movq %rbx, %rdi
callq 0x974c
incq %r13
addq $0x10, %r15
jmp 0xa5e5
pushq $0x1
popq %rax
movl %ebp, %ecx
shll %cl, %eax
cltq
shlq $0x5, %rax
addq %rax, %r12
movq 0x18(%r14), %r15
cmpq %r12, %r15
jae 0xa720
movl 0x8(%r15), %eax
testl %eax, %eax
je 0xa66e
testb $0x40, 0x18(%r15)
je 0xa657
movq 0x10(%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xa657
movq %rbx, %rdi
callq 0x974c
movl 0x8(%r15), %eax
testb $0x40, %al
je 0xa676
movq (%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xa676
movq %rbx, %rdi
callq 0x974c
jmp 0xa676
movq %r15, %rdi
callq 0xa94a
addq $0x20, %r15
jmp 0xa629
pushq $0x1
popq %rbp
movb 0xb(%r14), %cl
movl %ebp, %eax
shll %cl, %eax
movq 0x18(%r14), %r15
movslq %eax, %r12
shlq $0x5, %r12
addq %r15, %r12
xorl %r13d, %r13d
cmpl $0x0, 0xc(%r14)
setne %r13b
cmpq %r12, %r15
jae 0xa6f2
cmpl $0x0, 0x8(%r15)
je 0xa6e4
testb $0x40, 0x18(%r15)
je 0xa6c6
movq 0x10(%r15), %rsi
testb $0x3, 0x9(%rsi)
je 0xa6c6
movq %rbx, %rdi
callq 0x974c
testl %r13d, %r13d
movl %ebp, %r13d
jne 0xa6ec
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa962
xorl %r13d, %r13d
testl %eax, %eax
setne %r13b
jmp 0xa6ec
movq %r15, %rdi
callq 0xa94a
addq $0x20, %r15
jmp 0xa6a1
cmpb $0x0, 0x55(%rbx)
je 0xa711
movl $0x80, %eax
testl %r13d, %r13d
jne 0xa714
jmp 0xa720
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa825
jmp 0xa720
pushq $0x78
popq %rax
movq (%rbx,%rax), %rcx
movq %rcx, 0x30(%r14)
movq %r14, (%rbx,%rax)
movl 0xc(%r14), %eax
movb 0xb(%r14), %cl
pushq $0x1
popq %rdx
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