LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x5de06
movl %eax, %esi
shrl $0x5, %esi
cmpl $0x20, %eax
jae 0x5de07
xorl %edx, %edx
jmp 0x5de17
retq
movq (%rdi), %rcx
xorl %edx, %edx
notl (%rcx,%rdx,4)
incq %rdx
cmpq %rdx, %rsi
jne 0x5de0c
movl 0x8(%rdi), %ecx
andl $0xe0, %eax
subl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
shll %cl, %eax
movq (%rdi), %rcx
orl (%rcx,%rdx,4), %eax
notl %eax
movl %eax, (%rcx,%rdx,4)
jmp 0x5dc9b
// File: /workspace/github_c_makefile_star2_O1/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:
movl 0x8(%rdi), %eax
movl 0x8(%rsi), %ecx
cmpl %ecx, %eax
cmovll %eax, %ecx
testl %ecx, %ecx
js 0x5de87
movl %ecx, %eax
shrl $0x5, %eax
cmpl $0x20, %ecx
jae 0x5de55
xorl %ecx, %ecx
jmp 0x5de70
movq (%rsi), %rdx
movq (%rdi), %r8
xorl %ecx, %ecx
movl (%rdx,%rcx,4), %r9d
notl %r9d
andl %r9d, (%r8,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x5de5d
movq (%rsi), %rdx
movl (%rdx,%rcx,4), %edx
notl %edx
movq (%rdi), %r8
andl %edx, (%r8,%rcx,4)
movl 0x8(%rdi), %ecx
cmpl 0x8(%rsi), %ecx
jle 0x5de88
retq
movq %rax, %rsi
jmp 0x5dc9b
// File: /workspace/github_c_makefile_star2_O1/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:
cmpl $0x0, 0x8(%rdi)
js 0x5def7
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %eax
leaq 0x18a7a(%rip), %r14     # 0x76922
xorl %r15d, %r15d
movq (%rbx), %rcx
testq %rcx, %rcx
sete %dl
cmpq $0x7fffffff, %r15       # imm = 0x7FFFFFFF
seta %sil
orb %dl, %sil
jne 0x5dee6
cmpl %r15d, %eax
jl 0x5dee6
movq %r15, %rax
shrq $0x5, %rax
movl (%rcx,%rax,4), %eax
btl %r15d, %eax
jae 0x5dee6
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x12110
incq %r15
movslq 0x8(%rbx), %rax
cmpq %rax, %r15
jbe 0x5deab
popq %rbx
popq %r14
popq %r15
movl $0xa, %edi
jmp 0x12030
// File: /workspace/github_c_makefile_star2_O1/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
movq (%rdi), %rdi
callq 0x122c0
movq (%rbx), %rax
movq %rax, (%r14)
movl 0x8(%rbx), %eax
movl %eax, 0x8(%r14)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
xorl %eax, %eax
movq %rax, (%rbx)
movl $0xffffffff, 0x8(%rbx)  # imm = 0xFFFFFFFF
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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:
movl 0x8(%rdi), %ecx
testl %ecx, %ecx
js 0x5df9c
movq (%rdi), %rdx
leaq 0x1(%rcx), %rsi
xorl %eax, %eax
xorl %edi, %edi
testq %rdx, %rdx
sete %r8b
cmpq $0x7fffffff, %rdi       # imm = 0x7FFFFFFF
seta %r9b
orb %r8b, %r9b
jne 0x5df75
cmpl %edi, %ecx
jge 0x5df7a
xorl %r8d, %r8d
jmp 0x5df90
movq %rdi, %r8
shrq $0x5, %r8
movl (%rdx,%r8,4), %r9d
xorl %r8d, %r8d
btl %edi, %r9d
setb %r8b
addq %r8, %rax
incq %rdi
cmpq %rdi, %rsi
jne 0x5df5a
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
callq 0x5df48
movq %rax, %r14
testq %rax, %rax
je 0x5e02a
leaq (,%r14,8), %rdi
callq 0x121d0
testq %rax, %rax
je 0x5e031
movslq 0x8(%r12), %rcx
movq (%r12), %rdx
leaq 0x1(%rcx), %rsi
cmpq $0x1, %rsi
movq %rcx, %rsi
adcq $0x1, %rsi
xorl %edi, %edi
xorl %r8d, %r8d
testq %rdx, %rdx
sete %r9b
cmpq $0x7fffffff, %r8        # imm = 0x7FFFFFFF
seta %r10b
orb %r9b, %r10b
jne 0x5e020
cmpl %r8d, %ecx
jl 0x5e020
movq %r8, %r9
shrq $0x5, %r9
movl (%rdx,%r9,4), %r9d
btl %r8d, %r9d
jae 0x5e020
movq %r8, (%rax,%rdi,8)
incq %rdi
incq %r8
cmpq %r8, %rsi
jne 0x5dfec
jmp 0x5e02c
xorl %eax, %eax
movq %r14, (%rbx)
jmp 0x5e04c
leaq 0x188da(%rip), %rdx     # 0x76912
movq %r15, %rdi
movl $0x1, %esi
movl $0x117, %ecx            # imm = 0x117
callq 0x145f4
xorl %eax, %eax
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_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 0x5db30
addq $0x48, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x5db30
// File: /workspace/github_c_makefile_star2_O1/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, %rbx
movq %rdi, %r15
movq 0x10(%rdi), %r12
cmpq %r12, 0x8(%rdi)
jne 0x5e5ff
movq %rdx, %r14
addq $0x10, %r12
movq (%r15), %rdi
imulq $0x130, %r12, %rsi      # imm = 0x130
callq 0x12210
testq %rax, %rax
je 0x5e660
movq %rax, (%r15)
movq %r12, 0x10(%r15)
movq (%r15), %r12
movq 0x8(%r15), %r14
leaq 0x1(%r14), %rax
movq %rax, 0x8(%r15)
imulq $0x130, %r14, %r15      # imm = 0x130
leaq (%r12,%r15), %rdi
xorl %r13d, %r13d
movl $0x130, %edx            # imm = 0x130
xorl %esi, %esi
callq 0x12140
leaq (%r12,%r15), %rdi
addq $0x18, %rdi
callq 0x5db30
addq %r12, %r15
addq $0x30, %r15
movq %r15, %rdi
callq 0x5db30
movq %rbx, -0x28(%r15)
movq %r13, -0x20(%r15)
movq %r13, 0xf8(%r15)
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x182c0(%rip), %rdx     # 0x76927
movq %r14, %rdi
movl $0x1, %esi
movl $0x31, %ecx
callq 0x145f4
movq $-0x1, %r14
jmp 0x5e653
// File: /workspace/github_c_makefile_star2_O1/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 0x4f100
leaq 0x18(%rsp), %rdi
callq 0x52edc
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 0x54d69
addq $0x10, %rsp
cmpl $0x0, (%rbx)
je 0x5e71e
leaq 0x18(%rsp), %rdi
callq 0x52ef2
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 0x5df01
leaq 0x30(%r15), %rdi
leaq 0x30(%rsp), %rsi
callq 0x5df01
cmpl $0x0, (%r12)
jne 0x5e751
cmpl $0x16, 0x8(%r12)
jne 0x5e751
cmpl $0xe, 0x10(%r12)
je 0x5e705
movq 0x58(%r12), %rdx
cmpq $-0x1, %rdx
je 0x5e705
movq 0x38(%r14), %rax
movq (%rax), %rax
imulq $0x68, %rdx, %rcx
cmpl $0x1, (%rax,%rcx)
jne 0x5e705
addq %rcx, %rax
movq 0x8(%rax), %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %r8
callq 0x5e784
jmp 0x5e705
// File: /workspace/github_c_makefile_star2_O1/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 0x5df40
leaq 0x48(%rbx), %rdi
callq 0x5df40
movq 0x28(%rbx), %rdi
callq 0x122c0
cmpq $0x0, (%rbx)
je 0x5e9e6
cmpq $0x0, 0x8(%rbx)
je 0x5e9d0
movl $0x90, %r12d
xorl %r13d, %r13d
movq (%rbx), %r15
imulq $0x130, %r13, %rax      # imm = 0x130
leaq (%r15,%rax), %r14
cmpq $0x0, 0x128(%r15,%rax)
je 0x5e9ab
addq %r12, %r15
xorl %ebp, %ebp
leaq -0x48(%r15), %rdi
callq 0x5df40
leaq -0x30(%r15), %rdi
callq 0x5df40
leaq -0x18(%r15), %rdi
callq 0x5df40
movq %r15, %rdi
callq 0x5df40
incq %rbp
addq $0x70, %r15
cmpq 0x128(%r14), %rbp
jb 0x5e978
leaq 0x18(%r14), %rdi
callq 0x5df40
addq $0x30, %r14
movq %r14, %rdi
callq 0x5df40
incq %r13
addq $0x130, %r12            # imm = 0x130
cmpq 0x8(%rbx), %r13
jb 0x5e95a
movq (%rbx), %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_O1/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 0x5ea84
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %rbp
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5db30
imulq $0x70, %rbp, %rbp
movq 0xa8(%r13,%rbp), %rsi
cmpq 0x18(%rbx), %rsi
jae 0x5eaab
leaq 0x10(%rsp), %rdi
movq %r14, %rdx
callq 0x5db60
cmpl $0x0, (%r14)
jne 0x5eac4
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 0x5eaf2
jmp 0x5eac4
leaq 0x17e9c(%rip), %rdx     # 0x76927
movq %r14, %rdi
movl $0xf, %esi
movl $0x1ee, %ecx            # imm = 0x1EE
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x145f4
leaq 0x17e75(%rip), %rdx     # 0x76927
movq %r14, %rdi
movl $0xf, %esi
movl $0x1f6, %ecx            # imm = 0x1F6
callq 0x145f4
leaq 0x10(%rsp), %rdi
callq 0x5df40
leaq 0x30(%rbx), %rdi
callq 0x5df40
addq $0x48, %rbx
movq %rbx, %rdi
callq 0x5df40
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5f01e
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, (%rcx)
movq $-0x1, %rax
retq
cmpq %rsi, %r8
jne 0x5f02b
movq 0x58(%rdx), %rax
movq %rax, (%rcx)
retq
cmpq %rsi, %rax
jne 0x5f03a
movq 0x60(%rdx), %rax
movq %rax, 0x28(%rdi)
jmp 0x5f016
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
// File: /workspace/github_c_makefile_star2_O1/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
movq %rsi, %rdi
movl $0x4, %esi
callq 0x4f73a
cmpl $0x0, (%r14)
jne 0x5f0d8
movb $0x0, 0xc(%rax)
movl $0xe, 0x8(%rax)
movq $0xb, 0x10(%rax)
movq $0x0, 0x18(%rax)
movl $0x0, 0x20(%rax)
movq $0x1, 0x28(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5f0e0
cmpl $0x0, (%r14)
jne 0x5f0d8
movq %r14, (%rsp)
movl $0xf, %r8d
movl $0xe, %r9d
movq %rbx, %rdi
movl $0xd, %esi
movl $0xe, %edx
xorl %ecx, %ecx
callq 0x5060d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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
cmpq $0x0, 0x58(%rdi)
je 0x6391e
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x50(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x122c0
movq 0x50(%rbx), %rax
movq 0x8(%rax,%r14), %rdi
callq 0x69167
incq %r15
addq $0x10, %r14
cmpq 0x58(%rbx), %r15
jb 0x638f6
movq 0x50(%rbx), %rdi
callq 0x122c0
leaq 0x38(%rbx), %rdi
callq 0x5df40
movq 0x30(%rbx), %rdi
callq 0x2f34d
cmpq $0x0, 0x70(%rbx)
je 0x63963
movl $0x8, %r14d
xorl %r15d, %r15d
movq 0x68(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x69167
incq %r15
addq $0x10, %r14
cmpq 0x70(%rbx), %r15
jb 0x63949
movq 0x68(%rbx), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x122c0
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x58(%rdi), %r15
testq %r15, %r15
je 0x639ab
movq %rsi, %r14
movq 0x50(%rdi), %r12
addq $0x8, %r12
xorl %ebx, %ebx
movq -0x8(%r12), %rdi
movq %r14, %rsi
callq 0x12160
testl %eax, %eax
je 0x639af
addq $0x10, %r12
decq %r15
jne 0x6398f
jmp 0x639b3
xorl %ebx, %ebx
jmp 0x639b3
movq (%r12), %rbx
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/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 %r13d, %r13d
xorl %ecx, %ecx
movq %rcx, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x69a84
movq %rax, %rbp
cmpl $0x0, (%r14)
jne 0x65525
movl (%rbp), %eax
cmpl $0x7, %eax
je 0x65465
cmpl $0x6, %eax
jne 0x654e4
xorps %xmm0, %xmm0
cvtsi2sdl 0x8(%rbp), %xmm0
jmp 0x6546a
movsd 0x8(%rbp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbp, %rdi
callq 0x69167
cmpq %r13, %r12
jne 0x6549d
leaq 0x100(,%r13,8), %rsi
movq %rbx, %rdi
callq 0x12210
testq %rax, %rax
je 0x65523
addq $0x20, %r13
movq %rax, %rbx
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rbx,%r12,8)
movq 0x10(%r15), %rdi
callq 0x12ad0
movq 0x10(%r15), %rcx
cmpl $0x2, (%rcx)
jne 0x654d7
movq %rax, %rdi
leaq 0xe0d3(%rip), %rsi      # 0x73598
callq 0x12160
leaq 0x1(%r12), %rcx
testl %eax, %eax
je 0x6542f
incq %r12
movq 0x10(%rsp), %rax
movq %r12, (%rax)
jmp 0x65537
movq %rbp, %rdi
callq 0x69abf
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0x11811(%rip), %r10     # 0x76d10
leaq 0xe8ef(%rip), %rcx      # 0x73df5
movq %r14, %rdi
movl $0x2c, %esi
movq %rax, %rdx
pushq $0xee6                  # imm = 0xEE6
pushq %r10
callq 0x1442a
addq $0x10, %rsp
jmp 0x65525
xorl %ebp, %ebp
movq %rbp, %rdi
callq 0x69167
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_O1/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 %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
callq 0x69a84
movq $-0x1, %r12
cmpl $0x0, (%r14)
jne 0x66da5
movq %rax, %rbx
cmpl $0x0, (%rax)
je 0x66d99
movq %rbx, %rdi
callq 0x69abf
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xffa2(%rip), %r10      # 0x76d10
leaq 0xffe7(%rip), %rdx      # 0x76d5c
movq %r14, %rdi
movl $0x1d, %esi
movq %rax, %rcx
pushq $0x220                  # imm = 0x220
pushq %r10
callq 0x1442a
addq $0x10, %rsp
movq $-0x1, %r12
jmp 0x66d9d
movq 0x8(%rbx), %r12
movq %rbx, %rdi
callq 0x69167
movq %r12, %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/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 0x69a84
movq %rax, %rbx
cmpl $0x0, (%r14)
je 0x66deb
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x69167
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl (%rbx), %eax
cmpl $0x7, %eax
je 0x66e4a
cmpl $0x6, %eax
je 0x66e09
testl %eax, %eax
jne 0x66e94
movq 0x8(%rbx), %rax
movq %rax, (%r12)
jmp 0x66dd6
cvtsi2sdl 0x8(%rbx), %xmm0
movq %r12, %rdi
callq 0x5cec1
movb $0x1, %bpl
testb %al, %al
jne 0x66dd8
xorps %xmm0, %xmm0
cvtsi2sdl 0x8(%rbx), %xmm0
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xfed9(%rip), %r8       # 0x76d10
xorps %xmm1, %xmm1
movq %r14, %rdi
movl $0x63, %esi
movl $0x848, %r9d            # imm = 0x848
jmp 0x66e8a
movsd 0x8(%rbx), %xmm0
movq %r12, %rdi
callq 0x5cec1
movb $0x1, %bpl
testb %al, %al
jne 0x66dd8
movsd 0x8(%rbx), %xmm0
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xfe97(%rip), %r8       # 0x76d10
xorps %xmm1, %xmm1
movq %r14, %rdi
movl $0x63, %esi
movl $0x850, %r9d            # imm = 0x850
callq 0x14563
jmp 0x66dd6
movq %rbx, %rdi
callq 0x69abf
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xfe61(%rip), %r10      # 0x76d10
leaq 0xfebe(%rip), %rdx      # 0x76d74
movq %r14, %rdi
movl $0x1d, %esi
movq %rax, %rcx
pushq $0x859                  # imm = 0x859
pushq %r10
callq 0x1442a
addq $0x10, %rsp
jmp 0x66dd6
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
callq 0x69a84
movq $-0x1, %r12
cmpl $0x0, (%r14)
jne 0x66f50
movq %rax, %rbx
cmpl $0x1, (%rax)
jne 0x66f04
movq 0x8(%rbx), %r12
jmp 0x66f48
movq %rbx, %rdi
callq 0x69abf
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xfdf1(%rip), %r10      # 0x76d10
leaq 0xfe93(%rip), %rdx      # 0x76db9
movq %r14, %rdi
movl $0x1d, %esi
movq %rax, %rcx
pushq $0x208                  # imm = 0x208
pushq %r10
callq 0x1442a
addq $0x10, %rsp
movq $-0x1, %r12
movq %rbx, %rdi
callq 0x69167
movq %r12, %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/assembler.c
// Function: prv_parse_fpa_stran_post
static void prv_parse_fpa_stran_post(subtilis_arm_ass_context_t *c,
				     subtilis_arm_instr_type_t itype,
				     subtilis_arm_ccode_type_t ccode,
				     size_t size, subtilis_arm_reg_t dest,
				     subtilis_arm_reg_t base,
				     subtilis_error_t *err)
{
	const char *tbuf;
	subtilis_fpa_stran_instr_t *stran;
	subtilis_arm_instr_t *instr;
	uint8_t offset = 0;
	bool sub = false;
	bool pre_index = true;
	bool write_back = false;

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

	tbuf = subtilis_token_get_text(c->t);
	if ((c->t->type == SUBTILIS_TOKEN_OPERATOR) && !strcmp(tbuf, ",")) {
		offset = prv_get_fpa_stran_offset(c, &sub, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;

		write_back = true;
		pre_index = false;

		if (base == 15) {
			subtilis_error_set_ass_bad_reg(
			    err, "R15", c->l->stream->name, c->l->line);
			return;
		}
	}

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

	stran = &instr->operands.fpa_stran;
	stran->ccode = ccode;
	stran->size = size;
	stran->dest = dest;
	stran->base = base;
	stran->offset = offset;
	stran->pre_indexed = pre_index;
	stran->write_back = write_back;
	stran->subtract = sub;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, 0x10(%rsp)
movq %rcx, %r15
movl %edx, %ebp
movl %esi, %r13d
movq %rdi, %r14
movq 0x50(%rsp), %r12
movb $0x0, 0x3(%rsp)
movq 0x8(%rdi), %rdi
movq 0x10(%r14), %rsi
movq %r12, %rdx
callq 0x12eda
cmpl $0x0, (%r12)
jne 0x67209
movq 0x10(%r14), %rdi
callq 0x12ad0
movq 0x10(%r14), %rcx
movb $0x1, %dl
movl %edx, 0xc(%rsp)
cmpl $0x2, (%rcx)
jne 0x67197
leaq 0xc40d(%rip), %rsi      # 0x73598
movq %rax, %rdi
callq 0x12160
testl %eax, %eax
je 0x671ee
movl $0x0, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
movq (%r14), %rdi
movl %r13d, %esi
movq %r12, %rdx
callq 0x4f73a
cmpl $0x0, (%r12)
jne 0x67209
movl %ebp, 0x8(%rax)
movq %r15, 0x10(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq %rbx, 0x20(%rax)
movl 0x8(%rsp), %ecx
movb %cl, 0x28(%rax)
movl 0xc(%rsp), %ecx
movb %cl, 0x29(%rax)
movl 0x4(%rsp), %ecx
movb %cl, 0x2a(%rax)
movb 0x3(%rsp), %cl
movb %cl, 0x2b(%rax)
jmp 0x67209
leaq 0x3(%rsp), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0x6726b
movl %eax, 0x8(%rsp)
cmpl $0x0, (%r12)
je 0x67218
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0xf, %rbx
jne 0x67258
movq 0x8(%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0xfadf(%rip), %rax      # 0x76d10
leaq 0xfb68(%rip), %rdx      # 0x76da0
leaq 0xcbb6(%rip), %rcx      # 0x73df5
movq %r12, %rdi
movl $0x58, %esi
pushq $0x97a                  # imm = 0x97A
pushq %rax
callq 0x1442a
addq $0x28, %rsp
jmp 0x6720d
movb $0x1, %al
movl %eax, 0x4(%rsp)
movl $0x0, 0xc(%rsp)
jmp 0x671a7
// File: /workspace/github_c_makefile_star2_O1/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 0x69a84
cmpl $0x0, (%r14)
je 0x67291
xorl %ebp, %ebp
jmp 0x67338
movq %rax, %rbx
cmpl $0x6, (%rax)
jne 0x672c3
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 0x67304
shrl $0x1f, %edx
movb %dl, (%r12)
shrl $0x2, %ebp
jmp 0x67330
movq %rbx, %rdi
callq 0x69abf
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xfa32(%rip), %r10      # 0x76d10
leaq 0xe724(%rip), %rdx      # 0x75a09
movq %r14, %rdi
movl $0x1d, %esi
movq %rax, %rcx
pushq $0x908                  # imm = 0x908
pushq %r10
callq 0x1442a
addq $0x10, %rsp
xorl %ebp, %ebp
jmp 0x67330
movq 0x8(%r15), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0xf9f9(%rip), %rax      # 0x76d10
movq %r14, %rdi
movl $0x5b, %esi
xorl %ecx, %ecx
pushq $0x915                  # imm = 0x915
pushq %rax
callq 0x144d6
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x69167
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
callq 0x69a84
movq $-0x1, %r12
cmpl $0x0, (%r14)
jne 0x673bd
movq %rax, %rbx
cmpl $0x2, (%rax)
jne 0x67371
movq 0x8(%rbx), %r12
jmp 0x673b5
movq %rbx, %rdi
callq 0x69abf
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xf984(%rip), %r10      # 0x76d10
leaq 0xfa11(%rip), %rdx      # 0x76da4
movq %r14, %rdi
movl $0x1d, %esi
movq %rax, %rcx
pushq $0x238                  # imm = 0x238
pushq %r10
callq 0x1442a
addq $0x10, %rsp
movq $-0x1, %r12
movq %rbx, %rdi
callq 0x69167
movq %r12, %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/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 %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
callq 0x69a84
movq $-0x1, %r12
cmpl $0x0, (%r14)
jne 0x67446
movq %rax, %rbx
cmpl $0x3, (%rax)
jne 0x673fa
movq 0x8(%rbx), %r12
jmp 0x6743e
movq %rbx, %rdi
callq 0x69abf
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xf8fb(%rip), %r10      # 0x76d10
leaq 0xf997(%rip), %rdx      # 0x76db3
movq %r14, %rdi
movl $0x1d, %esi
movq %rax, %rcx
pushq $0x250                  # imm = 0x250
pushq %r10
callq 0x1442a
addq $0x10, %rsp
movq $-0x1, %r12
movq %rbx, %rdi
callq 0x69167
movq %r12, %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/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 %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
callq 0x69a84
movq $-0x1, %r12
cmpl $0x0, (%r14)
jne 0x674f1
movq %rax, %rbx
cmpl $0x4, (%rax)
jne 0x674a5
movq 0x8(%rbx), %r12
jmp 0x674e9
movq %rbx, %rdi
callq 0x69abf
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xf850(%rip), %r10      # 0x76d10
leaq 0xf8fb(%rip), %rdx      # 0x76dc2
movq %r14, %rdi
movl $0x1d, %esi
movq %rax, %rcx
pushq $0x268                  # imm = 0x268
pushq %r10
callq 0x1442a
addq $0x10, %rsp
movq $-0x1, %r12
movq %rbx, %rdi
callq 0x69167
movq %r12, %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/assembler.c
// Function: prv_parse_vfp_stran_post
static void prv_parse_vfp_stran_post(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,
				     subtilis_error_t *err)
{
	const char *tbuf;
	subtilis_vfp_stran_instr_t *stran;
	subtilis_arm_instr_t *instr;
	uint8_t offset = 0;
	bool sub = false;
	bool pre_index = true;
	bool write_back = false;

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

	tbuf = subtilis_token_get_text(c->t);
	if ((c->t->type == SUBTILIS_TOKEN_OPERATOR) && !strcmp(tbuf, ",")) {
		offset = prv_get_fpa_stran_offset(c, &sub, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;

		write_back = true;
		pre_index = false;

		if (base == 15) {
			subtilis_error_set_ass_bad_reg(
			    err, "R15", c->l->stream->name, c->l->line);
			return;
		}
	}

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

	stran = &instr->operands.vfp_stran;
	stran->ccode = ccode;
	stran->dest = dest;
	stran->base = base;
	stran->offset = offset;
	stran->pre_indexed = pre_index;
	stran->write_back = write_back;
	stran->subtract = sub;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movl %esi, %r12d
movq %rdi, %r13
movb $0x0, 0xb(%rsp)
movq 0x8(%rdi), %rdi
movq 0x10(%r13), %rsi
movq %r9, %rdx
callq 0x12eda
cmpl $0x0, (%rbx)
jne 0x67763
movq 0x10(%r13), %rdi
callq 0x12ad0
movq 0x10(%r13), %rcx
movb $0x1, %dl
movl %edx, 0x14(%rsp)
cmpl $0x2, (%rcx)
jne 0x676fd
leaq 0xbea7(%rip), %rsi      # 0x73598
movq %rax, %rdi
callq 0x12160
testl %eax, %eax
je 0x6774a
movl $0x0, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movq (%r13), %rdi
movl %r12d, %esi
movq %rbx, %rdx
callq 0x4f73a
cmpl $0x0, (%rbx)
jne 0x67763
movl %ebp, 0x8(%rax)
movq %r15, 0x10(%rax)
movq %r14, 0x18(%rax)
movl 0x10(%rsp), %ecx
movb %cl, 0x20(%rax)
movl 0x14(%rsp), %ecx
movb %cl, 0x21(%rax)
movl 0xc(%rsp), %ecx
movb %cl, 0x22(%rax)
movb 0xb(%rsp), %cl
movb %cl, 0x23(%rax)
jmp 0x67763
leaq 0xb(%rsp), %rsi
movq %r13, %rdi
movq %rbx, %rdx
callq 0x6726b
movl %eax, 0x10(%rsp)
cmpl $0x0, (%rbx)
je 0x67772
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0xf, %r14
jne 0x677b2
movq 0x8(%r13), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0xf585(%rip), %rax      # 0x76d10
leaq 0xf60e(%rip), %rdx      # 0x76da0
leaq 0xc65c(%rip), %rcx      # 0x73df5
movq %rbx, %rdi
movl $0x58, %esi
pushq $0xcd8                  # imm = 0xCD8
pushq %rax
callq 0x1442a
addq $0x28, %rsp
jmp 0x67767
movb $0x1, %al
movl %eax, 0xc(%rsp)
movl $0x0, 0x14(%rsp)
jmp 0x6770d
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_parse_branch
static void prv_parse_branch(subtilis_arm_ass_context_t *c, const char *name,
			     subtilis_arm_instr_type_t itype,
			     subtilis_arm_ccode_type_t ccode,
			     subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_arm_br_instr_t *br;
	size_t index;
	subtilis_arm_exp_val_t *val;
	size_t name_len = strlen(name);
	bool link = ((name_len == 2) || (name_len == 4)) &&
		    (name[1] == 'l' || name[1] == 'L');

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

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

	name = subtilis_buffer_get_string(&val->val.buf);
	if (!subtilis_string_pool_find(c->label_pool, name, &index)) {
		index = subtilis_string_pool_register(c->label_pool, name, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		subtilis_bitset_set(&c->pending_labels, index, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
	}

	instr =
	    subtilis_arm_section_add_instr(c->arm_s, SUBTILIS_ARM_INSTR_B, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	br = &instr->operands.br;
	br->ccode = ccode;
	br->link = link;
	br->local = true;
	br->link_type = SUBTILIS_ARM_BR_LINK_VOID;
	br->target.label = index;

cleanup:

	subtilis_arm_exp_val_free(val);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %r15
movq %rsi, %rdi
callq 0x120f0
cmpq $0x4, %rax
je 0x677ef
cmpq $0x2, %rax
jne 0x67803
movb 0x1(%r12), %al
movb $0x1, %r13b
cmpb $0x6c, %al
je 0x67806
cmpb $0x4c, %al
sete %r13b
jmp 0x67806
xorl %r13d, %r13d
movq %r15, %rdi
movq %rbx, %rsi
callq 0x69a84
cmpl $0x0, (%rbx)
jne 0x678b1
movq %rax, %r14
cmpl $0x9, (%rax)
jne 0x67875
movq %r14, %rdi
addq $0x8, %rdi
callq 0x14dfb
movq %rax, %r12
movq 0x30(%r15), %rdi
movq %rsp, %rdx
movq %rax, %rsi
callq 0x2f216
testb %al, %al
je 0x678c0
movq (%r15), %rdi
movl $0x16, %esi
movq %rbx, %rdx
callq 0x4f73a
cmpl $0x0, (%rbx)
jne 0x678a9
movl %ebp, 0x8(%rax)
movb %r13b, 0xc(%rax)
movb $0x1, 0xd(%rax)
movl $0x0, 0x10(%rax)
movq (%rsp), %rcx
movq %rcx, 0x18(%rax)
jmp 0x678a9
movq 0x8(%r15), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0xf488(%rip), %rax      # 0x76d10
leaq 0xf54b(%rip), %rdx      # 0x76dda
movq %rbx, %rdi
movl $0x1d, %esi
movq %r12, %rcx
pushq $0x2d4                  # imm = 0x2D4
pushq %rax
callq 0x1442a
addq $0x10, %rsp
movq %r14, %rdi
callq 0x69167
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%r15), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x2f26d
movq %rax, (%rsp)
cmpl $0x0, (%rbx)
jne 0x678b1
leaq 0x38(%r15), %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x5db60
cmpl $0x0, (%rbx)
jne 0x678b1
jmp 0x67844
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_parse_swi
static void prv_parse_swi(subtilis_arm_ass_context_t *c,
			  subtilis_arm_ccode_type_t ccode,
			  subtilis_error_t *err)
{
	const char *swi_name;
	subtilis_arm_exp_val_t *val;
	size_t code;

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

	if (val->type == SUBTILIS_ARM_EXP_TYPE_INT) {
		code = (size_t)val->val.integer;
	} else if (val->type == SUBTILIS_ARM_EXP_TYPE_STRING) {
		swi_name = subtilis_buffer_get_string(&val->val.buf);
		code = c->sys_trans(swi_name);
		if (code == SIZE_MAX) {
			subtilis_error_set_sys_call_unknown(
			    err, swi_name, c->l->stream->name, c->l->line);
			goto cleanup;
		}
	} else {
		subtilis_error_set_expected(err, "string or integer expected",
					    subtilis_arm_exp_type_name(val),
					    c->l->stream->name, c->l->line);
		goto cleanup;
	}

	subtilis_arm_add_swi(c->arm_s, ccode, code, 0, 0, err);

cleanup:

	subtilis_arm_exp_val_free(val);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
movq %rdx, %rsi
callq 0x69a84
cmpl $0x0, (%r14)
je 0x67918
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl (%rax), %eax
cmpl $0x8, %eax
je 0x6792d
cmpl $0x6, %eax
jne 0x67960
movslq 0x8(%rbx), %rdx
jmp 0x6794c
movq %rbx, %rdi
addq $0x8, %rdi
callq 0x14dfb
movq %rax, %r12
movq %rax, %rdi
callq *0x28(%r15)
movq %rax, %rdx
cmpq $-0x1, %rax
je 0x67996
movq (%r15), %rdi
movl %ebp, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r14, %r9
callq 0x505b2
jmp 0x679ca
movq %rbx, %rdi
callq 0x69abf
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xf395(%rip), %r10      # 0x76d10
leaq 0xf492(%rip), %rdx      # 0x76e14
movq %r14, %rdi
movl $0x1d, %esi
movq %rax, %rcx
pushq $0x3de                  # imm = 0x3DE
pushq %r10
jmp 0x679c1
movq 0x8(%r15), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0xf367(%rip), %rax      # 0x76d10
leaq 0xc445(%rip), %rcx      # 0x73df5
movq %r14, %rdi
movl $0x5a, %esi
movq %r12, %rdx
pushq $0x3d8                  # imm = 0x3D8
pushq %rax
callq 0x1442a
addq $0x10, %rsp
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x69167
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_parse_mrs
static void prv_parse_mrs(subtilis_arm_ass_context_t *c,
			  subtilis_arm_ccode_type_t ccode,
			  subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_reg_t op1;
	const char *tbuf;

	dest = prv_get_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;
	}

	op1 = prv_get_src_flagsreg(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_arm_add_flags(c->arm_s, SUBTILIS_ARM_INSTR_MRS, ccode, op1, 0,
			       dest, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq %rdx, %rsi
callq 0x66ed6
cmpl $0x0, (%rbx)
je 0x67be7
addq $0x8, %rsp
jmp 0x67c46
movq %rax, %r15
movq 0x10(%r14), %rdi
callq 0x12ad0
movq %rax, %r12
movq 0x10(%r14), %rax
cmpl $0x2, (%rax)
jne 0x67c12
leaq 0xb992(%rip), %rsi      # 0x73598
movq %r12, %rdi
callq 0x12160
testl %eax, %eax
je 0x67c51
movq 0x8(%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0xf0eb(%rip), %rax      # 0x76d10
leaq 0xb96c(%rip), %rdx      # 0x73598
movq %rbx, %rdi
movl $0x1d, %esi
movq %r12, %rcx
pushq $0x742                  # imm = 0x742
pushq %rax
callq 0x1442a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %rbx, %rsi
callq 0x69a84
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
cmpl $0x0, (%rbx)
jne 0x67cc6
movq %rax, %r12
cmpl $0x5, (%rax)
jne 0x67c7a
movq 0x8(%r12), %r13
cmpq $0x2, %r13
jb 0x67cbe
movq %r12, %rdi
callq 0x69abf
movq 0x8(%r14), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xf07b(%rip), %r10      # 0x76d10
leaq 0xf1c9(%rip), %rdx      # 0x76e65
movq %rbx, %rdi
movl $0x1d, %esi
movq %rax, %rcx
pushq $0x29a                  # imm = 0x29A
pushq %r10
callq 0x1442a
addq $0x10, %rsp
movq $-0x1, %r13
movq %r12, %rdi
callq 0x69167
cmpl $0x0, (%rbx)
jne 0x67be1
movq (%r14), %rdi
subq $0x8, %rsp
movl $0x1d, %esi
movl %ebp, %edx
movl %r13d, %ecx
xorl %r8d, %r8d
movq %r15, %r9
pushq %rbx
callq 0x50e92
jmp 0x67c42