LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_dump.c
// Function: prv_dump_stran_misc_instr
static void prv_dump_stran_misc_instr(void *user_data, subtilis_arm_op_t *op,
				      subtilis_arm_instr_type_t type,
				      subtilis_arm_stran_misc_instr_t *instr,
				      subtilis_error_t *err)
{
	const char *itype = "";
	const char *sub = instr->subtract ? "-" : "";

	printf("\t%s", instr_desc[type]);
	if (instr->ccode != SUBTILIS_ARM_CCODE_AL)
		printf("%s", ccode_desc[instr->ccode]);
	switch (instr->type) {
	case SUBTILIS_ARM_STRAN_MISC_SB:
		itype = "SB";
		break;
	case SUBTILIS_ARM_STRAN_MISC_SH:
		itype = "SH";
		break;
	case SUBTILIS_ARM_STRAN_MISC_H:
		itype = "H";
		break;
	case SUBTILIS_ARM_STRAN_MISC_D:
		itype = "D";
		break;
	}
	printf("%s R%zu", itype, instr->dest);
	if (instr->pre_indexed) {
		printf(", [R%zu, %s", instr->base, sub);
		if (instr->reg_offset)
			printf("R%zu", instr->offset.reg);
		else
			printf("%d", instr->offset.imm);
		printf("]");
		if (instr->write_back)
			printf("!");
	} else {
		printf(", [R%zu], %s", instr->base, sub);
		if (instr->reg_offset)
			printf("R%zu", instr->offset.reg);
		else
			printf("%d", instr->offset.imm);
	}
	printf("\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
leaq 0x1a16b(%rip), %r14     # 0x76a69
leaq 0x17510(%rip), %r15     # 0x73e15
cmpb $0x0, 0x2a(%rcx)
cmoveq %r15, %r14
movl %edx, %eax
leaq 0x44e9a(%rip), %rcx     # 0xa17b0
movq (%rcx,%rax,8), %rsi
leaq 0x1750d(%rip), %rdi     # 0x73e2e
xorl %eax, %eax
callq 0x12110
movl 0x4(%rbx), %eax
cmpq $0xe, %rax
je 0x5c94a
leaq 0x453d8(%rip), %rcx     # 0xa1d10
movq (%rcx,%rax,8), %rsi
leaq 0x174ec(%rip), %rdi     # 0x73e2f
xorl %eax, %eax
callq 0x12110
movl (%rbx), %eax
cmpq $0x3, %rax
ja 0x5c960
leaq 0x198ab(%rip), %rcx     # 0x76204
movslq (%rcx,%rax,4), %r15
addq %rcx, %r15
movq 0x8(%rbx), %rdx
leaq 0x19cb8(%rip), %rdi     # 0x76623
movq %r15, %rsi
xorl %eax, %eax
callq 0x12110
movq 0x10(%rbx), %rsi
cmpb $0x1, 0x28(%rbx)
jne 0x5c9aa
leaq 0x19cdb(%rip), %rdi     # 0x76661
movq %r14, %rdx
xorl %eax, %eax
callq 0x12110
cmpb $0x1, 0x18(%rbx)
jne 0x5c9d5
movq 0x20(%rbx), %rsi
leaq 0x19e95(%rip), %rdi     # 0x76836
xorl %eax, %eax
callq 0x12110
jmp 0x5c9e7
leaq 0x19cbc(%rip), %rdi     # 0x7666d
movq %r14, %rdx
xorl %eax, %eax
callq 0x12110
cmpb $0x1, 0x18(%rbx)
jne 0x5ca03
movq 0x20(%rbx), %rsi
leaq 0x19e6a(%rip), %rdi     # 0x76836
xorl %eax, %eax
callq 0x12110
jmp 0x5ca15
movsbl 0x20(%rbx), %esi
leaq 0x16c9c(%rip), %rdi     # 0x7367c
xorl %eax, %eax
callq 0x12110
movl $0x5d, %edi
callq 0x12030
cmpb $0x1, 0x29(%rbx)
jne 0x5ca15
movl $0x21, %edi
callq 0x12030
jmp 0x5ca15
movsbl 0x20(%rbx), %esi
leaq 0x16c6e(%rip), %rdi     # 0x7367c
xorl %eax, %eax
callq 0x12110
movl $0xa, %edi
popq %rbx
popq %r14
popq %r15
jmp 0x12030
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_dump.c
// Function: prv_dump_reg_only_instr
static void prv_dump_reg_only_instr(void *user_data, subtilis_arm_op_t *op,
				    subtilis_arm_instr_type_t type,
				    subtilis_arm_reg_only_instr_t *instr,
				    subtilis_error_t *err)
{
	printf("\t%s", instr_desc[type]);
	if (instr->ccode != SUBTILIS_ARM_CCODE_AL)
		printf("%s", ccode_desc[instr->ccode]);

	printf(" R%zu, R%zu, R%zu\n", instr->dest, instr->op1, instr->op2);
}

// Assembly:
pushq %rbx
movq %rcx, %rbx
movl %edx, %eax
leaq 0x44d7f(%rip), %rcx     # 0xa17b0
movq (%rcx,%rax,8), %rsi
leaq 0x173f2(%rip), %rdi     # 0x73e2e
xorl %eax, %eax
callq 0x12110
movl (%rbx), %eax
cmpq $0xe, %rax
je 0x5ca64
leaq 0x452be(%rip), %rcx     # 0xa1d10
movq (%rcx,%rax,8), %rsi
leaq 0x173d2(%rip), %rdi     # 0x73e2f
xorl %eax, %eax
callq 0x12110
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq 0x18(%rbx), %rcx
leaq 0x19bd7(%rip), %rdi     # 0x7664e
xorl %eax, %eax
popq %rbx
jmp 0x12110
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_dump.c
// Function: prv_dump_signx_instr
static void prv_dump_signx_instr(void *user_data, subtilis_arm_op_t *op,
				 subtilis_arm_instr_type_t type,
				 subtilis_arm_signx_instr_t *instr,
				 subtilis_error_t *err)
{
	int ror = 0;

	printf("\t%s", instr_desc[type]);
	if (instr->ccode != SUBTILIS_ARM_CCODE_AL)
		printf("%s", ccode_desc[instr->ccode]);

	printf(" R%zu, R%zu", instr->dest, instr->op1);
	switch (instr->rotate) {
	case SUBTILIS_ARM_SIGNX_ROR_NONE:
		printf("\n");
		return;
	case SUBTILIS_ARM_SIGNX_ROR_8:
		ror = 8;
		break;
	case SUBTILIS_ARM_SIGNX_ROR_16:
		ror = 16;
		break;
	case SUBTILIS_ARM_SIGNX_ROR_24:
		ror = 24;
		break;
	}

	printf(", ROR %d\n", ror);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %eax
leaq 0x44d21(%rip), %rcx     # 0xa17b0
movq (%rcx,%rax,8), %rsi
leaq 0x17394(%rip), %rdi     # 0x73e2e
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x12110
movl (%r14), %eax
cmpq $0xe, %rax
je 0x5cac5
leaq 0x4525d(%rip), %rcx     # 0xa1d10
movq (%rcx,%rax,8), %rsi
leaq 0x17371(%rip), %rdi     # 0x73e2f
xorl %eax, %eax
callq 0x12110
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
leaq 0x19d5b(%rip), %rdi     # 0x7682f
xorl %eax, %eax
callq 0x12110
movl 0x4(%r14), %eax
cmpq $0x3, %rax
ja 0x5cb19
leaq 0x193f4(%rip), %rcx     # 0x75ee0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0xa, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x12030
movl $0x10, %ebx
jmp 0x5cb19
movl $0x18, %ebx
jmp 0x5cb19
movl $0x8, %ebx
leaq 0x19d1b(%rip), %rdi     # 0x7683b
movl %ebx, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x12110
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_dump.c
// Function: subtilis_arm_prog_dump
void subtilis_arm_prog_dump(subtilis_arm_prog_t *p)
{
	subtilis_arm_section_t *arm_s;
	size_t i;

	if (p->num_sections == 0)
		return;

	arm_s = p->sections[0];
	printf("%s\n", p->string_pool->strings[0]);
	subtilis_arm_section_dump(p, arm_s);

	for (i = 1; i < p->num_sections; i++) {
		printf("\n");
		arm_s = p->sections[i];
		printf("%s\n", p->string_pool->strings[i]);
		subtilis_arm_section_dump(p, arm_s);
	}
}

// Assembly:
cmpq $0x0, 0x8(%rdi)
je 0x5cba6
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x18(%rdi), %rcx
movq (%rax), %r14
movq (%rcx), %rax
movq (%rax), %rdi
callq 0x12080
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5b2c8
cmpq $0x2, 0x8(%rbx)
jb 0x5cba1
movl $0x1, %r15d
movl $0xa, %edi
callq 0x12030
movq (%rbx), %rax
movq 0x18(%rbx), %rcx
movq (%rax,%r15,8), %r14
movq (%rcx), %rax
movq (%rax,%r15,8), %rdi
callq 0x12080
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5b2c8
incq %r15
cmpq 0x8(%rbx), %r15
jb 0x5cb6c
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_dump.c
// Function: prv_dump_op2
static void prv_dump_op2(subtilis_arm_op2_t *op2)
{
	switch (op2->type) {
	case SUBTILIS_ARM_OP2_REG:
		printf("R%zu", op2->op.reg);
		break;
	case SUBTILIS_ARM_OP2_I32:
		printf("#%" PRIu32, op2->op.integer);
		break;
	default:
		if (op2->op.shift.shift_reg)
			printf("R%zu, %s R%zu", op2->op.shift.reg,
			       shift_desc[op2->op.shift.type],
			       op2->op.shift.shift.reg);
		else
			printf("R%zu, %s #%" PRIi32, op2->op.shift.reg,
			       shift_desc[op2->op.shift.type],
			       op2->op.shift.shift.integer);

		break;
	}
}

// Assembly:
movl (%rdi), %eax
cmpl $0x1, %eax
je 0x5cd58
testl %eax, %eax
jne 0x5cd69
movq 0x8(%rdi), %rsi
leaq 0x19ae5(%rip), %rdi     # 0x76836
xorl %eax, %eax
jmp 0x12110
movl 0x8(%rdi), %esi
leaq 0x198b7(%rip), %rdi     # 0x76619
xorl %eax, %eax
jmp 0x12110
movq 0x8(%rdi), %rsi
movl 0x10(%rdi), %eax
leaq 0x45019(%rip), %rcx     # 0xa1d90
movq (%rcx,%rax,8), %rdx
cmpb $0x1, 0x20(%rdi)
jne 0x5cd93
movq 0x18(%rdi), %rcx
leaq 0x19891(%rip), %rdi     # 0x7661d
xorl %eax, %eax
jmp 0x12110
movl 0x18(%rdi), %ecx
leaq 0x1988e(%rip), %rdi     # 0x7662b
xorl %eax, %eax
jmp 0x12110
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_dump.c
// Function: prv_dump_fpa_data
static void prv_dump_fpa_data(void *user_data, bool dyadic,
			      subtilis_arm_op_t *op,
			      subtilis_arm_instr_type_t type,
			      subtilis_fpa_data_instr_t *instr,
			      subtilis_error_t *err)
{
	printf("\t%s", instr_desc[type]);
	if (instr->ccode != SUBTILIS_ARM_CCODE_AL)
		printf("%s", ccode_desc[instr->ccode]);
	printf("%s", prv_fpa_size(instr->size));
	printf("%s F%zu, ", prv_extract_rounding(instr->rounding), instr->dest);
	if (dyadic)
		printf("F%zu, ", instr->op1);
	if (!instr->immediate)
		printf("F%zu", instr->op2.reg);
	else
		printf("#%f", prv_extract_imm(instr->op2));
	printf("\n");
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0xc10, %rsp            # imm = 0xC10
movq %rdx, %rbx
movl %edi, %ebp
movl %esi, %eax
leaq 0x449f3(%rip), %rcx     # 0xa17b0
movq (%rcx,%rax,8), %rsi
leaq 0x17066(%rip), %rdi     # 0x73e2e
xorl %eax, %eax
callq 0x12110
movl (%rbx), %eax
cmpq $0xe, %rax
je 0x5cdf0
leaq 0x44f32(%rip), %rcx     # 0xa1d10
movq (%rcx,%rax,8), %rsi
leaq 0x17046(%rip), %rdi     # 0x73e2f
xorl %eax, %eax
callq 0x12110
movq 0x8(%rbx), %rax
cmpq $0xa, %rax
leaq 0x1676f(%rip), %rcx     # 0x7356e
leaq 0x16877(%rip), %rdx     # 0x7367d
cmoveq %rcx, %rdx
cmpq $0x4, %rax
leaq 0x1701b(%rip), %rsi     # 0x73e30
cmovneq %rdx, %rsi
leaq 0x1700f(%rip), %rdi     # 0x73e2f
xorl %eax, %eax
callq 0x12110
movl 0x4(%rbx), %eax
decl %eax
cmpl $0x2, %eax
ja 0x5ce40
movl %eax, %eax
leaq 0x44f9e(%rip), %rcx     # 0xa1dd8
movq (%rcx,%rax,8), %rsi
jmp 0x5ce47
leaq 0x16fce(%rip), %rsi     # 0x73e15
movq 0x10(%rbx), %rdx
leaq 0x198b5(%rip), %rdi     # 0x76707
xorl %eax, %eax
callq 0x12110
testb %bpl, %bpl
je 0x5ce70
movq 0x18(%rbx), %rsi
leaq 0x198a1(%rip), %rdi     # 0x7670a
xorl %eax, %eax
callq 0x12110
movq 0x28(%rbx), %r14
cmpb $0x0, 0x20(%rbx)
je 0x5cea2
leaq 0x4(%rsp), %rbx
movq %rbx, %rdi
callq 0x143b4
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5d650
leaq 0x198ac(%rip), %rdi     # 0x76745
movb $0x1, %al
callq 0x12110
jmp 0x5ceb3
leaq 0x1988f(%rip), %rdi     # 0x76738
movq %r14, %rsi
xorl %eax, %eax
callq 0x12110
movl $0xa, %edi
callq 0x12030
addq $0xc10, %rsp            # imm = 0xC10
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_arm_get_real_label
size_t subtilis_arm_get_real_label(subtilis_arm_section_t *s, double op2,
				   subtilis_error_t *err)
{
	size_t label;
	size_t i;

	for (i = 0; i < s->constants.real_count; i++)
		if (s->constants.real[i].real == op2)
			break;

	if (i < s->constants.real_count) {
		label = s->constants.real[i].label;
	} else {
		label = s->label_counter++;
		subtilis_arm_add_real_constant(s, label, op2, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return 0;
	}

	return label;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x78(%rdi), %rax
testq %rax, %rax
je 0x5cf02
movq 0x70(%rdi), %rcx
addq $0x8, %rcx
movsd -0x8(%rcx), %xmm1
ucomisd %xmm0, %xmm1
jne 0x5cef9
jnp 0x5cf24
addq $0x10, %rcx
decq %rax
jne 0x5ceec
movq 0x10(%rdi), %r14
leaq 0x1(%r14), %rax
movq %rax, 0x10(%rdi)
movq %r14, %rsi
movq %rbx, %rdx
callq 0x50c26
xorl %eax, %eax
cmpl $0x0, (%rbx)
cmoveq %r14, %rax
jmp 0x5cf27
movq (%rcx), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_add_mvfmnf_imm
void subtilis_fpa_add_mvfmnf_imm(subtilis_arm_section_t *s,
				 subtilis_arm_ccode_type_t ccode,
				 subtilis_arm_instr_type_t type,
				 subtilis_arm_instr_type_t alt_type,
				 subtilis_fpa_rounding_t rounding,
				 subtilis_arm_reg_t dest, double op2,
				 subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_data_instr_t *datai;
	double to_encode;
	subtilis_arm_instr_type_t itype;
	uint8_t encoded = 0;

	if (op2 < 0.0) {
		to_encode = -op2;
		itype = alt_type;
	} else {
		to_encode = op2;
		itype = type;
	}

	if (!subtilis_fpa_encode_real(to_encode, &encoded)) {
		(void)prv_add_real_ldr(s, ccode, dest, op2, err);
		return;
	}

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	datai = &instr->operands.fpa_data;
	datai->ccode = ccode;
	datai->rounding = rounding;
	datai->size = 8;
	datai->dest = dest;
	datai->immediate = true;
	datai->op2.imm = encoded;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movl %r8d, %r14d
movl %esi, %ebp
movapd 0x1848e(%rip), %xmm1    # 0x75410
xorpd %xmm0, %xmm1
ucomisd %xmm0, %xmm1
movq %rdi, %r12
cmoval %ecx, %edx
movq 0x40(%rsp), %r15
maxsd %xmm0, %xmm1
xorl %eax, %eax
leaq 0x198ce(%rip), %rcx     # 0x76870
movsd (%rax,%rcx), %xmm2
ucomisd %xmm1, %xmm2
jne 0x5cfaf
jnp 0x5cff4
addq $0x10, %rax
cmpq $0x80, %rax
jne 0x5cfa2
movq %r12, %rdi
movq %r15, %rsi
callq 0x5ced4
movq %rax, %r14
movq %r12, %rdi
movl $0x20, %esi
movq %r15, %rdx
callq 0x4f6e2
cmpl $0x0, (%r15)
jne 0x5d027
movl %ebp, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq %r14, 0x20(%rax)
movq $0x8, 0x18(%rax)
jmp 0x5d027
movb 0x8(%rax,%rcx), %r13b
movq %r12, %rdi
movl %edx, %esi
movq %r15, %rdx
callq 0x4f6e2
cmpl $0x0, (%r15)
jne 0x5d027
movl %ebp, 0x8(%rax)
movl %r14d, 0xc(%rax)
movq $0x8, 0x10(%rax)
movq %rbx, 0x18(%rax)
movb $0x1, 0x28(%rax)
movb %r13b, 0x30(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_add_data_imm
void subtilis_fpa_add_data_imm(subtilis_arm_section_t *s,
			       subtilis_arm_instr_type_t itype,
			       subtilis_arm_ccode_type_t ccode,
			       subtilis_fpa_rounding_t rounding,
			       subtilis_arm_reg_t dest, subtilis_arm_reg_t op1,
			       double op2, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_data_instr_t *datai;
	uint8_t encoded;
	subtilis_arm_reg_t mov_dest;
	subtilis_fpa_op2_t data_opt2;
	bool immediate;

	immediate = subtilis_fpa_encode_real(op2, &encoded);
	if (!immediate) {
		mov_dest = subtilis_arm_acquire_new_freg(s);
		subtilis_fpa_add_mov_imm(s, ccode, rounding, mov_dest, op2,
					 err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		data_opt2.reg = mov_dest;
	} else {
		data_opt2.imm = encoded;
	}

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	datai = &instr->operands.fpa_data;
	datai->ccode = ccode;
	datai->rounding = rounding;
	datai->size = 8;
	datai->dest = dest;
	datai->op1 = op1;
	datai->immediate = immediate;
	datai->op2 = data_opt2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x20(%rsp)
movq %r8, 0x18(%rsp)
movl %ecx, %r14d
movl %edx, %r15d
movl %esi, %r13d
movq %rdi, %rbx
movq 0x60(%rsp), %rdx
xorl %eax, %eax
leaq 0x197bb(%rip), %rcx     # 0x76870
movl %r15d, 0xc(%rsp)
movsd (%rax,%rcx), %xmm1
ucomisd %xmm0, %xmm1
jne 0x5d0c7
jnp 0x5d125
addq $0x10, %rax
cmpq $0x80, %rax
jne 0x5d0ba
movq %rbx, %rdi
movq %rdx, %r12
movsd %xmm0, 0x10(%rsp)
callq 0x4efd9
movq %rax, %rbp
movq %r12, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
movl $0x21, %edx
movl $0x22, %ecx
movl %r14d, %r15d
movl %r14d, %r8d
movq %rax, %r9
movsd 0x10(%rsp), %xmm0
callq 0x5cf67
cmpl $0x0, (%r12)
jne 0x5d187
movq %r12, %rdx
movq %rbp, %r14
shrq $0x8, %r14
xorl %r12d, %r12d
jmp 0x5d130
movl %r14d, %r15d
movb 0x8(%rax,%rcx), %bpl
movb $0x1, %r12b
movq %rbx, %rdi
movl %r13d, %esi
movq %rdx, %rbx
callq 0x4f6e2
cmpl $0x0, (%rbx)
jne 0x5d187
movl 0xc(%rsp), %ecx
movl %ecx, 0x8(%rax)
movl %r15d, 0xc(%rax)
movq $0x8, 0x10(%rax)
movq 0x18(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq 0x20(%rsp), %rcx
movq %rcx, 0x20(%rax)
movb %r12b, 0x28(%rax)
movb %bpl, 0x30(%rax)
movl %r14d, 0x31(%rax)
movq %r14, %rcx
shrq $0x30, %rcx
movb %cl, 0x37(%rax)
shrq $0x20, %r14
movw %r14w, 0x35(%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_add_data
void subtilis_fpa_add_data(subtilis_arm_section_t *s,
			   subtilis_arm_instr_type_t itype,
			   subtilis_arm_ccode_type_t ccode,
			   subtilis_fpa_rounding_t rounding,
			   subtilis_arm_reg_t dest, subtilis_arm_reg_t op1,
			   subtilis_arm_reg_t op2, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_data_instr_t *datai;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	datai = &instr->operands.fpa_data;
	datai->ccode = ccode;
	datai->rounding = rounding;
	datai->size = 8;
	datai->dest = dest;
	datai->op1 = op1;
	datai->immediate = false;
	datai->op2.reg = op2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %rbx
movq %r8, %r14
movl %ecx, %ebp
movl %edx, %r15d
movq 0x38(%rsp), %r12
movq %r12, %rdx
callq 0x4f6e2
cmpl $0x0, (%r12)
jne 0x5d1e1
movq 0x30(%rsp), %rcx
movl %r15d, 0x8(%rax)
movl %ebp, 0xc(%rax)
movq $0x8, 0x10(%rax)
movq %r14, 0x18(%rax)
movq %rbx, 0x20(%rax)
movb $0x0, 0x28(%rax)
movq %rcx, 0x30(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_add_stran
void subtilis_fpa_add_stran(subtilis_arm_section_t *s,
			    subtilis_arm_instr_type_t itype,
			    subtilis_arm_ccode_type_t ccode,
			    subtilis_arm_reg_t dest, subtilis_arm_reg_t base,
			    int32_t offset, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_stran_instr_t *stran;
	subtilis_arm_reg_t mov_dest;
	bool subtract = false;

	if (offset > 1023 || offset < -1023) {
		mov_dest = subtilis_arm_acquire_new_reg(s);
		subtilis_arm_add_data_imm(s, SUBTILIS_ARM_INSTR_ADD, ccode,
					  false, mov_dest, base, offset, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		offset = 0;
		base = mov_dest;
	} else {
		if (offset < 0) {
			offset = -offset;
			subtract = true;
		}
		offset /= 4;
	}

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	stran = &instr->operands.fpa_stran;
	stran->ccode = ccode;
	stran->size = 8;
	stran->dest = dest;
	stran->base = base;
	stran->offset = (uint8_t)offset;
	stran->pre_indexed = true;
	stran->write_back = false;
	stran->subtract = subtract;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r14d
movq %r8, %rbp
movq %rcx, 0x10(%rsp)
movq %rdi, %rbx
movq 0x50(%rsp), %r12
leal -0x400(%r14), %eax
cmpl $0xfffff800, %eax       # imm = 0xFFFFF800
movl %edx, 0xc(%rsp)
ja 0x5d26e
movl %edx, %r13d
movl %esi, 0x8(%rsp)
movq %rbx, %rdi
callq 0x4ef94
movq %r12, %r10
movq %rax, %r12
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x4, %esi
movl %r13d, %edx
xorl %ecx, %ecx
movq %rax, %r8
movq %rbp, %r9
movq %r10, %r13
pushq %r10
pushq %r14
callq 0x50297
addq $0x10, %rsp
cmpl $0x0, (%r13)
jne 0x5d2bc
movq %r12, %rbp
xorl %r14d, %r14d
movq %r13, %r12
movl 0x8(%rsp), %esi
jmp 0x5d280
movl %r14d, %r15d
negl %r15d
cmovsl %r14d, %r15d
shrl $0x2, %r15d
shrl $0x1f, %r14d
movq %rbx, %rdi
movq %r12, %rdx
callq 0x4f6e2
cmpl $0x0, (%r12)
jne 0x5d2bc
movl 0xc(%rsp), %ecx
movl %ecx, 0x8(%rax)
movq $0x8, 0x10(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq %rbp, 0x20(%rax)
movb %r15b, 0x28(%rax)
movw $0x1, 0x29(%rax)
movb %r14b, 0x2b(%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_add_tran
void subtilis_fpa_add_tran(subtilis_arm_section_t *s,
			   subtilis_arm_instr_type_t itype,
			   subtilis_arm_ccode_type_t ccode,
			   subtilis_fpa_rounding_t rounding,
			   subtilis_arm_reg_t dest, subtilis_arm_reg_t op2,
			   subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_tran_instr_t *tran;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	tran = &instr->operands.fpa_tran;
	tran->ccode = ccode;
	tran->rounding = rounding;
	tran->size = 8;
	tran->dest = dest;
	tran->op2.reg = op2;
	tran->immediate = false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %rbx
movq %r8, %r14
movl %ecx, %ebp
movl %edx, %r15d
movq 0x30(%rsp), %r12
movq %r12, %rdx
callq 0x4f6e2
cmpl $0x0, (%r12)
jne 0x5d30d
movl %r15d, 0x8(%rax)
movl %ebp, 0x30(%rax)
movq $0x8, 0x28(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x20(%rax)
movb $0x0, 0x18(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_add_cmfcnf_imm
void subtilis_fpa_add_cmfcnf_imm(subtilis_arm_section_t *s,
				 subtilis_arm_instr_type_t type,
				 subtilis_arm_instr_type_t alt_type,
				 subtilis_arm_ccode_type_t ccode,
				 subtilis_arm_reg_t dest, double op2,
				 subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_cmp_instr_t *cmp;
	double to_encode;
	bool immediate;
	subtilis_arm_instr_type_t itype;
	subtilis_arm_reg_t mov_dest;
	subtilis_fpa_op2_t data_opt2;
	uint8_t encoded = 0;

	if (op2 < 0.0) {
		to_encode = -op2;
		itype = alt_type;
	} else {
		to_encode = op2;
		itype = type;
	}

	immediate = subtilis_fpa_encode_real(to_encode, &encoded);
	if (!immediate) {
		itype = type;
		mov_dest = subtilis_arm_acquire_new_freg(s);
		subtilis_fpa_add_mov_imm(s, ccode,
					 SUBTILIS_FPA_ROUNDING_NEAREST,
					 mov_dest, op2, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		data_opt2.reg = mov_dest;
	} else {
		data_opt2.imm = encoded;
	}

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	cmp = &instr->operands.fpa_cmp;
	cmp->ccode = ccode;
	cmp->dest = dest;
	cmp->immediate = immediate;
	cmp->op2 = data_opt2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %r14
movq %r8, 0x18(%rsp)
movl %ecx, %ebp
movapd 0x180da(%rip), %xmm2    # 0x75410
xorpd %xmm0, %xmm2
ucomisd %xmm0, %xmm2
movl %esi, %r12d
cmovbel %esi, %edx
movq %rdi, %r15
maxsd %xmm0, %xmm2
xorl %eax, %eax
leaq 0x1951c(%rip), %rcx     # 0x76870
movl %ebp, 0x14(%rsp)
movsd (%rax,%rcx), %xmm1
ucomisd %xmm2, %xmm1
jne 0x5d365
jnp 0x5d3b7
addq $0x10, %rax
cmpq $0x80, %rax
jne 0x5d358
movq %r15, %rdi
movapd %xmm0, 0x20(%rsp)
callq 0x4efd9
movq %rax, %rbx
movq %r14, (%rsp)
movq %r15, %rdi
movl %ebp, %esi
movl $0x21, %edx
movl $0x22, %ecx
xorl %r8d, %r8d
movq %rax, %r9
movapd 0x20(%rsp), %xmm0
callq 0x5cf67
cmpl $0x0, (%r14)
jne 0x5d403
movq %rbx, %r13
shrq $0x8, %r13
xorl %ebp, %ebp
jmp 0x5d3c1
movb 0x8(%rax,%rcx), %bl
movb $0x1, %bpl
movl %edx, %r12d
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x4f6e2
cmpl $0x0, (%r14)
jne 0x5d403
movl 0x14(%rsp), %ecx
movl %ecx, 0x8(%rax)
movq 0x18(%rsp), %rcx
movq %rcx, 0x10(%rax)
movb %bpl, 0x18(%rax)
movb %bl, 0x20(%rax)
movl %r13d, 0x21(%rax)
movq %r13, %rcx
shrq $0x30, %rcx
movb %cl, 0x27(%rax)
shrq $0x20, %r13
movw %r13w, 0x25(%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_add_cmp
void subtilis_fpa_add_cmp(subtilis_arm_section_t *s,
			  subtilis_arm_instr_type_t itype,
			  subtilis_arm_ccode_type_t ccode,
			  subtilis_arm_reg_t dest, subtilis_arm_reg_t op2,
			  subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_cmp_instr_t *tran;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	tran = &instr->operands.fpa_cmp;
	tran->ccode = ccode;
	tran->dest = dest;
	tran->op2.reg = op2;
	tran->immediate = false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %r15
movq %r8, %rbx
movq %rcx, %r14
movl %edx, %ebp
movq %r9, %rdx
callq 0x4f6e2
cmpl $0x0, (%r15)
jne 0x5d441
movl %ebp, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x20(%rax)
movb $0x0, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_add_cptran
void subtilis_fpa_add_cptran(subtilis_arm_section_t *s,
			     subtilis_arm_instr_type_t itype,
			     subtilis_arm_ccode_type_t ccode,
			     subtilis_arm_reg_t dest, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_cptran_instr_t *cptran;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	cptran = &instr->operands.fpa_cptran;
	cptran->ccode = ccode;
	cptran->dest = dest;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %r8, %r14
movq %rcx, %rbx
movl %edx, %ebp
movq %r8, %rdx
callq 0x4f6e2
cmpl $0x0, (%r14)
jne 0x5d46d
movl %ebp, 0x8(%rax)
movq %rbx, 0x10(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_insert_stran_spill_imm
void subtilis_fpa_insert_stran_spill_imm(subtilis_arm_section_t *s,
					 subtilis_arm_op_t *current,
					 subtilis_arm_instr_type_t itype,
					 subtilis_arm_ccode_type_t ccode,
					 subtilis_arm_reg_t dest,
					 subtilis_arm_reg_t base,
					 subtilis_arm_reg_t spill_reg,
					 int32_t offset, subtilis_error_t *err)
/* clang-format on */
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_stran_instr_t *stran;
	subtilis_arm_data_instr_t *datai;

	(void)subtilis_arm_insert_data_imm_ldr(s, current, ccode, spill_reg,
					       offset, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	instr = subtilis_arm_section_insert_instr(s, current,
						  SUBTILIS_ARM_INSTR_ADD, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	datai = &instr->operands.data;
	datai->ccode = ccode;
	datai->status = false;
	datai->dest = spill_reg;
	datai->op1 = spill_reg;
	datai->op2.type = SUBTILIS_ARM_OP2_REG;
	datai->op2.op.reg = base;

	instr = subtilis_arm_section_insert_instr(s, current, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	stran = &instr->operands.fpa_stran;
	stran->ccode = ccode;
	stran->size = 8;
	stran->dest = dest;
	stran->base = spill_reg;
	stran->offset = 0;
	stran->pre_indexed = false;
	stran->write_back = false;
	stran->subtract = false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r13
movq %r8, (%rsp)
movl %ecx, %ebp
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r14
movq 0x50(%rsp), %r15
movq 0x40(%rsp), %rcx
movl 0x48(%rsp), %r8d
movl %ebp, %edx
movq %r15, %r9
callq 0x4f95f
cmpl $0x0, (%r15)
jne 0x5d520
movq %r14, %rdi
movq %rbx, %rsi
movl $0x4, %edx
movq %r15, %rcx
callq 0x4f715
cmpl $0x0, (%r15)
jne 0x5d520
movl %ebp, 0x8(%rax)
movb $0x0, 0xc(%rax)
movq 0x40(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq %rcx, 0x18(%rax)
movl $0x0, 0x20(%rax)
movq %r13, 0x28(%rax)
movq %r14, %rdi
movq %rbx, %rsi
movl %r12d, %edx
movq %r15, %rcx
callq 0x4f715
cmpl $0x0, (%r15)
jne 0x5d520
movl %ebp, 0x8(%rax)
movq $0x8, 0x10(%rax)
movq (%rsp), %rcx
movq %rcx, 0x18(%rax)
movq 0x40(%rsp), %rcx
movq %rcx, 0x20(%rax)
movl $0x0, 0x28(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_insert_stran_imm
void subtilis_fpa_insert_stran_imm(subtilis_arm_section_t *s,
				   subtilis_arm_op_t *current,
				   subtilis_arm_instr_type_t itype,
				   subtilis_arm_ccode_type_t ccode,
				   subtilis_arm_reg_t dest,
				   subtilis_arm_reg_t base, int32_t offset,
				   subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_stran_instr_t *stran;
	bool subtract = false;

	if (offset < 0) {
		offset = -offset;
		subtract = true;
	}

	if (offset > 1023) {
		subtilis_error_set_assertion_failed(err);
		return;
	}

	instr = subtilis_arm_section_insert_instr(s, current, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	stran = &instr->operands.fpa_stran;
	stran->ccode = ccode;
	stran->size = 8;
	stran->dest = dest;
	stran->base = base;
	stran->offset = (uint8_t)((uint32_t)offset / 4);
	stran->pre_indexed = true;
	stran->write_back = false;
	stran->subtract = subtract;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x48(%rsp), %r15
movl 0x40(%rsp), %r12d
movl %r12d, %r13d
negl %r13d
cmovsl %r12d, %r13d
cmpl $0x400, %r13d           # imm = 0x400
jb 0x5d57e
leaq 0x193d2(%rip), %rdx     # 0x76930
movq %r15, %rdi
movl $0xf, %esi
movl $0x1ba, %ecx            # imm = 0x1BA
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
movq %r9, %rbx
movq %r8, %r14
movl %ecx, %ebp
movq %r15, %rcx
callq 0x4f715
cmpl $0x0, (%r15)
jne 0x5d5bd
movl %ebp, 0x8(%rax)
movq $0x8, 0x10(%rax)
movq %r14, 0x18(%rax)
movq %rbx, 0x20(%rax)
shrl $0x2, %r13d
movb %r13b, 0x28(%rax)
movw $0x1, 0x29(%rax)
shrl $0x1f, %r12d
movb %r12b, 0x2b(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_push_reg
void subtilis_fpa_push_reg(subtilis_arm_section_t *s,
			   subtilis_arm_ccode_type_t ccode,
			   subtilis_arm_reg_t dest, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_stran_instr_t *stran;

	instr = subtilis_arm_section_add_instr(s, SUBTILIS_FPA_INSTR_STF, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	stran = &instr->operands.fpa_stran;
	stran->ccode = ccode;
	stran->size = 8;
	stran->dest = dest;
	stran->base = 13;
	stran->offset = 2;
	stran->pre_indexed = true;
	stran->write_back = true;
	stran->subtract = true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %ebp
movl $0x1f, %esi
movq %rcx, %rdx
callq 0x4f6e2
cmpl $0x0, (%r14)
jne 0x5d609
movl %ebp, 0x8(%rax)
movq $0x8, 0x10(%rax)
movq %rbx, 0x18(%rax)
movq $0xd, 0x20(%rax)
movl $0x1010102, 0x28(%rax)  # imm = 0x1010102
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/fpa.c
// Function: subtilis_fpa_pop_reg
void subtilis_fpa_pop_reg(subtilis_arm_section_t *s,
			  subtilis_arm_ccode_type_t ccode,
			  subtilis_arm_reg_t dest, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_stran_instr_t *stran;

	instr = subtilis_arm_section_add_instr(s, SUBTILIS_FPA_INSTR_LDF, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	stran = &instr->operands.fpa_stran;
	stran->ccode = ccode;
	stran->size = 8;
	stran->dest = dest;
	stran->base = 13;
	stran->offset = 2;
	stran->pre_indexed = false;
	stran->write_back = true;
	stran->subtract = false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %ebp
movl $0x1e, %esi
movq %rcx, %rdx
callq 0x4f6e2
cmpl $0x0, (%r14)
jne 0x5d64b
movl %ebp, 0x8(%rax)
movq $0x8, 0x10(%rax)
movq %rbx, 0x18(%rax)
movq $0xd, 0x20(%rax)
movl $0x10002, 0x28(%rax)    # imm = 0x10002
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_add_copy
void subtilis_vfp_add_copy(subtilis_arm_section_t *s,
			   subtilis_arm_ccode_type_t ccode,
			   subtilis_arm_instr_type_t itype,
			   subtilis_arm_reg_t dest, subtilis_arm_reg_t src,
			   subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_copy_instr_t *copy;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	copy = &instr->operands.vfp_copy;
	copy->ccode = ccode;
	copy->dest = dest;
	copy->src = src;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %r15
movq %r8, %rbx
movq %rcx, %r14
movl %esi, %ebp
movl %edx, %esi
movq %r9, %rdx
callq 0x4f6e2
cmpl $0x0, (%r15)
jne 0x5d6bd
movl %ebp, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_add_copy_imm
void subtilis_vfp_add_copy_imm(subtilis_arm_section_t *s,
			       subtilis_arm_ccode_type_t ccode,
			       subtilis_arm_reg_t dest, double src,
			       subtilis_error_t *err)
{
	/*
	 * TODO: If the immediate has no fractional part and it can be
	 * directly encoded, it might be better to mov it into an
	 * integer register and translate.  It's the same number of
	 * instructions and fewer bytes.
	 */

	(void)prv_add_real_ldr(s, ccode, dest, src, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r12
movq %rcx, %rsi
callq 0x5ced4
movq %rax, %r14
movq %r12, %rdi
movl $0x50, %esi
movq %r15, %rdx
callq 0x4f6e2
cmpl $0x0, (%r15)
jne 0x5d707
movl %ebp, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq %r14, 0x20(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_add_stran
void subtilis_vfp_add_stran(subtilis_arm_section_t *s,
			    subtilis_arm_instr_type_t itype,
			    subtilis_arm_ccode_type_t ccode,
			    subtilis_arm_reg_t dest, subtilis_arm_reg_t base,
			    int32_t offset, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_stran_instr_t *stran;
	subtilis_arm_reg_t mov_dest;
	bool subtract = false;

	if (offset > 1023 || offset < -1023) {
		mov_dest = subtilis_arm_acquire_new_reg(s);
		subtilis_arm_add_data_imm(s, SUBTILIS_ARM_INSTR_ADD, ccode,
					  false, mov_dest, base, offset, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		offset = 0;
		base = mov_dest;
	} else {
		if (offset < 0) {
			offset = -offset;
			subtract = true;
		}
		offset /= 4;
	}

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	stran = &instr->operands.vfp_stran;
	stran->ccode = ccode;
	stran->dest = dest;
	stran->base = base;
	stran->offset = (uint8_t)offset;
	stran->pre_indexed = true;
	stran->write_back = false;
	stran->subtract = subtract;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r14d
movq %r8, %rbp
movq %rcx, 0x10(%rsp)
movq %rdi, %rbx
movq 0x50(%rsp), %r12
leal -0x400(%r14), %eax
cmpl $0xfffff800, %eax       # imm = 0xFFFFF800
movl %edx, 0xc(%rsp)
ja 0x5d794
movl %edx, %r13d
movl %esi, 0x8(%rsp)
movq %rbx, %rdi
callq 0x4ef94
movq %r12, %r10
movq %rax, %r12
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x4, %esi
movl %r13d, %edx
xorl %ecx, %ecx
movq %rax, %r8
movq %rbp, %r9
movq %r10, %r13
pushq %r10
pushq %r14
callq 0x50297
addq $0x10, %rsp
cmpl $0x0, (%r13)
jne 0x5d7da
movq %r12, %rbp
xorl %r14d, %r14d
movq %r13, %r12
movl 0x8(%rsp), %esi
jmp 0x5d7a6
movl %r14d, %r15d
negl %r15d
cmovsl %r14d, %r15d
shrl $0x2, %r15d
shrl $0x1f, %r14d
movq %rbx, %rdi
movq %r12, %rdx
callq 0x4f6e2
cmpl $0x0, (%r12)
jne 0x5d7da
movl 0xc(%rsp), %ecx
movl %ecx, 0x8(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq %rbp, 0x18(%rax)
movb %r15b, 0x20(%rax)
movw $0x1, 0x21(%rax)
movb %r14b, 0x23(%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_insert_stran_spill_imm
void subtilis_vfp_insert_stran_spill_imm(subtilis_arm_section_t *s,
					 subtilis_arm_op_t *current,
					 subtilis_arm_instr_type_t itype,
					 subtilis_arm_ccode_type_t ccode,
					 subtilis_arm_reg_t dest,
					 subtilis_arm_reg_t base,
					 subtilis_arm_reg_t spill_reg,
					 int32_t offset, subtilis_error_t *err)
/* clang-format on */
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_stran_instr_t *stran;
	subtilis_arm_data_instr_t *datai;

	(void)subtilis_arm_insert_data_imm_ldr(s, current, ccode, spill_reg,
					       offset, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	instr = subtilis_arm_section_insert_instr(s, current,
						  SUBTILIS_ARM_INSTR_ADD, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	datai = &instr->operands.data;
	datai->ccode = ccode;
	datai->status = false;
	datai->dest = spill_reg;
	datai->op1 = spill_reg;
	datai->op2.type = SUBTILIS_ARM_OP2_REG;
	datai->op2.op.reg = base;

	instr = subtilis_arm_section_insert_instr(s, current, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	stran = &instr->operands.vfp_stran;
	stran->ccode = ccode;
	stran->dest = dest;
	stran->base = spill_reg;
	stran->offset = 0;
	stran->pre_indexed = false;
	stran->write_back = false;
	stran->subtract = false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r13
movq %r8, (%rsp)
movl %ecx, %ebp
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r14
movq 0x50(%rsp), %r15
movq 0x40(%rsp), %rcx
movl 0x48(%rsp), %r8d
movl %ebp, %edx
movq %r15, %r9
callq 0x4f95f
cmpl $0x0, (%r15)
jne 0x5d88f
movq %r14, %rdi
movq %rbx, %rsi
movl $0x4, %edx
movq %r15, %rcx
callq 0x4f715
cmpl $0x0, (%r15)
jne 0x5d88f
movl %ebp, 0x8(%rax)
movb $0x0, 0xc(%rax)
movq 0x40(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq %rcx, 0x18(%rax)
movl $0x0, 0x20(%rax)
movq %r13, 0x28(%rax)
movq %r14, %rdi
movq %rbx, %rsi
movl %r12d, %edx
movq %r15, %rcx
callq 0x4f715
cmpl $0x0, (%r15)
jne 0x5d88f
movl %ebp, 0x8(%rax)
movq (%rsp), %rcx
movq %rcx, 0x10(%rax)
movq 0x40(%rsp), %rcx
movq %rcx, 0x18(%rax)
movl $0x0, 0x20(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_insert_stran_imm
void subtilis_vfp_insert_stran_imm(subtilis_arm_section_t *s,
				   subtilis_arm_op_t *current,
				   subtilis_arm_instr_type_t itype,
				   subtilis_arm_ccode_type_t ccode,
				   subtilis_arm_reg_t dest,
				   subtilis_arm_reg_t base, int32_t offset,
				   subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_stran_instr_t *stran;
	bool subtract = false;

	if (offset < 0) {
		offset = -offset;
		subtract = true;
	}

	if (offset > 1023) {
		subtilis_error_set_assertion_failed(err);
		return;
	}

	instr = subtilis_arm_section_insert_instr(s, current, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	stran = &instr->operands.vfp_stran;
	stran->ccode = ccode;
	stran->dest = dest;
	stran->base = base;
	stran->offset = (uint8_t)((uint32_t)offset / 4);
	stran->pre_indexed = true;
	stran->write_back = false;
	stran->subtract = subtract;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x48(%rsp), %r15
movl 0x40(%rsp), %r12d
movl %r12d, %r13d
negl %r13d
cmovsl %r12d, %r13d
cmpl $0x400, %r13d           # imm = 0x400
jb 0x5d8ed
leaq 0x19074(%rip), %rdx     # 0x76941
movq %r15, %rdi
movl $0xf, %esi
movl $0xb1, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
movq %r9, %rbx
movq %r8, %r14
movl %ecx, %ebp
movq %r15, %rcx
callq 0x4f715
cmpl $0x0, (%r15)
jne 0x5d924
movl %ebp, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
shrl $0x2, %r13d
movb %r13b, 0x20(%rax)
movw $0x1, 0x21(%rax)
shrl $0x1f, %r12d
movb %r12b, 0x23(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_add_tran
void subtilis_vfp_add_tran(subtilis_arm_section_t *s,
			   subtilis_arm_instr_type_t itype,
			   subtilis_arm_ccode_type_t ccode, bool use_dregs,
			   subtilis_arm_reg_t dest, subtilis_arm_reg_t src,
			   subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_tran_instr_t *tran;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	tran = &instr->operands.vfp_tran;
	tran->ccode = ccode;
	tran->use_dregs = use_dregs;
	tran->dest = dest;
	tran->src = src;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %rbx
movq %r8, %r14
movl %ecx, %ebp
movl %edx, %r15d
movq 0x30(%rsp), %r12
movq %r12, %rdx
callq 0x4f6e2
cmpl $0x0, (%r12)
jne 0x5d96a
movl %r15d, 0x8(%rax)
movb %bpl, 0xc(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_add_data
void subtilis_vfp_add_data(subtilis_arm_section_t *s,
			   subtilis_arm_instr_type_t itype,
			   subtilis_arm_ccode_type_t ccode,
			   subtilis_arm_reg_t dest, subtilis_arm_reg_t op1,
			   subtilis_arm_reg_t op2, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_data_instr_t *data;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	data = &instr->operands.vfp_data;
	data->ccode = ccode;
	data->dest = dest;
	data->op1 = op1;
	data->op2 = op2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq 0x30(%rsp), %r12
movq %r12, %rdx
callq 0x4f6e2
cmpl $0x0, (%r12)
jne 0x5d9e9
movl %ebp, 0x8(%rax)
movq %r15, 0x10(%rax)
movq %r14, 0x18(%rax)
movq %rbx, 0x20(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_add_cmp
void subtilis_vfp_add_cmp(subtilis_arm_section_t *s,
			  subtilis_arm_instr_type_t itype,
			  subtilis_arm_ccode_type_t ccode,
			  subtilis_arm_reg_t op1, subtilis_arm_reg_t op2,
			  subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_cmp_instr_t *cmp;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	cmp = &instr->operands.vfp_cmp;
	cmp->ccode = ccode;
	cmp->op1 = op1;
	cmp->op2 = op2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %r15
movq %r8, %rbx
movq %rcx, %r14
movl %edx, %ebp
movq %r9, %rdx
callq 0x4f6e2
cmpl $0x0, (%r15)
jne 0x5da1d
movl %ebp, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_add_cmpz
void subtilis_vfp_add_cmpz(subtilis_arm_section_t *s,
			   subtilis_arm_instr_type_t itype,
			   subtilis_arm_ccode_type_t ccode,
			   subtilis_arm_reg_t op1, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_cmp_instr_t *cmp;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	cmp = &instr->operands.vfp_cmp;
	cmp->ccode = ccode;
	cmp->op1 = op1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %r8, %r14
movq %rcx, %rbx
movl %edx, %ebp
movq %r8, %rdx
callq 0x4f6e2
cmpl $0x0, (%r14)
jne 0x5da49
movl %ebp, 0x8(%rax)
movq %rbx, 0x10(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_add_sqrt
void subtilis_vfp_add_sqrt(subtilis_arm_section_t *s,
			   subtilis_arm_instr_type_t itype,
			   subtilis_arm_ccode_type_t ccode,
			   subtilis_arm_reg_t dest, subtilis_arm_reg_t op1,
			   subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_sqrt_instr_t *sqrt;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	sqrt = &instr->operands.vfp_sqrt;
	sqrt->ccode = ccode;
	sqrt->dest = dest;
	sqrt->op1 = op1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %r15
movq %r8, %rbx
movq %rcx, %r14
movl %edx, %ebp
movq %r9, %rdx
callq 0x4f6e2
cmpl $0x0, (%r15)
jne 0x5da79
movl %ebp, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_add_sysreg
void subtilis_vfp_add_sysreg(subtilis_arm_section_t *s,
			     subtilis_arm_instr_type_t itype,
			     subtilis_arm_ccode_type_t ccode,
			     subtilis_vfp_sysreg_t sysreg,
			     subtilis_arm_reg_t reg, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_sysreg_instr_t *sysregi;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	sysregi = &instr->operands.vfp_sysreg;
	sysregi->ccode = ccode;
	sysregi->sysreg = sysreg;
	sysregi->arm_reg = reg;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %r15
movq %r8, %rbx
movl %ecx, %ebp
movl %edx, %r14d
movq %r9, %rdx
callq 0x4f6e2
cmpl $0x0, (%r15)
jne 0x5daaf
movl %r14d, 0x8(%rax)
movl %ebp, 0xc(%rax)
movq %rbx, 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_add_tran_dbl
void subtilis_vfp_add_tran_dbl(subtilis_arm_section_t *s,
			       subtilis_arm_instr_type_t itype,
			       subtilis_arm_ccode_type_t ccode,
			       subtilis_arm_reg_t dest1,
			       subtilis_arm_reg_t dest2,
			       subtilis_arm_reg_t src1, subtilis_arm_reg_t src2,
			       subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_tran_dbl_instr_t *tran;

	instr = subtilis_arm_section_add_instr(s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	tran = &instr->operands.vfp_tran_dbl;
	tran->ccode = ccode;
	tran->dest1 = dest1;
	tran->dest2 = dest2;
	tran->src1 = src1;
	tran->src2 = src2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq 0x38(%rsp), %r12
movq %r12, %rdx
callq 0x4f6e2
cmpl $0x0, (%r12)
jne 0x5daf9
movq 0x30(%rsp), %rcx
movl %ebp, 0x8(%rax)
movq %r15, 0x10(%rax)
movq %r14, 0x18(%rax)
movq %rbx, 0x20(%rax)
movq %rcx, 0x28(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_reset
void subtilis_bitset_reset(subtilis_bitset_t *bs)
{
	size_t i;

	bs->max_value = -1;

	for (i = 0; i < bs->allocated; i++)
		bs->bits[i] = 0;
}

// Assembly:
movl $0xffffffff, 0x8(%rdi)  # imm = 0xFFFFFFFF
movq 0x10(%rdi), %rdx
testq %rdx, %rdx
je 0x5db67
movq (%rdi), %rdi
shlq $0x2, %rdx
xorl %esi, %esi
jmp 0x12140
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_set
void subtilis_bitset_set(subtilis_bitset_t *bs, size_t bit,
			 subtilis_error_t *err)
{
	size_t cell;
	size_t offset;

	if (bit > INT_MAX) {
		subtilis_error_set_assertion_failed(err);
		return;
	}

	prv_ensure(bs, bit, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	cell = bit / (sizeof(unsigned int) * 8);
	offset = bit - (cell * (sizeof(unsigned int) * 8));
	bs->bits[cell] |= 1 << offset;
	if ((int)bit > bs->max_value)
		bs->max_value = (int)bit;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %rax
shrq $0x1f, %rax
je 0x5db97
leaq 0x18dd2(%rip), %rdx     # 0x76952
movq %r15, %rdi
movl $0xf, %esi
movl $0x42, %ecx
popq %rbx
popq %r14
popq %r15
jmp 0x145a4
movq %rsi, %rbx
movq %rdi, %r14
movq %r15, %rdx
callq 0x5dbd1
cmpl $0x0, (%r15)
jne 0x5dbcb
movl $0x1, %eax
movl %ebx, %ecx
shll %cl, %eax
movq (%r14), %rcx
movq %rbx, %rdx
shrq $0x5, %rdx
orl %eax, (%rcx,%rdx,4)
cmpl %ebx, 0x8(%r14)
jge 0x5dbcb
movl %ebx, 0x8(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/common/bitset.c
// Function: prv_ensure
static void prv_ensure(subtilis_bitset_t *bs, size_t bit, subtilis_error_t *err)
{
	unsigned int *new_bits;
	size_t needed = (bit / (sizeof(unsigned int) * 8)) + 1;

	if (needed <= bs->allocated)
		return;

	new_bits = realloc(bs->bits, needed * sizeof(unsigned int));
	if (!new_bits) {
		subtilis_error_set_oom(err);
		return;
	}
	bs->bits = new_bits;
	memset(&bs->bits[bs->allocated], 0,
	       sizeof(unsigned int) * (needed - bs->allocated));
	bs->allocated = needed;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
shrq $0x5, %rbx
cmpq 0x10(%rdi), %rbx
jb 0x5dc21
movq %rdx, %r15
movq %rdi, %r14
incq %rbx
movq (%rdi), %rdi
leaq (,%rbx,4), %rsi
callq 0x12210
testq %rax, %rax
je 0x5dc27
movq %rax, (%r14)
movq 0x10(%r14), %rcx
leaq (%rax,%rcx,4), %rdi
movq %rbx, %rdx
subq %rcx, %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x12140
movq %rbx, 0x10(%r14)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x18d24(%rip), %rdx     # 0x76952
movq %r15, %rdi
movl $0x1, %esi
movl $0x32, %ecx
popq %rbx
popq %r14
popq %r15
jmp 0x145a4