LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%r14)
jne 0x5848f
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 0x5845f
cmpq $0x8, %rax
jne 0x58465
orl $0x8000, %ecx           # imm = 0x8000
jmp 0x58465
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 0x57496
cmpl $0x0, (%r14)
je 0x5849e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x584cd
leaq 0x1d993(%rip), %rdx     # 0x75e40
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 0x145f4
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 0x5848f
// File: /workspace/github_c_makefile_star2_O1/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
xorl %esi, %esi
movq %r8, %rdx
callq 0x59d65
cmpl $0x0, (%rbx)
je 0x58546
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 0x58573
cmpl $0x3e, %ebp
jne 0x58588
movq 0x20(%r15), %rdx
cmpq $0xc, %rdx
je 0x585b8
cmpq $0x8, %rdx
jne 0x585bf
orl $0xe000080, %eax        # imm = 0xE000080
jmp 0x585bd
cmpb $0x1, 0x10(%r15)
jne 0x585a1
movzbl 0x18(%r15), %ecx
orl %ecx, %eax
orl $0xe000008, %eax        # imm = 0xE000008
jmp 0x585a7
leaq 0x1d8b1(%rip), %rdx     # 0x75e40
movq %rbx, %rdi
movl $0xf, %esi
movl $0x552, %ecx            # imm = 0x552
jmp 0x58637
orl 0x18(%r15), %ecx
movl %ecx, %eax
movl 0x8(%r15), %ebp
shll $0xc, %ebp
orl %eax, %ebp
orl $0x100000, %ebp         # imm = 0x100000
jmp 0x585d1
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
cmpl $0x3, %eax
je 0x585f4
cmpl $0x2, %eax
je 0x585ec
cmpl $0x1, %eax
jne 0x585fc
orl $0x120, %ebp            # imm = 0x120
jmp 0x58602
orl $0x140, %ebp            # imm = 0x140
jmp 0x58602
orl $0x160, %ebp            # imm = 0x160
jmp 0x58602
orl $0x100, %ebp            # imm = 0x100
movl $0x4, %esi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x57496
cmpl $0x0, (%rbx)
jne 0x5853b
movq 0x30(%r14), %rax
testb $0x3, %al
je 0x58646
leaq 0x1d816(%rip), %rdx     # 0x75e40
movq %rbx, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x145f4
orl $0x10, %ebp
movq 0x28(%r14), %rcx
movl %ebp, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%r14)
jmp 0x5853b
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%r14)
je 0x58692
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addl $-0x40, %ebp
cmpl $0x4, %ebp
jae 0x586b0
cmpb $0x1, 0x10(%r15)
jne 0x586d7
movzbl 0x18(%r15), %r12d
movl $0xf118, 0x4(%rsp)      # imm = 0xF118
jmp 0x586e3
leaq 0x1d789(%rip), %rdx     # 0x75e40
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 0x145f4
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 0x57496
cmpl $0x0, (%r14)
jne 0x58683
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x5871e
leaq 0x1d731(%rip), %rdx     # 0x75e40
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
jmp 0x586c4
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 0x58683
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%rbx)
jne 0x587e2
cmpq $-0x1, 0x88(%r14)
jne 0x5878c
movq 0x30(%r14), %rax
movq %rax, 0x88(%r14)
movq 0x18(%r15), %rsi
movq 0x30(%r14), %rdx
movq %r14, %rdi
movl $0x2, %ecx
movq %rbx, %r8
callq 0x59f0b
cmpl $0x0, (%rbx)
jne 0x587e2
movl (%r15), %eax
leaq 0x8(%rsp), %rcx
movl %eax, (%rcx)
movq 0x10(%r15), %rax
movq %rax, 0x8(%rcx)
movq 0x8(%r15), %rax
movq %rax, 0x10(%rcx)
movq $0xf, 0x18(%rcx)
movl $0x100, 0x20(%rcx)      # imm = 0x100
movq %r14, %rdi
movl $0x1e, %edx
movq %rbx, %r8
callq 0x583fc
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%r14)
jne 0x5882c
movl (%r15), %r12d
movq 0x8(%r15), %r15
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x57496
cmpl $0x0, (%r14)
je 0x58835
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x5885e
leaq 0x1d5fc(%rip), %rdx     # 0x75e40
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x145f4
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 0x5882c
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%r14)
jne 0x588fb
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 0x57496
cmpl $0x0, (%r14)
je 0x5890a
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 0x58945
leaq 0x1d51b(%rip), %rdx     # 0x75e40
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 0x145f4
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 0x588fb
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%r14)
jne 0x58aaa
addl $-0x4a, %r12d
cmpl $0x5, %r12d
ja 0x58ad7
movb $0x1, %al
leaq 0x1d249(%rip), %rcx     # 0x75c60
movslq (%rcx,%r12,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movl $0xeb00a40, %ebp        # imm = 0xEB00A40
jmp 0x58a4a
movl $0xeb00ac0, %ebp        # imm = 0xEB00AC0
jmp 0x58a4a
movl $0xeb10a40, %ebp        # imm = 0xEB10A40
jmp 0x58a4a
movl $0xeb10b40, %ebp        # imm = 0xEB10B40
jmp 0x58a48
movl $0xeb00b40, %ebp        # imm = 0xEB00B40
jmp 0x58a48
movl $0xeb00bc0, %ebp        # imm = 0xEB00BC0
xorl %eax, %eax
movq 0x10(%r15), %r12
movq 0x8(%r15), %r13
testb %al, %al
je 0x58a6b
movl %r12d, %ecx
shrl %ecx
andl $0xf, %ecx
shll $0x5, %r12d
andl $0x20, %r12d
orl %ecx, %r12d
jmp 0x58a6f
andl $0xf, %r12d
testb %al, %al
je 0x58a89
movl %r13d, %eax
andl $0x1e, %eax
shll $0xb, %eax
andl $0x1, %r13d
shll $0x16, %r13d
orl %eax, %r13d
jmp 0x58a91
shll $0xc, %r13d
movzwl %r13w, %r13d
movl (%r15), %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x57496
cmpl $0x0, (%r14)
je 0x58ab9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x58afe
leaq 0x1d378(%rip), %rdx     # 0x75e40
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
jmp 0x58aeb
leaq 0x1d362(%rip), %rdx     # 0x75e40
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 0x145f4
shll $0x1c, %r15d
orl %ebp, %r15d
orl %r15d, %r12d
orl %r13d, %r12d
movq 0x28(%rbx), %rcx
movl %r12d, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x58aaa
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%rbx)
jne 0x58ba2
cmpq $-0x1, 0x88(%r14)
jne 0x58b56
movq 0x30(%r14), %rax
movq %rax, 0x88(%r14)
movq 0x18(%r15), %rsi
movq 0x30(%r14), %rdx
movq %r14, %rdi
movl $0x2, %ecx
movq %rbx, %r8
callq 0x59f0b
cmpl $0x0, (%rbx)
jne 0x58ba2
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 0x5888e
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%r14)
jne 0x58f6f
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 0x57496
cmpl $0x0, (%r14)
je 0x58f7e
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 0x58fb1
leaq 0x1ceaf(%rip), %rdx     # 0x75e40
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 0x145f4
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 0x58f6f
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%r14)
jne 0x59382
movq 0x10(%r15), %rax
cmpl $0x79, %ebp
jne 0x5933b
andl $0xf, %eax
movl 0x8(%r15), %ecx
shll $0xc, %ecx
movzwl %cx, %r12d
orq %rax, %r12
movl $0xeb10bc0, %ebp        # imm = 0xEB10BC0
jmp 0x59369
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 0x57496
cmpl $0x0, (%r14)
je 0x5938b
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x593b4
leaq 0x1caa6(%rip), %rdx     # 0x75e40
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x145f4
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 0x59382
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%r14)
jne 0x59445
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 0x59426
cmpl $0x1, %eax
jne 0x5942c
orl $0x10000, %ebp          # imm = 0x10000
jmp 0x5942c
orl $0x80000, %ebp          # imm = 0x80000
movl (%r15), %r15d
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x57496
cmpl $0x0, (%r14)
je 0x59450
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x5947b
leaq 0x1c9e1(%rip), %rdx     # 0x75e40
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x145f4
shll $0x1c, %r15d
orl %ebp, %r15d
movq 0x28(%rbx), %rcx
movl %r15d, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rbx)
jmp 0x59445
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%r14)
jne 0x59526
cmpl $0x81, %ebp
jne 0x594e6
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 0x5950d
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 0x57496
cmpl $0x0, (%r14)
je 0x5952f
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x59558
leaq 0x1c902(%rip), %rdx     # 0x75e40
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x145f4
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 0x59526
// File: /workspace/github_c_makefile_star2_O1/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 0x59d65
cmpl $0x0, (%r14)
je 0x59826
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 0x5988e
movl 0x4(%r15), %r12d
cmpl $0x4, %r12d
jae 0x598a4
movl %ebp, %eax
leaq 0x1c57c(%rip), %rcx     # 0x75dc0
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 0x57496
cmpl $0x0, (%r14)
jne 0x59817
movl 0x4(%rsp), %edx
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x598cb
leaq 0x1c5c1(%rip), %rdx     # 0x75e40
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
jmp 0x598b8
leaq 0x1c5ab(%rip), %rdx     # 0x75e40
movq %r14, %rdi
movl $0xf, %esi
movl $0x8ea, %ecx            # imm = 0x8EA
jmp 0x598b8
leaq 0x1c595(%rip), %rdx     # 0x75e40
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 0x145f4
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 0x59817
// File: /workspace/github_c_makefile_star2_O1/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 0x59d55
leaq 0x1c100(%rip), %rax     # 0x75e40
movq %rdx, %rdi
movl $0x5d, %esi
movq %rax, %rdx
movl $0xfb, %ecx
jmp 0x145f4
movq 0x28(%rdi), %rcx
movl %esi, (%rcx,%rax)
addq $0x4, %rax
movq %rax, 0x30(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/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
setne %sil
movq %rax, %rdi
subq %rdx, %rdi
cmpq $0x3fc, %rdi            # imm = 0x3FC
setae %dl
andb %sil, %dl
jne 0x59dc8
movq 0x90(%rbx), %rdx
cmpq $-0x1, %rdx
setne %sil
subq %rdx, %rax
cmpq $0xffc, %rax            # imm = 0xFFC
setae %dl
andb %sil, %dl
testb %dl, %dl
je 0x59e63
movq 0x20(%rbx), %rdx
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %r8
callq 0x59e6b
cmpl $0x0, (%r14)
jne 0x59e63
movl $0x4, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x57496
cmpl $0x0, (%r14)
jne 0x59e63
movq 0x30(%rbx), %rax
testb $0x3, %al
je 0x59e20
leaq 0x1c034(%rip), %rdx     # 0x75e40
movq %r14, %rdi
movl $0x5d, %esi
movl $0xfb, %ecx
callq 0x145f4
jmp 0x59e33
movq 0x28(%rbx), %rcx
movl $0xea000000, (%rcx,%rax) # imm = 0xEA000000
addq $0x4, %rax
movq %rax, 0x30(%rbx)
cmpl $0x0, (%r14)
jne 0x59e63
movq %rbx, %rdi
movq %r14, %rsi
callq 0x598fe
cmpl $0x0, (%r14)
jne 0x59e63
movq 0x20(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x57501
cmpl $0x0, (%r14)
jne 0x59e63
incq 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x78(%rdi), %r13
cmpq %r13, 0x70(%rdi)
jne 0x59eb4
movq %r8, %r12
movq 0x68(%r15), %rdi
leaq 0x400(,%r13,8), %rax
leaq (%rax,%rax,2), %rsi
callq 0x12210
testq %rax, %rax
je 0x59ee4
subq $-0x80, %r13
movq %r13, 0x78(%r15)
movq %rax, 0x68(%r15)
movq 0x68(%r15), %rax
movq 0x70(%r15), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x70(%r15)
leaq (%rcx,%rcx,2), %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 0x1bf55(%rip), %rdx     # 0x75e40
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 0x145f4
// File: /workspace/github_c_makefile_star2_O1/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 0x50(%rdi), %rbp
cmpq %rbp, 0x48(%rdi)
jne 0x59f52
movq %r8, %r13
subq $-0x80, %rbp
movq 0x40(%r12), %rdi
movq %rbp, %rsi
shlq $0x5, %rsi
callq 0x12210
testq %rax, %rax
je 0x59f92
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 0x1bea7(%rip), %rdx     # 0x75e40
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 0x145f4
// File: /workspace/github_c_makefile_star2_O1/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 0x5a161
movq %rax, %rbx
leaq (,%r15,8), %r12
movq %r12, %rdi
callq 0x121d0
movq %rax, 0x18(%rbx)
testq %rax, %rax
je 0x5a177
movq %r15, 0x20(%rbx)
testq %r15, %r15
je 0x5a19a
movq %rax, %rdi
movl $0xff, %esi
movq %r12, %rdx
callq 0x12140
jmp 0x5a19a
leaq 0x1bcf0(%rip), %rdx     # 0x75e58
movq %r14, %rdi
movl $0x1, %esi
movl $0x1c, %ecx
jmp 0x5a193
movq %rbx, %rdi
callq 0x122c0
leaq 0x1bcd2(%rip), %rdx     # 0x75e58
movq %r14, %rdi
movl $0x1, %esi
movl $0x23, %ecx
callq 0x145f4
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x8(%rdi), %r12
cmpq 0x10(%rdi), %r12
jne 0x5a1e4
movq %rdx, %r15
movq (%r14), %rdi
leaq 0x200(,%r12,8), %rsi
callq 0x12210
testq %rax, %rax
je 0x5a203
addq $0x40, %r12
movq %rax, (%r14)
movq %r12, 0x10(%r14)
movq (%r14), %rax
movq 0x8(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r14)
movq %rbx, (%rax,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1bc4e(%rip), %rdx     # 0x75e58
movq %r15, %rdi
movl $0x1, %esi
movl $0x38, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x145f4
// File: /workspace/github_c_makefile_star2_O1/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 0x5a285
cmpl $0x0, (%r13)
jne 0x5a27b
movq 0x28(%r14), %rax
movq 0x30(%r14), %rcx
leaq (%rcx,%rcx,2), %rdx
movq %r12, (%rax,%rdx,8)
movq %r15, 0x10(%rax,%rdx,8)
incq %rcx
movq %rcx, 0x30(%r14)
movq %rbx, 0x8(%rax,%rdx,8)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5a2c2
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 0x5a2ce
addq $0x40, %r14
movq %rax, (%r12)
movq %r14, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1bb83(%rip), %rdx     # 0x75e58
movq %r15, %rdi
movl $0x1, %esi
movl $0x4d, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x145f4
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_link.c
// Function: subtilis_arm_link_extref_add
void subtilis_arm_link_extref_add(subtilis_arm_link_t *link, size_t code_index,
				  size_t constant_offset, size_t section_index,
				  subtilis_error_t *err)
{
	prv_ensure_const_arr(&link->extrefs, link->num_extrefs,
			     &link->max_extrefs, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	link->extrefs[link->num_extrefs].index = section_index;
	link->extrefs[link->num_extrefs].constant_offset = constant_offset;
	link->extrefs[link->num_extrefs++].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 $0x40, %rdi
movq 0x48(%r14), %rsi
leaq 0x50(%r14), %rdx
movq %r8, %rcx
callq 0x5a285
cmpl $0x0, (%r13)
jne 0x5a346
movq 0x40(%r14), %rax
movq 0x48(%r14), %rcx
leaq (%rcx,%rcx,2), %rdx
movq %r12, (%rax,%rdx,8)
movq %r15, 0x10(%rax,%rdx,8)
incq %rcx
movq %rcx, 0x48(%r14)
movq %rbx, 0x8(%rax,%rdx,8)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5a616
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
nop
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_dump.c
// Function: prv_dump_directive
static void prv_dump_directive(void *user_data, subtilis_arm_op_t *op,
			       subtilis_error_t *err)
{
	switch (op->type) {
	case SUBTILIS_ARM_OP_ALIGN:
		printf("\tALIGN %" PRIu32 "\n", op->op.alignment);
		break;
	case SUBTILIS_ARM_OP_BYTE:
		printf("\tEQUB %d\n", op->op.byte);
		break;
	case SUBTILIS_ARM_OP_TWO_BYTE:
		printf("\tEQUW %d\n", op->op.two_bytes);
		break;
	case SUBTILIS_ARM_OP_FOUR_BYTE:
		printf("\tEQUD %" PRIu32 "\n", op->op.four_bytes);
		break;
	case SUBTILIS_ARM_OP_DOUBLE:
		printf("\tEQUDBL %f\n", op->op.dbl);
		break;
	case SUBTILIS_ARM_OP_DOUBLER:
		printf("\tEQUDBLR %f\n", op->op.dbl);
		break;
	case SUBTILIS_ARM_OP_FLOAT:
		printf("\tEQUF %f\n", op->op.flt);
		break;
	case SUBTILIS_ARM_OP_STRING:
		printf("\tEQUS \"%s\"\n", op->op.str);
		break;
	default:
		subtilis_error_set_assertion_failed(err);
	}
}

// Assembly:
movl (%rsi), %eax
addl $-0x2, %eax
cmpl $0x7, %eax
ja 0x5b57c
leaq 0x1a975(%rip), %rcx     # 0x75e70
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzbl 0x8(%rsi), %esi
leaq 0x1acf2(%rip), %rdi     # 0x76201
jmp 0x5b550
movsd 0x8(%rsi), %xmm0
leaq 0x1ad0e(%rip), %rdi     # 0x7622b
jmp 0x5b563
movl 0x8(%rsi), %esi
leaq 0x1acec(%rip), %rdi     # 0x76215
jmp 0x5b550
movsd 0x8(%rsi), %xmm0
leaq 0x1ace8(%rip), %rdi     # 0x7621f
jmp 0x5b563
movl 0x8(%rsi), %esi
leaq 0x1acb3(%rip), %rdi     # 0x761f6
jmp 0x5b550
movzwl 0x8(%rsi), %esi
leaq 0x1acbb(%rip), %rdi     # 0x7620b
xorl %eax, %eax
jmp 0x12110
cvtss2sd 0x8(%rsi), %xmm0
leaq 0x1acd5(%rip), %rdi     # 0x76238
movb $0x1, %al
jmp 0x12110
movq 0x8(%rsi), %rsi
leaq 0x1accd(%rip), %rdi     # 0x76242
xorl %eax, %eax
jmp 0x12110
leaq 0x1accb(%rip), %rax     # 0x7624e
movq %rdx, %rdi
movl $0xf, %esi
movq %rax, %rdx
movl $0x2b9, %ecx            # imm = 0x2B9
jmp 0x145f4
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_dump.c
// Function: prv_dump_data_instr
static void prv_dump_data_instr(void *user_data, subtilis_arm_op_t *op,
				subtilis_arm_instr_type_t type,
				subtilis_arm_data_instr_t *instr,
				subtilis_error_t *err)
{
	printf("\t%s", instr_desc[type]);
	if (instr->ccode != SUBTILIS_ARM_CCODE_AL)
		printf("%s", ccode_desc[instr->ccode]);
	if (instr->status)
		printf("S");
	printf(" R%zu, R%zu, ", instr->dest, instr->op1);
	prv_dump_op2(&instr->op2);
	printf("\n");
}

// Assembly:
pushq %rbx
movq %rcx, %rbx
movl %edx, %eax
leaq 0x4620b(%rip), %rcx     # 0xa17b0
movq (%rcx,%rax,8), %rsi
leaq 0x1885e(%rip), %rdi     # 0x73e0e
xorl %eax, %eax
callq 0x12110
movl (%rbx), %eax
cmpq $0xe, %rax
je 0x5b5d8
leaq 0x4674a(%rip), %rcx     # 0xa1d10
movq (%rcx,%rax,8), %rsi
leaq 0x1883e(%rip), %rdi     # 0x73e0f
xorl %eax, %eax
callq 0x12110
cmpb $0x1, 0x4(%rbx)
jne 0x5b5e8
movl $0x53, %edi
callq 0x12030
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
leaq 0x1ac6d(%rip), %rdi     # 0x76264
xorl %eax, %eax
callq 0x12110
addq $0x18, %rbx
movq %rbx, %rdi
callq 0x5cc9d
movl $0xa, %edi
popq %rbx
jmp 0x12030
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_dump.c
// Function: prv_dump_mul_instr
static void prv_dump_mul_instr(void *user_data, subtilis_arm_op_t *op,
			       subtilis_arm_instr_type_t type,
			       subtilis_arm_mul_instr_t *instr,
			       subtilis_error_t *err)
{
	printf("\t%s", instr_desc[type]);
	if (instr->ccode != SUBTILIS_ARM_CCODE_AL)
		printf("%s", ccode_desc[instr->ccode]);
	if (instr->status)
		printf("S");
	if (type == SUBTILIS_ARM_INSTR_MLA)
		printf(" R%zu, R%zu, R%zu, R%zu\n", instr->dest, instr->rm,
		       instr->rs, instr->rn);
	else
		printf(" R%zu, R%zu, R%zu\n", instr->dest, instr->rm,
		       instr->rs);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movl %edx, %eax
leaq 0x4618a(%rip), %rcx     # 0xa17b0
movq (%rcx,%rax,8), %rsi
leaq 0x187dd(%rip), %rdi     # 0x73e0e
xorl %eax, %eax
callq 0x12110
movl (%rbx), %eax
cmpq $0xe, %rax
je 0x5b659
leaq 0x466c9(%rip), %rcx     # 0xa1d10
movq (%rcx,%rax,8), %rsi
leaq 0x187bd(%rip), %rdi     # 0x73e0f
xorl %eax, %eax
callq 0x12110
cmpb $0x1, 0x4(%rbx)
jne 0x5b669
movl $0x53, %edi
callq 0x12030
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq 0x18(%rbx), %rcx
cmpl $0x11, %ebp
jne 0x5b692
movq 0x20(%rbx), %r8
leaq 0x1af83(%rip), %rdi     # 0x76608
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x12110
leaq 0x1af75(%rip), %rdi     # 0x7660e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x12110