LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_int
static subtilis_arm_exp_val_t *prv_int(subtilis_arm_ass_context_t *c,
				       subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;

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

	switch (val->type) {
	case SUBTILIS_ARM_EXP_TYPE_INT:
		break;
	case SUBTILIS_ARM_EXP_TYPE_REAL:
		val->type = SUBTILIS_ARM_EXP_TYPE_INT;
		val->val.integer = (int32_t)val->val.real;
		break;
	case SUBTILIS_ARM_EXP_TYPE_FREG:
	case SUBTILIS_ARM_EXP_TYPE_REG:
		val->type = SUBTILIS_ARM_EXP_TYPE_INT;
		val->val.integer = (int32_t)val->val.reg;
		break;
	default:
		subtilis_error_set_numeric_exp_expected(err, c->l->stream->name,
							c->l->line);
		goto cleanup;
	}

	return val;

cleanup:

	subtilis_arm_exp_val_free(val);

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x6b777
cmpl $0x0, (%r14)
je 0x6ac59
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl (%rax), %eax
cmpl $0x2, %eax
jb 0x6ac7d
cmpl $0x6, %eax
je 0x6ac50
cmpl $0x7, %eax
jne 0x6ac85
movl $0x6, (%rbx)
cvttsd2si 0x8(%rbx), %eax
movl %eax, 0x8(%rbx)
jmp 0x6ac50
movl $0x6, (%rbx)
jmp 0x6ac50
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xc2f9(%rip), %r8       # 0x76f90
movq %r14, %rdi
movl $0x44, %esi
movl $0x35b, %r9d            # imm = 0x35B
callq 0x14618
movq %rbx, %rdi
callq 0x69167
jmp 0x6ac4e
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_abs
static subtilis_arm_exp_val_t *prv_abs(subtilis_arm_ass_context_t *c,
				       subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;

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

	switch (val->type) {
	case SUBTILIS_ARM_EXP_TYPE_INT:
		if (val->val.integer < 0)
			val->val.integer = -val->val.integer;
		break;
	case SUBTILIS_ARM_EXP_TYPE_REAL:
		if (val->val.real < 0)
			val->val.real = -val->val.real;
		break;
	default:
		subtilis_error_set_numeric_exp_expected(err, c->l->stream->name,
							c->l->line);
		goto cleanup;
	}

	return val;

cleanup:

	subtilis_arm_exp_val_free(val);

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x6b777
cmpl $0x0, (%r14)
je 0x6acd5
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl (%rax), %eax
cmpl $0x7, %eax
je 0x6acf2
cmpl $0x6, %eax
jne 0x6ad10
movl 0x8(%rbx), %eax
testl %eax, %eax
jns 0x6accc
negl %eax
movl %eax, 0x8(%rbx)
jmp 0x6accc
movsd 0x8(%rbx), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6accc
xorpd 0xa6e7(%rip), %xmm0     # 0x753f0
movlpd %xmm0, 0x8(%rbx)
jmp 0x6accc
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xc26e(%rip), %r8       # 0x76f90
movq %r14, %rdi
movl $0x44, %esi
movl $0x398, %r9d            # imm = 0x398
callq 0x14618
movq %rbx, %rdi
callq 0x69167
jmp 0x6acca
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_sgn
static subtilis_arm_exp_val_t *prv_sgn(subtilis_arm_ass_context_t *c,
				       subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;

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

	switch (val->type) {
	case SUBTILIS_ARM_EXP_TYPE_INT:
		if (val->val.integer < 0)
			val->val.integer = -1;
		else if (val->val.integer > 0)
			val->val.integer = 1;
		else
			val->val.integer = 0;
		break;
	case SUBTILIS_ARM_EXP_TYPE_REAL:
		val->type = SUBTILIS_ARM_EXP_TYPE_INT;
		if (val->val.real < 0)
			val->val.integer = -1;
		else if (val->val.real > 0)
			val->val.integer = 1;
		else
			val->val.integer = 0;
		break;
	default:
		subtilis_error_set_numeric_exp_expected(err, c->l->stream->name,
							c->l->line);
		goto cleanup;
	}

	return val;

cleanup:

	subtilis_arm_exp_val_free(val);

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x6b777
cmpl $0x0, (%r14)
je 0x6ad60
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl (%rax), %eax
cmpl $0x7, %eax
je 0x6ad80
cmpl $0x6, %eax
jne 0x6ad9e
cmpl $0x0, 0x8(%rbx)
js 0x6ad95
je 0x6add3
movl $0x1, 0x8(%rbx)
jmp 0x6ad57
movl $0x6, (%rbx)
movsd 0x8(%rbx), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6adcd
movl $0xffffffff, 0x8(%rbx)  # imm = 0xFFFFFFFF
jmp 0x6ad57
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xc1e0(%rip), %r8       # 0x76f90
movq %r14, %rdi
movl $0x44, %esi
movl $0x412, %r9d            # imm = 0x412
callq 0x14618
movq %rbx, %rdi
callq 0x69167
jmp 0x6ad55
ucomisd %xmm1, %xmm0
ja 0x6ad77
movl $0x0, 0x8(%rbx)
jmp 0x6ad57
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_chr_str
static subtilis_arm_exp_val_t *prv_chr_str(subtilis_arm_ass_context_t *c,
					   subtilis_error_t *err)
{
	char c_str[2];
	subtilis_arm_exp_val_t *val;
	subtilis_arm_exp_val_t *val2 = NULL;

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

	c_str[0] = val->val.integer & 255;
	c_str[1] = 0;

	val2 = subtilis_arm_exp_new_str_str(c_str, err);

cleanup:

	subtilis_arm_exp_val_free(val);

	return val2;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %r15
callq 0x6b777
cmpl $0x0, (%r14)
je 0x6ae06
xorl %ebx, %ebx
cmpl $0x0, (%r14)
je 0x6ae25
xorl %r14d, %r14d
jmp 0x6ae3e
movq %rax, %rbx
movl (%rax), %eax
cmpl $0x6, %eax
je 0x6adfb
cmpl $0x7, %eax
jne 0x6ae53
movl $0x6, (%rbx)
cvttsd2si 0x8(%rbx), %eax
movl %eax, 0x8(%rbx)
jmp 0x6adfb
movb 0x8(%rbx), %al
leaq 0xe(%rsp), %rdi
movb %al, (%rdi)
movb $0x0, 0x1(%rdi)
movq %r14, %rsi
callq 0x690d1
movq %rax, %r14
movq %rbx, %rdi
callq 0x69167
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xc12b(%rip), %r8       # 0x76f90
movq %r14, %rdi
movl $0x44, %esi
movl $0x337, %r9d            # imm = 0x337
callq 0x14618
movq %rbx, %rdi
callq 0x69167
jmp 0x6adf9
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_asc
static subtilis_arm_exp_val_t *prv_asc(subtilis_arm_ass_context_t *c,
				       subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;
	subtilis_arm_exp_val_t *val2 = NULL;
	int32_t v;

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

	if (val->type != SUBTILIS_ARM_EXP_TYPE_STRING) {
		subtilis_error_set_const_string_expected(
		    err, c->l->stream->name, c->l->line);
		goto cleanup;
	}

	if (subtilis_buffer_get_size(&val->val.buf) <= 1)
		v = -1;
	else
		v = subtilis_buffer_get_string(&val->val.buf)[0];

	val2 = subtilis_arm_exp_new_int32(v, err);

cleanup:

	subtilis_arm_exp_val_free(val);

	return val2;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x6b777
cmpl $0x0, (%r14)
je 0x6aea0
xorl %r14d, %r14d
jmp 0x6af0a
movq %rax, %rbx
cmpl $0x8, (%rax)
jne 0x6aeda
movq %rbx, %r15
addq $0x8, %r15
movq %r15, %rdi
callq 0x14ba1
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
cmpq $0x2, %rax
jb 0x6aecd
movq %r15, %rdi
callq 0x14dfb
movsbl (%rax), %edi
movq %r14, %rsi
callq 0x6903c
movq %rax, %r14
jmp 0x6af02
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xc0a4(%rip), %r8       # 0x76f90
movq %r14, %rdi
movl $0x4a, %esi
movl $0x3c9, %r9d            # imm = 0x3C9
callq 0x14618
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x69167
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_len
static subtilis_arm_exp_val_t *prv_len(subtilis_arm_ass_context_t *c,
				       subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;
	subtilis_arm_exp_val_t *val2 = NULL;

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

	if (val->type != SUBTILIS_ARM_EXP_TYPE_STRING) {
		subtilis_error_set_const_string_expected(
		    err, c->l->stream->name, c->l->line);
		goto cleanup;
	}

	val2 = subtilis_arm_exp_new_int32(
	    subtilis_buffer_get_size(&val->val.buf) - 1, err);

cleanup:

	subtilis_arm_exp_val_free(val);

	return val2;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x6b777
cmpl $0x0, (%r14)
je 0x6af2e
xorl %r14d, %r14d
jmp 0x6af82
movq %rax, %rbx
cmpl $0x8, (%rax)
jne 0x6af52
movq %rbx, %rdi
addq $0x8, %rdi
callq 0x14ba1
leal -0x1(%rax), %edi
movq %r14, %rsi
callq 0x6903c
movq %rax, %r14
jmp 0x6af7a
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xc02c(%rip), %r8       # 0x76f90
movq %r14, %rdi
movl $0x4a, %esi
movl $0x3e7, %r9d            # imm = 0x3E7
callq 0x14618
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x69167
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_left_str
static subtilis_arm_exp_val_t *prv_left_str(subtilis_arm_ass_context_t *c,
					    subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;
	int32_t start;
	int32_t len;

	val = prv_left_right(c, &start, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	len = subtilis_buffer_get_size(&val->val.buf) - 1;
	if (len == 0 || start < 0 || start >= len)
		return val;

	subtilis_buffer_delete(&val->val.buf, start, len - start, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	return val;

cleanup:

	subtilis_arm_exp_val_free(val);

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
leaq 0xc(%rsp), %rsi
movq %r14, %rdx
callq 0x6b89d
cmpl $0x0, (%r14)
je 0x6afb9
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rax, %r15
addq $0x8, %r15
movq %r15, %rdi
callq 0x14ba1
decl %eax
je 0x6afac
movl 0xc(%rsp), %esi
testl %esi, %esi
js 0x6afac
cmpl %esi, %eax
jle 0x6afac
subl %esi, %eax
movslq %eax, %rdx
movq %r15, %rdi
movq %r14, %rcx
callq 0x14cbb
cmpl $0x0, (%r14)
je 0x6afac
movq %rbx, %rdi
callq 0x69167
jmp 0x6afaa
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_right_str
static subtilis_arm_exp_val_t *prv_right_str(subtilis_arm_ass_context_t *c,
					     subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;
	int32_t start;
	int32_t len;

	val = prv_left_right(c, &start, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	len = subtilis_buffer_get_size(&val->val.buf) - 1;
	if (len == 0 || start < 0 || start >= len)
		return val;

	subtilis_buffer_delete(&val->val.buf, 0, len - start, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;
	subtilis_buffer_zero_terminate(&val->val.buf, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	return val;

cleanup:

	subtilis_arm_exp_val_free(val);

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
leaq 0xc(%rsp), %rsi
movq %r14, %rdx
callq 0x6b89d
cmpl $0x0, (%r14)
jne 0x6b06b
movq %rax, %rbx
movq %rax, %r15
addq $0x8, %r15
movq %r15, %rdi
callq 0x14ba1
decl %eax
je 0x6b06d
movl 0xc(%rsp), %ecx
testl %ecx, %ecx
js 0x6b06d
subl %ecx, %eax
jle 0x6b06d
movslq %eax, %rdx
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rcx
callq 0x14cbb
cmpl $0x0, (%r14)
jne 0x6b063
movq %r15, %rdi
movq %r14, %rsi
callq 0x14d4b
cmpl $0x0, (%r14)
je 0x6b06d
movq %rbx, %rdi
callq 0x69167
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_str_str
static subtilis_arm_exp_val_t *prv_str_str(subtilis_arm_ass_context_t *c,
					   subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;
	char buf[64];
	subtilis_arm_exp_val_t *val2 = NULL;

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

	switch (val->type) {
	case SUBTILIS_ARM_EXP_TYPE_INT:
		sprintf(buf, "%" PRIi32, val->val.integer);
		break;
	case SUBTILIS_ARM_EXP_TYPE_REAL:
		sprintf(buf, "%f", val->val.real);
		break;
	default:
		subtilis_error_set_numeric_exp_expected(err, c->l->stream->name,
							c->l->line);
		goto cleanup;
	}

	val2 = subtilis_arm_exp_new_str_str(buf, err);

cleanup:

	subtilis_arm_exp_val_free(val);

	return val2;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %r15
callq 0x6b777
cmpl $0x0, (%r14)
je 0x6b6a9
xorl %r14d, %r14d
jmp 0x6b724
movq %rax, %rbx
movl (%rax), %eax
cmpl $0x7, %eax
je 0x6b6ce
cmpl $0x6, %eax
jne 0x6b6f4
movl 0x8(%rbx), %edx
leaq 0x879a(%rip), %rsi      # 0x73e5c
movq %rsp, %rdi
xorl %eax, %eax
callq 0x12280
jmp 0x6b6e4
movsd 0x8(%rbx), %xmm0
leaq 0xb02c(%rip), %rsi      # 0x76706
movq %rsp, %rdi
movb $0x1, %al
callq 0x12280
movq %rsp, %rdi
movq %r14, %rsi
callq 0x690d1
movq %rax, %r14
jmp 0x6b71c
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xb88a(%rip), %r8       # 0x76f90
movq %r14, %rdi
movl $0x44, %esi
movl $0x580, %r9d            # imm = 0x580
callq 0x14618
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x69167
movq %r14, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_exp_to_int
static int32_t prv_exp_to_int(subtilis_arm_ass_context_t *c,
			      subtilis_arm_exp_val_t *e1, subtilis_error_t *err)
{
	switch (e1->type) {
	case SUBTILIS_ARM_EXP_TYPE_INT:
		return e1->val.integer;
	case SUBTILIS_ARM_EXP_TYPE_REAL:
		return (int32_t)e1->val.real;
	default:
		subtilis_error_set_numeric_exp_expected(err, c->l->stream->name,
							c->l->line);
		return 0;
	}
}

// Assembly:
movl (%rsi), %eax
cmpl $0x7, %eax
je 0x6b741
cmpl $0x6, %eax
jne 0x6b747
movl 0x8(%rsi), %eax
retq
cvttsd2si 0x8(%rsi), %eax
retq
pushq %rax
movq 0x8(%rdi), %rcx
movq 0x30(%rcx), %rax
movl 0x38(%rcx), %ecx
leaq 0xb836(%rip), %r8       # 0x76f90
movq %rdx, %rdi
movl $0x44, %esi
movq %rax, %rdx
movl $0xf9, %r9d
callq 0x14618
xorl %eax, %eax
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_bracketed_exp
static subtilis_arm_exp_val_t *prv_bracketed_exp(subtilis_arm_ass_context_t *c,
						 subtilis_error_t *err)
{
	const char *tbuf;
	subtilis_arm_exp_val_t *e = NULL;

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

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

	e = prv_process_bktd_exp(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

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

	return e;

cleanup:

	subtilis_arm_exp_val_free(e);

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdi
movq 0x10(%r14), %rsi
movq %rbx, %rdx
callq 0x12eda
cmpl $0x0, (%rbx)
jne 0x6b820
movq 0x10(%r14), %rdi
callq 0x12ad0
movq %rax, %r15
leaq 0x8a64(%rip), %rsi      # 0x74212
movq %rax, %rdi
callq 0x12160
testl %eax, %eax
je 0x6b7f0
movq 0x8(%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0xb7c3(%rip), %rax      # 0x76f90
leaq 0x80ee(%rip), %rdx      # 0x738c2
movq %rbx, %rdi
movl $0x1d, %esi
movq %r15, %rcx
pushq $0x2f1                  # imm = 0x2F1
pushq %rax
callq 0x1442a
addq $0x10, %rsp
jmp 0x6b820
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6ab40
cmpl $0x0, (%rbx)
jne 0x6b820
movq %rax, %r15
movq 0x8(%r14), %rdi
movq 0x10(%r14), %rsi
movq %rbx, %rdx
callq 0x12eda
cmpl $0x0, (%rbx)
je 0x6b823
movq %r15, %rdi
callq 0x69167
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_real_bkt_exp
static subtilis_arm_exp_val_t *prv_real_bkt_exp(subtilis_arm_ass_context_t *c,
						subtilis_error_t *err)
{
	subtilis_arm_exp_val_t *val;

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

	switch (val->type) {
	case SUBTILIS_ARM_EXP_TYPE_INT:
		val->type = SUBTILIS_ARM_EXP_TYPE_REAL;
		val->val.real = (double)val->val.integer;
		break;
	case SUBTILIS_ARM_EXP_TYPE_REAL:
		break;
	default:
		subtilis_error_set_numeric_exp_expected(err, c->l->stream->name,
							c->l->line);
		goto cleanup;
	}

	return val;

cleanup:

	subtilis_arm_exp_val_free(val);

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x6b777
cmpl $0x0, (%r14)
je 0x6b84d
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl (%rax), %eax
cmpl $0x7, %eax
je 0x6b844
cmpl $0x6, %eax
jne 0x6b86e
movl $0x7, (%rbx)
cvtsi2sdl 0x8(%rbx), %xmm0
movsd %xmm0, 0x8(%rbx)
jmp 0x6b844
movq 0x8(%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0xb710(%rip), %r8       # 0x76f90
movq %r14, %rdi
movl $0x44, %esi
movl $0x318, %r9d            # imm = 0x318
callq 0x14618
movq %rbx, %rdi
callq 0x69167
jmp 0x6b842
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_exp_to_real
static double prv_exp_to_real(subtilis_arm_ass_context_t *c,
			      subtilis_arm_exp_val_t *e1, subtilis_error_t *err)
{
	switch (e1->type) {
	case SUBTILIS_ARM_EXP_TYPE_INT:
		return (double)e1->val.integer;
	case SUBTILIS_ARM_EXP_TYPE_REAL:
		return e1->val.real;
	default:
		subtilis_error_set_numeric_exp_expected(err, c->l->stream->name,
							c->l->line);
		return 0;
	}
}

// Assembly:
movl (%rsi), %eax
cmpl $0x7, %eax
je 0x6bae5
cmpl $0x6, %eax
jne 0x6baeb
cvtsi2sdl 0x8(%rsi), %xmm0
retq
movsd 0x8(%rsi), %xmm0
retq
pushq %rax
movq 0x8(%rdi), %rcx
movq 0x30(%rcx), %rax
movl 0x38(%rcx), %ecx
leaq 0xb492(%rip), %r8       # 0x76f90
movq %rdx, %rdi
movl $0x44, %esi
movq %rax, %rdx
movl $0x108, %r9d            # imm = 0x108
callq 0x14618
xorps %xmm0, %xmm0
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: subtilis_fpa_gen_movr
void subtilis_fpa_gen_movr(subtilis_ir_section_t *s, size_t start,
			   void *user_data, subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_reg_t op2;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *instr = &s->ops[start]->op.instr;

	dest = subtilis_arm_ir_to_freg(instr->operands[0].reg);
	op2 = subtilis_arm_ir_to_freg(instr->operands[1].reg);

	subtilis_fpa_add_mov(arm_s, SUBTILIS_ARM_CCODE_AL,
			     SUBTILIS_FPA_ROUNDING_NEAREST, dest, op2, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %r12
movq 0x10(%r12), %rdi
callq 0x4f57d
movq %rax, %r15
movq 0x18(%r12), %rdi
callq 0x4f57d
movq %rbx, (%rsp)
movq %r14, %rdi
movl $0xe, %esi
movl $0x21, %edx
xorl %ecx, %ecx
movq %r15, %r8
movq %rax, %r9
callq 0x5cffd
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: subtilis_fpa_gen_movir
void subtilis_fpa_gen_movir(subtilis_ir_section_t *s, size_t start,
			    void *user_data, subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *instr = &s->ops[start]->op.instr;
	double op2 = instr->operands[1].real;

	dest = subtilis_arm_ir_to_freg(instr->operands[0].reg);

	subtilis_fpa_add_mov_imm(arm_s, SUBTILIS_ARM_CCODE_AL,
				 SUBTILIS_FPA_ROUNDING_NEAREST, dest, op2, err);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %rax
movsd 0x18(%rax), %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0x10(%rax), %rdi
callq 0x4f57d
movq %rbx, (%rsp)
movq %r14, %rdi
movl $0xe, %esi
movl $0x21, %edx
movl $0x22, %ecx
xorl %r8d, %r8d
movq %rax, %r9
movsd 0x10(%rsp), %xmm0
callq 0x5cf0a
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: subtilis_fpa_gen_movri32
void subtilis_fpa_gen_movri32(subtilis_ir_section_t *s, size_t start,
			      void *user_data, subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_reg_t op2;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *instr = &s->ops[start]->op.instr;

	dest = subtilis_arm_ir_to_arm_reg(instr->operands[0].reg);
	op2 = subtilis_arm_ir_to_freg(instr->operands[1].reg);

	subtilis_fpa_add_tran(arm_s, SUBTILIS_FPA_INSTR_FIX,
			      SUBTILIS_ARM_CCODE_AL, SUBTILIS_FPA_ROUNDING_ZERO,
			      dest, op2, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %r12
movq 0x10(%r12), %rdi
callq 0x4eff7
movq %rax, %r15
movq 0x18(%r12), %rdi
callq 0x4f57d
movq %rbx, (%rsp)
movq %r14, %rdi
movl $0x3f, %esi
movl $0xe, %edx
movl $0x3, %ecx
movq %r15, %r8
movq %rax, %r9
callq 0x5d2a6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: subtilis_fpa_gen_movi32r
void subtilis_fpa_gen_movi32r(subtilis_ir_section_t *s, size_t start,
			      void *user_data, subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_reg_t op2;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *instr = &s->ops[start]->op.instr;

	dest = subtilis_arm_ir_to_freg(instr->operands[0].reg);
	op2 = subtilis_arm_ir_to_arm_reg(instr->operands[1].reg);

	subtilis_fpa_add_tran(arm_s, SUBTILIS_FPA_INSTR_FLT,
			      SUBTILIS_ARM_CCODE_AL,
			      SUBTILIS_FPA_ROUNDING_NEAREST, dest, op2, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %r12
movq 0x10(%r12), %rdi
callq 0x4f57d
movq %rax, %r15
movq 0x18(%r12), %rdi
callq 0x4eff7
movq %rbx, (%rsp)
movq %r14, %rdi
movl $0x3e, %esi
movl $0xe, %edx
xorl %ecx, %ecx
movq %r15, %r8
movq %rax, %r9
callq 0x5d2a6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: prv_gen_callr
static void prv_gen_callr(subtilis_ir_section_t *s, size_t start,
			  void *user_data, bool indirect, subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_reg_t op1;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_call_t *call = &s->ops[start]->op.call;

	subtilis_arm_gen_call_gen(s, start, user_data,
				  SUBTILIS_ARM_BR_LINK_REAL, indirect, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	dest = subtilis_arm_ir_to_freg(call->reg);
	op1 = 0;

	subtilis_fpa_add_mov(arm_s, SUBTILIS_ARM_CCODE_AL,
			     SUBTILIS_FPA_ROUNDING_NEAREST, dest, op1, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %r8, %r14
movl %ecx, %r8d
movq %rdx, %rbx
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %r15
movl $0x2, %ecx
movq %r14, %r9
callq 0x51bc0
cmpl $0x0, (%r14)
jne 0x6bd3d
movq 0x18(%r15), %rdi
callq 0x4f57d
movq %r14, (%rsp)
movq %rbx, %rdi
movl $0xe, %esi
movl $0x21, %edx
xorl %ecx, %ecx
movq %rax, %r8
xorl %r9d, %r9d
callq 0x5cffd
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: prv_data_simple
static void prv_data_simple(subtilis_ir_section_t *s, size_t start,
			    void *user_data, subtilis_arm_instr_type_t itype,
			    subtilis_arm_ccode_type_t ccode,
			    subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_data_instr_t *datai;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *ir_op = &s->ops[start]->op.instr;

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

	datai = &instr->operands.fpa_data;
	datai->ccode = ccode;
	datai->size = 8;
	datai->rounding = SUBTILIS_FPA_ROUNDING_NEAREST;
	datai->dest = subtilis_arm_ir_to_freg(ir_op->operands[0].reg);
	datai->op1 = subtilis_arm_ir_to_freg(ir_op->operands[1].reg);
	datai->immediate = false;
	datai->op2.reg = subtilis_arm_ir_to_freg(ir_op->operands[2].reg);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %r8, %r14
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %r15
movq %rdx, %rdi
movl %ecx, %esi
movq %r8, %rdx
callq 0x4f73a
cmpl $0x0, (%r14)
jne 0x6bdbc
movq %rax, %rbx
movq $0xe, 0x8(%rax)
movq $0x8, 0x10(%rax)
movq 0x10(%r15), %rdi
callq 0x4f57d
movq %rax, 0x18(%rbx)
movq 0x18(%r15), %rdi
callq 0x4f57d
movq %rax, 0x20(%rbx)
movb $0x0, 0x28(%rbx)
movq 0x20(%r15), %rdi
callq 0x4f57d
movq %rax, 0x30(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: prv_data_simple_imm
static void prv_data_simple_imm(subtilis_ir_section_t *s, size_t start,
				void *user_data,
				subtilis_arm_instr_type_t itype,
				subtilis_arm_ccode_type_t ccode,
				subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_reg_t op1;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *instr = &s->ops[start]->op.instr;
	double op2 = instr->operands[2].real;

	dest = subtilis_arm_ir_to_freg(instr->operands[0].reg);
	op1 = subtilis_arm_ir_to_freg(instr->operands[1].reg);

	subtilis_fpa_add_data_imm(arm_s, itype, ccode,
				  SUBTILIS_FPA_ROUNDING_NEAREST, dest, op1, op2,
				  err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %rbx
movl %ecx, %ebp
movq %rdx, %r14
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %r12
movsd 0x20(%r12), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x10(%r12), %rdi
callq 0x4f57d
movq %rax, %r15
movq 0x18(%r12), %rdi
callq 0x4f57d
movq %rbx, (%rsp)
movq %r14, %rdi
movl %ebp, %esi
movl $0xe, %edx
xorl %ecx, %ecx
movq %r15, %r8
movq %rax, %r9
movsd 0x8(%rsp), %xmm0
callq 0x5d04a
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: prv_stran_instr
static void prv_stran_instr(subtilis_arm_instr_type_t itype,
			    subtilis_ir_section_t *s, size_t start,
			    void *user_data, subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_reg_t base;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *instr = &s->ops[start]->op.instr;
	int32_t offset = instr->operands[2].integer;

	dest = subtilis_arm_ir_to_freg(instr->operands[0].reg);
	base = subtilis_arm_ir_to_arm_reg(instr->operands[1].reg);

	subtilis_fpa_add_stran(arm_s, itype, SUBTILIS_ARM_CCODE_AL, dest, base,
			       offset, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movl %edi, %ebp
movq 0x48(%rsi), %rax
movq (%rax,%rdx,8), %r13
movl 0x20(%r13), %r15d
movq 0x10(%r13), %rdi
callq 0x4f57d
movq %rax, %r12
movq 0x18(%r13), %rdi
callq 0x4eff7
movq %rbx, (%rsp)
movq %r14, %rdi
movl %ebp, %esi
movl $0xe, %edx
movq %r12, %rcx
movq %rax, %r8
movl %r15d, %r9d
callq 0x5d1c5
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/fpa_gen.c
// Function: subtilis_fpa_gen_retr
void subtilis_fpa_gen_retr(subtilis_ir_section_t *s, size_t start,
			   void *user_data, subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *instr = &s->ops[start]->op.instr;
	subtilis_arm_reg_t op2;

	dest = 0;
	op2 = subtilis_arm_ir_to_freg(instr->operands[0].reg);

	subtilis_fpa_add_mov(arm_s, SUBTILIS_ARM_CCODE_AL,
			     SUBTILIS_FPA_ROUNDING_NEAREST, dest, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	subtilis_arm_gen_ret(s, start, user_data, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %rax
movq 0x10(%rax), %rdi
callq 0x4f57d
movq %rbx, (%rsp)
movq %r14, %rdi
movl $0xe, %esi
movl $0x21, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %rax, %r9
callq 0x5cffd
cmpl $0x0, (%rbx)
je 0x6c134
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x52217
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: subtilis_fpa_gen_retir
void subtilis_fpa_gen_retir(subtilis_ir_section_t *s, size_t start,
			    void *user_data, subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *instr = &s->ops[start]->op.instr;
	double op2 = instr->operands[0].real;

	dest = 0;

	subtilis_fpa_add_mov_imm(arm_s, SUBTILIS_ARM_CCODE_AL,
				 SUBTILIS_FPA_ROUNDING_NEAREST, dest, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	subtilis_arm_gen_ret(s, start, user_data, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %rax
movsd 0x10(%rax), %xmm0
movq %rcx, (%rsp)
movq %rdx, %rdi
movl $0xe, %esi
movl $0x21, %edx
movl $0x22, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x5cf0a
cmpl $0x0, (%rbx)
je 0x6c1a3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x52217
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: prv_cmp_jmp_imm
static void prv_cmp_jmp_imm(subtilis_ir_section_t *s, size_t start,
			    void *user_data, subtilis_arm_ccode_type_t ccode,
			    subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_arm_br_instr_t *br;
	subtilis_arm_reg_t op1;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *cmp = &s->ops[start]->op.instr;
	subtilis_ir_inst_t *jmp = &s->ops[start + 1]->op.instr;

	op1 = subtilis_arm_ir_to_freg(cmp->operands[1].reg);

	subtilis_fpa_add_cmf_imm(arm_s, SUBTILIS_ARM_CCODE_AL, op1,
				 cmp->operands[2].real, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

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

	br = &instr->operands.br;
	br->ccode = ccode;
	br->link = false;
	br->link_type = SUBTILIS_ARM_BR_LINK_VOID;
	br->target.label = jmp->operands[2].label;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %r14
movl %ecx, %ebx
movq %rdx, %r15
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %r13
movq 0x8(%rax,%rsi,8), %r12
movq 0x18(%r13), %rdi
callq 0x4f57d
movsd 0x20(%r13), %xmm0
movq %r15, %rdi
movl $0x40, %esi
movl $0x41, %edx
movl $0xe, %ecx
movq %rax, %r8
movq %r14, %r9
callq 0x5d2f1
cmpl $0x0, (%r14)
jne 0x6c246
movq %r15, %rdi
movl $0x16, %esi
movq %r14, %rdx
callq 0x4f73a
cmpl $0x0, (%r14)
jne 0x6c246
movl %ebx, 0x8(%rax)
movb $0x0, 0xc(%rax)
movl $0x0, 0x10(%rax)
movq 0x20(%r12), %rcx
movq %rcx, 0x18(%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: prv_cmp_jmp
static void prv_cmp_jmp(subtilis_ir_section_t *s, size_t start, void *user_data,
			subtilis_arm_ccode_type_t ccode, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_arm_br_instr_t *br;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *jmp = &s->ops[start + 1]->op.instr;

	prv_cmp_simple(s, start, user_data, SUBTILIS_FPA_INSTR_CMF,
		       SUBTILIS_ARM_CCODE_AL, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

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

	br = &instr->operands.br;
	br->ccode = ccode;
	br->link = false;
	br->link_type = SUBTILIS_ARM_BR_LINK_VOID;
	br->target.label = jmp->operands[2].label;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movl %ecx, %ebx
movq %rdx, %r15
movq 0x48(%rdi), %rax
movq 0x8(%rax,%rsi,8), %r12
movq %r8, %rcx
callq 0x6cbab
cmpl $0x0, (%r14)
jne 0x6c2ec
movq %r15, %rdi
movl $0x16, %esi
movq %r14, %rdx
callq 0x4f73a
cmpl $0x0, (%r14)
jne 0x6c2ec
movl %ebx, 0x8(%rax)
movb $0x0, 0xc(%rax)
movl $0x0, 0x10(%rax)
movq 0x20(%r12), %rcx
movq %rcx, 0x18(%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/fpa_gen.c
// Function: prv_cmp_imm
static void prv_cmp_imm(subtilis_ir_section_t *s, size_t start, void *user_data,
			subtilis_arm_ccode_type_t ok,
			subtilis_arm_ccode_type_t nok, subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_reg_t op1;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *cmp = &s->ops[start]->op.instr;

	op1 = subtilis_arm_ir_to_freg(cmp->operands[1].reg);
	subtilis_fpa_add_cmf_imm(arm_s, SUBTILIS_ARM_CCODE_AL, op1,
				 cmp->operands[2].real, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	dest = subtilis_arm_ir_to_arm_reg(cmp->operands[0].reg);
	subtilis_arm_add_mov_imm(arm_s, ok, false, dest, -1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	subtilis_arm_add_mov_imm(arm_s, nok, false, dest, 0, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %rbx
movl %r8d, %ebp
movl %ecx, %r15d
movq %rdx, %r14
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %r12
movq 0x18(%r12), %rdi
callq 0x4f57d
movsd 0x20(%r12), %xmm0
movq %r14, %rdi
movl $0x40, %esi
movl $0x41, %edx
movl $0xe, %ecx
movq %rax, %r8
movq %rbx, %r9
callq 0x5d2f1
cmpl $0x0, (%rbx)
jne 0x6c3e1
movq 0x10(%r12), %rdi
callq 0x4eff7
movq %rax, %r12
movq %r14, %rdi
movl $0xd, %esi
movl $0xf, %edx
movl %r15d, %ecx
xorl %r8d, %r8d
movq %rax, %r9
pushq %rbx
pushq $-0x1
callq 0x50249
addq $0x10, %rsp
cmpl $0x0, (%rbx)
jne 0x6c3e1
movq %r14, %rdi
movl $0xd, %esi
movl $0xf, %edx
movl %ebp, %ecx
xorl %r8d, %r8d
movq %r12, %r9
pushq %rbx
pushq $0x0
callq 0x50249
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: prv_data_monadic_simple
static void prv_data_monadic_simple(subtilis_ir_section_t *s, size_t start,
				    void *user_data,
				    subtilis_arm_instr_type_t itype,
				    subtilis_arm_ccode_type_t ccode,
				    subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_data_instr_t *datai;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *ir_op = &s->ops[start]->op.instr;

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

	datai = &instr->operands.fpa_data;
	datai->ccode = ccode;
	datai->size = 8;
	datai->rounding = SUBTILIS_FPA_ROUNDING_NEAREST;
	datai->dest = subtilis_arm_ir_to_freg(ir_op->operands[0].reg);
	datai->op1 = 0;
	datai->immediate = false;
	datai->op2.reg = subtilis_arm_ir_to_freg(ir_op->operands[1].reg);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %r8, %r14
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %r15
movq %rdx, %rdi
movl %ecx, %esi
movq %r8, %rdx
callq 0x4f73a
cmpl $0x0, (%r14)
jne 0x6c599
movq %rax, %rbx
movq $0xe, 0x8(%rax)
movq $0x8, 0x10(%rax)
movq 0x10(%r15), %rdi
callq 0x4f57d
movq %rax, 0x18(%rbx)
movq $0x0, 0x20(%rbx)
movb $0x0, 0x28(%rbx)
movq 0x18(%r15), %rdi
callq 0x4f57d
movq %rax, 0x30(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: subtilis_fpa_gen_preamble
void subtilis_fpa_gen_preamble(subtilis_arm_section_t *arm_s,
			       subtilis_error_t *err)
{
	subtilis_arm_reg_t mask;
	subtilis_arm_reg_t status;
	subtilis_arm_instr_t *instr;
	subtilis_arm_data_instr_t *datai;

	mask = subtilis_arm_ir_to_arm_reg(arm_s->reg_counter++);
	status = subtilis_arm_ir_to_arm_reg(arm_s->reg_counter++);

	subtilis_arm_add_mov_imm(arm_s, SUBTILIS_ARM_CCODE_AL, false, mask,
				 31 << 16, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_arm_add_mvn_reg(arm_s, SUBTILIS_ARM_CCODE_AL, false, mask,
				 mask, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_fpa_add_cptran(arm_s, SUBTILIS_FPA_INSTR_RFS,
				SUBTILIS_ARM_CCODE_AL, status, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

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

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

	subtilis_fpa_add_cptran(arm_s, SUBTILIS_FPA_INSTR_WFS,
				SUBTILIS_ARM_CCODE_AL, status, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
leaq 0x1(%rdi), %rax
movq %rax, (%r14)
callq 0x4eff7
movq %rax, %r15
movq (%r14), %rdi
leaq 0x1(%rdi), %rax
movq %rax, (%r14)
callq 0x4eff7
movq %rax, %r12
movq %r14, %rdi
movl $0xd, %esi
movl $0xf, %edx
movl $0xe, %ecx
xorl %r8d, %r8d
movq %r15, %r9
pushq %rbx
pushq $0x1f0000               # imm = 0x1F0000
callq 0x50249
addq $0x10, %rsp
cmpl $0x0, (%rbx)
jne 0x6c746
subq $0x8, %rsp
movq %r14, %rdi
movl $0xf, %esi
movl $0xe, %edx
xorl %ecx, %ecx
movq %r15, %r8
movq %r15, %r9
pushq %rbx
callq 0x5060d
addq $0x10, %rsp
cmpl $0x0, (%rbx)
jne 0x6c746
movq %r14, %rdi
movl $0x45, %esi
movl $0xe, %edx
movq %r12, %rcx
movq %rbx, %r8
callq 0x5d445
cmpl $0x0, (%rbx)
jne 0x6c746
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x4f73a
cmpl $0x0, (%rbx)
je 0x6c752
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0xe, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %r12, 0x18(%rax)
movl $0x0, 0x20(%rax)
movq %r15, 0x28(%rax)
movq %r14, %rdi
movl $0x44, %esi
movl $0xe, %edx
movq %r12, %rcx
movq %rbx, %r8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x5d445
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: subtilis_fpa_gen_movi8tofp
void subtilis_fpa_gen_movi8tofp(subtilis_ir_section_t *s, size_t start,
				void *user_data, subtilis_error_t *err)
{
	subtilis_arm_reg_t dest;
	subtilis_arm_reg_t src;
	subtilis_arm_reg_t tmp;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *signx = &s->ops[start]->op.instr;

	dest = subtilis_arm_ir_to_freg(signx->operands[0].reg);
	src = subtilis_arm_ir_to_arm_reg(signx->operands[1].reg);
	tmp = subtilis_arm_ir_to_arm_reg(arm_s->reg_counter++);

	subtilis_arm_gen_signx8to32_helper(arm_s, tmp, src, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_fpa_add_tran(arm_s, SUBTILIS_FPA_INSTR_FLT,
			      SUBTILIS_ARM_CCODE_AL,
			      SUBTILIS_FPA_ROUNDING_NEAREST, dest, tmp, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %r12
movq 0x10(%r12), %rdi
callq 0x4f57d
movq %rax, %r15
movq 0x18(%r12), %rdi
callq 0x4eff7
movq %rax, %r13
movq (%rbx), %rdi
leaq 0x1(%rdi), %rax
movq %rax, (%rbx)
callq 0x4eff7
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x5279b
cmpl $0x0, (%r14)
jne 0x6c80b
movq %r14, (%rsp)
movq %rbx, %rdi
movl $0x3e, %esi
movl $0xe, %edx
xorl %ecx, %ecx
movq %r15, %r8
movq %r12, %r9
callq 0x5d2a6
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: subtilis_fpa_gen_movfptoi32i32
void subtilis_fpa_gen_movfptoi32i32(subtilis_ir_section_t *s, size_t start,
				    void *user_data, subtilis_error_t *err)
{
	subtilis_arm_reg_t dest1;
	subtilis_arm_reg_t dest2;
	subtilis_arm_reg_t src;
	subtilis_arm_section_t *arm_s = user_data;
	subtilis_ir_inst_t *mov = &s->ops[start]->op.instr;

	dest1 = subtilis_arm_ir_to_arm_reg(mov->operands[0].reg);
	dest2 = subtilis_arm_ir_to_arm_reg(mov->operands[1].reg);
	src = subtilis_arm_ir_to_freg(mov->operands[2].reg);

	/*
	 * TOOD: Need to check for stack overflow.
	 */

	subtilis_fpa_add_stran(arm_s, SUBTILIS_FPA_INSTR_STF,
			       SUBTILIS_ARM_CCODE_AL, src, 13, -8, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_arm_add_stran_imm(arm_s, SUBTILIS_ARM_INSTR_LDR,
				   SUBTILIS_ARM_CCODE_AL, dest2, 13, -4, false,
				   err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_arm_add_stran_imm(arm_s, SUBTILIS_ARM_INSTR_LDR,
				   SUBTILIS_ARM_CCODE_AL, dest1, 13, -8, false,
				   err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq 0x48(%rdi), %rax
movq (%rax,%rsi,8), %r13
movq 0x10(%r13), %rdi
callq 0x4eff7
movq %rax, %r15
movq 0x18(%r13), %rdi
callq 0x4eff7
movq %rax, %r12
movq 0x20(%r13), %rdi
callq 0x4f57d
subq $0x8, %rsp
movl $0xd, %r8d
movq %r14, %rdi
movl $0x1f, %esi
movl $0xe, %edx
movq %rax, %rcx
movl $0xfffffff8, %r9d       # imm = 0xFFFFFFF8
pushq %rbx
callq 0x5d1c5
addq $0x10, %rsp
cmpl $0x0, (%rbx)
jne 0x6c8d5
movl $0xd, %r8d
movq %r14, %rdi
movl $0x12, %esi
movl $0xe, %edx
movq %r12, %rcx
movl $0xfffffffc, %r9d       # imm = 0xFFFFFFFC
pushq %rbx
pushq $0x0
callq 0x5067b
addq $0x10, %rsp
cmpl $0x0, (%rbx)
jne 0x6c8d5
movl $0xd, %r8d
movq %r14, %rdi
movl $0x12, %esi
movl $0xe, %edx
movq %r15, %rcx
movl $0xfffffff8, %r9d       # imm = 0xFFFFFFF8
pushq %rbx
pushq $0x0
callq 0x5067b
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: subtilis_fpa_preserve_regs
size_t subtilis_fpa_preserve_regs(subtilis_arm_section_t *arm_s,
				  int save_real_start, subtilis_error_t *err)
{
	int i;
	size_t stf_site = INT_MAX;

	for (i = save_real_start; i < SUBTILIS_ARM_REG_MAX_FPA_REGS; i++) {
		subtilis_fpa_push_reg(arm_s, SUBTILIS_ARM_CCODE_NV, i, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return INT_MAX;
		if (stf_site == INT_MAX)
			stf_site = arm_s->last_op;
	}

	return stf_site;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
cmpl $0x7, %esi
jg 0x6c931
movq %rdx, %rbx
movq %rdi, %r14
movslq %esi, %r12
movq %r14, %rdi
movl $0xf, %esi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x5d5c5
cmpl $0x0, (%rbx)
jne 0x6c92b
cmpq $0x7fffffff, %r15       # imm = 0x7FFFFFFF
jne 0x6c920
movq 0x28(%r14), %r15
incq %r12
cmpl $0x8, %r12d
jne 0x6c8fb
jmp 0x6c931
movl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movq %r15, %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/fpa_gen.c
// Function: subtilis_fpa_restore_regs
size_t subtilis_fpa_restore_regs(subtilis_arm_section_t *arm_s,
				 int save_real_start, subtilis_error_t *err)
{
	int i;
	size_t ldf_site = INT_MAX;

	for (i = SUBTILIS_ARM_REG_MAX_FPA_REGS - 1; i >= save_real_start; i--) {
		subtilis_fpa_pop_reg(arm_s, SUBTILIS_ARM_CCODE_NV, i, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return INT_MAX;
		if (ldf_site == INT_MAX)
			ldf_site = arm_s->last_op;
	}

	return ldf_site;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
cmpl $0x7, %esi
jg 0x6c998
movq %rdx, %rbx
movq %rdi, %r14
movslq %esi, %r13
movl $0x8, %r12d
decq %r12
movq %r14, %rdi
movl $0xf, %esi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x5d607
cmpl $0x0, (%rbx)
jne 0x6c992
cmpq $0x7fffffff, %r15       # imm = 0x7FFFFFFF
jne 0x6c98b
movq 0x28(%r14), %r15
cmpq %r13, %r12
jg 0x6c963
jmp 0x6c998
movl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: subtilis_fpa_preserve_update
void subtilis_fpa_preserve_update(subtilis_arm_section_t *arm_s,
				  subtilis_arm_call_site_t *call_site,
				  size_t real_regs_saved, size_t real_regs_used,
				  subtilis_error_t *err)
{
	subtilis_arm_op_t *op;
	size_t i;
	size_t fpa_reg_count;

	if (real_regs_saved > SUBTILIS_ARM_REG_MAX_ARGS)
		real_regs_saved =
		    SUBTILIS_ARM_REG_MAX_FPA_REGS - SUBTILIS_ARM_REG_MAX_ARGS;
	else
		real_regs_saved =
		    SUBTILIS_ARM_REG_MAX_FPA_REGS - real_regs_saved;

	fpa_reg_count = SUBTILIS_ARM_REG_MAX_FPA_REGS - real_regs_saved;
	op = &arm_s->op_pool->ops[call_site->stf_site];

	for (; fpa_reg_count < SUBTILIS_ARM_REG_MAX_FPA_REGS; fpa_reg_count++) {
		if (real_regs_used & (1 << fpa_reg_count)) {
			op->op.instr.operands.fpa_stran.ccode =
			    SUBTILIS_ARM_CCODE_AL;
		}
		op = &arm_s->op_pool->ops[op->next];
	}

	fpa_reg_count = SUBTILIS_ARM_REG_MAX_FPA_REGS - 1;
	op = &arm_s->op_pool->ops[call_site->ldf_site];
	for (i = 0; i < real_regs_saved; i++) {
		if (real_regs_used & (1 << fpa_reg_count))
			op->op.instr.operands.fpa_stran.ccode =
			    SUBTILIS_ARM_CCODE_AL;
		op = &arm_s->op_pool->ops[op->next];
		fpa_reg_count--;
	}
}

// Assembly:
movl $0x8, %r8d
subq %rdx, %r8
cmpq $0x5, %rdx
movl $0x4, %r10d
cmovaeq %r10, %r8
testq %r8, %r8
je 0x6ca51
movq %rcx, %rax
movq 0x38(%rdi), %r9
imulq $0x68, 0x18(%rsi), %rcx
addq (%r9), %rcx
cmpq $0x5, %rdx
cmovaeq %rdx, %r10
movq %rdx, %r9
subq %r10, %r9
addq $0x3, %r9
subl %r10d, %edx
addl $0x4, %edx
btq %rdx, %rax
jae 0x6c9f9
movl $0xe, 0x10(%rcx)
movq 0x38(%rdi), %r10
imulq $0x68, 0x58(%rcx), %rcx
addq (%r10), %rcx
incq %r9
incl %edx
cmpq $0x7, %r9
jb 0x6c9ec
movq 0x38(%rdi), %rcx
imulq $0x68, 0x10(%rsi), %rdx
addq (%rcx), %rdx
movl $0x7, %ecx
xorl %esi, %esi
movl $0x1, %r9d
shll %cl, %r9d
movslq %r9d, %r9
testq %rax, %r9
je 0x6ca3b
movl $0xe, 0x10(%rdx)
movq 0x38(%rdi), %r9
imulq $0x68, 0x58(%rdx), %rdx
addq (%r9), %rdx
incq %rsi
decl %ecx
cmpq %r8, %rsi
jb 0x6ca23
retq
// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/fpa_gen.c
// Function: subtilis_fpa_store_double
void subtilis_fpa_store_double(subtilis_arm_section_t *arm_s,
			       subtilis_arm_reg_t dest, subtilis_arm_reg_t base,
			       size_t offset, subtilis_error_t *err)
{
	subtilis_arm_instr_t *instr;
	subtilis_fpa_stran_instr_t *fstran;

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

	fstran = &instr->operands.fpa_stran;
	fstran->ccode = SUBTILIS_ARM_CCODE_AL;
	fstran->dest = dest;
	fstran->base = base;
	fstran->offset = offset / 4;
	fstran->size = 8;
	fstran->pre_indexed = true;
	fstran->write_back = false;
	fstran->subtract = true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl $0x1f, %esi
movq %r8, %rdx
callq 0x4f73a
cmpl $0x0, (%r12)
jne 0x6cace
movl $0xe, 0x8(%rax)
movq %r15, 0x18(%rax)
movq %r14, 0x20(%rax)
shrl $0x2, %ebx
movb %bl, 0x28(%rax)
movq $0x8, 0x10(%rax)
movw $0x1, 0x29(%rax)
movb $0x1, 0x2b(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq