// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/arch/arm32/arm_sub_section.c
// Function: prv_visit_subsection
static void
prv_visit_subsection(subtilis_arm_subsections_t *sss, subtilis_arm_ss_t *ss,
		     subtilis_arm_ss_link_t *start, subtilis_bitset_t *int_save,
		     subtilis_bitset_t *real_save, subtilis_bitset_t *visited,
		     subtilis_error_t *err)
{
	subtilis_bitset_t int_scratch;
	subtilis_bitset_t real_scratch;
	subtilis_arm_ss_t *next;
	size_t i;
	size_t link;
	size_t label;

	subtilis_bitset_init(&int_scratch);
	subtilis_bitset_init(&real_scratch);

	subtilis_bitset_or(&int_scratch, &start->int_outputs, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_bitset_or(&real_scratch, &start->real_outputs, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_bitset_and(&int_scratch, &ss->int_inputs);
	subtilis_bitset_and(&real_scratch, &ss->real_inputs);
	subtilis_bitset_or(int_save, &int_scratch, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_bitset_or(real_save, &real_scratch, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	for (i = 0; i < ss->num_links; i++) {
		link = ss->links[i].link;
		if (link >= sss->link_count) {
			subtilis_error_set_assertion_failed(err);
			goto cleanup;
		}
		if (subtilis_bitset_isset(visited, link))
			continue;
		subtilis_bitset_set(visited, link, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
		label = sss->ss_link_map[link];
		if (label == SIZE_MAX) {
			subtilis_error_set_assertion_failed(err);
			goto cleanup;
		}
		next = &sss->sub_sections[label];
		prv_visit_subsection(sss, next, start, int_save, real_save,
				     visited, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
	}

cleanup:

	subtilis_bitset_free(&int_scratch);
	subtilis_bitset_free(&real_scratch);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x88790
leaq -0x60(%rbp), %rdi
callq 0x88790
movq -0x18(%rbp), %rsi
movq 0x10(%rbp), %rdx
leaq -0x48(%rbp), %rdi
callq 0x88cd0
movq 0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x89f38
jmp 0x8a0e6
movq -0x18(%rbp), %rsi
addq $0x18, %rsi
movq 0x10(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x88cd0
movq 0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x89f5b
jmp 0x8a0e6
movq -0x10(%rbp), %rsi
addq $0x18, %rsi
leaq -0x48(%rbp), %rdi
callq 0x88bc0
movq -0x10(%rbp), %rsi
addq $0x30, %rsi
leaq -0x60(%rbp), %rdi
callq 0x88bc0
movq -0x20(%rbp), %rdi
movq 0x10(%rbp), %rdx
leaq -0x48(%rbp), %rsi
callq 0x88cd0
movq 0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x89f9c
jmp 0x8a0e6
movq -0x28(%rbp), %rdi
movq 0x10(%rbp), %rdx
leaq -0x60(%rbp), %rsi
callq 0x88cd0
movq 0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x89fbb
jmp 0x8a0e6
movq $0x0, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x128(%rcx), %rax
jae 0x8a0e4
movq -0x10(%rbp), %rax
addq $0x48, %rax
imulq $0x70, -0x70(%rbp), %rcx
addq %rcx, %rax
movq 0x60(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x18(%rcx), %rax
jb 0x8a01d
movq 0x10(%rbp), %rdi
movl $0xf, %esi
leaq 0x238b9(%rip), %rdx     # 0xad8c7
movl $0x108, %ecx            # imm = 0x108
callq 0x158e0
jmp 0x8a0e6
movq -0x30(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x88990
testb $0x1, %al
jne 0x8a030
jmp 0x8a035
jmp 0x8a0d3
movq -0x30(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq 0x10(%rbp), %rdx
callq 0x88810
movq 0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x8a054
jmp 0x8a0e6
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x78(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x80(%rbp)
cmpq $-0x1, -0x80(%rbp)
jne 0x8a08b
movq 0x10(%rbp), %rdi
movl $0xf, %esi
leaq 0x23848(%rip), %rdx     # 0xad8c7
movl $0x112, %ecx            # imm = 0x112
callq 0x158e0
jmp 0x8a0e6
movq -0x8(%rbp), %rax
movq (%rax), %rax
imulq $0x130, -0x80(%rbp), %rcx # imm = 0x130
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
movq -0x30(%rbp), %r9
movq 0x10(%rbp), %rax
movq %rax, (%rsp)
callq 0x89ee0
movq 0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x8a0d1
jmp 0x8a0e6
jmp 0x8a0d3
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x89fc3
jmp 0x8a0e6
leaq -0x48(%rbp), %rdi
callq 0x89020
leaq -0x60(%rbp), %rdi
callq 0x89020
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)