LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_adr_instr
static void prv_encode_adr_instr(void *user_data, subtilis_arm_op_t *op,
				 subtilis_arm_instr_type_t type,
				 subtilis_arm_adr_instr_t *instr,
				 subtilis_error_t *err)
{
	subtilis_arm_data_instr_t data;
	subtilis_arm_encode_ud_t *ud = user_data;

	prv_add_back_patch(ud, SUBTILIS_ARM_ENCODE_BP_TYPE_ADR, instr->label,
			   ud->bytes_written, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	data.ccode = instr->ccode;
	data.status = false;
	data.dest = instr->dest;
	data.op1 = 15;
	data.op2.type = SUBTILIS_ARM_OP2_I32;
	data.op2.op.integer = 0;

	prv_encode_data_instr(user_data, op, SUBTILIS_ARM_INSTR_ADD, &data,
			      err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %r8, %rbx
movq %rcx, %r15
movq %rdi, %r14
movq 0x10(%rcx), %rdx
movq 0x30(%rdi), %rcx
movl $0x1, %esi
callq 0x59f2a
cmpl $0x0, (%rbx)
jne 0x58294
movl (%r15), %eax
movq %rsp, %rcx
movl %eax, (%rcx)
movb $0x0, 0x4(%rcx)
movq 0x8(%r15), %rax
movq %rax, 0x8(%rcx)
movq $0xf, 0x10(%rcx)
movl $0x1, 0x18(%rcx)
movl $0x0, 0x20(%rcx)
movq %r14, %rdi
movl $0x4, %edx
movq %rbx, %r8
callq 0x57870
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_cmov_instr
static void prv_encode_cmov_instr(void *user_data, subtilis_arm_op_t *op,
				  subtilis_arm_instr_type_t type,
				  subtilis_arm_cmov_instr_t *instr,
				  subtilis_error_t *err)
{
	subtilis_arm_data_instr_t data;

	if (!instr->fused) {
		memset(&data, 0, sizeof(data));

		data.ccode = SUBTILIS_ARM_CCODE_AL;
		data.status = true;
		data.op1 = instr->op1;
		data.op2.type = SUBTILIS_ARM_OP2_I32;
		data.op2.op.integer = 0;

		prv_encode_cmp_instr(user_data, NULL, SUBTILIS_ARM_INSTR_CMP,
				     &data, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
	}

	memset(&data, 0, sizeof(data));

	data.ccode = instr->fused ? instr->true_cond : SUBTILIS_ARM_CCODE_EQ;
	data.status = false;
	data.dest = instr->dest;
	data.op2.type = SUBTILIS_ARM_OP2_REG;
	data.op2.op.reg = instr->op3;

	prv_encode_mov_instr(user_data, NULL, SUBTILIS_ARM_INSTR_MOV, &data,
			     err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	memset(&data, 0, sizeof(data));

	data.ccode = instr->fused ? instr->false_cond : SUBTILIS_ARM_CCODE_NE;
	data.status = false;
	data.dest = instr->dest;
	data.op2.type = SUBTILIS_ARM_OP2_REG;
	data.op2.op.reg = instr->op2;

	prv_encode_mov_instr(user_data, NULL, SUBTILIS_ARM_INSTR_MOV, &data,
			     err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %r8, %rbx
movq %rcx, %r15
movq %rdi, %r14
movb 0x20(%rcx), %al
testb %al, %al
jne 0x58302
xorps %xmm0, %xmm0
movq %rsp, %rcx
movaps %xmm0, (%rcx)
movaps %xmm0, 0x30(%rcx)
movaps %xmm0, 0x20(%rcx)
movaps %xmm0, 0x10(%rcx)
movl $0xe, (%rcx)
movb $0x1, 0x4(%rcx)
movq 0x8(%r15), %rax
movq %rax, 0x10(%rcx)
movl $0x1, 0x18(%rcx)
movq %r14, %rdi
movl $0xa, %edx
movq %rbx, %r8
callq 0x57b67
cmpl $0x0, (%rbx)
jne 0x58395
movb 0x20(%r15), %al
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
xorl %edx, %edx
testb $0x1, %al
je 0x58322
movl 0x24(%r15), %edx
movq %rsp, %rcx
movl %edx, (%rcx)
movq (%r15), %rax
movq %rax, 0x8(%rcx)
movq 0x18(%r15), %rax
movq %rax, 0x20(%rcx)
movq %r14, %rdi
movl $0xd, %edx
movq %rbx, %r8
callq 0x57bad
cmpl $0x0, (%rbx)
jne 0x58395
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl $0x1, %eax
cmpb $0x1, 0x20(%r15)
jne 0x58371
movl 0x28(%r15), %eax
movq %rsp, %rcx
movl %eax, (%rcx)
movq (%r15), %rax
movq %rax, 0x8(%rcx)
movq 0x10(%r15), %rax
movq %rax, 0x20(%rcx)
movq %r14, %rdi
movl $0xd, %edx
movq %rbx, %r8
callq 0x57bad
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_flags_instr
static void prv_encode_flags_instr(void *user_data, subtilis_arm_op_t *op,
				   subtilis_arm_instr_type_t type,
				   subtilis_arm_flags_instr_t *instr,
				   subtilis_error_t *err)
{
	subtilis_arm_encode_ud_t *ud = user_data;
	uint32_t word;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	if (type == SUBTILIS_ARM_INSTR_MRS) {
		word = 0x01000000;
		word |= (instr->op.reg & 0xf) << 12;
	} else {
		word = 0x01200000;
		if (instr->op2_reg) {
			word |= instr->op.reg & 0xf;
		} else {
			word |= 1 << 25;
			word |= (instr->op.integer & 0xfff);
		}
		word |= instr->fields;
	}

	if (instr->flag_reg == SUBTILIS_ARM_FLAGS_SPSR)
		word |= 1 << 22;
	word |= instr->ccode << 28;

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %rbx
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
jne 0x5841f
cmpl $0x1d, %ebp
jne 0x583d9
movl 0x10(%r15), %eax
shll $0xc, %eax
movzwl %ax, %ebp
orl $0x1000000, %ebp        # imm = 0x1000000
jmp 0x58402
cmpb $0x1, 0xc(%r15)
jne 0x583ef
movl 0x10(%r15), %ebp
andl $0xf, %ebp
orl $0x1200000, %ebp        # imm = 0x1200000
jmp 0x583fe
movl $0xfff, %ebp            # imm = 0xFFF
andl 0x10(%r15), %ebp
orl $0x3200000, %ebp        # imm = 0x3200000
orl 0x8(%r15), %ebp
movl (%r15), %r12d
movl 0x4(%r15), %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
je 0x58428
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x58451
leaq 0x1da49(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
movl %ebp, %ecx
orl $0x400000, %ecx         # imm = 0x400000
cmpl $0x1, %r15d
cmovnel %ebp, %ecx
shll $0x1c, %r12d
orl %ecx, %r12d
movq 0x28(%rbx), %rcx
movl %r12d, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x5841f
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_fpa_stran_instr
static void prv_encode_fpa_stran_instr(void *user_data, subtilis_arm_op_t *op,
				       subtilis_arm_instr_type_t type,
				       subtilis_fpa_stran_instr_t *instr,
				       subtilis_error_t *err)
{
	subtilis_arm_encode_ud_t *ud = user_data;
	uint32_t word = 0;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	word |= instr->ccode << 28;
	word |= (0xC | (instr->pre_indexed ? 1 : 0)) << 24;
	if (!instr->subtract)
		word |= 1 << 23;

	if (instr->size == 8)
		word |= 1 << 15;
	else if (instr->size == 12)
		word |= 1 << 22;

	if (instr->write_back)
		word |= 1 << 21;

	if (type == SUBTILIS_FPA_INSTR_LDF)
		word |= 1 << 20;

	word |= instr->base << 16;
	word |= instr->dest << 12;
	word |= 1 << 8;
	word |= instr->offset;

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movl %edx, 0x4(%rsp)
movq %rdi, %rbx
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
jne 0x5859f
movl (%r15), %eax
shll $0x1c, %eax
movzbl 0x21(%r15), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x23(%r15), %eax
xorl $0x1, %eax
shll $0x17, %eax
addl %eax, %ecx
addl $0xc000000, %ecx        # imm = 0xC000000
movq 0x8(%r15), %rax
cmpq $0xc, %rax
je 0x5856f
cmpq $0x8, %rax
jne 0x58575
orl $0x8000, %ecx           # imm = 0x8000
jmp 0x58575
orl $0x400000, %ecx         # imm = 0x400000
movl %ecx, (%rsp)
movb 0x22(%r15), %r12b
movq 0x10(%r15), %rbp
movq 0x18(%r15), %r13
movzbl 0x20(%r15), %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
je 0x585ae
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x585dd
leaq 0x1d8c3(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
shll $0xc, %ebp
shll $0x10, %r13d
movl (%rsp), %esi
movl %esi, %ecx
orl $0x200000, %ecx         # imm = 0x200000
testb %r12b, %r12b
cmovel %esi, %ecx
movl %ecx, %edx
orl $0x100000, %edx         # imm = 0x100000
cmpl $0x1e, 0x4(%rsp)
cmovnel %ecx, %edx
orl %ebp, %r13d
orl %r15d, %r13d
orl %edx, %r13d
orl $0x100, %r13d           # imm = 0x100
movq 0x28(%rbx), %rcx
movl %r13d, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x5859f
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_fpa_tran_instr
static void prv_encode_fpa_tran_instr(void *user_data, subtilis_arm_op_t *op,
				      subtilis_arm_instr_type_t type,
				      subtilis_fpa_tran_instr_t *instr,
				      subtilis_error_t *err)
{
	subtilis_arm_encode_ud_t *ud = user_data;
	uint32_t word = 0;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	word |= instr->ccode << 28;
	word |= 0xE << 24;

	if (type == SUBTILIS_FPA_INSTR_FLT) {
		if (instr->size == 8)
			word |= 1 << 7;
		else if (instr->size == 12)
			word |= 1 << 19;
		word |= instr->dest << 16;
		word |= instr->op2.reg << 12;
	} else if (type == SUBTILIS_FPA_INSTR_FIX) {
		if (instr->immediate) {
			word |= 1 << 3;
			word |= instr->op2.imm;
		} else {
			word |= instr->op2.reg;
		}
		word |= instr->dest << 12;
		word |= 1 << 20;
	} else {
		subtilis_error_set_assertion_failed(err);
		return;
	}

	word |= 1 << 8;
	prv_encode_fpa_rounding(instr->rounding, &word);
	word |= 1 << 4;

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %rbx
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
je 0x58657
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl (%r15), %eax
shll $0x1c, %eax
leal 0xe000000(%rax), %ecx
cmpl $0x3f, %ebp
je 0x58684
cmpl $0x3e, %ebp
jne 0x58699
movq 0x20(%r15), %rdx
cmpq $0xc, %rdx
je 0x586c6
cmpq $0x8, %rdx
jne 0x586cd
orl $0xe000080, %eax        # imm = 0xE000080
jmp 0x586cb
cmpb $0x1, 0x10(%r15)
jne 0x586af
movzbl 0x18(%r15), %ecx
orl %ecx, %eax
orl $0xe000008, %eax        # imm = 0xE000008
jmp 0x586b5
leaq 0x1d7e0(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0xf, %esi
movl $0x552, %ecx            # imm = 0x552
jmp 0x5872d
orl 0x18(%r15), %ecx
movl %ecx, %eax
movl 0x8(%r15), %ebp
shll $0xc, %ebp
orl %eax, %ebp
orl $0x100000, %ebp         # imm = 0x100000
jmp 0x586df
orl $0xe080000, %eax        # imm = 0xE080000
movl %eax, %ecx
movl 0x8(%r15), %eax
movl 0x18(%r15), %ebp
shll $0x10, %eax
shll $0xc, %ebp
orl %eax, %ebp
orl %ecx, %ebp
movl 0x28(%r15), %eax
decl %eax
movl %eax, %ecx
shll $0x5, %ecx
addl $0x20, %ecx
xorl %r15d, %r15d
cmpl $0x3, %eax
cmovbl %ecx, %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
jne 0x5864c
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x5873c
leaq 0x1d760(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
orl %r15d, %ebp
orl $0x110, %ebp            # imm = 0x110
movq 0x28(%rbx), %rcx
movl %ebp, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x5864c
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_fpa_cmp_instr
static void prv_encode_fpa_cmp_instr(void *user_data, subtilis_arm_op_t *op,
				     subtilis_arm_instr_type_t type,
				     subtilis_fpa_cmp_instr_t *instr,
				     subtilis_error_t *err)
{
	subtilis_arm_encode_ud_t *ud = user_data;
	uint32_t word = 0;
	uint32_t op_code = 0;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	word |= instr->ccode << 28;
	word |= 0xE << 24;

	switch (type) {
	case SUBTILIS_FPA_INSTR_CMF:
		op_code = 4;
		break;
	case SUBTILIS_FPA_INSTR_CNF:
		op_code = 5;
		break;
	case SUBTILIS_FPA_INSTR_CMFE:
		op_code = 6;
		break;
	case SUBTILIS_FPA_INSTR_CNFE:
		op_code = 7;
		break;
	default:
		subtilis_error_set_assertion_failed(err);
		return;
	}
	word |= op_code << 21;
	word |= 1 << 20;
	word |= instr->dest << 16;
	word |= 15 << 12;
	word |= 1 << 8;
	word |= 1 << 4;

	if (instr->immediate) {
		word |= 1 << 3;
		word |= instr->op2.imm;
	} else {
		word |= instr->op2.reg;
	}

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %rbx
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
je 0x5878e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addl $-0x40, %ebp
cmpl $0x4, %ebp
jae 0x587ac
cmpb $0x1, 0x10(%r15)
jne 0x587d3
movzbl 0x18(%r15), %r12d
movl $0xf118, 0x4(%rsp)      # imm = 0xF118
jmp 0x587df
leaq 0x1d6cd(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0xf, %esi
movl $0x57f, %ecx            # imm = 0x57F
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
movl 0x18(%r15), %r12d
movl $0xf110, 0x4(%rsp)      # imm = 0xF110
movl (%r15), %r13d
movl 0x8(%r15), %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
jne 0x5877f
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x5881a
leaq 0x1d675(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
jmp 0x587c0
shll $0x1c, %r13d
shll $0x15, %ebp
orl %r13d, %ebp
shll $0x10, %r15d
orl %ebp, %r15d
orl $0xe900000, %r15d       # imm = 0xE900000
orl 0x4(%rsp), %r12d
orl %r15d, %r12d
movq 0x28(%rbx), %rcx
movl %r12d, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x5877f
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_fpa_ldrc_instr
static void prv_encode_fpa_ldrc_instr(void *user_data, subtilis_arm_op_t *op,
				      subtilis_arm_instr_type_t type,
				      subtilis_fpa_ldrc_instr_t *instr,
				      subtilis_error_t *err)
{
	subtilis_fpa_stran_instr_t stran;
	subtilis_arm_encode_ud_t *ud = user_data;

	/*
	 * adj is the number of additional bytes that can be written
	 * without causing a pool flush.  8 for the double and 4
	 * for the ldr instruction.
	 */

	size_t adj = 12;

	prv_check_pool_adj(ud, adj, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	if (ud->ldrc_real == SIZE_MAX)
		ud->ldrc_real = ud->bytes_written;

	prv_add_const(ud, instr->label, ud->bytes_written,
		      SUBTILIS_ARM_ENCODE_BP_LDRF, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	stran.ccode = instr->ccode;
	stran.size = instr->size;
	stran.dest = instr->dest;
	stran.base = 15;
	stran.offset = 0;
	stran.pre_indexed = true;
	stran.write_back = false;
	stran.subtract = false;
	prv_encode_fpa_stran_instr(user_data, op, SUBTILIS_FPA_INSTR_LDF,
				   &stran, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %r8, %rbx
movq %rcx, %r15
movq %rdi, %r14
movl $0xc, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%rbx)
jne 0x588da
movq 0x30(%r14), %rdx
cmpq $-0x1, 0x88(%r14)
jne 0x58888
movq %rdx, 0x88(%r14)
movq 0x18(%r15), %rsi
movq %r14, %rdi
movl $0x2, %ecx
movq %rbx, %r8
callq 0x59fd3
cmpl $0x0, (%rbx)
jne 0x588da
movl (%r15), %eax
leaq 0x8(%rsp), %rcx
movl %eax, (%rcx)
movdqu 0x8(%r15), %xmm0
pshufd $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, 0x8(%rcx)
movq $0xf, 0x18(%rcx)
movl $0x100, 0x20(%rcx)      # imm = 0x100
movq %r14, %rdi
movl $0x1e, %edx
movq %rbx, %r8
callq 0x5850c
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_fpa_cptran_instr
static void prv_encode_fpa_cptran_instr(void *user_data, subtilis_arm_op_t *op,
					subtilis_arm_instr_type_t type,
					subtilis_fpa_cptran_instr_t *instr,
					subtilis_error_t *err)
{
	subtilis_arm_encode_ud_t *ud = user_data;
	uint32_t word = 0;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	word |= instr->ccode << 28;
	word |= 0xE << 24;
	if (type == SUBTILIS_FPA_INSTR_WFS)
		word |= 2 << 20;
	else
		word |= 3 << 20;
	word |= instr->dest << 12;
	word |= (1 << 8 | 1 << 4);

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %rbx
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
jne 0x58924
movl (%r15), %r12d
movq 0x8(%r15), %r15
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
je 0x5892d
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x58956
leaq 0x1d544(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
shll $0xc, %r15d
shll $0x1c, %r12d
xorl %ecx, %ecx
cmpl $0x44, %ebp
setne %cl
shll $0x14, %ecx
orl %r12d, %ecx
orl %r15d, %ecx
orl $0xe200110, %ecx        # imm = 0xE200110
movq 0x28(%rbx), %rdx
movl %ecx, (%rdx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x58924
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_vfp_stran_instr
static void prv_encode_vfp_stran_instr(void *user_data, subtilis_arm_op_t *op,
				       subtilis_arm_instr_type_t type,
				       subtilis_vfp_stran_instr_t *instr,
				       subtilis_error_t *err)
{
	uint32_t copro = 0xb;
	uint32_t dest = instr->dest & 0x1f;
	subtilis_arm_encode_ud_t *ud = user_data;
	uint32_t word = 6 << 25;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	word |= instr->ccode << 28;
	word |= (0xC | (instr->pre_indexed ? 1 : 0)) << 24;
	if (!instr->subtract)
		word |= 1 << 23;

	if ((type == SUBTILIS_VFP_INSTR_FSTS) ||
	    (type == SUBTILIS_VFP_INSTR_FLDS)) {
		word |= (dest & 1) << 22;
		dest = dest >> 1;
		copro--;
	}

	if (instr->write_back)
		word |= 1 << 21;

	if (type == SUBTILIS_VFP_INSTR_FLDS || type == SUBTILIS_VFP_INSTR_FLDD)
		word |= 1 << 20;

	word |= instr->base << 16;
	word |= dest << 12;
	word |= copro << 8;
	word |= instr->offset;

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %rbx
movq 0x8(%rcx), %rax
movq %rax, 0x10(%rsp)
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
jne 0x589f3
movl (%r15), %eax
movl %eax, 0xc(%rsp)
movzbl 0x19(%r15), %eax
movl %eax, 0x8(%rsp)
movb 0x1b(%r15), %al
movb %al, 0x7(%rsp)
movb 0x1a(%r15), %r12b
movq 0x10(%r15), %r13
movzbl 0x18(%r15), %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
je 0x58a02
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0xc(%rsp), %esi
movb 0x7(%rsp), %dl
movl 0x8(%rsp), %ecx
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x58a3d
leaq 0x1d463(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
shll $0x10, %r13d
shll $0x1c, %esi
shll $0x18, %ecx
orl %esi, %ecx
xorb $0x1, %dl
movzbl %dl, %esi
shll $0x17, %esi
orl %ecx, %esi
movl %ebp, %r11d
movl %ebp, %ecx
andl $-0x2, %ecx
movq 0x10(%rsp), %rbp
movl %ebp, %edi
andl $0x1, %edi
shll $0x16, %edi
xorl %r8d, %r8d
xorl %edx, %edx
cmpl $0x46, %ecx
setne %dl
sete %cl
cmovel %edi, %r8d
orl %esi, %r8d
movzbl %r12b, %esi
shll $0x15, %esi
orl %r8d, %esi
addl $-0x47, %r11d
xorl %edi, %edi
testl $0xfffffffd, %r11d      # imm = 0xFFFFFFFD
sete %dil
shll $0x14, %edi
andl $0x1f, %ebp
shrl %cl, %ebp
orl %esi, %edi
shll $0xc, %ebp
shll $0x8, %edx
orl %ebp, %edx
orl %r13d, %edx
orl %r15d, %edx
orl %edi, %edx
orl $0xc000a00, %edx        # imm = 0xC000A00
movq 0x28(%rbx), %rcx
movl %edx, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x589f3
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_vfp_copy_instr
static void prv_encode_vfp_copy_instr(void *user_data, subtilis_arm_op_t *op,
				      subtilis_arm_instr_type_t type,
				      subtilis_vfp_copy_instr_t *instr,
				      subtilis_error_t *err)
{
	uint32_t word;
	bool float32 = false;
	subtilis_arm_encode_ud_t *ud = user_data;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	switch (type) {
	case SUBTILIS_VFP_INSTR_FCPYS:
		word = 0xeb00a40;
		float32 = true;
		break;
	case SUBTILIS_VFP_INSTR_FCPYD:
		word = 0xeb00b40;
		break;
	case SUBTILIS_VFP_INSTR_FNEGS:
		word = 0xeb10a40;
		float32 = true;
		break;
	case SUBTILIS_VFP_INSTR_FNEGD:
		word = 0xeb10b40;
		break;
	case SUBTILIS_VFP_INSTR_FABSS:
		word = 0xeb00ac0;
		float32 = true;
		break;
	case SUBTILIS_VFP_INSTR_FABSD:
		word = 0xeb00bc0;
		break;
	default:
		subtilis_error_set_assertion_failed(err);
		return;
	}

	word |= instr->ccode << 28;
	word |= prv_encode_src_dest(instr->src, instr->dest, float32, float32);

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movl %edx, %r12d
movq %rdi, %rbx
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
jne 0x58b99
addl $-0x4a, %r12d
cmpl $0x5, %r12d
ja 0x58bc6
leaq 0x1d193(%rip), %rax     # 0x75ca0
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0xeb00a40, %ebp        # imm = 0xEB00A40
jmp 0x58b29
movl $0xeb00ac0, %ebp        # imm = 0xEB00AC0
jmp 0x58b29
movl $0xeb10a40, %ebp        # imm = 0xEB10A40
movl 0x8(%r15), %r13d
movl 0x10(%r15), %r12d
movl %r12d, %eax
shrl %eax
andl $0xf, %eax
shll $0x5, %r12d
andl $0x20, %r12d
orl %eax, %r12d
movl %r13d, %eax
andl $0x1e, %eax
shll $0xb, %eax
andl $0x1, %r13d
shll $0x16, %r13d
orl %eax, %r13d
jmp 0x58b80
movl $0xeb10b40, %ebp        # imm = 0xEB10B40
jmp 0x58b6d
movl $0xeb00b40, %ebp        # imm = 0xEB00B40
jmp 0x58b6d
movl $0xeb00bc0, %ebp        # imm = 0xEB00BC0
movl 0x8(%r15), %eax
movl 0x10(%r15), %r12d
andl $0xf, %r12d
shll $0xc, %eax
movzwl %ax, %r13d
movl (%r15), %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
je 0x58ba8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x58bed
leaq 0x1d2c9(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
jmp 0x58bda
leaq 0x1d2b3(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0xf, %esi
movl $0x641, %ecx            # imm = 0x641
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
shll $0x1c, %r15d
orl %ebp, %r15d
orl %r12d, %r13d
orl %r15d, %r13d
movq 0x28(%rbx), %rcx
movl %r13d, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x58b99
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_vfp_ldrc_instr
static void prv_encode_vfp_ldrc_instr(void *user_data, subtilis_arm_op_t *op,
				      subtilis_arm_instr_type_t type,
				      subtilis_vfp_ldrc_instr_t *instr,
				      subtilis_error_t *err)
{
	subtilis_vfp_stran_instr_t stran;
	subtilis_arm_encode_ud_t *ud = user_data;

	/*
	 * adj is the number of additional bytes that can be written
	 * without causing a pool flush.  8 for the double and 4
	 * for the ldr instruction.
	 */

	size_t adj = 12;

	prv_check_pool_adj(ud, adj, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	if (ud->ldrc_real == SIZE_MAX)
		ud->ldrc_real = ud->bytes_written;

	prv_add_const(ud, instr->label, ud->bytes_written,
		      SUBTILIS_ARM_ENCODE_BP_LDRF, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	stran.ccode = instr->ccode;
	stran.dest = instr->dest;
	stran.base = 15;
	stran.offset = 0;
	stran.pre_indexed = true;
	stran.write_back = false;
	stran.subtract = false;
	prv_encode_vfp_stran_instr(user_data, op, SUBTILIS_VFP_INSTR_FLDD,
				   &stran, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %r8, %rbx
movq %rcx, %r15
movq %rdi, %r14
movl $0xc, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%rbx)
jne 0x58c8d
movq 0x30(%r14), %rdx
cmpq $-0x1, 0x88(%r14)
jne 0x58c45
movq %rdx, 0x88(%r14)
movq 0x18(%r15), %rsi
movq %r14, %rdi
movl $0x2, %ecx
movq %rbx, %r8
callq 0x59fd3
cmpl $0x0, (%rbx)
jne 0x58c8d
movl (%r15), %eax
movq %rsp, %rcx
movl %eax, (%rcx)
movq 0x8(%r15), %rax
movq %rax, 0x8(%rcx)
movq $0xf, 0x10(%rcx)
movl $0x100, 0x18(%rcx)      # imm = 0x100
movq %r14, %rdi
movl $0x49, %edx
movq %rbx, %r8
callq 0x58986
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_vfp_cptran_instr
static void prv_encode_vfp_cptran_instr(void *user_data, subtilis_arm_op_t *op,
					subtilis_arm_instr_type_t type,
					subtilis_vfp_cptran_instr_t *instr,
					subtilis_error_t *err)
{
	uint32_t word;
	subtilis_arm_reg_t src = instr->src;
	subtilis_arm_reg_t dest = instr->dest;
	subtilis_arm_encode_ud_t *ud = user_data;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	if (type == SUBTILIS_VFP_INSTR_FMSR) {
		if (instr->use_dregs)
			dest *= 2;
		word = 0xe000a10;
		word |= (src & 0xf) << 12;
		word |= ((dest >> 1) & 0xf) << 16;
		word |= (dest & 1) << 7;
	} else {
		if (instr->use_dregs)
			src *= 2;
		word = 0xe100a10;
		word |= (dest & 0xf) << 12;
		word |= ((src >> 1) & 0xf) << 16;
		word |= (src & 1) << 7;
	}

	word |= instr->ccode << 28;

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %rbx
movq 0x8(%rcx), %r13
movq 0x10(%rcx), %r12
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
jne 0x59039
cmpl $0x5d, %ebp
setne 0x7(%rsp)
movl %r13d, %ebp
cmovel %r12d, %ebp
movb 0x4(%r15), %cl
cmovel %r13d, %r12d
shll %cl, %r12d
movl (%r15), %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
je 0x59048
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb 0x7(%rsp), %cl
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x5907b
leaq 0x1ce25(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
xorl %esi, %esi
movb %cl, %sil
shll $0x14, %esi
shll $0xc, %ebp
movzwl %bp, %ecx
movl %r12d, %edx
andl $0x1e, %edx
shll $0xf, %edx
orl %ecx, %edx
shll $0x7, %r12d
movzbl %r12b, %ecx
orl %edx, %ecx
addl %esi, %ecx
addl $0xe000a10, %ecx        # imm = 0xE000A10
shll $0x1c, %r15d
orl %ecx, %r15d
movq 0x28(%rbx), %rcx
movl %r15d, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x59039
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_vfp_sqrt_instr
static void prv_encode_vfp_sqrt_instr(void *user_data, subtilis_arm_op_t *op,
				      subtilis_arm_instr_type_t type,
				      subtilis_vfp_sqrt_instr_t *instr,
				      subtilis_error_t *err)
{
	uint32_t word;
	subtilis_arm_encode_ud_t *ud = user_data;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	if (type == SUBTILIS_VFP_INSTR_FSQRTD) {
		word = 0xeb10bc0;
		word |= instr->op1 & 0xf;
		word |= (instr->dest & 0xf) << 12;
	} else {
		word = 0xeb10ac0;
		word |= (instr->op1 >> 1) & 0xf;
		word |= (instr->op1 & 1) << 5;
		word |= ((instr->dest >> 1) & 0xf) << 12;
		word |= (instr->dest & 1) << 22;
	}

	word |= instr->ccode << 28;

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %rbx
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
jne 0x59450
movq 0x10(%r15), %rax
cmpl $0x79, %ebp
jne 0x59409
andl $0xf, %eax
movl 0x8(%r15), %ecx
shll $0xc, %ecx
movzwl %cx, %r12d
orq %rax, %r12
movl $0xeb10bc0, %ebp        # imm = 0xEB10BC0
jmp 0x59437
movl %eax, %ecx
shrl %ecx
andl $0xf, %ecx
shll $0x5, %eax
andl $0x20, %eax
orl %ecx, %eax
movl 0x8(%r15), %r12d
movl %r12d, %ecx
andl $0x1e, %ecx
shll $0xb, %ecx
orl %eax, %ecx
andl $0x1, %r12d
shll $0x16, %r12d
orl %ecx, %r12d
movl $0xeb10ac0, %ebp        # imm = 0xEB10AC0
movl (%r15), %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
je 0x59459
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x59482
leaq 0x1ca18(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
orl %r12d, %ebp
shll $0x1c, %r15d
orl %ebp, %r15d
movq 0x28(%rbx), %rcx
movl %r15d, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x59450
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_vfp_sysreg_instr
static void prv_encode_vfp_sysreg_instr(void *user_data, subtilis_arm_op_t *op,
					subtilis_arm_instr_type_t type,
					subtilis_vfp_sysreg_instr_t *instr,
					subtilis_error_t *err)
{
	uint32_t word;
	subtilis_arm_encode_ud_t *ud = user_data;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	if (type == SUBTILIS_VFP_INSTR_FMRX)
		word = 0xef00a10;
	else
		word = 0xee00a10;

	word |= (instr->arm_reg & 0xf) << 12;
	switch (instr->sysreg) {
	case SUBTILIS_VFP_SYSREG_FPSID:
		break;
	case SUBTILIS_VFP_SYSREG_FPSCR:
		word |= 1 << 16;
		break;
	case SUBTILIS_VFP_SYSREG_FPEXC:
		word |= 8 << 16;
		break;
	}

	word |= instr->ccode << 28;

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %rbx
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
jne 0x59513
xorl %ecx, %ecx
cmpl $0x7c, %ebp
sete %cl
movl 0x4(%r15), %eax
movl 0x8(%r15), %edx
shll $0xc, %edx
movzwl %dx, %edx
shll $0x14, %ecx
leal (%rcx,%rdx), %ebp
addl $0xee00a10, %ebp        # imm = 0xEE00A10
cmpl $0x2, %eax
je 0x594f4
cmpl $0x1, %eax
jne 0x594fa
orl $0x10000, %ebp          # imm = 0x10000
jmp 0x594fa
orl $0x80000, %ebp          # imm = 0x80000
movl (%r15), %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
je 0x5951e
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x59549
leaq 0x1c953(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
shll $0x1c, %r15d
orl %ebp, %r15d
movq 0x28(%rbx), %rcx
movl %r15d, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x59513
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_vfp_cvt_instr
static void prv_encode_vfp_cvt_instr(void *user_data, subtilis_arm_op_t *op,
				     subtilis_arm_instr_type_t type,
				     subtilis_vfp_cvt_instr_t *instr,
				     subtilis_error_t *err)
{
	uint32_t word;
	subtilis_arm_encode_ud_t *ud = user_data;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	if (type == SUBTILIS_VFP_INSTR_FCVTDS) {
		word = 0xeb70ac0;
		word |= (instr->dest << 12);
		word |= (instr->op1 >> 1) | ((instr->op1 & 1) << 5);
	} else {
		word = 0xeb70bc0;
		word |= instr->op1 & 0xf;
		word |=
		    ((instr->dest & 0x1e) << 11) | ((instr->dest & 1) << 22);
	}
	word |= instr->ccode << 28;

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %rbx
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
jne 0x595f4
cmpl $0x81, %ebp
jne 0x595b4
movq 0x8(%r15), %rax
movq 0x10(%r15), %r12
shlq $0xc, %rax
movq %r12, %rcx
shrq %rcx
orq %rax, %rcx
shll $0x5, %r12d
andl $0x20, %r12d
orq %rcx, %r12
movl $0xeb70ac0, %ebp        # imm = 0xEB70AC0
jmp 0x595db
movq 0x10(%r15), %rax
andl $0xf, %eax
movl 0x8(%r15), %r12d
movl %r12d, %ecx
andl $0x1e, %ecx
shll $0xb, %ecx
andl $0x1, %r12d
shll $0x16, %r12d
orq %rax, %r12
orq %rcx, %r12
movl $0xeb70bc0, %ebp        # imm = 0xEB70BC0
movl (%r15), %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
je 0x595fd
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x59626
leaq 0x1c874(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
orl %r12d, %ebp
shll $0x1c, %r15d
orl %ebp, %r15d
movq 0x28(%rbx), %rcx
movl %r15d, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x595f4
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_signx_instr
static void prv_encode_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)
{
	subtilis_arm_encode_ud_t *ud = user_data;
	uint32_t word;
	uint32_t ror;

	prv_check_pool(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	switch (type) {
	case SUBTILIS_ARM_INSTR_SXTB:
		word = 0x6af0070;
		break;
	case SUBTILIS_ARM_INSTR_SXTB16:
		word = 0x68f0070;
		break;
	case SUBTILIS_ARM_INSTR_SXTH:
		word = 0x6bf0070;
		break;
	default:
		subtilis_error_set_assertion_failed(err);
		return;
	}

	switch (instr->rotate) {
	case SUBTILIS_ARM_SIGNX_ROR_NONE:
		ror = 0;
		break;
	case SUBTILIS_ARM_SIGNX_ROR_8:
		ror = 1;
		break;
	case SUBTILIS_ARM_SIGNX_ROR_16:
		ror = 2;
		break;
	case SUBTILIS_ARM_SIGNX_ROR_24:
		ror = 3;
		break;
	default:
		subtilis_error_set_assertion_failed(err);
		return;
	}

	word |= (ror << 10);
	word |= instr->ccode << 28;
	word |= (instr->dest & 0xf) << 12;
	word |= (instr->op1 & 0xf);

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	prv_add_word(ud, word, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %rbx
xorl %esi, %esi
movq %r8, %rdx
callq 0x59e32
cmpl $0x0, (%r14)
je 0x598f4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addl $0xffffff57, %ebp       # imm = 0xFFFFFF57
cmpl $0x3, %ebp
jae 0x5995c
movl 0x4(%r15), %r12d
cmpl $0x4, %r12d
jae 0x59972
movl %ebp, %eax
leaq 0x1c4ee(%rip), %rcx     # 0x75e00
movl (%rcx,%rax,4), %eax
movl %eax, 0x4(%rsp)
movl (%r15), %r13d
movq 0x8(%r15), %rbp
movq 0x10(%r15), %r15
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
jne 0x598e5
movl 0x4(%rsp), %edx
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x59999
leaq 0x1c533(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
jmp 0x59986
leaq 0x1c51d(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0xf, %esi
movl $0x8ea, %ecx            # imm = 0x8EA
jmp 0x59986
leaq 0x1c507(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0xf, %esi
movl $0x8fc, %ecx            # imm = 0x8FC
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
andl $0xf, %r15d
shll $0xc, %ebp
movzwl %bp, %ecx
orl %r15d, %ecx
shll $0xa, %r12d
shll $0x1c, %r13d
orl %r12d, %r13d
orl %edx, %r13d
orl %ecx, %r13d
movq 0x28(%rbx), %rcx
movl %r13d, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x598e5
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_add_word
static void prv_add_word(subtilis_arm_encode_ud_t *ud, uint32_t word,
			 subtilis_error_t *err)
{
	uint32_t *code_ptr;

	if (ud->bytes_written & 3) {
		subtilis_error_set_ass_bad_alignment(err);
		return;
	}

	code_ptr = (uint32_t *)&ud->code[ud->bytes_written];
	*code_ptr = word;
	ud->bytes_written += 4;
}

// Assembly:
movq 0x30(%rdi), %rax
testb $0x3, %al
je 0x59e22
leaq 0x1c073(%rip), %rax     # 0x75e80
movq %rdx, %rdi
movl $0x5d, %esi
movq %rax, %rdx
movl $0xfb, %ecx
jmp 0x145a4
movq 0x28(%rdi), %rcx
movl %esi, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_check_pool_adj
static void prv_check_pool_adj(subtilis_arm_encode_ud_t *ud, size_t adj,
			       subtilis_error_t *err)
{
	uint32_t word = 0;
	bool pool_needed = false;
	size_t pool_end = (ud->int_const_count * 4) +
			  (ud->real_const_count * 8) + ud->bytes_written + adj;

	/* We need to leave one word for the branch statement. */

	pool_needed =
	    (ud->ldrc_real != SIZE_MAX) && ((pool_end - ud->ldrc_real) >= 1020);
	if (!pool_needed)
		pool_needed = (ud->ldrc_int != SIZE_MAX) &&
			      ((pool_end - ud->ldrc_int) >= 4092);

	if (!pool_needed)
		return;

	/* We add a B instruction to jump over the pool */

	word |= SUBTILIS_ARM_CCODE_AL << 28;
	word |= 0x5 << 25;
	prv_add_back_patch(ud, SUBTILIS_ARM_ENCODE_BP_TYPE_BRANCH,
			   ud->max_labels, ud->bytes_written, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	prv_ensure_code(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	prv_add_word(ud, word, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	/* Now we write the constants */

	prv_flush_constants(ud, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	/* Finally, we add the label for the branch */

	prv_encode_label(ud, NULL, ud->max_labels, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	ud->max_labels++;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
movq 0x30(%rdi), %rcx
movq 0x58(%rdi), %rax
movq 0x60(%rdi), %rdx
leaq (%rsi,%rax,4), %rax
leaq (%rax,%rdx,8), %rax
addq %rcx, %rax
movq 0x88(%rdi), %rdx
cmpq $-0x1, %rdx
je 0x59e6f
movq %rax, %rsi
subq %rdx, %rsi
cmpq $0x3fb, %rsi            # imm = 0x3FB
ja 0x59e8f
movq 0x90(%rbx), %rdx
cmpq $-0x1, %rdx
je 0x59f22
subq %rdx, %rax
cmpq $0xffc, %rax            # imm = 0xFFC
jb 0x59f22
movq 0x20(%rbx), %rdx
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %r8
callq 0x59f2a
cmpl $0x0, (%r14)
jne 0x59f22
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5758f
cmpl $0x0, (%r14)
jne 0x59f22
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x59edf
leaq 0x1bfb5(%rip), %rdx     # 0x75e80
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
callq 0x145a4
jmp 0x59ef2
movq 0x28(%rbx), %rcx
movl $0xea000000, (%rcx,%rax) # imm = 0xEA000000
addq $0x4, %rax
movq %rax, 0x30(%rbx)
cmpl $0x0, (%r14)
jne 0x59f22
movq %rbx, %rdi
movq %r14, %rsi
callq 0x599cc
cmpl $0x0, (%r14)
jne 0x59f22
movq 0x20(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x575fa
cmpl $0x0, (%r14)
jne 0x59f22
incq 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_add_back_patch
static void prv_add_back_patch(subtilis_arm_encode_ud_t *ud,
			       subtilis_arm_encode_bp_type_t type, size_t label,
			       size_t code_index, subtilis_error_t *err)
{
	size_t new_max;
	subtilis_arm_encode_bp_t *new_bp;

	if (ud->back_patch_count == ud->max_patch_count) {
		new_max = ud->max_patch_count + SUBTILIS_ENCODER_BACKPATCH_GRAN;
		new_bp = realloc(ud->back_patches,
				 new_max * sizeof(subtilis_arm_encode_bp_t));
		if (!new_bp) {
			subtilis_error_set_oom(err);
			return;
		}
		ud->max_patch_count = new_max;
		ud->back_patches = new_bp;
	}
	new_bp = &ud->back_patches[ud->back_patch_count++];
	new_bp->type = type;
	new_bp->label = label;
	new_bp->code_index = code_index;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
movq 0x70(%rdi), %r13
cmpq 0x78(%rdi), %r13
jne 0x59f79
movq %r8, %r12
movq 0x68(%r15), %rdi
leaq 0x400(,%r13,8), %rax
leaq (%rax,%rax,2), %rsi
callq 0x12210
testq %rax, %rax
je 0x59fac
subq $-0x80, %r13
movq %r13, 0x78(%r15)
movq %rax, 0x68(%r15)
movq 0x70(%r15), %r13
jmp 0x59f7d
movq 0x68(%r15), %rax
leaq 0x1(%r13), %rcx
movq %rcx, 0x70(%r15)
leaq (,%r13,2), %rcx
addq %r13, %rcx
movl %ebp, (%rax,%rcx,8)
movq %r14, 0x8(%rax,%rcx,8)
movq %rbx, 0x10(%rax,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1becd(%rip), %rdx     # 0x75e80
movq %r12, %rdi
movl $0x1, %esi
movl $0x19a, %ecx            # imm = 0x19A
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_add_const
static void prv_add_const(subtilis_arm_encode_ud_t *ud, size_t label,
			  size_t code_index,
			  subtilis_arm_encode_const_type_t type,
			  subtilis_error_t *err)
{
	size_t new_max;
	subtilis_arm_encode_const_t *new_const;

	if (ud->const_count == ud->max_const_count) {
		new_max = ud->max_const_count + SUBTILIS_ENCODER_BACKPATCH_GRAN;
		new_const =
		    realloc(ud->constants,
			    new_max * sizeof(subtilis_arm_encode_const_t));
		if (!new_const) {
			subtilis_error_set_oom(err);
			return;
		}
		ud->max_const_count = new_max;
		ud->constants = new_const;
	}
	if (type != SUBTILIS_ARM_ENCODE_BP_LDRF)
		ud->int_const_count++;
	else
		ud->real_const_count++;
	new_const = &ud->constants[ud->const_count++];
	new_const->label = label;
	new_const->code_index = code_index;
	new_const->type = type;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x48(%rdi), %rbp
cmpq 0x50(%rdi), %rbp
jne 0x5a01a
movq %r8, %r13
subq $-0x80, %rbp
movq 0x40(%r12), %rdi
movq %rbp, %rsi
shlq $0x5, %rsi
callq 0x12210
testq %rax, %rax
je 0x5a05a
movq %rbp, 0x50(%r12)
movq %rax, 0x40(%r12)
xorl %eax, %eax
cmpl $0x2, %ebx
sete %al
incq 0x58(%r12,%rax,8)
movq 0x40(%r12), %rax
movq 0x48(%r12), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x48(%r12)
shlq $0x5, %rcx
movq %r15, (%rax,%rcx)
movq %r14, 0x10(%rax,%rcx)
movl %ebx, 0x18(%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1be1f(%rip), %rdx     # 0x75e80
movq %r13, %rdi
movl $0x1, %esi
movl $0x1f3, %ecx            # imm = 0x1F3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x145a4
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_link.c
// Function: subtilis_arm_link_new
subtilis_arm_link_t *subtilis_arm_link_new(size_t sections,
					   subtilis_error_t *err)
{
	size_t i;
	subtilis_arm_link_t *link = calloc(1, sizeof(*link));

	if (!link) {
		subtilis_error_set_oom(err);
		return NULL;
	}

	link->sections = malloc(sections * sizeof(*link->sections));
	if (!link->sections) {
		free(link);
		subtilis_error_set_oom(err);
		return NULL;
	}
	link->num_sections = sections;

	for (i = 0; i < sections; i++)
		link->sections[i] = SIZE_MAX;

	return link;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movl $0x1, %edi
movl $0x58, %esi
callq 0x12150
testq %rax, %rax
je 0x5a215
movq %rax, %rbx
leaq (,%r15,8), %r12
movq %r12, %rdi
callq 0x121d0
movq %rax, 0x18(%rbx)
testq %rax, %rax
je 0x5a22b
movq %r15, 0x20(%rbx)
testq %r15, %r15
je 0x5a24e
movq %rax, %rdi
movl $0xff, %esi
movq %r12, %rdx
callq 0x12140
jmp 0x5a24e
leaq 0x1bc7c(%rip), %rdx     # 0x75e98
movq %r14, %rdi
movl $0x1, %esi
movl $0x1c, %ecx
jmp 0x5a247
movq %rbx, %rdi
callq 0x122c0
leaq 0x1bc5e(%rip), %rdx     # 0x75e98
movq %r14, %rdi
movl $0x1, %esi
movl $0x23, %ecx
callq 0x145a4
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_link.c
// Function: subtilis_arm_link_add
void subtilis_arm_link_add(subtilis_arm_link_t *link, size_t offset,
			   subtilis_error_t *err)
{
	size_t new_max;
	size_t *new_ext;

	if (link->num_externals == link->max_externals) {
		new_max = link->num_externals + SUBTILIS_CONFIG_PROC_GRAN;
		new_ext = realloc(link->externals, new_max * sizeof(*new_ext));
		if (!new_ext) {
			subtilis_error_set_oom(err);
			return;
		}
		link->externals = new_ext;
		link->max_externals = new_max;
	}

	link->externals[link->num_externals++] = offset;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movq 0x8(%rdi), %r12
cmpq 0x10(%rdi), %r12
jne 0x5a29f
movq %rdx, %r15
leaq 0x200(,%r12,8), %rsi
movq %rax, %rdi
callq 0x12210
testq %rax, %rax
je 0x5a2b8
addq $0x40, %r12
movq %rax, (%r14)
movq %r12, 0x10(%r14)
movq 0x8(%r14), %r12
leaq 0x1(%r12), %rcx
movq %rcx, 0x8(%r14)
movq %rbx, (%rax,%r12,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1bbd9(%rip), %rdx     # 0x75e98
movq %r15, %rdi
movl $0x1, %esi
movl $0x38, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x145a4
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_link.c
// Function: prv_ensure_const_arr
static void prv_ensure_const_arr(subtilis_arm_link_constant_t **arr,
				 size_t num_constants, size_t *max_constants,
				 subtilis_error_t *err)
{
	size_t new_max;
	subtilis_arm_link_constant_t *new_constants;

	if (num_constants == *max_constants) {
		new_max = num_constants + SUBTILIS_CONFIG_PROC_GRAN;
		new_constants = realloc(*arr, new_max * sizeof(**arr));
		if (!new_constants) {
			subtilis_error_set_oom(err);
			return;
		}
		*arr = new_constants;
		*max_constants = new_max;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpq %rsi, (%rdx)
jne 0x5a377
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movq (%rdi), %rdi
leaq 0x200(,%rsi,8), %rax
leaq (%rax,%rax,2), %rsi
callq 0x12210
testq %rax, %rax
je 0x5a383
addq $0x40, %r14
movq %rax, (%r12)
movq %r14, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1bb0e(%rip), %rdx     # 0x75e98
movq %r15, %rdi
movl $0x1, %esi
movl $0x4d, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x145a4
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/arm_link.c
// Function: subtilis_arm_link_delete
void subtilis_arm_link_delete(subtilis_arm_link_t *link)
{
	if (!link)
		return;

	free(link->extrefs);
	free(link->constants);
	free(link->externals);
	free(link->sections);
	free(link);
}

// Assembly:
testq %rdi, %rdi
je 0x5a6cb
pushq %rbx
movq %rdi, %rbx
movq 0x40(%rdi), %rdi
callq 0x122c0
movq 0x28(%rbx), %rdi
callq 0x122c0
movq (%rbx), %rdi
callq 0x122c0
movq 0x18(%rbx), %rdi
callq 0x122c0
movq %rbx, %rdi
popq %rbx
jmp 0x122c0
retq