// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/arch/arm32/arm_reg_alloc.c
// Function: prv_sub_section_real_links
static void prv_sub_section_real_links(subtilis_arm_reg_ud_t *ud,
				       subtilis_bitset_t *real_save,
				       subtilis_arm_ccode_type_t ccode,
				       subtilis_arm_prespilt_offsets_t *offsets,
				       subtilis_arm_op_t *op,
				       subtilis_error_t *err)
{
	int j;
	int32_t offset;
	subtilis_arm_reg_t reg;

	for (j = 0; j <= real_save->max_value; j++) {
		if (!subtilis_bitset_isset(real_save, j))
			continue;
		offset = prv_arm_presplit_real_offset(offsets, j, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		offset += ud->arm_s->locals;

		if (offset > ud->arm_s->fp_if->max_offset ||
		    offset < -(ud->arm_s->fp_if->max_offset + 1)) {
			reg = subtilis_arm_acquire_new_reg(ud->arm_s);
			ud->arm_s->fp_if->spill_imm_fn(
			    ud->arm_s, op, ud->arm_s->fp_if->store_type, ccode,
			    j, 11, reg, offset, err);
		} else {
			ud->arm_s->fp_if->stran_imm_fn(
			    ud->arm_s, op, ud->arm_s->fp_if->store_type, ccode,
			    j, 11, offset, err);
		}
		if (err->type != SUBTILIS_ERROR_OK)
			return;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x58, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jg 0x7b265
movq -0x18(%rbp), %rdi
movslq -0x3c(%rbp), %rsi
callq 0x88990
testb $0x1, %al
jne 0x7b11d
jmp 0x7b257
movq -0x28(%rbp), %rdi
movslq -0x3c(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x7b670
movl %eax, -0x40(%rbp)
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
je 0x7b13f
jmp 0x7b265
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x30(%rax), %rcx
movslq -0x40(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %eax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0xc0(%rcx), %rcx
cmpl 0x8(%rcx), %eax
jg 0x7b18c
movl -0x40(%rbp), %eax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0xc0(%rcx), %rcx
movl 0x8(%rcx), %edx
addl $0x1, %edx
xorl %ecx, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jge 0x7b1f9
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x6fe60
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0xc0(%rax), %rax
movq 0x58(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdi
movq -0x30(%rbp), %rsi
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0xc0(%rcx), %rcx
movl 0x18(%rcx), %edx
movl -0x1c(%rbp), %ecx
movslq -0x3c(%rbp), %r8
movq -0x48(%rbp), %rbx
movl -0x40(%rbp), %r11d
movq -0x38(%rbp), %r10
movl $0xb, %r9d
movq %rbx, (%rsp)
movl %r11d, 0x8(%rsp)
movq %r10, 0x10(%rsp)
callq *%rax
jmp 0x7b24a
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0xc0(%rax), %rax
movq 0x60(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdi
movq -0x30(%rbp), %rsi
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0xc0(%rcx), %rcx
movl 0x18(%rcx), %edx
movl -0x1c(%rbp), %ecx
movslq -0x3c(%rbp), %r8
movl -0x40(%rbp), %r11d
movq -0x38(%rbp), %r10
movl $0xb, %r9d
movl %r11d, (%rsp)
movq %r10, 0x8(%rsp)
callq *%rax
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
je 0x7b255
jmp 0x7b265
jmp 0x7b257
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x7b0f7
addq $0x58, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)