// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/common/ir.c
// Function: prv_dump_section_ops
static void prv_dump_section_ops(subtilis_ir_op_t **ops, size_t len)
{
	size_t i;

	for (i = 0; i < len; i++) {
		if (!ops[i])
			continue;
		if (ops[i]->type == SUBTILIS_OP_INSTR)
			prv_dump_instr(&ops[i]->op.instr);
		else if (ops[i]->type == SUBTILIS_OP_LABEL)
			printf("label_%zu", ops[i]->op.label);
		else if (prv_is_call(ops[i]))
			prv_dump_call(ops[i]->type, &ops[i]->op.call);
		else if (ops[i]->type == SUBTILIS_OP_SYS_CALL)
			prv_dump_sys_call(&ops[i]->op.sys_call);
		else
			continue;
		printf("\n");
	}
}

// Assembly:
testq %rsi, %rsi
je 0x2cc98
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x4abd0(%rip), %r12     # 0x775ac
xorl %ebp, %ebp
movq %rdi, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq (%rbx,%rbp,8), %r15
testq %r15, %r15
je 0x2cc7e
movl (%r15), %r14d
cmpl $0x1, %r14d
je 0x2ca14
testl %r14d, %r14d
jne 0x2ca2b
addq $0x8, %r15
movq %r15, %rdi
callq 0x2c73f
jmp 0x2cc6f
movq 0x8(%r15), %rsi
leaq 0x47482(%rip), %rdi     # 0x73ea1
xorl %eax, %eax
callq 0x12110
jmp 0x2cc6f
leal -0x2(%r14), %eax
cmpl $0x5, %eax
ja 0x2cb31
movl $0x9, %edi
callq 0x12030
leal -0x3(%r14), %eax
cmpl $0x4, %eax
ja 0x2ca70
movl $0x1b, %ecx
btl %eax, %ecx
jae 0x2ca70
movl %eax, %eax
leaq 0x4736a(%rip), %rcx     # 0x73dc8
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
movq 0x18(%r15), %rsi
xorl %eax, %eax
callq 0x12110
addl $-0x5, %r14d
cmpl $0x3, %r14d
leaq 0x477a9(%rip), %rdi     # 0x74228
leaq 0x47797(%rip), %rax     # 0x7421d
cmovbq %rax, %rdi
movq 0x8(%r15), %rsi
xorl %eax, %eax
callq 0x12110
cmpq $0x0, 0x10(%r15)
je 0x2cc6f
leaq 0x4778a(%rip), %rdi     # 0x74231
xorl %eax, %eax
callq 0x12110
movq 0x20(%r15), %rax
cmpl $0x1, (%rax)
movq %r12, %rsi
movq %r12, %r13
leaq 0x49c85(%rip), %r12     # 0x76747
cmoveq %r12, %rsi
movq 0x8(%rax), %rdx
leaq 0x47765(%rip), %rdi     # 0x74236
xorl %eax, %eax
callq 0x12110
cmpq $0x2, 0x10(%r15)
jb 0x2cb1a
movl $0x1, %ebx
movl $0x20, %r14d
movq 0x20(%r15), %rax
cmpl $0x1, -0x8(%rax,%r14)
movq %r13, %rsi
cmoveq %r12, %rsi
movq (%rax,%r14), %rdx
leaq 0x4772e(%rip), %rdi     # 0x74234
xorl %eax, %eax
callq 0x12110
incq %rbx
addq $0x18, %r14
cmpq 0x10(%r15), %rbx
jb 0x2caea
movl $0x29, %edi
callq 0x12030
movq 0x8(%rsp), %rbx
movq %r13, %r12
jmp 0x2cc6f
cmpl $0x8, %r14d
jne 0x2cc7e
movq 0x8(%r15), %rsi
leaq 0x476f6(%rip), %rdi     # 0x7423c
xorl %eax, %eax
callq 0x12110
movl 0x10(%r15), %eax
testl %eax, %eax
je 0x2cba9
xorl %r13d, %r13d
xorl %ecx, %ecx
btl %ecx, %eax
adcq $0x0, %r13
incq %rcx
cmpq $0x10, %rcx
jne 0x2cb5a
cmpq $0x1, %r13
adcq $0x0, %r13
xorl %ebx, %ebx
leaq 0x49b93(%rip), %rdi     # 0x7670e
xorl %eax, %eax
callq 0x12110
movl 0x10(%r15), %eax
btl %ebx, %eax
jae 0x2cba1
movq 0x28(%r15), %rax
movq (%rax,%rbx,8), %rsi
leaq 0x476b6(%rip), %rdi     # 0x74250
xorl %eax, %eax
callq 0x12110
incq %rbx
cmpq %rbx, %r13
jne 0x2cb74
cmpl $0x0, 0x14(%r15)
je 0x2cc44
leaq 0x4768e(%rip), %rdi     # 0x74249
xorl %eax, %eax
callq 0x12110
movl 0x14(%r15), %eax
xorl %edx, %edx
xorl %ecx, %ecx
movq %rdx, %r13
movl $0x1, %esi
shll %cl, %esi
btl %ecx, %eax
adcq $0x0, %rdx
incq %rcx
cmpq $0x10, %rcx
jne 0x2cbca
andl %eax, %esi
cmpl $0x1, %esi
sbbq $-0x1, %r13
decq %r13
movl $0x8, %r14d
xorl %ebx, %ebx
btl %ebx, %eax
jae 0x2cc24
movq 0x30(%r15), %rax
cmpb $0x0, (%rax,%r14)
movq -0x8(%rax,%r14), %rsi
leaq 0x47645(%rip), %rdi     # 0x74257
leaq 0x47637(%rip), %rax     # 0x74250
cmovneq %rax, %rdi
xorl %eax, %eax
callq 0x12110
cmpq %rbx, %r13
je 0x2cc44
leaq 0x49ade(%rip), %rdi     # 0x7670e
xorl %eax, %eax
callq 0x12110
movl 0x14(%r15), %eax
addq $0x10, %r14
incq %rbx
jmp 0x2cbf8
movq 0x18(%r15), %rsi
cmpq $-0x1, %rsi
movq 0x8(%rsp), %rbx
je 0x2cc6f
cmpb $0x0, 0x20(%r15)
leaq 0x475f5(%rip), %rdi     # 0x74254
leaq 0x475e7(%rip), %rax     # 0x7424d
cmovneq %rax, %rdi
jmp 0x2ca1f
movl $0xa, %edi
callq 0x12030
movq 0x10(%rsp), %rsi
incq %rbp
cmpq %rsi, %rbp
jne 0x2c9e8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq