// File: /workspace/github_c_makefile_star2_O2/wahern[P]cqueues/src/cqueues.c
// Function: cqueue_process_threads
static cqs_status_t cqueue_process_threads(lua_State *L, struct cqueue *Q, struct callinfo *I) {
	cqs_status_t status;
	struct thread *nxt;

	for (; Q->thread.current; Q->thread.current = nxt) {
		nxt = LIST_NEXT(Q->thread.current, le);

		if (LUA_OK != (status = cqueue_resume(L, Q, I, Q->thread.current))) {
			return status;
		}
	}

	return LUA_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1f0(%rsi), %rax
movq %rax, 0x60(%rsp)
leaq 0x1d8(%rsi), %rax
movq %rax, 0x58(%rsp)
leaq 0x1a0(%rsi), %rax
movq %rax, 0x28(%rsp)
leaq 0x1b8(%rsi), %rax
movq %rax, 0x40(%rsp)
leaq 0x1b0(%rsi), %rax
movq %rax, 0x48(%rsp)
leaq 0x228(%rsi), %rax
movq %rax, 0x20(%rsp)
leaq 0x208(%rsi), %rax
movq %rax, 0x50(%rsp)
movq 0x218(%rsi), %r13
movq %rdx, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
testq %r13, %r13
je 0x1325c
movq 0x28(%r13), %rax
movq %rax, 0x70(%rsp)
movq %r15, %rdi
callq 0xf970
movl %eax, 0x3c(%rsp)
movq (%r13), %rdi
callq 0xf2b0
movl %eax, %ebp
cmpl $0x1, %eax
jne 0x128d4
movq (%r13), %rdi
pushq $0x1
popq %rsi
callq 0xf270
cmpl $0x2, %eax
jne 0x128d4
movq (%r13), %rdi
pushq $0x1
popq %rsi
callq 0x10110
cmpq 0x32692(%rip), %rax     # 0x44f60
je 0x12a41
movq (%r13), %rdi
callq 0xf970
movl %eax, %ebx
cmpl $0x1, %ebp
setne %al
testl %ebx, %ebx
setg %cl
andb %al, %cl
movzbl %cl, %eax
subl %eax, %ebx
pushq $0x1
popq %rbp
leaq 0x40(%r13), %rsi
movq %r14, %rdi
movq %rsi, 0x68(%rsp)
callq 0x13363
movq 0x230(%r14), %rax
movq %r14, 0x98(%rsp)
movq %r15, 0xa0(%rsp)
movl (%r12), %ecx
movl %ecx, 0xa8(%rsp)
movq (%r13), %rdi
movq %rdi, 0xb0(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0xb8(%rsp)
leaq 0x98(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq %r15, %rsi
movl %ebx, %edx
callq 0xf1a0
movl %eax, %ebx
movq (%r13), %rdi
callq 0xf970
movq 0x230(%r14), %rdx
movq 0x8(%rdx), %rcx
movq 0x20(%rcx), %rcx
movq %rcx, 0x8(%rdx)
testl %ebx, %ebx
je 0x129c6
cmpl $0x1, %ebx
jne 0x129e2
testl %eax, %eax
jle 0x129aa
movl %eax, %ebx
movq (%r13), %rdi
movl %ebp, %esi
callq 0xf270
cmpl $0x2, %eax
jne 0x129aa
movq (%r13), %rdi
movl %ebp, %esi
callq 0x10110
cmpq 0x325bc(%rip), %rax     # 0x44f60
je 0x12b77
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x135a7
movl %ebp, %ebx
testl %eax, %eax
jne 0x129db
jmp 0x12b3a
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x135a7
testl %eax, %eax
je 0x12a29
movl %eax, %ebx
jmp 0x12b29
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x135a7
testl %eax, %eax
jne 0x12b29
movq (%r13), %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x102c0
movq %r15, %rdi
callq 0xf970
movl %eax, 0x4(%r12)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x13788
jmp 0x12b29
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x136d6
xorl %ebx, %ebx
jmp 0x12b3a
movq (%r13), %rbx
movq %rbx, %rdi
callq 0xf970
movl %eax, %r15d
movq %rbx, %rdi
movl %eax, %esi
callq 0x10180
testl %eax, %eax
je 0x12b05
leal 0x14(%r15), %esi
movq 0x10(%rsp), %rdi
callq 0x10180
testl %eax, %eax
je 0x12b05
testl %r15d, %r15d
movl %r15d, %ebp
movl $0x0, %eax
cmovlel %eax, %ebp
negl %ebp
pushq $0x1
popq %rax
movl %eax, %r12d
leal (%r12,%rbp), %eax
cmpl $0x1, %eax
je 0x12aa7
movq %rbx, %rdi
movl %r12d, %esi
callq 0xfa10
incl %r12d
jmp 0x12a8e
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movl %r15d, %edx
callq 0x102c0
movq (%r13), %rdi
movl 0x18(%r13), %esi
addl $0x14, %esi
callq 0x10180
testl %eax, %eax
movq 0x8(%rsp), %r12
je 0x12b05
xorl %ebx, %ebx
pushq $0x1
popq %rbp
movq 0x8(%r13), %r15
testq %r15, %r15
je 0x1304a
cmpb $0x1, 0x10(%r15)
jne 0x12af8
movq (%r13), %rdi
movl 0x14(%r15), %esi
callq 0xfa10
incl %ebx
movq %r14, %rdi
movq %r15, %rsi
callq 0x13272
jmp 0x12ad5
movq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %r13, %rcx
xorl %r8d, %r8d
leaq 0x1d764(%rip), %r9      # 0x30283
xorl %eax, %eax
callq 0x137be
pushq $0x4
popq %rbx
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x136d6
cmpl $0x0, 0x4(%r12)
jne 0x12b5e
cmpl $0x0, 0xc(%r12)
jne 0x12b5e
cmpl $0x0, 0x10(%r12)
jne 0x12b5e
movq %r15, %rdi
movl 0x3c(%rsp), %esi
callq 0x106f0
testl %ebx, %ebx
jne 0x1325e
movq 0x70(%rsp), %r13
movq %r13, 0x218(%r14)
jmp 0x1287c
incl %ebx
pushq $0x2
popq %rbp
movl %ebx, 0x30(%rsp)
cmpl %ebx, %ebp
je 0x13054
movq (%r13), %rdi
movl %ebp, %esi
callq 0xf270
testl %eax, %eax
je 0x12fe3
movq 0x60(%rsp), %rdi
leaq 0x1c(%rsp), %rsi
callq 0x139fa
testq %rax, %rax
je 0x1309d
movq %rax, %r12
pxor %xmm0, %xmm0
movdqu %xmm0, (%rax)
movdqu %xmm0, 0x10(%rax)
movdqu %xmm0, 0x40(%rax)
movdqu %xmm0, 0x30(%rax)
movdqu %xmm0, 0x20(%rax)
orl $-0x1, (%rax)
addq $0x20, %rax
movabsq $0x7ff8000000000000, %rcx # imm = 0x7FF8000000000000
movq %rcx, 0x8(%r12)
movl %ebp, 0x14(%r12)
movq %r13, 0x18(%r12)
movq 0x10(%r13), %rcx
movq %rcx, 0x28(%r12)
movq %r12, (%rcx)
movq %rax, 0x10(%r13)
incl 0x18(%r13)
movq (%r13), %rdi
movl %ebp, %esi
callq 0xfc00
movq (%r13), %rdi
movl %ebp, %esi
testl %eax, %eax
je 0x12c33
xorl %edx, %edx
callq 0x10810
callq 0x13a8d
movq %xmm0, 0x8(%r12)
jmp 0x12e63
callq 0xfa10
movq (%r13), %rdi
movq 0x10(%rsp), %r15
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0x102c0
movq %r15, %rdi
pushq $-0x1
popq %rbx
movl %ebx, %esi
pushq $0x2
popq %rdx
callq 0x1145f
movq %r15, %rdi
movl %ebx, %esi
testq %rax, %rax
je 0x12c9a
callq 0xf990
movl %eax, (%r12)
movq %r15, %rdi
movl %ebx, %esi
callq 0x10aa0
movw %ax, 0x4(%r12)
movq %r15, %rdi
movl %ebx, %esi
callq 0x10420
callq 0x13a8d
movq %xmm0, 0x8(%r12)
jmp 0x12e58
pushq $0x3
popq %rdx
callq 0x1145f
testq %rax, %rax
je 0x12cca
movq %r15, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
movq %r13, %rcx
movq %r12, %r8
callq 0x13adf
testl %eax, %eax
je 0x12e58
jmp 0x1319d
movabsq $0x700000003, %rax      # imm = 0x700000003
movq %rax, 0x8c(%rsp)
andl $0x0, 0x94(%rsp)
movl $0x3, (%rsp)
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movq %r13, %rdx
movl %ebx, %ecx
leaq 0x1d430(%rip), %r8      # 0x3012f
leaq 0x8c(%rsp), %r9
callq 0x13c08
testl %eax, %eax
jne 0x1319d
movl %ebx, %ecx
movq %r15, %rdi
movl %ecx, %esi
callq 0x10740
testl %eax, %eax
je 0x12d55
movq %r15, %rdi
movl %ebx, %esi
pushq $0x3
popq %rdx
callq 0x1145f
testq %rax, %rax
je 0x12d55
movq %r15, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
movq %r13, %rcx
movq %r12, %r8
callq 0x13adf
testl %eax, %eax
je 0x12d6b
jmp 0x1319d
movq %r15, %rdi
movl %ebx, %esi
pushq $-0x1
popq %rdx
callq 0xf420
testl %eax, %eax
cmovsl %ebx, %eax
movl %eax, (%r12)
movq %r15, %rdi
pushq $-0x2
popq %rsi
callq 0x106f0
movabsq $0x400000003, %rax      # imm = 0x400000003
movq %rax, 0x80(%rsp)
andl $0x0, 0x88(%rsp)
movl $0x3, (%rsp)
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movq %r13, %rdx
pushq $-0x1
popq %rcx
leaq 0x1d38a(%rip), %r8      # 0x30136
leaq 0x80(%rsp), %r9
callq 0x13c08
testl %eax, %eax
jne 0x1319d
movq %r15, %rdi
pushq $-0x1
popq %rbx
movl %ebx, %esi
callq 0xfc00
testl %eax, %eax
je 0x12fee
movq %r15, %rdi
movl %ebx, %esi
xorl %edx, %edx
callq 0xfdb0
andl $0x7, %eax
movw %ax, 0x4(%r12)
pushq $-0x2
popq %rdx
movq %r15, %rdi
movl %edx, %esi
callq 0x106f0
movq $0x3, 0x78(%rsp)
movl $0x2, (%rsp)
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movq %r13, %rdx
pushq $-0x1
popq %rcx
leaq 0x1d7ef(%rip), %r8      # 0x3060c
leaq 0x78(%rsp), %r9
callq 0x13c08
testl %eax, %eax
jne 0x1319d
movq 0x8(%r12), %xmm0
movq %r15, %rdi
pushq $-0x1
popq %rsi
callq 0xf7c0
callq 0x13a8d
movq %xmm0, 0x8(%r12)
movq %r15, %rdi
pushq $-0x2
popq %rsi
callq 0x106f0
movq %r15, %rdi
pushq $-0x2
popq %rsi
callq 0x106f0
movl (%r12), %r15d
testl %r15d, %r15d
js 0x12fd9
cmpw $0x0, 0x4(%r12)
je 0x12fd9
movq %r14, %rdi
movl %r15d, %esi
callq 0x116f1
movq %rax, %rbx
testq %rax, %rax
jne 0x12f76
movq 0x58(%rsp), %rdi
leaq 0x1c(%rsp), %rsi
callq 0x139fa
testq %rax, %rax
je 0x1309d
movq %rax, %rbx
movl %r15d, (%rax)
andw $0x0, 0x4(%rax)
andq $0x0, 0x8(%rax)
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x30(%rbx)
testq %rax, %rax
je 0x12ed8
movq %rbx, %rcx
addq $0x30, %rcx
movq %rcx, 0x38(%rax)
movq 0x40(%rsp), %rax
movq %rbx, (%rax)
movq %rax, 0x38(%rbx)
movq 0x28(%rsp), %rcx
xorl %eax, %eax
movq (%rcx), %rdx
testq %rdx, %rdx
je 0x12f08
pushq $0x10
popq %rcx
cmpl %r15d, (%rdx)
jg 0x12f00
pushq $0x18
popq %rcx
je 0x12f76
addq %rdx, %rcx
movq %rdx, %rax
jmp 0x12eeb
pxor %xmm0, %xmm0
movdqu %xmm0, 0x10(%rbx)
movb $0x1, 0x28(%rbx)
movq %rax, 0x20(%rbx)
movq %rbx, (%rcx)
testq %rax, %rax
je 0x12f6a
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x12f30
cmpb $0x0, 0x28(%rcx)
jne 0x12f3f
movq 0x18(%rax), %rcx
testq %rcx, %rcx
je 0x12f6a
cmpb $0x1, 0x28(%rcx)
jne 0x12f6a
movq 0x20(%rax), %r15
movq 0x28(%rsp), %rcx
movq %rcx, %rdi
cmpq (%rcx), %rax
je 0x12f60
cmpq 0x10(%r15), %rax
je 0x12f5c
leaq 0x18(%r15), %rdi
jmp 0x12f60
leaq 0x10(%r15), %rdi
callq 0x13d65
movq %r15, %rax
jmp 0x12f1c
movq 0x28(%rsp), %rax
movq (%rax), %rax
movb $0x0, 0x28(%rax)
movq 0x8(%rbx), %rax
movq %rax, 0x38(%r12)
testq %rax, %rax
je 0x12f8f
movq %r12, %rcx
addq $0x38, %rcx
movq %rcx, 0x40(%rax)
leaq 0x8(%rbx), %rax
movq %r12, 0x8(%rbx)
movq %rax, 0x40(%r12)
movq %rbx, 0x30(%r12)
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rdx
testq %rax, %rax
je 0x12fb2
movq %rdx, 0x38(%rax)
leaq 0x30(%rbx), %rcx
movq %rax, (%rdx)
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq %rax, (%rcx)
testq %rax, %rax
je 0x12fcd
movq %rcx, 0x38(%rax)
movq 0x48(%rsp), %rax
movq %rbx, (%rax)
movq %rax, 0x38(%rbx)
movq 0x8(%rsp), %r12
movq 0x10(%rsp), %r15
incl %ebp
movl 0x30(%rsp), %ebx
jmp 0x12b80
movl %ebx, %esi
xorl %ebx, %ebx
movq %r15, %rdi
leaq 0x20fff(%rip), %rdx     # 0x33ffb
xorl %ecx, %ecx
callq 0xf900
andw $0x0, 0x4(%r12)
pushq $-0x2
popq %rdx
movzbl (%rax), %ecx
cmpl $0x70, %ecx
je 0x1302e
cmpl $0x72, %ecx
je 0x13028
cmpl $0x77, %ecx
je 0x13034
testl %ecx, %ecx
jne 0x13045
jmp 0x12dee
movw $0x1, %cx
jmp 0x13038
movw $0x2, %cx
jmp 0x13038
movw $0x4, %cx
movzwl %cx, %ecx
orl %ebx, %ecx
movw %cx, 0x4(%r12)
movl %ecx, %ebx
incq %rax
jmp 0x1300d
movq 0x10(%rsp), %r15
jmp 0x128f4
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x135a7
testl %eax, %eax
jne 0x129db
leaq 0x8(%r13), %r15
movq 0x1cf8f(%rip), %xmm0    # 0x30008
movq %r15, %rbx
movq 0x68(%rsp), %rbp
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x13132
movsd 0x8(%rbx), %xmm1
callq 0x12303
addq $0x20, %rbx
jmp 0x13081
movl 0x1c(%rsp), %ebx
pxor %xmm0, %xmm0
movdqa %xmm0, 0xc0(%rsp)
movdqa %xmm0, 0xd0(%rsp)
movdqa %xmm0, 0xe0(%rsp)
movdqa %xmm0, 0xf0(%rsp)
movdqa %xmm0, 0x100(%rsp)
movdqa %xmm0, 0x110(%rsp)
movdqa %xmm0, 0x120(%rsp)
movdqa %xmm0, 0x130(%rsp)
movl $0x80, %edx
movl %ebx, %edi
leaq 0xc0(%rsp), %rsi
callq 0xf260
movq %rax, (%rsp)
movq 0x10(%rsp), %r15
movq %r15, %rdi
movq 0x8(%rsp), %r12
movq %r12, %rsi
movl %ebx, %edx
movq %r13, %rcx
movl %ebp, %r8d
leaq 0x1d1b7(%rip), %r9      # 0x302db
xorl %eax, %eax
callq 0x137be
pushq $0x2
jmp 0x12b28
movq %r14, %rdi
movq %rbp, %rsi
movq %xmm0, 0x30(%rsp)
callq 0x13363
movq 0x30(%rsp), %xmm0
movq %xmm0, %rax
btrq $0x3f, %rax
movabsq $0x7fefffffffffffff, %rcx # imm = 0x7FEFFFFFFFFFFFFF
cmpq %rcx, %rax
jg 0x13219
movq %xmm0, (%rbp)
movq 0x20(%rsp), %rcx
xorl %eax, %eax
movq (%rcx), %rbx
testq %rbx, %rbx
je 0x131a9
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x13897
pushq $0x8
popq %rcx
testl %eax, %eax
js 0x13195
pushq $0x10
popq %rcx
je 0x13219
addq %rbx, %rcx
movq %rbx, %rax
jmp 0x13172
movl %eax, %ebx
movq 0x8(%rsp), %r12
jmp 0x12b29
pxor %xmm0, %xmm0
movdqu %xmm0, 0x48(%r13)
movb $0x1, 0x60(%r13)
movq %rax, 0x58(%r13)
movq %rbp, (%rcx)
testq %rax, %rax
je 0x1320d
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x131d3
cmpb $0x0, 0x20(%rcx)
jne 0x131e2
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x1320d
cmpb $0x1, 0x20(%rcx)
jne 0x1320d
movq 0x18(%rax), %rbx
movq 0x20(%rsp), %rcx
movq %rcx, %rdi
cmpq (%rcx), %rax
je 0x13203
cmpq 0x8(%rbx), %rax
je 0x131ff
leaq 0x10(%rbx), %rdi
jmp 0x13203
leaq 0x8(%rbx), %rdi
callq 0x13933
movq %rbx, %rax
jmp 0x131bf
movq 0x20(%rsp), %rax
movq (%rax), %rax
movb $0x0, 0x20(%rax)
cmpq $0x0, (%r15)
movq 0x10(%rsp), %r15
jne 0x1324a
movq (%rbp), %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
andq %rcx, %rax
xorl %ebx, %ebx
movabsq $0x7fefffffffffffff, %rcx # imm = 0x7FEFFFFFFFFFFFFF
cmpq %rcx, %rax
jg 0x12b3a
movq %r13, %rdi
movq 0x50(%rsp), %rsi
callq 0x117eb
jmp 0x12a3a
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq