LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rsi
callq 0x55f90
cmpl $0x0, (%rbx)
jne 0x546bf
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)
andl $0x0, 0x20(%rcx)
pushq $0x4
popq %rdx
movq %r14, %rdi
movq %rbx, %r8
callq 0x53dca
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5472b
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)
pushq $0xa
popq %rdx
movq %r14, %rdi
movq %rbx, %r8
callq 0x54082
cmpl $0x0, (%rbx)
jne 0x547ba
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 0x5474b
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)
pushq $0xd
popq %rdx
movq %r14, %rdi
movq %rbx, %r8
callq 0x540c6
cmpl $0x0, (%rbx)
jne 0x547ba
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
cmpb $0x1, 0x20(%r15)
jne 0x54795
movl 0x28(%r15), %eax
jmp 0x54798
pushq $0x1
popq %rax
movq %rsp, %rcx
movl %eax, (%rcx)
movq (%r15), %rax
movq %rax, 0x8(%rcx)
movq 0x10(%r15), %rax
movq %rax, 0x20(%rcx)
pushq $0xd
popq %rdx
movq %r14, %rdi
movq %rbx, %r8
callq 0x540c6
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %r14
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
jne 0x54841
cmpl $0x1d, %ebp
jne 0x547fd
movl 0x10(%r15), %eax
shll $0xc, %eax
movzwl %ax, %r12d
orl $0x1000000, %r12d       # imm = 0x1000000
jmp 0x5482a
cmpb $0x1, 0xc(%r15)
jne 0x54815
movl 0x10(%r15), %r12d
andl $0xf, %r12d
orl $0x1200000, %r12d       # imm = 0x1200000
jmp 0x54826
movl $0xfff, %r12d           # imm = 0xFFF
andl 0x10(%r15), %r12d
orl $0x3200000, %r12d       # imm = 0x3200000
orl 0x8(%r15), %r12d
movl (%r15), %ebp
movl 0x4(%r15), %r15d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
je 0x5484a
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %r12d, %eax
orl $0x400000, %eax         # imm = 0x400000
cmpl $0x1, %r15d
cmovnel %r12d, %eax
shll $0x1c, %ebp
orl %eax, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r15
movl %edx, 0x4(%rsp)
movq %rdi, %r14
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
jne 0x54991
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
leal (%rax,%rcx), %r13d
addl $0xc000000, %r13d       # imm = 0xC000000
movq 0x8(%r15), %rax
cmpq $0xc, %rax
je 0x54965
cmpq $0x8, %rax
jne 0x5496c
orl $0x8000, %r13d          # imm = 0x8000
jmp 0x5496c
orl $0x400000, %r13d        # imm = 0x400000
movb 0x22(%r15), %al
movb %al, 0x3(%rsp)
movq 0x10(%r15), %rbp
movq 0x18(%r15), %r12
movzbl 0x20(%r15), %r15d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
je 0x549a0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r13d, %eax
orl $0x200000, %eax         # imm = 0x200000
cmpb $0x0, 0x3(%rsp)
cmovel %r13d, %eax
movl %eax, %ecx
orl $0x100000, %ecx         # imm = 0x100000
cmpl $0x1e, 0x4(%rsp)
cmovnel %eax, %ecx
shll $0xc, %ebp
shll $0x10, %r12d
orl %ebp, %r12d
orl %r15d, %r12d
orl %ecx, %r12d
orl $0x100, %r12d           # imm = 0x100
movq %r14, %rdi
movl %r12d, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %r14
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
je 0x54a1e
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 0x54a4b
cmpl $0x3e, %ebp
jne 0x54a60
movq 0x20(%r15), %rdx
cmpq $0xc, %rdx
je 0x54a98
cmpq $0x8, %rdx
jne 0x54a9f
orl $0xe000080, %eax        # imm = 0xE000080
jmp 0x54a9d
cmpb $0x1, 0x10(%r15)
jne 0x54a81
movzbl 0x18(%r15), %ecx
orl %ecx, %eax
orl $0xe000008, %eax        # imm = 0xE000008
jmp 0x54a87
leaq 0x1b389(%rip), %rdx     # 0x6fdf0
pushq $0xf
popq %rsi
movq %rbx, %rdi
movl $0x552, %ecx            # imm = 0x552
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1429e
orl 0x18(%r15), %ecx
movl %ecx, %eax
movl 0x8(%r15), %ebp
shll $0xc, %ebp
orl %eax, %ebp
orl $0x100000, %ebp         # imm = 0x100000
jmp 0x54ab1
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), %r15d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
jne 0x54a13
decl %r15d
movl %r15d, %eax
shll $0x5, %eax
addl $0x20, %eax
xorl %ecx, %ecx
cmpl $0x3, %r15d
cmovbl %eax, %ecx
orl %ecx, %ebp
orl $0x110, %ebp            # imm = 0x110
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %r14
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
je 0x54b2f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addl $-0x40, %ebp
cmpl $0x4, %ebp
jae 0x54b4f
cmpb $0x1, 0x10(%r15)
jne 0x54b74
movzbl 0x18(%r15), %eax
movl %eax, 0x4(%rsp)
movl $0xf118, %r13d          # imm = 0xF118
jmp 0x54b82
leaq 0x1b29a(%rip), %rdx     # 0x6fdf0
pushq $0xf
popq %rsi
movq %rbx, %rdi
movl $0x57f, %ecx            # imm = 0x57F
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1429e
movl 0x18(%r15), %eax
movl %eax, 0x4(%rsp)
movl $0xf110, %r13d          # imm = 0xF110
movl (%r15), %r12d
movl 0x8(%r15), %r15d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
jne 0x54b20
shll $0x1c, %r12d
shll $0x15, %ebp
orl %r12d, %ebp
shll $0x10, %r15d
orl %ebp, %r15d
orl $0xe900000, %r15d       # imm = 0xE900000
orl 0x4(%rsp), %r15d
orl %r13d, %r15d
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0xc
popq %rsi
movq %r8, %rdx
callq 0x55ecb
cmpl $0x0, (%rbx)
jne 0x54c5a
movq 0x30(%r14), %rdx
cmpq $-0x1, 0x88(%r14)
jne 0x54c0c
movq %rdx, 0x88(%r14)
movq 0x18(%r15), %rsi
pushq $0x2
popq %rcx
movq %r14, %rdi
movq %rbx, %r8
callq 0x56057
cmpl $0x0, (%rbx)
jne 0x54c5a
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
pushq $0x1e
popq %rdx
movq %r14, %rdi
movq %rbx, %r8
callq 0x54901
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %r14
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
jne 0x54c9b
movl (%r15), %r12d
movq 0x8(%r15), %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
je 0x54ca4
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
cmpl $0x44, %ebp
setne %al
shll $0x1c, %r12d
shll $0x14, %eax
orl %r12d, %eax
shll $0xc, %r15d
orl %eax, %r15d
orl $0xe200110, %r15d       # imm = 0xE200110
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r12
movl %edx, 0x14(%rsp)
movq %rdi, %r14
movq 0x8(%rcx), %r13
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
jne 0x54d41
movl (%r12), %eax
movl %eax, 0x10(%rsp)
movzbl 0x19(%r12), %ebp
movb 0x1b(%r12), %al
movb %al, 0xe(%rsp)
movb 0x1a(%r12), %al
movb %al, 0xf(%rsp)
movq 0x10(%r12), %r15
movzbl 0x18(%r12), %r12d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
je 0x54d50
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x10(%rsp), %eax
shll $0x1c, %eax
shll $0x18, %ebp
orl %eax, %ebp
movb 0xe(%rsp), %al
xorb $0x1, %al
movzbl %al, %edx
shll $0x17, %edx
orl %ebp, %edx
movl 0x14(%rsp), %r8d
movl %r8d, %ecx
andl $-0x2, %ecx
movl %r13d, %esi
andl $0x1, %esi
shll $0x16, %esi
xorl %edi, %edi
xorl %eax, %eax
cmpl $0x46, %ecx
sete %cl
setne %al
cmovel %esi, %edi
orl %edx, %edi
movzbl 0xf(%rsp), %esi
shll $0x15, %esi
orl %edi, %esi
addl $-0x47, %r8d
xorl %edx, %edx
testl $0xfffffffd, %r8d       # imm = 0xFFFFFFFD
sete %dl
shll $0x14, %edx
andl $0x1f, %r13d
shrl %cl, %r13d
orl %esi, %edx
shll $0x8, %eax
shll $0xc, %r13d
orl %eax, %r13d
shll $0x10, %r15d
orl %r13d, %r15d
orl %r12d, %r15d
orl %edx, %r15d
orl $0xc000a00, %r15d       # imm = 0xC000A00
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r15
movl %edx, %r12d
movq %rdi, %r14
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
jne 0x54e8d
addl $-0x4a, %r12d
cmpl $0x5, %r12d
ja 0x54ed1
movb $0x1, %r13b
leaq 0x1ade4(%rip), %rax     # 0x6fc10
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0xeb00a40, 0x4(%rsp)   # imm = 0xEB00A40
jmp 0x54e72
movl $0xeb00ac0, 0x4(%rsp)   # imm = 0xEB00AC0
jmp 0x54e72
movl $0xeb10a40, 0x4(%rsp)   # imm = 0xEB10A40
jmp 0x54e72
movl $0xeb10b40, 0x4(%rsp)   # imm = 0xEB10B40
jmp 0x54e6f
movl $0xeb00b40, 0x4(%rsp)   # imm = 0xEB00B40
jmp 0x54e6f
movl $0xeb00bc0, 0x4(%rsp)   # imm = 0xEB00BC0
xorl %r13d, %r13d
movl (%r15), %ebp
movq 0x10(%r15), %r12
movq 0x8(%r15), %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
je 0x54e9c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl %r13b, %ecx
movq %r12, %rdi
movq %r15, %rsi
movl %ecx, %edx
callq 0x56213
shll $0x1c, %ebp
addl 0x4(%rsp), %ebp
orl %eax, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
leaq 0x1af18(%rip), %rdx     # 0x6fdf0
pushq $0xf
popq %rsi
movq %rbx, %rdi
movl $0x641, %ecx            # imm = 0x641
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1429e
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0xc
popq %rsi
movq %r8, %rdx
callq 0x55ecb
cmpl $0x0, (%rbx)
jne 0x54f71
movq 0x30(%r14), %rdx
cmpq $-0x1, 0x88(%r14)
jne 0x54f2d
movq %rdx, 0x88(%r14)
movq 0x18(%r15), %rsi
pushq $0x2
popq %rcx
movq %r14, %rdi
movq %rbx, %r8
callq 0x56057
cmpl $0x0, (%rbx)
jne 0x54f71
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
pushq $0x49
popq %rdx
movq %r14, %rdi
movq %rbx, %r8
callq 0x54cda
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r12
movl %edx, %ebp
movq %rdi, %r14
movq 0x8(%rcx), %r15
movq 0x10(%rcx), %r13
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
jne 0x5532f
movzbl 0x4(%r12), %eax
movq %rax, (%rsp)
movl (%r12), %r12d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
je 0x5533e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
cmpl $0x5d, %ebp
setne %al
movl %r15d, %edx
cmovel %r13d, %edx
cmovel %r15d, %r13d
movq (%rsp), %rcx
shll %cl, %r13d
movl %r13d, %ecx
andl $0x1e, %ecx
shll $0xf, %ecx
shll $0xc, %edx
movzwl %dx, %edx
orl %ecx, %edx
shll $0x7, %r13d
movzbl %r13b, %ecx
orl %edx, %ecx
shll $0x14, %eax
orl %ecx, %eax
shll $0x1c, %r12d
leal (%r12,%rax), %esi
addl $0xe000a10, %esi        # imm = 0xE000A10
movq %r14, %rdi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %r14
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
jne 0x556dd
movq 0x10(%r15), %rax
cmpl $0x79, %ebp
jne 0x5569b
andl $0xf, %eax
movl 0x8(%r15), %ecx
shll $0xc, %ecx
movzwl %cx, %r12d
orq %rax, %r12
movl $0xeb10bc0, %r13d       # imm = 0xEB10BC0
jmp 0x556ca
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, %r13d       # imm = 0xEB10AC0
movl (%r15), %ebp
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
je 0x556ec
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
orl %r12d, %r13d
shll $0x1c, %ebp
orl %r13d, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %r14
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
jne 0x55781
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), %r12d
addl $0xee00a10, %r12d       # imm = 0xEE00A10
cmpl $0x2, %eax
je 0x55767
cmpl $0x1, %eax
jne 0x5576e
orl $0x10000, %r12d         # imm = 0x10000
jmp 0x5576e
orl $0x80000, %r12d         # imm = 0x80000
movl (%r15), %ebp
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
je 0x5578a
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
shll $0x1c, %ebp
orl %r12d, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %r14
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
jne 0x55833
cmpl $0x81, %ebp
jne 0x557f8
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, %r13d       # imm = 0xEB70AC0
jmp 0x55820
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, %r13d       # imm = 0xEB70BC0
movl (%r15), %ebp
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
je 0x55842
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
shll $0x1c, %ebp
orl %r13d, %ebp
orl %r12d, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %r14
movq %r8, %rsi
callq 0x55e87
cmpl $0x0, (%rbx)
je 0x55ac7
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 0x55b43
movl 0x4(%r15), %r12d
cmpl $0x4, %r12d
jae 0x55b57
movl %ebp, %eax
leaq 0x1a28b(%rip), %rcx     # 0x6fd70
movl (%rcx,%rax,4), %eax
movl %eax, 0x4(%rsp)
movl (%r15), %ebp
movq 0x8(%r15), %r13
movq 0x10(%r15), %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55e8e
cmpl $0x0, (%rbx)
jne 0x55ab8
shll $0xc, %r13d
movzwl %r13w, %eax
shll $0xa, %r12d
shll $0x1c, %ebp
orl %r12d, %ebp
orl 0x4(%rsp), %ebp
andl $0xf, %r15d
orl %eax, %r15d
orl %ebp, %r15d
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x55e99
leaq 0x1a2a6(%rip), %rdx     # 0x6fdf0
pushq $0xf
popq %rsi
movq %rbx, %rdi
movl $0x8ea, %ecx            # imm = 0x8EA
jmp 0x55b69
leaq 0x1a292(%rip), %rdx     # 0x6fdf0
pushq $0xf
popq %rsi
movq %rbx, %rdi
movl $0x8fc, %ecx            # imm = 0x8FC
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1429e
// File: /workspace/github_c_makefile_star2_O2/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 0x55ebb
leaq 0x19f48(%rip), %rax     # 0x6fdf0
pushq $0x5d
popq %rsi
movq %rdx, %rdi
movq %rax, %rdx
movl $0xfb, %ecx
jmp 0x1429e
movq 0x28(%rdi), %rcx
movl %esi, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x55f08
movq %rax, %rsi
subq %rdx, %rsi
cmpq $0x3fb, %rsi            # imm = 0x3FB
ja 0x55f20
movq 0x90(%rbx), %rdx
cmpq $-0x1, %rdx
je 0x55f88
subq %rdx, %rax
cmpq $0xffc, %rax            # imm = 0xFFC
jb 0x55f88
movq 0x20(%rbx), %rdx
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %r8
callq 0x55f90
cmpl $0x0, (%r14)
jne 0x55f88
movq %rbx, %rdi
movq %r14, %rsi
callq 0x55e8e
cmpl $0x0, (%r14)
jne 0x55f88
movq %rbx, %rdi
movl $0xea000000, %esi       # imm = 0xEA000000
movq %r14, %rdx
callq 0x55e99
cmpl $0x0, (%r14)
jne 0x55f88
movq %rbx, %rdi
movq %r14, %rsi
callq 0x55b7c
cmpl $0x0, (%r14)
jne 0x55f88
movq 0x20(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x53b68
cmpl $0x0, (%r14)
jne 0x55f88
incq 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x55fd7
movq %r8, %r12
subq $-0x80, %r13
movq 0x68(%r15), %rdi
imulq $0x18, %r13, %rsi
callq 0x12210
testq %rax, %rax
je 0x56003
movq %r13, 0x78(%r15)
movq %rax, 0x68(%r15)
movq 0x70(%r15), %r13
jmp 0x55fdb
movq 0x68(%r15), %rax
leaq 0x1(%r13), %rcx
movq %rcx, 0x70(%r15)
imulq $0x18, %r13, %rcx
movl %ebp, (%rax,%rcx)
movq %r14, 0x8(%rax,%rcx)
movq %rbx, 0x10(%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x19de6(%rip), %rdx     # 0x6fdf0
pushq $0x1
popq %rsi
movq %r12, %rdi
movl $0x19a, %ecx            # imm = 0x19A
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1429e
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_convert_shift
static uint32_t prv_convert_shift(subtilis_arm_shift_type_t type,
				  subtilis_error_t *err)
{
	switch (type) {
	case SUBTILIS_ARM_SHIFT_LSL:
		return 0;
	case SUBTILIS_ARM_SHIFT_RRX:
		subtilis_error_set_assertion_failed(err);
		return 0;
	default:
		return ((uint32_t)type) - 1;
	}
}

// Assembly:
movl %edi, %eax
testl %edi, %edi
je 0x56056
cmpl $0x5, %eax
jne 0x56054
pushq %rax
leaq 0x19db5(%rip), %rdx     # 0x6fdf0
pushq $0xf
popq %rax
movq %rsi, %rdi
movl %eax, %esi
movl $0x224, %ecx            # imm = 0x224
callq 0x1429e
xorl %eax, %eax
addq $0x8, %rsp
retq
decl %eax
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5609e
movq %r8, %r13
subq $-0x80, %rbp
movq 0x40(%r12), %rdi
movq %rbp, %rsi
shlq $0x5, %rsi
callq 0x12210
testq %rax, %rax
je 0x560de
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 0x19d0b(%rip), %rdx     # 0x6fdf0
pushq $0x1
popq %rsi
movq %r13, %rdi
movl $0x1f3, %ecx            # imm = 0x1F3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1429e
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_encode_src_dest
static uint32_t prv_encode_src_dest(subtilis_arm_reg_t src,
				    subtilis_arm_reg_t dest, bool float32_src,
				    bool float32_dest)
{
	uint32_t word = 0;

	if (float32_src) {
		word |= (src >> 1) & 0xf;
		word |= (src & 1) << 5;
	} else {
		word |= src & 0xf;
	}
	if (float32_dest) {
		word |= ((dest >> 1) & 0xf) << 12;
		word |= (dest & 1) << 22;
	} else {
		word |= (dest & 0xf) << 12;
	}

	return word;
}

// Assembly:
movq %rsi, %rax
testl %edx, %edx
je 0x5622b
movl %edi, %edx
shrl %edx
andl $0xf, %edx
shll $0x5, %edi
andl $0x20, %edi
orl %edx, %edi
jmp 0x5622e
andl $0xf, %edi
testb %cl, %cl
je 0x56244
movl %eax, %ecx
andl $0x1e, %ecx
shll $0xb, %ecx
andl $0x1, %eax
shll $0x16, %eax
orl %ecx, %eax
jmp 0x5624a
shll $0xc, %eax
movzwl %ax, %eax
orl %edi, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_get_word_ptr
static uint32_t *prv_get_word_ptr(subtilis_arm_encode_ud_t *ud, size_t index,
				  subtilis_error_t *err)
{
	if (index & 3) {
		subtilis_error_set_ass_bad_alignment(err);
		return NULL;
	}

	return (uint32_t *)&ud->code[index];
}

// Assembly:
movq %rsi, %rax
testb $0x3, %al
je 0x56276
pushq %rax
leaq 0x19b94(%rip), %rax     # 0x6fdf0
pushq $0x5d
popq %rsi
movq %rdx, %rdi
movq %rax, %rdx
movl $0xee, %ecx
callq 0x1429e
xorl %eax, %eax
addq $0x8, %rsp
retq
addq 0x28(%rdi), %rax
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_encode.c
// Function: prv_compute_dist
static int32_t prv_compute_dist(size_t first, size_t second, size_t limit,
				subtilis_error_t *err)
{
	size_t tmp;
	int32_t mul = 1;
	size_t diff;

	if (first < second) {
		tmp = first;
		first = second;
		second = tmp;
		mul = -1;
	}

	diff = first - second;
	if (diff > limit) {
		subtilis_error_set_assertion_failed(err);
		return 0;
	}

	return (int32_t)(diff * mul);
}

// Assembly:
movq %rdi, %rax
subq %rsi, %rax
negq %rax
movq %rdi, %r8
subq %rsi, %r8
cmovbeq %rax, %r8
cmpq %rdx, %r8
jbe 0x562b2
pushq %rax
leaq 0x19b55(%rip), %rdx     # 0x6fdf0
pushq $0xf
popq %rsi
movq %rcx, %rdi
movl $0x91b, %ecx            # imm = 0x91B
callq 0x1429e
xorl %eax, %eax
addq $0x8, %rsp
retq
movl %r8d, %eax
negl %eax
cmpq %rsi, %rdi
cmovael %r8d, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
movq %rsi, %r14
movq %rdi, %r15
pushq $0x1
popq %rdi
pushq $0x58
popq %rsi
callq 0x12150
testq %rax, %rax
je 0x56309
movq %rax, %rbx
leaq (,%r15,8), %rdi
callq 0x121d0
movq %rax, 0x18(%rbx)
testq %rax, %rax
je 0x5630d
movq %r15, 0x20(%rbx)
xorl %ecx, %ecx
cmpq %rcx, %r15
je 0x5632c
orq $-0x1, (%rax,%rcx,8)
incq %rcx
jmp 0x562fa
pushq $0x1c
jmp 0x56317
movq %rbx, %rdi
callq 0x122c0
pushq $0x23
popq %rcx
leaq 0x19ae9(%rip), %rdx     # 0x6fe08
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x1429e
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x56377
movq %rdx, %r15
leaq 0x200(,%r12,8), %rsi
movq %rax, %rdi
callq 0x12210
testq %rax, %rax
je 0x56390
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 0x19a71(%rip), %rdx     # 0x6fe08
pushq $0x1
popq %rsi
pushq $0x38
popq %rcx
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1429e
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_link.c
// Function: subtilis_arm_link_constant_add
void subtilis_arm_link_constant_add(subtilis_arm_link_t *link,
				    size_t code_index, size_t constant_offset,
				    size_t constant_index,
				    subtilis_error_t *err)
{
	prv_ensure_const_arr(&link->constants, link->num_constants,
			     &link->max_constants, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	link->constants[link->num_constants].index = constant_index;
	link->constants[link->num_constants].constant_offset = constant_offset;
	link->constants[link->num_constants++].code_index = code_index;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %r13
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
addq $0x28, %rdi
movq 0x30(%r14), %rsi
leaq 0x38(%r14), %rdx
movq %r8, %rcx
callq 0x5640e
cmpl $0x0, (%r13)
jne 0x56404
movq 0x28(%r14), %rax
movq 0x30(%r14), %rcx
imulq $0x18, %rcx, %rdx
movq %r12, (%rax,%rdx)
movq %r15, 0x10(%rax,%rdx)
incq %rcx
movq %rcx, 0x30(%r14)
movq %rbx, 0x8(%rax,%rdx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x56443
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
addq $0x40, %r15
movq (%rdi), %rdi
imulq $0x18, %r15, %rsi
callq 0x12210
testq %rax, %rax
je 0x5644f
movq %rax, (%r12)
movq %r15, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x199b2(%rip), %rdx     # 0x6fe08
pushq $0x1
popq %rsi
pushq $0x4d
popq %rcx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1429e