LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/vfp.c
// Function: subtilis_vfp_add_sysreg
void subtilis_vfp_add_sysreg(subtilis_arm_section_t *s,
			     subtilis_arm_instr_type_t itype,
			     subtilis_arm_ccode_type_t ccode,
			     subtilis_vfp_sysreg_t sysreg,
			     subtilis_arm_reg_t reg, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_vfp_sysreg_instr_t *sysregi;

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

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

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

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

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

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

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

	cvt = &instr->operands.vfp_cvt;
	cvt->ccode = ccode;
	cvt->dest = dest;
	cvt->op1 = op1;
}

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

	bs->max_value = -1;

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

// Assembly:
orl $-0x1, 0x8(%rdi)
movq 0x10(%rdi), %rax
xorl %ecx, %ecx
cmpq %rax, %rcx
jae 0x59a31
movq (%rdi), %rdx
andl $0x0, (%rdx,%rcx,4)
incq %rcx
jmp 0x59a20
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_set
void subtilis_bitset_set(subtilis_bitset_t *bs, size_t bit,
			 subtilis_error_t *err)
{
	size_t cell;
	size_t offset;

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

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

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

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

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

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

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
shrq $0x5, %rbx
cmpq 0x10(%rdi), %rbx
jb 0x59ae5
movq %rdx, %r15
movq %rdi, %r14
incq %rbx
movq (%rdi), %rdi
leaq (,%rbx,4), %rsi
callq 0x12210
testq %rax, %rax
je 0x59aeb
movq %rax, (%r14)
movq 0x10(%r14), %rcx
leaq (%rax,%rcx,4), %rdi
movq %rbx, %rdx
subq %rcx, %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x12140
movq %rbx, 0x10(%r14)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x16dd0(%rip), %rdx     # 0x708c2
pushq $0x1
popq %rsi
pushq $0x32
popq %rcx
movq %r15, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1429e
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_clear
void subtilis_bitset_clear(subtilis_bitset_t *bs, size_t bit)
{
	size_t cell;
	size_t offset;

	if (bit > bs->max_value)
		return;

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

// Assembly:
movslq 0x8(%rdi), %rax
cmpq %rsi, %rax
jb 0x59b60
movq %rsi, %rax
shrq $0x5, %rax
pushq $-0x2
popq %rdx
movl %esi, %ecx
roll %cl, %edx
movq (%rdi), %rcx
andl %edx, (%rcx,%rax,4)
movslq 0x8(%rdi), %rcx
cmpq %rsi, %rcx
jne 0x59b60
movq %rax, %rsi
jmp 0x59b61
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/bitset.c
// Function: prv_set_max
static void prv_set_max(subtilis_bitset_t *bs, size_t block)
{
	size_t i;
	size_t byte;
	unsigned int mask;

	do {
		if (bs->bits[block] != 0)
			break;
		if (block == 0) {
			bs->max_value = -1;
			return;
		}
		block--;
	} while (true);

	byte = sizeof(unsigned int);
	while (byte > 0) {
		byte--;
		mask = 0xff << (byte * 8);
		if (mask & bs->bits[block])
			break;
	}

	i = 8;
	while (i > 0) {
		i--;
		mask = 1 << (i + (byte * 8));
		if (mask & bs->bits[block])
			break;
	}
	bs->max_value = (block * sizeof(unsigned int) * 8) + (byte * 8) + i;
}

// Assembly:
movq (%rdi), %rax
movl %esi, %edx
shll $0x5, %edx
addl $0x28, %edx
pushq $-0x1
popq %rcx
movl (%rax,%rsi,4), %r8d
testl %r8d, %r8d
jne 0x59b83
subq $0x1, %rsi
jb 0x59bcb
addl $-0x20, %edx
jmp 0x59b6f
pushq $0x27
popq %rax
pushq $0x18
popq %rcx
movl $0xff, %esi
shll %cl, %esi
addl $-0x8, %eax
addl $-0x8, %edx
testq %rcx, %rcx
je 0x59ba6
andl %r8d, %esi
addq $-0x8, %rcx
testl %esi, %esi
je 0x59b89
pushq $-0x7
popq %rsi
pushq $0x1
popq %r9
movl %r9d, %r10d
movl %eax, %ecx
shll %cl, %r10d
decl %edx
testq %rsi, %rsi
je 0x59bcd
andl %r8d, %r10d
incq %rsi
decl %eax
testl %r10d, %r10d
je 0x59bad
jmp 0x59bcd
movl %ecx, %edx
movl %edx, 0x8(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_and
void subtilis_bitset_and(subtilis_bitset_t *bs, subtilis_bitset_t *bs1)
{
	size_t i;
	size_t limit;

	if (bs->max_value < 0)
		return;

	if (bs1->max_value < bs->max_value)
		bs->max_value = bs1->max_value;

	if (bs->max_value >= 0 && bs1->max_value >= 0)
		limit = (bs->max_value / (sizeof(unsigned int) * 8)) + 1;
	else
		limit = 0;

	for (i = 0; i < limit; i++)
		bs->bits[i] &= bs1->bits[i];

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

	if (limit > 0)
		prv_set_max(bs, limit - 1);
}

// Assembly:
movq %rsi, %rax
movl 0x8(%rdi), %esi
testl %esi, %esi
js 0x59c38
movl 0x8(%rax), %ecx
cmpl %esi, %ecx
jge 0x59bf1
movl %ecx, 0x8(%rdi)
testl %ecx, %ecx
js 0x59bf8
cmpl $0x0, 0x8(%rax)
movl %ecx, %esi
js 0x59bf8
shrl $0x5, %esi
incl %esi
jmp 0x59bfa
xorl %esi, %esi
xorl %ecx, %ecx
cmpq %rcx, %rsi
je 0x59c13
movq (%rax), %rdx
movl (%rdx,%rcx,4), %edx
movq (%rdi), %r8
andl %edx, (%r8,%rcx,4)
incq %rcx
jmp 0x59bfc
movq 0x10(%rdi), %rax
movq %rsi, %rcx
cmpq %rax, %rcx
jae 0x59c2b
movq (%rdi), %rdx
andl $0x0, (%rdx,%rcx,4)
incq %rcx
jmp 0x59c1a
testq %rsi, %rsi
je 0x59c38
decq %rsi
jmp 0x59b61
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_or
void subtilis_bitset_or(subtilis_bitset_t *bs, subtilis_bitset_t *bs1,
			subtilis_error_t *err)
{
	size_t i;
	size_t limit;

	if (bs1->max_value < 0)
		return;

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

	limit = (bs1->max_value / (sizeof(unsigned int) * 8)) + 1;
	for (i = 0; i < limit; i++)
		bs->bits[i] |= bs1->bits[i];

	if (bs->max_value < bs1->max_value)
		bs->max_value = bs1->max_value;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movslq 0x8(%rsi), %rsi
testq %rsi, %rsi
js 0x59c8a
movq %rdx, %r15
movq %rdi, %rbx
callq 0x59a95
cmpl $0x0, (%r15)
jne 0x59c8a
movslq 0x8(%r14), %rax
shrq $0x5, %rax
movq (%r14), %rcx
movq (%rbx), %rdx
incq %rax
xorl %esi, %esi
cmpq %rsi, %rax
je 0x59c7e
movl (%rcx,%rsi,4), %edi
orl %edi, (%rdx,%rsi,4)
incq %rsi
jmp 0x59c6e
movl 0x8(%r14), %eax
cmpl %eax, 0x8(%rbx)
jge 0x59c8a
movl %eax, 0x8(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_not
void subtilis_bitset_not(subtilis_bitset_t *bs)
{
	size_t limit;
	size_t bits_left;
	size_t i;

	if (bs->max_value < 0)
		return;

	limit = (bs->max_value / (sizeof(unsigned int) * 8));
	for (i = 0; i < limit; i++)
		bs->bits[i] = ~bs->bits[i];

	bits_left = bs->max_value - (limit * sizeof(unsigned int) * 8);
	bs->bits[i] = ~bs->bits[i] & ((1u << bits_left) - 1);
	prv_set_max(bs, limit);
}

// Assembly:
movl 0x8(%rdi), %eax
testl %eax, %eax
js 0x59ccd
movl %eax, %esi
shrl $0x5, %esi
xorl %ecx, %ecx
cmpq %rcx, %rsi
je 0x59cae
movq (%rdi), %rdx
notl (%rdx,%rcx,4)
incq %rcx
jmp 0x59c9e
movl 0x8(%rdi), %ecx
andl $0xe0, %eax
subl %eax, %ecx
pushq $-0x1
popq %rax
shll %cl, %eax
movq (%rdi), %rcx
orl (%rcx,%rsi,4), %eax
notl %eax
movl %eax, (%rcx,%rsi,4)
jmp 0x59b61
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_sub
void subtilis_bitset_sub(subtilis_bitset_t *bs, subtilis_bitset_t *bs1)
{
	size_t i;
	int min_max_value;
	size_t limit;

	min_max_value =
	    bs->max_value <= bs1->max_value ? bs->max_value : bs1->max_value;

	if (min_max_value < 0)
		return;

	limit = (min_max_value / (sizeof(unsigned int) * 8));

	for (i = 0; i < limit; i++)
		bs->bits[i] &= ~bs1->bits[i];
	bs->bits[i] &= ~bs1->bits[i];
	if (bs->max_value <= bs1->max_value)
		prv_set_max(bs, limit);
}

// Assembly:
movq %rsi, %rax
movl 0x8(%rdi), %ecx
movl 0x8(%rsi), %esi
cmpl %esi, %ecx
cmovll %ecx, %esi
testl %esi, %esi
js 0x59d1f
shrl $0x5, %esi
movq (%rax), %rdx
movq (%rdi), %rcx
xorl %r8d, %r8d
cmpq %r8, %rsi
je 0x59d01
movl (%rdx,%r8,4), %r9d
notl %r9d
andl %r9d, (%rcx,%r8,4)
incq %r8
jmp 0x59cec
leal (,%rsi,4), %r8d
movl (%rdx,%r8), %edx
notl %edx
andl %edx, (%rcx,%r8)
movl 0x8(%rdi), %ecx
cmpl 0x8(%rax), %ecx
jle 0x59b61
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_dump
void subtilis_bitset_dump(subtilis_bitset_t *bs)
{
	size_t i;

	if (bs->max_value >= 0) {
		for (i = 0; i <= bs->max_value; i++) {
			if (subtilis_bitset_isset(bs, i))
				printf("%zu ", i);
		}
	}
	printf("\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x8(%rdi), %ebp
testl %ebp, %ebp
js 0x59d67
movq %rdi, %rbx
leaq 0x16b9a(%rip), %r14     # 0x708d2
xorl %r15d, %r15d
movslq %ebp, %rax
cmpq %rax, %r15
ja 0x59d67
movq %rbx, %rdi
movq %r15, %rsi
callq 0x59b05
testb %al, %al
je 0x59d62
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x12110
movl 0x8(%rbx), %ebp
incq %r15
jmp 0x59d3b
pushq $0xa
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x12030
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_claim
void subtilis_bitset_claim(subtilis_bitset_t *dst, subtilis_bitset_t *src)
{
	subtilis_bitset_free(dst);
	dst->bits = src->bits;
	dst->max_value = src->max_value;
	dst->allocated = src->allocated;
	subtilis_bitset_init(src);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x59db2
movq (%rbx), %rax
movq %rax, (%r14)
movl 0x8(%rbx), %eax
movl %eax, 0x8(%r14)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
andq $0x0, (%rbx)
orl $-0x1, 0x8(%rbx)
andq $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_count
size_t subtilis_bitset_count(subtilis_bitset_t *bs)
{
	size_t i;
	size_t count = 0;

	if (bs->max_value >= 0) {
		for (i = 0; i <= bs->max_value; i++) {
			if (subtilis_bitset_isset(bs, i))
				++count;
		}
	}

	return count;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl 0x8(%rdi), %r12d
testl %r12d, %r12d
js 0x59df2
movq %rdi, %rbx
incq %r12
xorl %r15d, %r15d
xorl %r14d, %r14d
cmpq %r15, %r12
je 0x59df5
movq %rbx, %rdi
movq %r15, %rsi
callq 0x59b05
movzbl %al, %eax
addq %rax, %r14
incq %r15
jmp 0x59dd7
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/bitset.c
// Function: subtilis_bitset_values
size_t *subtilis_bitset_values(subtilis_bitset_t *bs, size_t *count,
			       subtilis_error_t *err)
{
	size_t i;
	size_t j;
	size_t *vals = NULL;
	size_t cnt = subtilis_bitset_count(bs);

	if (cnt > 0) {
		vals = malloc(cnt * sizeof(size_t));
		if (!vals) {
			subtilis_error_set_oom(err);
			return NULL;
		}

		j = 0;
		for (i = 0; i <= bs->max_value; i++) {
			if (subtilis_bitset_isset(bs, i))
				vals[j++] = i;
		}
	}

	*count = cnt;

	return vals;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r12
callq 0x59dba
movq %rax, %r14
testq %rax, %rax
je 0x59e71
leaq (,%r14,8), %rdi
callq 0x121d0
testq %rax, %rax
je 0x59e79
movq %rax, %r15
movq %rbx, (%rsp)
movslq 0x8(%r12), %rbp
incq %rbp
xorl %r13d, %r13d
xorl %ebx, %ebx
cmpq %r13, %rbp
je 0x59e6b
movq %r12, %rdi
movq %r13, %rsi
callq 0x59b05
testb %al, %al
je 0x59e66
movq %r13, (%r15,%rbx,8)
incq %rbx
incq %r13
jmp 0x59e4b
movq (%rsp), %rbx
jmp 0x59e74
xorl %r15d, %r15d
movq %r14, (%rbx)
jmp 0x59e93
leaq 0x16a42(%rip), %rdx     # 0x708c2
pushq $0x1
popq %rsi
movq %r13, %rdi
movl $0x117, %ecx            # imm = 0x117
callq 0x1429e
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_sub_section.c
// Function: subtilis_arm_subsections_init
void subtilis_arm_subsections_init(subtilis_arm_subsections_t *sss)
{
	sss->sub_sections = NULL;
	sss->count = 0;
	sss->max_count = 0;
	sss->ss_link_map = NULL;
	sss->link_count = 0;
	sss->max_links = 0;
	subtilis_bitset_init(&sss->int_save);
	subtilis_bitset_init(&sss->real_save);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x30, %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
callq 0x59a08
addq $0x48, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x59a08
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_sub_section.c
// Function: prv_add_new_sub_section
static size_t prv_add_new_sub_section(subtilis_arm_subsections_t *sss,
				      subtilis_arm_section_t *arm_s,
				      size_t start, subtilis_error_t *err)
{
	subtilis_arm_ss_t *ss;
	size_t new_max;
	subtilis_arm_ss_t *new_ss;
	size_t ptr;

	if (sss->count == sss->max_count) {
		new_max = sss->max_count + SUBTILIS_CONFIG_SSS_GRAN;
		new_ss = realloc(sss->sub_sections,
				 new_max * sizeof(*sss->sub_sections));
		if (!new_ss) {
			subtilis_error_set_oom(err);
			return SIZE_MAX;
		}
		sss->sub_sections = new_ss;
		sss->max_count = new_max;
	}

	ptr = sss->count;
	ss = &sss->sub_sections[sss->count++];
	memset(ss, 0, sizeof(*ss));

	subtilis_bitset_init(&ss->int_inputs);
	subtilis_bitset_init(&ss->real_inputs);
	ss->start = start;
	ss->end = 0;
	ss->num_links = 0;

	return ptr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %r12
movq (%rdi), %r15
movq 0x8(%rdi), %rbx
cmpq 0x10(%rdi), %rbx
jne 0x5a3cb
movq %rdx, %r13
addq $0x10, %rbx
imulq $0x130, %rbx, %rsi      # imm = 0x130
movq %r15, %rdi
callq 0x12210
testq %rax, %rax
je 0x5a425
movq %rax, %r15
movq %rax, (%r12)
movq %rbx, 0x10(%r12)
movq 0x8(%r12), %rbx
leaq 0x1(%rbx), %rax
movq %rax, 0x8(%r12)
imulq $0x130, %rbx, %r12      # imm = 0x130
leaq (%r15,%r12), %rdi
movl $0x130, %edx            # imm = 0x130
xorl %esi, %esi
callq 0x12140
leaq (%r15,%r12), %rdi
addq $0x18, %rdi
callq 0x59a08
addq %r12, %r15
addq $0x30, %r15
movq %r15, %rdi
callq 0x59a08
movq %r14, -0x28(%r15)
andq $0x0, -0x20(%r15)
andq $0x0, 0xf8(%r15)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x164ab(%rip), %rdx     # 0x708d7
pushq $0x1
popq %rsi
pushq $0x31
popq %rcx
movq %r13, %rdi
callq 0x1429e
pushq $-0x1
popq %rbx
jmp 0x5a418
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_sub_section.c
// Function: prv_finalize_sub_section
static void prv_finalize_sub_section(subtilis_arm_ss_t *ss,
				     subtilis_arm_section_t *arm_s, size_t end,
				     size_t count, subtilis_error_t *err)
{
	subtilis_arm_op_t *from;
	subtilis_arm_op_t *op;
	subtilis_regs_used_virt_t regs_used;
	size_t max_int_regs;
	size_t max_real_regs;
	size_t ptr;

	subtilis_arm_section_max_regs(arm_s, &max_int_regs, &max_real_regs);
	subtilis_regs_used_virt_init(&regs_used);

	ss->end = end;
	ss->size = count;
	from = &arm_s->op_pool->ops[ss->start];
	op = &arm_s->op_pool->ops[ss->end];

	subtilis_arm_regs_used_afterv(arm_s, from, op, max_int_regs,
				      max_real_regs, count, &regs_used, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_bitset_claim(&ss->int_inputs, &regs_used.int_regs);
	subtilis_bitset_claim(&ss->real_inputs, &regs_used.real_regs);

	if (((op->type != SUBTILIS_ARM_OP_INSTR) ||
	     (op->op.instr.type != SUBTILIS_ARM_INSTR_B) ||
	     (op->op.instr.operands.br.ccode != SUBTILIS_ARM_CCODE_AL)) &&
	    (op->next != SIZE_MAX)) {
		ptr = op->next;
		op = &arm_s->op_pool->ops[ptr];
		if (op->type == SUBTILIS_ARM_OP_LABEL)
			prv_add_link(ss, arm_s, ptr, op->op.label, err);
	}

cleanup:

	subtilis_regs_used_virt_free(&regs_used);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %rbx
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
leaq 0x10(%rsp), %rbp
leaq 0x8(%rsp), %rdx
movq %rsi, %rdi
movq %rbp, %rsi
callq 0x4c314
leaq 0x18(%rsp), %rdi
callq 0x4f9c4
movq %r12, 0x10(%r15)
movq %r13, (%r15)
movq 0x38(%r14), %rax
movq (%rax), %rax
imulq $0x68, 0x8(%r15), %rsi
addq %rax, %rsi
imulq $0x68, %r12, %r12
addq %rax, %r12
movq (%rbp), %rcx
leaq 0x8(%rsp), %rax
movq (%rax), %r8
movq %r14, %rdi
movq %r12, %rdx
movq %r13, %r9
pushq %rbx
leaq 0x20(%rsp), %rax
pushq %rax
callq 0x516a7
popq %rax
popq %rcx
cmpl $0x0, (%rbx)
je 0x5a4d9
leaq 0x18(%rsp), %rdi
callq 0x4f9da
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x18(%r15), %rdi
leaq 0x18(%rsp), %rsi
callq 0x59d79
leaq 0x30(%r15), %rdi
leaq 0x30(%rsp), %rsi
callq 0x59d79
cmpl $0x0, (%r12)
jne 0x5a50c
cmpl $0x16, 0x8(%r12)
jne 0x5a50c
cmpl $0xe, 0x10(%r12)
je 0x5a4c0
movq 0x58(%r12), %rdx
cmpq $-0x1, %rdx
je 0x5a4c0
movq 0x38(%r14), %rax
movq (%rax), %rax
imulq $0x68, %rdx, %rcx
cmpl $0x1, (%rax,%rcx)
jne 0x5a4c0
addq %rcx, %rax
movq 0x8(%rax), %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %r8
callq 0x5a53f
jmp 0x5a4c0
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_sub_section.c
// Function: subtilis_arm_subsections_free
void subtilis_arm_subsections_free(subtilis_arm_subsections_t *sss)
{
	size_t i;

	subtilis_bitset_free(&sss->int_save);
	subtilis_bitset_free(&sss->real_save);

	free(sss->ss_link_map);
	if (!sss->sub_sections)
		return;

	for (i = 0; i < sss->count; i++)
		prv_free_sub_section(&sss->sub_sections[i]);
	free(sss->sub_sections);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x30, %rdi
callq 0x59db2
leaq 0x48(%rbx), %rdi
callq 0x59db2
movq 0x28(%rbx), %rdi
callq 0x122c0
cmpq $0x0, (%rbx)
je 0x5a78e
movl $0x90, %r12d
xorl %r13d, %r13d
movq (%rbx), %r15
cmpq 0x8(%rbx), %r13
jae 0x5a778
imulq $0x130, %r13, %r14      # imm = 0x130
addq %r15, %r14
addq %r12, %r15
xorl %ebp, %ebp
cmpq 0x128(%r14), %rbp
jae 0x5a757
leaq -0x48(%r15), %rdi
callq 0x59db2
leaq -0x30(%r15), %rdi
callq 0x59db2
leaq -0x18(%r15), %rdi
callq 0x59db2
movq %r15, %rdi
callq 0x59db2
incq %rbp
addq $0x70, %r15
jmp 0x5a722
leaq 0x18(%r14), %rdi
callq 0x59db2
addq $0x30, %r14
movq %r14, %rdi
callq 0x59db2
incq %r13
addq $0x130, %r12            # imm = 0x130
jmp 0x5a70a
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x122c0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_sub_section.c
// Function: subtilis_arm_subsections_must_save
void subtilis_arm_subsections_must_save(subtilis_arm_subsections_t *sss,
					subtilis_arm_ss_t *ss, size_t link,
					subtilis_bitset_t *int_save,
					subtilis_bitset_t *real_save,
					subtilis_error_t *err)
{
	subtilis_bitset_t visited;
	subtilis_arm_ss_link_t *start;
	subtilis_arm_ss_t *next;

	if (link >= ss->num_links) {
		subtilis_error_set_assertion_failed(err);
		return;
	}

	subtilis_bitset_init(&visited);

	start = &ss->links[link];
	if (start->link >= sss->link_count) {
		subtilis_error_set_assertion_failed(err);
		goto cleanup;
	}

	subtilis_bitset_set(&visited, start->link, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;
	next = &sss->sub_sections[sss->ss_link_map[start->link]];
	prv_visit_subsection(sss, next, start, int_save, real_save, &visited,
			     err);

cleanup:

	subtilis_bitset_free(&visited);

	subtilis_bitset_free(&sss->int_save);
	subtilis_bitset_free(&sss->real_save);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r14
cmpq %rdx, 0x128(%rsi)
jbe 0x5a82c
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %rbp
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
callq 0x59a08
imulq $0x70, %rbp, %rbp
movq 0xa8(%r13,%rbp), %rsi
cmpq 0x18(%rbx), %rsi
jae 0x5a851
leaq 0x10(%rsp), %rdi
movq %r14, %rdx
callq 0x59a32
cmpl $0x0, (%r14)
jne 0x5a868
leaq 0x48(,%rbp), %rdx
addq %r13, %rdx
movq 0x28(%rbx), %rax
movq 0x60(%rdx), %rcx
imulq $0x130, (%rax,%rcx,8), %rsi # imm = 0x130
addq (%rbx), %rsi
movq %r14, (%rsp)
leaq 0x10(%rsp), %r9
movq %rbx, %rdi
movq %r12, %rcx
movq %r15, %r8
callq 0x5a896
jmp 0x5a868
leaq 0x160a4(%rip), %rdx     # 0x708d7
pushq $0xf
popq %rsi
movq %r14, %rdi
movl $0x1ee, %ecx            # imm = 0x1EE
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1429e
leaq 0x1607f(%rip), %rdx     # 0x708d7
pushq $0xf
popq %rsi
movq %r14, %rdi
movl $0x1f6, %ecx            # imm = 0x1F6
callq 0x1429e
leaq 0x10(%rsp), %rdi
callq 0x59db2
leaq 0x30(%rbx), %rdi
callq 0x59db2
addq $0x48, %rbx
movq %rbx, %rdi
callq 0x59db2
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_peephole.c
// Function: prv_remove_op
static size_t prv_remove_op(subtilis_arm_section_t *arm_s, size_t ptr,
			    subtilis_arm_op_t *op)
{
	size_t next;
	size_t prev;

	if (arm_s->first_op == arm_s->last_op) {
		arm_s->first_op = SIZE_MAX;
		arm_s->last_op = SIZE_MAX;
		return SIZE_MAX;
	}

	if (arm_s->first_op == ptr) {
		arm_s->first_op = op->next;
		return op->next;
	}

	if (arm_s->last_op == ptr) {
		arm_s->last_op = op->prev;
		return SIZE_MAX;
	}

	next = op->next;
	prev = op->prev;
	arm_s->op_pool->ops[prev].next = next;
	arm_s->op_pool->ops[next].prev = prev;
	return next;
}

// Assembly:
leaq 0x20(%rdi), %rcx
movq 0x20(%rdi), %r8
movq 0x28(%rdi), %rax
cmpq %rax, %r8
jne 0x5ad87
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, (%rcx)
pushq $-0x1
popq %rax
retq
cmpq %rsi, %r8
jne 0x5ad94
movq 0x58(%rdx), %rax
movq %rax, (%rcx)
retq
cmpq %rsi, %rax
jne 0x5ada3
movq 0x60(%rdx), %rax
movq %rax, 0x28(%rdi)
jmp 0x5ad83
movq 0x58(%rdx), %rax
movq 0x60(%rdx), %rcx
movq 0x38(%rdi), %rdx
movq (%rdx), %rdx
imulq $0x68, %rcx, %rsi
movq %rax, 0x58(%rdx,%rsi)
imulq $0x68, %rax, %rsi
movq %rcx, 0x60(%rdx,%rsi)
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/arm_mem.c
// Function: subtilis_arm_mem_memseti32
void subtilis_arm_mem_memseti32(subtilis_ir_section_t *s,
				subtilis_arm_section_t *arm_s,
				subtilis_error_t *err)
{
	const size_t base_reg = 0;
	const size_t size_reg = 1;
	const size_t end_reg = 11;
	subtilis_arm_instr_t *instr;
	subtilis_arm_data_instr_t *datai;

	instr =
	    subtilis_arm_section_add_instr(arm_s, SUBTILIS_ARM_INSTR_ADD, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	datai = &instr->operands.data;
	datai->status = false;
	datai->ccode = SUBTILIS_ARM_CCODE_AL;
	datai->dest = end_reg;
	datai->op1 = base_reg;
	datai->op2.type = SUBTILIS_ARM_OP2_REG;
	datai->op2.op.reg = size_reg;

	prv_memseti32_core(s, arm_s, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_arm_add_mov_reg(arm_s, SUBTILIS_ARM_CCODE_AL, false, 15, 14,
				 err);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x4c92b
cmpl $0x0, (%r14)
jne 0x5ae34
movb $0x0, 0xc(%rax)
movl $0xe, 0x8(%rax)
movq $0xb, 0x10(%rax)
andq $0x0, 0x18(%rax)
andl $0x0, 0x20(%rax)
movq $0x1, 0x28(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5ae3c
cmpl $0x0, (%r14)
jne 0x5ae34
movq %r14, (%rsp)
pushq $0xd
popq %rsi
pushq $0xe
popq %rdx
pushq $0xf
popq %r8
pushq $0xe
popq %r9
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x4d518
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_context_free
static void prv_context_free(subtilis_arm_ass_context_t *c)
{
	size_t i;

	prv_free_defs(c);
	subtilis_bitset_free(&c->pending_labels);
	subtilis_string_pool_delete(c->label_pool);

	for (i = 0; i < c->num_blocks; i++)
		subtilis_arm_exp_val_free(c->blocks[i].upto);
	free(c->blocks);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x50(%rbx), %rdi
cmpq 0x58(%rbx), %r15
jae 0x5f072
movq (%rdi,%r14), %rdi
callq 0x122c0
movq 0x50(%rbx), %rax
movq 0x8(%rax,%r14), %rdi
callq 0x63ee7
incq %r15
addq $0x10, %r14
jmp 0x5f048
callq 0x122c0
leaq 0x38(%rbx), %rdi
callq 0x59db2
movq 0x30(%rbx), %rdi
callq 0x2d7b8
pushq $0x8
popq %r14
xorl %r15d, %r15d
movq 0x68(%rbx), %rdi
cmpq 0x70(%rbx), %r15
jae 0x5f0ac
movq (%rdi,%r14), %rdi
callq 0x63ee7
incq %r15
addq $0x10, %r14
jmp 0x5f090
popq %rbx
popq %r14
popq %r15
jmp 0x122c0
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: subtilis_arm_asm_find_def
subtilis_arm_exp_val_t *subtilis_arm_asm_find_def(subtilis_arm_ass_context_t *c,
						  const char *name)
{
	size_t i;

	for (i = 0; i < c->def_count; i++)
		if (!strcmp(c->defs[i].name, name))
			return c->defs[i].val;

	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movq 0x58(%rdi), %r12
incq %r12
xorl %ebx, %ebx
xorl %r13d, %r13d
decq %r12
je 0x5f0f6
movq 0x50(%r15), %rbp
movq (%rbp,%r13), %rdi
addq $0x10, %r13
movq %r14, %rsi
callq 0x12160
testl %eax, %eax
jne 0x5f0d3
movq -0x8(%rbp,%r13), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_get_double_list
static double *prv_get_double_list(subtilis_arm_ass_context_t *c, size_t *count,
				   subtilis_error_t *err)
{
	const char *tbuf;
	double *new_nums;
	double num;
	double *nums = NULL;
	size_t max_nums = 0;
	size_t num_count = 0;
	subtilis_arm_exp_val_t *val = NULL;

	do {
		val = subtilis_arm_exp_val_get(c, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;

		if (val->type == SUBTILIS_ARM_EXP_TYPE_INT) {
			num = (double)val->val.integer;
		} else if (val->type == SUBTILIS_ARM_EXP_TYPE_REAL) {
			num = val->val.real;
		} else {
			subtilis_error_set_numeric_expected(
			    err, subtilis_arm_exp_type_name(val),
			    c->l->stream->name, c->l->line);
			goto cleanup;
		}

		subtilis_arm_exp_val_free(val);
		val = NULL;

		if (num_count == max_nums) {
			max_nums += 32;
			new_nums = realloc(nums, max_nums * sizeof(*nums));
			if (!new_nums)
				goto cleanup;
			nums = new_nums;
		}

		nums[num_count++] = num;
		tbuf = subtilis_token_get_text(c->t);
	} while ((c->t->type == SUBTILIS_TOKEN_OPERATOR) && !strcmp(tbuf, ","));

	*count = num_count;

	return nums;

cleanup:

	subtilis_arm_exp_val_free(val);
	free(nums);

	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, 0x10(%rsp)
movq %rdi, %r15
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %ecx, %ecx
movq %rcx, %rbp
movq %r15, %rdi
movq %r14, %rsi
callq 0x647a2
movq %rax, %r13
cmpl $0x0, (%r14)
jne 0x60ca7
movl (%r13), %eax
cmpl $0x7, %eax
je 0x60bf7
cmpl $0x6, %eax
jne 0x60c69
cvtsi2sdl 0x8(%r13), %xmm0
jmp 0x60bfd
movsd 0x8(%r13), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r13, %rdi
callq 0x63ee7
cmpq %r12, %rbp
jne 0x60c2c
leaq 0x100(,%r12,8), %rsi
movq %rbx, %rdi
callq 0x12210
testq %rax, %rax
je 0x60ca4
addq $0x20, %r12
movq %rax, %rbx
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rbx,%rbp,8)
movq 0x10(%r15), %rdi
callq 0x12a25
movq 0x10(%r15), %rcx
cmpl $0x2, (%rcx)
jne 0x60c5c
cmpb $0x2c, (%rax)
jne 0x60c5c
leaq 0x1(%rbp), %rcx
cmpb $0x0, 0x1(%rax)
je 0x60bc6
incq %rbp
movq 0x10(%rsp), %rax
movq %rbp, (%rax)
jmp 0x60cb9
movq %r13, %rdi
callq 0x647dd
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0x1005c(%rip), %r10     # 0x70ce0
leaq 0xd13a(%rip), %rcx      # 0x6ddc5
pushq $0x2c
popq %rsi
movq %r14, %rdi
movq %rax, %rdx
pushq $0xee6                  # imm = 0xEE6
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
jmp 0x60ca7
xorl %r13d, %r13d
movq %r13, %rdi
callq 0x63ee7
movq %rbx, %rdi
callq 0x122c0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_parse_fpa_data
static void prv_parse_fpa_data(subtilis_arm_ass_context_t *c,
			       subtilis_arm_instr_type_t itype,
			       subtilis_arm_ccode_type_t ccode,
			       subtilis_fpa_rounding_t rnd, size_t size,
			       bool dyadic, subtilis_error_t *err)
{
	subtilis_fpa_data_instr_t *datai;
	subtilis_arm_instr_t *instr;
	const char *tbuf;

	instr = subtilis_arm_section_add_instr(c->arm_s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	datai = &instr->operands.fpa_data;

	datai->dest = prv_get_fpa_reg(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	tbuf = subtilis_token_get_text(c->t);
	if ((c->t->type != SUBTILIS_TOKEN_OPERATOR) || (strcmp(tbuf, ","))) {
		subtilis_error_set_expected(err, ",", tbuf, c->l->stream->name,
					    c->l->line);
		return;
	}

	if (dyadic) {
		datai->op1 = prv_get_fpa_reg(c, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;

		tbuf = subtilis_token_get_text(c->t);
		if ((c->t->type != SUBTILIS_TOKEN_OPERATOR) ||
		    (strcmp(tbuf, ","))) {
			subtilis_error_set_expected(
			    err, ",", tbuf, c->l->stream->name, c->l->line);
			return;
		}
	}

	datai->immediate = prv_get_fpa_op2(c, &datai->op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	datai->ccode = ccode;
	datai->rounding = rnd;
	datai->size = size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r14d
movq %r8, (%rsp)
movl %ecx, %ebp
movl %edx, %r15d
movq %rdi, %r13
movq 0x40(%rsp), %rbx
movq (%rdi), %rdi
movq %rbx, %rdx
callq 0x4c92b
cmpl $0x0, (%rbx)
jne 0x631e2
movq %rax, %r12
movq %r13, %rdi
movq %rbx, %rsi
callq 0x632dc
movq %rax, 0x18(%r12)
cmpl $0x0, (%rbx)
je 0x631f1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r13), %rdi
callq 0x12a25
movq 0x10(%r13), %rcx
cmpl $0x2, (%rcx)
jne 0x6320e
cmpb $0x2c, (%rax)
jne 0x6320e
cmpb $0x0, 0x1(%rax)
je 0x63243
movq 0x8(%r13), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xdabf(%rip), %r10      # 0x70ce0
leaq 0xa36a(%rip), %rdx      # 0x6d592
pushq $0x1d
popq %rsi
movq %rbx, %rdi
movq %rax, %rcx
pushq $0x87a                  # imm = 0x87A
pushq %r10
callq 0x140cd
addq $0x18, %rsp
jmp 0x631e6
testb %r14b, %r14b
je 0x632a4
movq %r13, %rdi
movq %rbx, %rsi
callq 0x632dc
movq %rax, 0x20(%r12)
cmpl $0x0, (%rbx)
jne 0x631e2
movq 0x10(%r13), %rdi
callq 0x12a25
movq 0x10(%r13), %rcx
cmpl $0x2, (%rcx)
jne 0x6327a
cmpb $0x2c, (%rax)
jne 0x6327a
cmpb $0x0, 0x1(%rax)
je 0x632a4
movq 0x8(%r13), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xda53(%rip), %r10      # 0x70ce0
leaq 0xa2fe(%rip), %rdx      # 0x6d592
pushq $0x1d
popq %rsi
movq %rbx, %rdi
movq %rax, %rcx
pushq $0x887                  # imm = 0x887
jmp 0x63236
movq %r12, %rsi
addq $0x30, %rsi
movq %r13, %rdi
movq %rbx, %rdx
callq 0x63354
movb %al, 0x28(%r12)
cmpl $0x0, (%rbx)
jne 0x631e2
movl %r15d, 0x8(%r12)
movl %ebp, 0xc(%r12)
movq (%rsp), %rax
movq %rax, 0x10(%r12)
jmp 0x631e2
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_get_fpa_reg
static subtilis_arm_reg_t prv_get_fpa_reg(subtilis_arm_ass_context_t *c,
					  subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;
	subtilis_arm_reg_t reg;

	val = subtilis_arm_exp_val_get(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return SIZE_MAX;

	if (val->type != SUBTILIS_ARM_EXP_TYPE_FREG) {
		subtilis_error_set_expected(err, "floating point register",
					    subtilis_arm_exp_type_name(val),
					    c->l->stream->name, c->l->line);
		reg = SIZE_MAX;
	} else {
		reg = val->val.reg;
	}

	subtilis_arm_exp_val_free(val);

	return reg;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x647a2
cmpl $0x0, (%r14)
je 0x632f8
pushq $-0x1
popq %r14
jmp 0x6334b
movq %rax, %rbx
cmpl $0x0, (%rax)
je 0x6333f
movq %rbx, %rdi
callq 0x647dd
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xd9c5(%rip), %r10      # 0x70ce0
leaq 0xda0a(%rip), %rdx      # 0x70d2c
pushq $0x1d
popq %rsi
movq %r14, %rdi
movq %rax, %rcx
pushq $0x220                  # imm = 0x220
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
pushq $-0x1
popq %r14
jmp 0x63343
movq 0x8(%rbx), %r14
movq %rbx, %rdi
callq 0x63ee7
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_get_fpa_op2
static bool prv_get_fpa_op2(subtilis_arm_ass_context_t *c,
			    subtilis_fpa_op2_t *op2, subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;
	bool immediate = false;

	val = subtilis_arm_exp_val_get(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	switch (val->type) {
	case SUBTILIS_ARM_EXP_TYPE_FREG:
		op2->reg = val->val.reg;
		break;
	case SUBTILIS_ARM_EXP_TYPE_INT:
		if (!subtilis_fpa_encode_real((double)val->val.integer,
					      &op2->imm)) {
			subtilis_error_set_ass_bad_real_imm(
			    err, (double)val->val.integer, c->l->stream->name,
			    c->l->line);
			goto cleanup;
		}
		immediate = true;
		break;
	case SUBTILIS_ARM_EXP_TYPE_REAL:
		if (!subtilis_fpa_encode_real(val->val.real, &op2->imm)) {
			subtilis_error_set_ass_bad_real_imm(
			    err, val->val.real, c->l->stream->name, c->l->line);
			goto cleanup;
		}
		immediate = true;
		break;
	default:
		subtilis_error_set_expected(
		    err, "floating point register or immediate",
		    subtilis_arm_exp_type_name(val), c->l->stream->name,
		    c->l->line);
		goto cleanup;
	}

cleanup:

	subtilis_arm_exp_val_free(val);

	return immediate;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
movq %rdx, %rsi
callq 0x647a2
movq %rax, %rbx
cmpl $0x0, (%r14)
je 0x6338b
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x63ee7
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl (%rbx), %eax
cmpl $0x7, %eax
je 0x633e5
cmpl $0x6, %eax
je 0x633a9
testl %eax, %eax
jne 0x6342d
movq 0x8(%rbx), %rax
movq %rax, (%r12)
jmp 0x63376
cvtsi2sdl 0x8(%rbx), %xmm0
movq %r12, %rdi
callq 0x58e3a
movb $0x1, %bpl
testb %al, %al
jne 0x63378
cvtsi2sdl 0x8(%rbx), %xmm0
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xd90c(%rip), %r8       # 0x70ce0
pushq $0x63
popq %rsi
xorps %xmm1, %xmm1
movq %r14, %rdi
movl $0x848, %r9d            # imm = 0x848
jmp 0x63423
movsd 0x8(%rbx), %xmm0
movq %r12, %rdi
callq 0x58e3a
movb $0x1, %bpl
testb %al, %al
jne 0x63378
movsd 0x8(%rbx), %xmm0
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xd8cc(%rip), %r8       # 0x70ce0
pushq $0x63
popq %rsi
xorps %xmm1, %xmm1
movq %r14, %rdi
movl $0x850, %r9d            # imm = 0x850
callq 0x14209
jmp 0x63376
movq %rbx, %rdi
callq 0x647dd
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xd898(%rip), %r10      # 0x70ce0
leaq 0xd8f5(%rip), %rdx      # 0x70d44
pushq $0x1d
popq %rsi
movq %r14, %rdi
movq %rax, %rcx
pushq $0x859                  # imm = 0x859
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
jmp 0x63376
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_get_reg
static subtilis_arm_reg_t prv_get_reg(subtilis_arm_ass_context_t *c,
				      subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;
	subtilis_arm_reg_t reg;

	val = subtilis_arm_exp_val_get(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return SIZE_MAX;

	if (val->type != SUBTILIS_ARM_EXP_TYPE_REG) {
		subtilis_error_set_expected(err, "register",
					    subtilis_arm_exp_type_name(val),
					    c->l->stream->name, c->l->line);
		reg = SIZE_MAX;
	} else {
		reg = val->val.reg;
	}

	subtilis_arm_exp_val_free(val);

	return reg;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x647a2
cmpl $0x0, (%r14)
je 0x63487
pushq $-0x1
popq %r14
jmp 0x634da
movq %rax, %rbx
cmpl $0x1, (%rax)
jne 0x63495
movq 0x8(%rbx), %r14
jmp 0x634d2
movq %rbx, %rdi
callq 0x647dd
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xd830(%rip), %r10      # 0x70ce0
leaq 0xd8d4(%rip), %rdx      # 0x70d8b
pushq $0x1d
popq %rsi
movq %r14, %rdi
movq %rax, %rcx
pushq $0x208                  # imm = 0x208
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
pushq $-0x1
popq %r14
movq %rbx, %rdi
callq 0x63ee7
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_get_fpa_stran_offset
static uint8_t prv_get_fpa_stran_offset(subtilis_arm_ass_context_t *c,
					bool *subtract, subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val = NULL;
	uint32_t absv = 0;
	bool sub = false;

	val = subtilis_arm_exp_val_get(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return 0;

	if (val->type != SUBTILIS_ARM_EXP_TYPE_INT) {
		subtilis_error_set_expected(err, "integer",
					    subtilis_arm_exp_type_name(val),
					    c->l->stream->name, c->l->line);
		goto cleanup;
	}

	if (val->val.integer < 0) {
		sub = true;
		absv = -val->val.integer;
	} else {
		absv = val->val.integer;
	}

	if (absv > 1020 || ((absv & 3) != 0)) {
		subtilis_error_set_ass_bad_offset(
		    err, val->val.integer, c->l->stream->name, c->l->line);
		goto cleanup;
	}

	*subtract = sub;
	absv >>= 2;

cleanup:

	subtilis_arm_exp_val_free(val);

	return absv;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
movq %rdx, %rsi
callq 0x647a2
cmpl $0x0, (%r14)
je 0x63509
xorl %ebp, %ebp
jmp 0x635a8
movq %rax, %rbx
cmpl $0x6, (%rax)
jne 0x6353b
movl 0x8(%rbx), %edx
movl %edx, %ebp
negl %ebp
cmovsl %edx, %ebp
cmpl $0x3fd, %ebp            # imm = 0x3FD
setb %al
testb $0x3, %bpl
sete %cl
testb %cl, %al
je 0x63578
shrl $0x1f, %edx
movb %dl, (%r12)
shrl $0x2, %ebp
jmp 0x635a0
movq %rbx, %rdi
callq 0x647dd
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xd78a(%rip), %r10      # 0x70ce0
leaq 0xc47c(%rip), %rdx      # 0x6f9d9
pushq $0x1d
popq %rsi
movq %r14, %rdi
movq %rax, %rcx
pushq $0x908                  # imm = 0x908
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
xorl %ebp, %ebp
jmp 0x635a0
movq 0x8(%r15), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0xd755(%rip), %rax      # 0x70ce0
pushq $0x5b
popq %rsi
movq %r14, %rdi
xorl %ecx, %ecx
pushq $0x915                  # imm = 0x915
pushq %rax
callq 0x14179
popq %rax
popq %rcx
movq %rbx, %rdi
callq 0x63ee7
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_get_vfp_sreg
static subtilis_arm_reg_t prv_get_vfp_sreg(subtilis_arm_ass_context_t *c,
					   subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;
	subtilis_arm_reg_t reg;

	val = subtilis_arm_exp_val_get(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return SIZE_MAX;

	if (val->type != SUBTILIS_ARM_EXP_TYPE_SREG) {
		subtilis_error_set_expected(err, "vfp S register",
					    subtilis_arm_exp_type_name(val),
					    c->l->stream->name, c->l->line);
		reg = SIZE_MAX;
	} else {
		reg = val->val.reg;
	}

	subtilis_arm_exp_val_free(val);

	return reg;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x647a2
cmpl $0x0, (%r14)
je 0x635cf
pushq $-0x1
popq %r14
jmp 0x63622
movq %rax, %rbx
cmpl $0x2, (%rax)
jne 0x635dd
movq 0x8(%rbx), %r14
jmp 0x6361a
movq %rbx, %rdi
callq 0x647dd
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xd6e8(%rip), %r10      # 0x70ce0
leaq 0xd777(%rip), %rdx      # 0x70d76
pushq $0x1d
popq %rsi
movq %r14, %rdi
movq %rax, %rcx
pushq $0x238                  # imm = 0x238
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
pushq $-0x1
popq %r14
movq %rbx, %rdi
callq 0x63ee7
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_get_vfp_dreg
static subtilis_arm_reg_t prv_get_vfp_dreg(subtilis_arm_ass_context_t *c,
					   subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;
	subtilis_arm_reg_t reg;

	val = subtilis_arm_exp_val_get(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return SIZE_MAX;

	if (val->type != SUBTILIS_ARM_EXP_TYPE_DREG) {
		subtilis_error_set_expected(err, "vfp D register",
					    subtilis_arm_exp_type_name(val),
					    c->l->stream->name, c->l->line);
		reg = SIZE_MAX;
	} else {
		reg = val->val.reg;
	}

	subtilis_arm_exp_val_free(val);

	return reg;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x647a2
cmpl $0x0, (%r14)
je 0x63647
pushq $-0x1
popq %r14
jmp 0x6369a
movq %rax, %rbx
cmpl $0x3, (%rax)
jne 0x63655
movq 0x8(%rbx), %r14
jmp 0x63692
movq %rbx, %rdi
callq 0x647dd
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xd670(%rip), %r10      # 0x70ce0
leaq 0xd70e(%rip), %rdx      # 0x70d85
pushq $0x1d
popq %rsi
movq %r14, %rdi
movq %rax, %rcx
pushq $0x250                  # imm = 0x250
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
pushq $-0x1
popq %r14
movq %rbx, %rdi
callq 0x63ee7
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_get_vfp_sysreg
static subtilis_arm_reg_t prv_get_vfp_sysreg(subtilis_arm_ass_context_t *c,
					     subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;
	subtilis_arm_reg_t reg;

	val = subtilis_arm_exp_val_get(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return SIZE_MAX;

	if (val->type != SUBTILIS_ARM_EXP_TYPE_SYSREG) {
		subtilis_error_set_expected(err, "FPSCR or FPEXC or FPSID",
					    subtilis_arm_exp_type_name(val),
					    c->l->stream->name, c->l->line);
		reg = SIZE_MAX;
	} else {
		reg = val->val.reg;
	}

	subtilis_arm_exp_val_free(val);

	return reg;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x647a2
cmpl $0x0, (%r14)
je 0x636e1
pushq $-0x1
popq %r14
jmp 0x63734
movq %rax, %rbx
cmpl $0x4, (%rax)
jne 0x636ef
movq 0x8(%rbx), %r14
jmp 0x6372c
movq %rbx, %rdi
callq 0x647dd
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xd5d6(%rip), %r10      # 0x70ce0
leaq 0xd683(%rip), %rdx      # 0x70d94
pushq $0x1d
popq %rsi
movq %r14, %rdi
movq %rax, %rcx
pushq $0x268                  # imm = 0x268
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
pushq $-0x1
popq %r14
movq %rbx, %rdi
callq 0x63ee7
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_parse_stran_pre_off
static void prv_parse_stran_pre_off(subtilis_arm_ass_context_t *c,
				    subtilis_arm_instr_type_t itype,
				    subtilis_arm_ccode_type_t ccode,
				    subtilis_arm_reg_t dest,
				    subtilis_arm_reg_t base, bool byte,
				    subtilis_arm_op2_t offset, bool subtract,
				    subtilis_error_t *err)
{
	const char *tbuf;
	subtilis_arm_instr_t *instr;
	subtilis_arm_stran_instr_t *stran;
	bool write_back = false;

	tbuf = subtilis_token_get_text(c->t);
	if ((c->t->type == SUBTILIS_TOKEN_OPERATOR) && (!strcmp(tbuf, "!"))) {
		write_back = true;

		subtilis_lexer_get(c->l, c->t, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
	}

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

	stran = &instr->operands.stran;
	stran->ccode = ccode;
	stran->dest = dest;
	stran->base = base;
	stran->offset = offset;
	stran->pre_indexed = true;
	stran->write_back = write_back;
	stran->byte = byte;
	stran->subtract = subtract;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, 0xc(%rsp)
movq %r8, 0x10(%rsp)
movq %rcx, %r15
movl %edx, %ebp
movl %esi, %r13d
movq %rdi, %rbx
movq 0x80(%rsp), %r12
movq 0x10(%rdi), %rdi
callq 0x12a25
movq 0x10(%rbx), %rsi
cmpl $0x2, (%rsi)
jne 0x639cc
cmpb $0x21, (%rax)
jne 0x639cc
cmpb $0x0, 0x1(%rax)
je 0x63a35
xorl %r14d, %r14d
movq (%rbx), %rdi
movl %r13d, %esi
movq %r12, %rdx
callq 0x4c92b
cmpl $0x0, (%r12)
jne 0x63a26
leaq 0x50(%rsp), %rcx
movb 0x78(%rsp), %dl
movl %ebp, 0x8(%rax)
movq %r15, 0x10(%rax)
movq 0x10(%rsp), %rsi
movq %rsi, 0x18(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups %xmm0, 0x20(%rax)
movups %xmm1, 0x30(%rax)
movq 0x20(%rcx), %rcx
movq %rcx, 0x40(%rax)
movb $0x1, 0x48(%rax)
movb %r14b, 0x49(%rax)
movl 0xc(%rsp), %ecx
movb %cl, 0x4b(%rax)
movb %dl, 0x4a(%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %rdi
movq %r12, %rdx
callq 0x12e0e
cmpl $0x0, (%r12)
jne 0x63a26
movb $0x1, %r14b
jmp 0x639cf