// File: /workspace/github_c_makefile_star2_O1/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 0x2d009
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x499cd(%rip), %r13     # 0x76707
xorl %ebp, %ebp
movq %rsi, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
movq (%r14,%rbp,8), %r15
testq %r15, %r15
je 0x2cd8d
movq %r13, %r12
movl (%r15), %r13d
cmpl $0x1, %r13d
je 0x2cd6e
testl %r13d, %r13d
jne 0x2cd9a
addq $0x8, %r15
movq %r15, %rdi
callq 0x2ca9a
jmp 0x2cd80
movq 0x8(%r15), %rsi
leaq 0x47108(%rip), %rdi     # 0x73e81
xorl %eax, %eax
callq 0x12110
movq %r12, %r13
movl $0xa, %edi
callq 0x12030
incq %rbp
cmpq %rbx, %rbp
jne 0x2cd46
jmp 0x2cffb
leal -0x2(%r13), %eax
cmpl $0x5, %eax
ja 0x2cea6
movl $0x9, %edi
callq 0x12030
leal -0x3(%r13), %eax
cmpl $0x4, %eax
ja 0x2cddf
movl $0x1b, %ecx
btl %eax, %ecx
jae 0x2cddf
movl %eax, %eax
leaq 0x46fdb(%rip), %rcx     # 0x73da8
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
movq 0x18(%r15), %rsi
xorl %eax, %eax
callq 0x12110
addl $-0x5, %r13d
cmpl $0x3, %r13d
leaq 0x4741a(%rip), %rdi     # 0x74208
leaq 0x47408(%rip), %rax     # 0x741fd
cmovbq %rax, %rdi
movq 0x8(%r15), %rsi
xorl %eax, %eax
callq 0x12110
cmpq $0x0, 0x10(%r15)
movq %r12, %r13
je 0x2cd83
leaq 0x473f8(%rip), %rdi     # 0x74211
xorl %eax, %eax
callq 0x12110
movq 0x20(%r15), %rax
cmpl $0x1, (%rax)
leaq 0x4a71a(%rip), %rsi     # 0x77548
cmoveq %r13, %rsi
movq 0x8(%rax), %rdx
leaq 0x473d9(%rip), %rdi     # 0x74216
xorl %eax, %eax
callq 0x12110
cmpq $0x2, 0x10(%r15)
leaq 0x473c4(%rip), %r12     # 0x74214
jb 0x2ce8d
movl $0x1, %ebx
movl $0x20, %r14d
movq 0x20(%r15), %rax
cmpl $0x1, -0x8(%rax,%r14)
leaq 0x4a6da(%rip), %rsi     # 0x77548
cmoveq %r13, %rsi
movq (%rax,%r14), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x12110
incq %rbx
addq $0x18, %r14
cmpq 0x10(%r15), %rbx
jb 0x2ce5d
movl $0x29, %edi
callq 0x12030
movq 0x10(%rsp), %rbx
movq 0x8(%rsp), %r14
jmp 0x2cd83
cmpl $0x8, %r13d
movq %r12, %r13
jne 0x2cd8d
movq 0x8(%r15), %rsi
leaq 0x4735e(%rip), %rdi     # 0x7421c
xorl %eax, %eax
callq 0x12110
movl 0x10(%r15), %eax
testl %eax, %eax
je 0x2cf21
xorl %r13d, %r13d
xorl %ecx, %ecx
btl %ecx, %eax
adcq $0x0, %r13
incq %rcx
cmpq $0x10, %rcx
jne 0x2ced2
cmpq $0x1, %r13
adcq $0x0, %r13
xorl %ebx, %ebx
leaq 0x497db(%rip), %rdi     # 0x766ce
xorl %eax, %eax
callq 0x12110
movl 0x10(%r15), %eax
btl %ebx, %eax
jae 0x2cf19
movq 0x28(%r15), %rax
movq (%rax,%rbx,8), %rsi
leaq 0x4731e(%rip), %rdi     # 0x74230
xorl %eax, %eax
callq 0x12110
incq %rbx
cmpq %rbx, %r13
jne 0x2ceec
cmpl $0x0, 0x14(%r15)
je 0x2cfbd
leaq 0x472f6(%rip), %rdi     # 0x74229
xorl %eax, %eax
callq 0x12110
movl 0x14(%r15), %eax
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %esi
shll %cl, %esi
movq %rdx, %r13
xorl %edx, %edx
andl %eax, %esi
setne %dl
addq %r13, %rdx
incq %rcx
cmpq $0x10, %rcx
jne 0x2cf42
cmpl $0x1, %esi
sbbq $-0x1, %r13
decq %r13
movl $0x8, %r14d
xorl %ebx, %ebx
movl 0x14(%r15), %eax
btl %ebx, %eax
jae 0x2cfa1
movq 0x30(%r15), %rax
cmpb $0x0, (%rax,%r14)
movq -0x8(%rax,%r14), %rsi
leaq 0x472a8(%rip), %rdi     # 0x74237
leaq 0x4729a(%rip), %rax     # 0x74230
cmovneq %rax, %rdi
xorl %eax, %eax
callq 0x12110
cmpq %rbx, %r13
je 0x2cfbd
leaq 0x49721(%rip), %rdi     # 0x766ce
xorl %eax, %eax
callq 0x12110
addq $0x10, %r14
incq %rbx
jmp 0x2cf71
movq 0x18(%r15), %rsi
cmpq $-0x1, %rsi
movq 0x10(%rsp), %rbx
movq 0x8(%rsp), %r14
movq %r12, %r13
je 0x2cd83
cmpb $0x1, 0x20(%r15)
jne 0x2cfe8
leaq 0x47247(%rip), %rdi     # 0x7422d
jmp 0x2cfef
leaq 0x47245(%rip), %rdi     # 0x74234
xorl %eax, %eax
callq 0x12110
jmp 0x2cd83
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq