LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_and_const
static subtilis_exp_t *prv_and_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, subtilis_error_t *err)
{
	/* a2 must be const */

	prv_args_to_int(p, a1, a2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	a1->exp.ir_op.integer &= a2->exp.ir_op.integer;
	subtilis_exp_delete(a2);
	return a1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
callq 0x3956a
cmpl $0x0, (%r15)
je 0x380ff
xorl %ebx, %ebx
jmp 0x38114
movl 0x148(%r14), %eax
andl %eax, 0x148(%rbx)
movq %r14, %rdi
callq 0x2b166
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_eq_const
static subtilis_exp_t *prv_eq_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				    subtilis_exp_t *a2, subtilis_error_t *err)
{
	/* a2 must be const */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a1->exp.ir_op.integer =
		    (a1->exp.ir_op.real) == (double)a2->exp.ir_op.integer ? -1
									  : 0;
		a1->type.type = SUBTILIS_TYPE_CONST_INTEGER;
		break;
	case SUBTILIS_TYPE_CONST_REAL:
		a1->exp.ir_op.integer =
		    a1->exp.ir_op.real == a2->exp.ir_op.real ? -1 : 0;
		a1->type.type = SUBTILIS_TYPE_CONST_INTEGER;
		break;
	default:
		subtilis_exp_delete(a1);
		subtilis_exp_delete(a2);
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		return NULL;
	}

	subtilis_exp_delete(a2);
	return a1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movl (%rdx), %eax
testl %eax, %eax
je 0x381d1
cmpl $0x1, %eax
jne 0x38206
cvtsi2sdl 0x148(%r14), %xmm0
jmp 0x381da
movsd 0x148(%r14), %xmm0
cmpeqsd 0x148(%rbx), %xmm0
movq %xmm0, %rax
andl $0x1, %eax
movzbl %al, %eax
negl %eax
movl %eax, 0x148(%rbx)
movl $0x1, (%rbx)
movq %r14, %rdi
callq 0x2b166
jmp 0x38243
movq %rcx, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x2b166
movq %r14, %rdi
callq 0x2b166
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3d210(%rip), %r8      # 0x7543e
movq %r15, %rdi
movl $0x19, %esi
movl $0x161, %r9d            # imm = 0x161
callq 0x145c8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_sub_const
static subtilis_exp_t *prv_sub_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, bool swapped,
				     subtilis_error_t *err)
{
	/* a2 must be const */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a1->exp.ir_op.real =
		    a1->exp.ir_op.real - ((double)a2->exp.ir_op.integer);
		break;
	case SUBTILIS_TYPE_CONST_REAL:
		a1->exp.ir_op.real -= a2->exp.ir_op.real;
		break;
	default:
		subtilis_exp_delete(a1);
		subtilis_exp_delete(a2);
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		return NULL;
	}

	subtilis_exp_delete(a2);
	return a1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movl (%rdx), %eax
testl %eax, %eax
je 0x38327
cmpl $0x1, %eax
jne 0x3834a
movsd 0x148(%rbx), %xmm0
cvtsi2sdl 0x148(%r14), %xmm1
subsd %xmm1, %xmm0
jmp 0x38338
movsd 0x148(%rbx), %xmm0
subsd 0x148(%r14), %xmm0
movsd %xmm0, 0x148(%rbx)
movq %r14, %rdi
callq 0x2b166
jmp 0x38387
movq %r8, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x2b166
movq %r14, %rdi
callq 0x2b166
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3d0cc(%rip), %r8      # 0x7543e
movq %r15, %rdi
movl $0x19, %esi
movl $0x198, %r9d            # imm = 0x198
callq 0x145c8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_divr_const
static subtilis_exp_t *prv_divr_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				      subtilis_exp_t *a2, bool swapped,
				      subtilis_error_t *err)
{
	/* a2 must be const and a float64*/

	if (a2->exp.ir_op.real == 0) {
		subtilis_error_set_divide_by_zero(err, p->l->stream->name,
						  p->l->line);
		subtilis_exp_delete(a2);
		subtilis_exp_delete(a1);
		return NULL;
	}

	a1->exp.ir_op.real /= a2->exp.ir_op.real;
	subtilis_exp_delete(a2);
	return a1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movsd 0x148(%rdx), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x383ef
jp 0x383ef
movq (%rdi), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3d079(%rip), %rax     # 0x7543e
movq %r8, %rdi
movl $0x1a, %esi
movq %rax, %r8
movl $0x1a8, %r9d            # imm = 0x1A8
callq 0x145c8
movq %r14, %rdi
callq 0x2b166
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x3840b
movsd 0x148(%rbx), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x148(%rbx)
movq %r14, %rdi
callq 0x2b166
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_gt_const
static subtilis_exp_t *prv_gt_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				    subtilis_exp_t *a2, bool swapped,
				    subtilis_error_t *err)
{
	/* a2 must be const */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a1->exp.ir_op.integer =
		    a1->exp.ir_op.real > ((double)a2->exp.ir_op.integer) ? -1
									 : 0;
		a1->type.type = SUBTILIS_TYPE_CONST_INTEGER;
		break;
	case SUBTILIS_TYPE_CONST_REAL:
		a1->exp.ir_op.integer =
		    a1->exp.ir_op.real > a2->exp.ir_op.real ? -1 : 0;
		a1->type.type = SUBTILIS_TYPE_CONST_INTEGER;
		break;
	default:
		subtilis_exp_delete(a1);
		subtilis_exp_delete(a2);
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		return NULL;
	}

	subtilis_exp_delete(a2);
	return a1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movl (%rdx), %eax
testl %eax, %eax
je 0x38446
cmpl $0x1, %eax
jne 0x38475
movsd 0x148(%rbx), %xmm0
cvtsi2sdl 0x148(%r14), %xmm1
ucomisd %xmm1, %xmm0
jmp 0x38457
movsd 0x148(%rbx), %xmm0
ucomisd 0x148(%r14), %xmm0
seta %al
movzbl %al, %eax
negl %eax
movl %eax, 0x148(%rbx)
movl $0x1, (%rbx)
movq %r14, %rdi
callq 0x2b166
jmp 0x384b2
movq %r8, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x2b166
movq %r14, %rdi
callq 0x2b166
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3cfa1(%rip), %r8      # 0x7543e
movq %r15, %rdi
movl $0x19, %esi
movl $0x1c9, %r9d            # imm = 0x1C9
callq 0x145c8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_pow_const
static subtilis_exp_t *prv_pow_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, bool swapped,
				     subtilis_error_t *err)
{
	/* a2 must be const */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		if (a2->exp.ir_op.integer == 0) {
			a1->exp.ir_op.integer = 1;
			a1->type.type = SUBTILIS_TYPE_CONST_INTEGER;
			break;
		} else if (a2->exp.ir_op.integer == 1) {
			break;
		}
		a2->exp.ir_op.real = (double)a2->exp.ir_op.integer;
	case SUBTILIS_TYPE_CONST_REAL:
		if (a2->exp.ir_op.real == 0.0) {
			a1->exp.ir_op.integer = 1;
			a1->type.type = SUBTILIS_TYPE_CONST_INTEGER;
			break;
		} else if (a2->exp.ir_op.real == 1) {
			break;
		}
		a1->exp.ir_op.real =
		    pow(a1->exp.ir_op.real, a2->exp.ir_op.real);
		break;
	default:
		subtilis_exp_delete(a1);
		subtilis_exp_delete(a2);
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		return NULL;
	}

	subtilis_exp_delete(a2);
	return a1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movl (%rdx), %eax
cmpl $0x1, %eax
je 0x386ce
testl %eax, %eax
jne 0x3870a
movsd 0x148(%r14), %xmm1
jmp 0x386ef
movl 0x148(%r14), %eax
cmpl $0x1, %eax
je 0x3876a
testl %eax, %eax
je 0x386fb
cvtsi2sd %eax, %xmm1
movsd %xmm1, 0x148(%r14)
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x38749
jp 0x38749
movl $0x1, %eax
movl %eax, 0x148(%rbx)
movl %eax, (%rbx)
jmp 0x3876a
movq %r8, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x2b166
movq %r14, %rdi
callq 0x2b166
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3cd0c(%rip), %r8      # 0x7543e
movq %r15, %rdi
movl $0x19, %esi
movl $0x24a, %r9d            # imm = 0x24A
callq 0x145c8
xorl %ebx, %ebx
jmp 0x38772
ucomisd 0x3ccdf(%rip), %xmm1    # 0x75430
jne 0x38755
jnp 0x3876a
movsd 0x148(%rbx), %xmm0
callq 0x120d0
movsd %xmm0, 0x148(%rbx)
movq %r14, %rdi
callq 0x2b166
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_zero
static subtilis_exp_t *prv_zero(subtilis_parser_t *p,
				const subtilis_type_t *type,
				subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	size_t reg_num;

	op1.real = 0;
	reg_num = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_REAL, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;
	return subtilis_exp_new_real_var(reg_num, err);
}

// Assembly:
pushq %rbx
movq %rdx, %rbx
movq 0x48(%rdi), %rdi
movl $0x1c, %esi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x2be09
cmpl $0x0, (%rbx)
je 0x38822
xorl %eax, %eax
popq %rbx
retq
movl %eax, %edi
movq %rbx, %rsi
popq %rbx
jmp 0x2b77f
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_copy_var
static subtilis_exp_t *prv_copy_var(subtilis_parser_t *p, subtilis_exp_t *e,
				    subtilis_error_t *err)
{
	size_t reg;
	subtilis_exp_t *e2;

	reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVFP, e->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	e2 = subtilis_exp_new_real_var(reg, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	subtilis_exp_delete(e);
	return e2;

on_error:
	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
movl $0x1e, %esi
movq %r14, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
jne 0x38887
movl %eax, %edi
movq %r14, %rsi
callq 0x2b77f
cmpl $0x0, (%r14)
je 0x3889b
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x2b166
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
jmp 0x3888a
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_to_int32
static subtilis_exp_t *prv_to_int32(subtilis_parser_t *p, subtilis_exp_t *e,
				    subtilis_error_t *err)
{
	size_t reg;

	reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOV_FP_I32, e->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	e->type.type = SUBTILIS_TYPE_INTEGER;
	e->exp.ir_op.reg = reg;

	return e;

on_error:
	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
movl $0x52, %esi
movq %r14, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
je 0x38955
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x38962
movl $0x5, (%rbx)
movq %rax, 0x148(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_coerce_type
static subtilis_exp_t *prv_coerce_type(subtilis_parser_t *p, subtilis_exp_t *e,
				       const subtilis_type_t *type,
				       subtilis_error_t *err)
{
	switch (type->type) {
	case SUBTILIS_TYPE_CONST_REAL:
		e = subtilis_type_if_exp_to_var(p, e, err);
		break;
	case SUBTILIS_TYPE_CONST_INTEGER:
		e->type.type = SUBTILIS_TYPE_CONST_REAL;
		e->exp.ir_op.real = (double)e->exp.ir_op.integer;
		e = subtilis_type_if_exp_to_var(p, e, err);
		break;
	case SUBTILIS_TYPE_REAL:
		break;
	case SUBTILIS_TYPE_INTEGER:
		e = subtilis_type_if_to_int(p, e, err);
		break;
	case SUBTILIS_TYPE_BYTE:
		e = subtilis_type_if_to_byte(p, e, err);
		break;
	default:
		subtilis_error_set_bad_conversion(
		    err, subtilis_type_name(&e->type), subtilis_type_name(type),
		    p->l->stream->name, p->l->line);
		subtilis_exp_delete(e);
		return NULL;
	}

	return e;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r15
movl (%rdx), %eax
cmpq $0x6, %rax
ja 0x38b4f
leaq 0x3c89b(%rip), %rcx     # 0x753b4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, (%rbx)
cvtsi2sdl 0x148(%rbx), %xmm0
movsd %xmm0, 0x148(%rbx)
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x36119
movq %rbx, %rdi
callq 0x2f5ad
movq %rax, %r13
movq %r12, %rdi
callq 0x2f5ad
movq (%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0x3c8ca(%rip), %r10     # 0x7543e
movq %r14, %rdi
movl $0x45, %esi
movq %r13, %rdx
movq %rax, %rcx
pushq $0x390                  # imm = 0x390
pushq %r10
callq 0x143da
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x367cf
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x36852
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_unary_minus
static subtilis_exp_t *prv_unary_minus(subtilis_parser_t *p, subtilis_exp_t *e,
				       subtilis_error_t *err)
{
	size_t reg;
	subtilis_ir_operand_t operand;

	operand.real = 0;
	reg = subtilis_ir_section_add_instr(p->current,
					    SUBTILIS_OP_INSTR_RSUBI_REAL,
					    e->exp.ir_op, operand, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	e->exp.ir_op.reg = reg;

	return e;

on_error:

	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
movl $0x22, %esi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
je 0x38c0d
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x38c14
movq %rax, 0x148(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_divr
static subtilis_exp_t *prv_divr(subtilis_parser_t *p, subtilis_exp_t *a1,
				subtilis_exp_t *a2, bool swapped,
				subtilis_error_t *err)
{
	subtilis_op_instr_type_t real_var_imm;
	bool div_by_const = false;
	subtilis_exp_t *e;

	if (swapped) {
		real_var_imm = SUBTILIS_OP_INSTR_RDIVI_REAL;
	} else {
		div_by_const = a2->type.type == SUBTILIS_TYPE_CONST_REAL;
		if (div_by_const && (a2->exp.ir_op.real == 0.0)) {
			subtilis_error_set_divide_by_zero(
			    err, p->l->stream->name, p->l->line);
			subtilis_exp_delete(a1);
			subtilis_exp_delete(a2);
			return NULL;
		}
		real_var_imm = SUBTILIS_OP_INSTR_DIVI_REAL;
	}

	e = prv_commutative(p, a1, a2, real_var_imm, SUBTILIS_OP_INSTR_DIV_REAL,
			    err);

	if (!div_by_const) {
		subtilis_exp_handle_errors(p, err);
		if (err->type != SUBTILIS_ERROR_OK) {
			subtilis_exp_delete(e);
			return NULL;
		}
	}

	return e;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
testl %ecx, %ecx
je 0x38dbb
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movl $0x23, %ecx
jmp 0x38dcf
cmpl $0x0, (%r14)
je 0x38e0a
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movl $0x10, %ecx
movl $0x8, %r8d
movq %rbx, %r9
callq 0x395c2
movq %rax, %r14
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2b01f
cmpl $0x0, (%rbx)
je 0x38dfb
movq %r14, %rdi
callq 0x2b166
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movsd 0x148(%r14), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x38e4d
jp 0x38e4d
movq (%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3c60e(%rip), %r8      # 0x7543e
movq %rbx, %rdi
movl $0x1a, %esi
movl $0x47d, %r9d            # imm = 0x47D
callq 0x145c8
movq %r12, %rdi
callq 0x2b166
jmp 0x38df0
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movl $0x10, %ecx
movl $0x8, %r8d
movq %rbx, %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x395c2
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_abs
static subtilis_exp_t *prv_abs(subtilis_parser_t *p, subtilis_exp_t *e,
			       subtilis_error_t *err)
{
	size_t reg;

	reg = subtilis_ir_section_add_instr2(p->current, SUBTILIS_OP_INSTR_ABSR,
					     e->exp.ir_op, err);
	subtilis_exp_delete(e);

	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	e = subtilis_exp_new_real_var(reg, err);

	return e;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
movl $0x69, %esi
movq %rbx, %rcx
callq 0x2be09
movq %rax, %r14
movq %r15, %rdi
callq 0x2b166
cmpl $0x0, (%rbx)
je 0x3904d
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
movl %r14d, %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x2b77f
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_sgn
static subtilis_exp_t *prv_sgn(subtilis_parser_t *p, subtilis_exp_t *e,
			       subtilis_error_t *err)
{
	subtilis_ir_operand_t less_zero;
	subtilis_ir_operand_t gte_zero;
	size_t reg;
	size_t reg2;
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;

	less_zero.label = subtilis_ir_section_new_label(p->current);
	gte_zero.label = subtilis_ir_section_new_label(p->current);

	op2.real = 0.0;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_LTI_REAL, e->exp.ir_op, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op1.reg = reg;
	subtilis_ir_section_add_instr_reg(p->current, SUBTILIS_OP_INSTR_JMPC,
					  op1, less_zero, gte_zero, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_label(p->current, gte_zero.label, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	reg2 = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_GTI_REAL, e->exp.ir_op, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	e->exp.ir_op.reg = reg2;
	e->type.type = SUBTILIS_TYPE_INTEGER;

	e = subtilis_type_if_abs(p, e, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_type_if_assign_to_reg(p, reg, e, err);
	e = NULL;
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_label(p->current, less_zero.label, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	return subtilis_exp_new_int32_var(reg, err);

cleanup:

	subtilis_exp_delete(e);

	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x48(%rdi), %rdi
callq 0x2cc99
movq %rax, %r12
movq 0x48(%r15), %rdi
callq 0x2cc99
movq %rax, %rbp
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
movl $0x3e, %esi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
jne 0x3915b
movq %rax, %r13
movq 0x48(%r15), %rdi
movl $0x43, %esi
movq %rax, %rdx
movq %r12, %rcx
movq %rbp, %r8
movq %r14, %r9
callq 0x2bd42
cmpl $0x0, (%r14)
jne 0x3915b
movq 0x48(%r15), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x2cca6
cmpl $0x0, (%r14)
jne 0x3915b
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
movl $0x36, %esi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
jne 0x3915b
movq %rax, 0x148(%rbx)
movl $0x5, (%rbx)
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3746b
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x3915b
movq %r15, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x36292
cmpl $0x0, (%r14)
jne 0x39159
movq 0x48(%r15), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x2cca6
cmpl $0x0, (%r14)
je 0x39174
xorl %ebx, %ebx
movq %rbx, %rdi
callq 0x2b166
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r13d, %edi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2b71f
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_is_inf
static subtilis_exp_t *prv_is_inf(subtilis_parser_t *p, subtilis_exp_t *e,
				  subtilis_error_t *err)

{
	const subtilis_symbol_t *s;
	int32_t offset;
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;
	size_t reg;

	s = subtilis_symbol_table_create_local_buf(p->local_st, 8, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	prv_assign_to_mem(p, SUBTILIS_IR_REG_LOCAL, s->loc, e, err);
	e = NULL;
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	offset = (p->backend.caps & SUBTILIS_BACKEND_REVERSE_DOUBLES) ? 0 : 4;

	op1.reg = SUBTILIS_IR_REG_LOCAL;
	op2.integer = s->loc + offset;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_LOADO_I32, op1, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	/*
	 * Shift left by one to get rid of the sign bit.
	 */

	op1.reg = reg;
	op2.integer = 1;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_LSLI_I32, op1, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op1.reg = reg;
	op2.integer = 2047 << 21;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_EQI_I32, op1, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	return subtilis_exp_new_int32_var(reg, err);

cleanup:

	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x68(%rdi), %rdi
movl $0x8, %esi
callq 0x2e623
cmpl $0x0, (%rbx)
jne 0x3924f
movq %rax, %r12
movl (%rax), %r8d
movq 0x48(%r14), %rdi
movq 0x148(%r15), %rdx
movl $0x2, %ecx
movl $0x18, %esi
movq %rbx, %r9
callq 0x2bd42
movq %r15, %rdi
callq 0x2b166
cmpl $0x0, (%rbx)
jne 0x3924c
movl 0x8(%r14), %ecx
notl %ecx
shrl $0x3, %ecx
andl $0x4, %ecx
addl (%r12), %ecx
movq 0x48(%r14), %rdi
movl $0x2, %edx
movl $0x12, %esi
movq %rbx, %r8
callq 0x2bc8f
cmpl $0x0, (%rbx)
jne 0x3924c
movq 0x48(%r14), %rdi
movl $0x1, %ecx
movl $0x4c, %esi
movq %rax, %rdx
movq %rbx, %r8
callq 0x2bc8f
cmpl $0x0, (%rbx)
jne 0x3924c
movq 0x48(%r14), %rdi
movl $0xffe00000, %ecx       # imm = 0xFFE00000
movl $0x2d, %esi
movq %rax, %rdx
movq %rbx, %r8
callq 0x2bc8f
cmpl $0x0, (%rbx)
je 0x39265
xorl %r15d, %r15d
movq %r15, %rdi
callq 0x2b166
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl %eax, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2b71f
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_print
static void prv_print(subtilis_parser_t *p, subtilis_exp_t *e,
		      subtilis_error_t *err)
{
	const subtilis_symbol_t *s;
	subtilis_exp_t *sizee;
	size_t ptr;
	size_t size_reg;
	subtilis_ir_operand_t op0;
	subtilis_ir_operand_t op1;

	s = subtilis_symbol_table_create_named_local_buf(
	    p->local_st, "64_float_print_buf",
	    FLOAT64_TYPE_IF_FORMAT_BUFFER_SIZE, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	ptr = subtilis_reference_get_pointer(p, SUBTILIS_IR_REG_LOCAL, s->loc,
					     err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op0.reg = ptr;
	if (p->backend.caps & SUBTILIS_BACKEND_HAVE_REAL_TO_DEC) {
		size_reg = subtilis_ir_section_add_instr(
		    p->current, SUBTILIS_OP_INSTR_REALTODEC, e->exp.ir_op, op0,
		    err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
	} else {
		sizee = subtilis_builtin_ir_call_fp_to_str(p, e->exp.ir_op.reg,
							   op0.reg, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
		size_reg = sizee->exp.ir_op.reg;
		subtilis_exp_delete(sizee);
	}

	op1.reg = size_reg;
	subtilis_ir_section_add_instr_no_reg2(
	    p->current, SUBTILIS_OP_INSTR_PRINT_STR, op0, op1, err);

cleanup:

	subtilis_exp_delete(e);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x68(%rdi), %rdi
leaq 0x3c130(%rip), %rsi     # 0x75456
movl $0x18, %edx
movq %r14, %rcx
callq 0x2e6ad
cmpl $0x0, (%r14)
jne 0x39352
movq (%rax), %rdx
movl $0x2, %esi
movq %r15, %rdi
movq %r14, %rcx
callq 0x4d71f
cmpl $0x0, (%r14)
je 0x39363
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2b166
movq %rax, %r12
testb $0x2, 0x8(%r15)
jne 0x39399
movq 0x148(%rbx), %rsi
movq %r15, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x33899
cmpl $0x0, (%r14)
jne 0x39352
movq 0x148(%rax), %r13
movq %rax, %rdi
callq 0x2b166
jmp 0x393bd
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
movl $0x85, %esi
movq %r12, %rcx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
jne 0x39352
movq %rax, %r13
movq 0x48(%r15), %rdi
movl $0x1f, %esi
movq %r12, %rdx
movq %r13, %rcx
movq %r14, %r8
callq 0x2be2c
jmp 0x39352
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_swap_reg_reg
static void prv_swap_reg_reg(subtilis_parser_t *p, const subtilis_type_t *type,
			     size_t reg1, size_t reg2, subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;
	subtilis_ir_operand_t tmp;

	op1.reg = reg1;
	op2.reg = reg2;

	tmp.reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVFP, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_ir_section_add_instr_no_reg2(
	    p->current, SUBTILIS_OP_INSTR_MOVFP, op1, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_ir_section_add_instr_no_reg2(
	    p->current, SUBTILIS_OP_INSTR_MOVFP, op2, tmp, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r13
movq %rdi, %r15
movq 0x48(%rdi), %rdi
movl $0x1e, %esi
movq %r8, %rcx
callq 0x2be09
cmpl $0x0, (%rbx)
jne 0x39423
movq %rax, %r12
movq 0x48(%r15), %rdi
movl $0x1e, %esi
movq %r13, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x2be2c
cmpl $0x0, (%rbx)
je 0x3942d
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x48(%r15), %rdi
movl $0x1e, %esi
movq %r14, %rdx
movq %r12, %rcx
movq %rbx, %r8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2be2c
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_swap_reg_mem
static void prv_swap_reg_mem(subtilis_parser_t *p, const subtilis_type_t *type,
			     size_t reg1, size_t reg2, subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;
	subtilis_ir_operand_t zero;
	subtilis_ir_operand_t tmp;

	op1.reg = reg1;
	op2.reg = reg2;
	zero.integer = 0;

	tmp.reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVFP, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_ir_section_add_instr_reg(
	    p->current, SUBTILIS_OP_INSTR_LOADO_REAL, op1, op2, zero, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_ir_section_add_instr_reg(
	    p->current, SUBTILIS_OP_INSTR_STOREO_REAL, tmp, op2, zero, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r13
movq %rdi, %r15
movq 0x48(%rdi), %rdi
movl $0x1e, %esi
movq %r8, %rcx
callq 0x2be09
cmpl $0x0, (%rbx)
jne 0x3949a
movq %rax, %r12
movq 0x48(%r15), %rdi
movl $0x13, %esi
movq %r13, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x2bd42
cmpl $0x0, (%rbx)
je 0x394a4
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x48(%r15), %rdi
movl $0x18, %esi
movq %r12, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
movq %rbx, %r9
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2bd42
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_swap_mem_mem
static void prv_swap_mem_mem(subtilis_parser_t *p, const subtilis_type_t *type,
			     size_t reg1, size_t reg2, subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;
	subtilis_ir_operand_t zero;
	subtilis_ir_operand_t tmp;
	subtilis_ir_operand_t tmp2;

	op1.reg = reg1;
	op2.reg = reg2;
	zero.integer = 0;

	tmp.reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_LOADO_REAL, op1, zero, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	tmp2.reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_LOADO_REAL, op2, zero, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_ir_section_add_instr_reg(
	    p->current, SUBTILIS_OP_INSTR_STOREO_REAL, tmp, op2, zero, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_ir_section_add_instr_reg(
	    p->current, SUBTILIS_OP_INSTR_STOREO_REAL, tmp2, op1, zero, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r12
movq %rdx, %r14
movq %rdi, %r15
movq 0x48(%rdi), %rdi
movl $0x13, %esi
xorl %ecx, %ecx
callq 0x2bc8f
cmpl $0x0, (%rbx)
jne 0x39533
movq %rax, %r13
movq 0x48(%r15), %rdi
movl $0x13, %esi
movq %r12, %rdx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x2bc8f
cmpl $0x0, (%rbx)
jne 0x39533
movq %rax, %rbp
movq 0x48(%r15), %rdi
movl $0x18, %esi
movq %r13, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x2bd42
cmpl $0x0, (%rbx)
je 0x39542
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x48(%r15), %rdi
movl $0x18, %esi
movq %rbp, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
movq %rbx, %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2bd42
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_args_to_int
static void prv_args_to_int(subtilis_parser_t *p, subtilis_exp_t *a1,
			    subtilis_exp_t *a2, subtilis_error_t *err)
{
	a1 = subtilis_type_if_to_int(p, a1, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(a2);
		return;
	}

	a2 = subtilis_type_if_to_int(p, a2, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(a1);
		return;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movq %rdi, %r15
movq %rcx, %rdx
callq 0x367cf
cmpl $0x0, (%r14)
jne 0x395a3
movq %rax, %r12
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x367cf
cmpl $0x0, (%r14)
movq %r12, %rbx
je 0x395b6
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2b166
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_commutative
static subtilis_exp_t *prv_commutative(subtilis_parser_t *p, subtilis_exp_t *a1,
				       subtilis_exp_t *a2,
				       subtilis_op_instr_type_t real_var_imm,
				       subtilis_op_instr_type_t real_var_var,
				       subtilis_error_t *err)
{
	size_t reg;

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a2->exp.ir_op.real = (double)a2->exp.ir_op.integer;
	case SUBTILIS_TYPE_CONST_REAL:
		reg = subtilis_ir_section_add_instr(p->current, real_var_imm,
						    a1->exp.ir_op,
						    a2->exp.ir_op, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a1->exp.ir_op.reg = reg;
		break;
	case SUBTILIS_TYPE_BYTE:
		a2 = subtilis_type_if_to_int(p, a2, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
	case SUBTILIS_TYPE_INTEGER:
		reg = subtilis_ir_section_add_instr2(
		    p->current, SUBTILIS_OP_INSTR_MOV_I32_FP, a2->exp.ir_op,
		    err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a2->type.type = SUBTILIS_TYPE_REAL;
		a2->exp.ir_op.reg = reg;
	case SUBTILIS_TYPE_REAL:
		reg = subtilis_ir_section_add_instr(p->current, real_var_var,
						    a1->exp.ir_op,
						    a2->exp.ir_op, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a1->exp.ir_op.reg = reg;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		break;
	}

	subtilis_exp_delete(a2);
	return a1;

on_error:
	subtilis_exp_delete(a1);
	subtilis_exp_delete(a2);
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %r15
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movl (%rdx), %eax
cmpq $0x6, %rax
ja 0x395fa
movl %r8d, %ebp
leaq 0x3bde8(%rip), %rdx     # 0x753d0
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x148(%r14), %rax
jmp 0x39644
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3be32(%rip), %r8      # 0x7543e
movq %r15, %rdi
movl $0x19, %esi
movl $0x3d7, %r9d            # imm = 0x3D7
callq 0x145c8
jmp 0x396d5
movq 0x148(%r14), %rcx
jmp 0x3969e
cvtsi2sdl 0x148(%r14), %xmm0
movsd %xmm0, 0x148(%r14)
movq %xmm0, %rax
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movl %ecx, %esi
movq %rax, %rcx
jmp 0x396ac
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x367cf
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x396ba
movq 0x48(%r12), %rdi
movq 0x148(%r14), %rdx
movl $0x51, %esi
movq %r15, %rcx
callq 0x2be09
cmpl $0x0, (%r15)
jne 0x396ba
movq %rax, %rcx
movl $0x4, (%r14)
movq %rax, 0x148(%r14)
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movl %ebp, %esi
movq %r15, %r8
callq 0x2bc8f
cmpl $0x0, (%r15)
je 0x396ce
movq %rbx, %rdi
callq 0x2b166
movq %r14, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x396dd
movq %rax, 0x148(%rbx)
movq %r14, %rdi
callq 0x2b166
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/float64_type.c
// Function: prv_commutative_logical
static subtilis_exp_t *prv_commutative_logical(
	subtilis_parser_t *p, subtilis_exp_t *a1, subtilis_exp_t *a2,
	subtilis_op_instr_type_t real_var_imm,
	subtilis_op_instr_type_t real_var_var, subtilis_error_t *err)

/* clang-format on */
{
	size_t reg;

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a2->exp.ir_op.real = (double)a2->exp.ir_op.integer;
	case SUBTILIS_TYPE_CONST_REAL:
		reg = subtilis_ir_section_add_instr(p->current, real_var_imm,
						    a1->exp.ir_op,
						    a2->exp.ir_op, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a1->exp.ir_op.reg = reg;
		a1->type.type = SUBTILIS_TYPE_INTEGER;
		break;
	case SUBTILIS_TYPE_BYTE:
		a2 = subtilis_type_if_to_int(p, a2, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
	case SUBTILIS_TYPE_INTEGER:
		reg = subtilis_ir_section_add_instr2(
		    p->current, SUBTILIS_OP_INSTR_MOV_I32_FP, a2->exp.ir_op,
		    err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a2->exp.ir_op.reg = reg;
	case SUBTILIS_TYPE_REAL:
		reg = subtilis_ir_section_add_instr(p->current, real_var_var,
						    a1->exp.ir_op,
						    a2->exp.ir_op, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a1->exp.ir_op.reg = reg;
		a1->type.type = SUBTILIS_TYPE_INTEGER;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		break;
	}

	subtilis_exp_delete(a2);
	return a1;

on_error:
	subtilis_exp_delete(a1);
	subtilis_exp_delete(a2);
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %r15
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movl (%rdx), %eax
cmpq $0x6, %rax
ja 0x39721
movl %r8d, %ebp
leaq 0x3bcdd(%rip), %rdx     # 0x753ec
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x148(%r14), %rax
jmp 0x3976b
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3bd0b(%rip), %r8      # 0x7543e
movq %r15, %rdi
movl $0x19, %esi
movl $0x410, %r9d            # imm = 0x410
callq 0x145c8
jmp 0x397fb
movq 0x148(%r14), %rcx
jmp 0x397be
cvtsi2sdl 0x148(%r14), %xmm0
movsd %xmm0, 0x148(%r14)
movq %xmm0, %rax
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movl %ecx, %esi
movq %rax, %rcx
jmp 0x397cc
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x367cf
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x397da
movq 0x48(%r12), %rdi
movq 0x148(%r14), %rdx
movl $0x51, %esi
movq %r15, %rcx
callq 0x2be09
cmpl $0x0, (%r15)
jne 0x397da
movq %rax, %rcx
movq %rax, 0x148(%r14)
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movl %ebp, %esi
movq %r15, %r8
callq 0x2bc8f
cmpl $0x0, (%r15)
je 0x397ee
movq %rbx, %rdi
callq 0x2b166
movq %r14, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x39803
movq %rax, 0x148(%rbx)
movl $0x5, (%rbx)
movq %r14, %rdi
callq 0x2b166
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_exp_to_var_const
static subtilis_exp_t *prv_exp_to_var_const(subtilis_parser_t *p,
					    subtilis_exp_t *e,
					    subtilis_error_t *err)
{
	size_t reg;
	subtilis_exp_t *e2;

	reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, e->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	e2 = subtilis_exp_new_int32_var(reg, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	subtilis_exp_delete(e);
	return e2;

on_error:

	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
movl $0x1b, %esi
movq %r14, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
jne 0x3986a
movl %eax, %edi
movq %r14, %rsi
callq 0x2b71f
cmpl $0x0, (%r14)
je 0x3987e
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x2b166
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
jmp 0x3986d
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_assign_to_mem_const
static void prv_assign_to_mem_const(subtilis_parser_t *p, size_t mem_reg,
				    size_t loc, subtilis_exp_t *e,
				    subtilis_error_t *err)
{
	subtilis_ir_operand_t op0;
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;

	op0.reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, e->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op1.reg = mem_reg;
	op2.integer = (int32_t)loc;

	subtilis_ir_section_add_instr_reg(
	    p->current, SUBTILIS_OP_INSTR_STOREO_I32, op0, op1, op2, err);

cleanup:

	subtilis_exp_delete(e);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %r14
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r13
movq 0x48(%rdi), %rdi
movq 0x148(%rcx), %rdx
movl $0x1b, %esi
movq %r8, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
jne 0x39911
movq 0x48(%r13), %rdi
movl %r12d, %r8d
movl $0x17, %esi
movq %rax, %rdx
movq %r15, %rcx
movq %r14, %r9
callq 0x2bd42
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2b166
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_to_string_const
static subtilis_exp_t *prv_to_string_const(subtilis_parser_t *p,
					   subtilis_exp_t *e,
					   subtilis_error_t *err)
{
	char buf[32];
	size_t len = sprintf(buf, "%" PRIi32, e->exp.ir_op.integer) + 1;

	e->type.type = SUBTILIS_TYPE_CONST_STRING;
	subtilis_buffer_init(&e->exp.str, 128);
	subtilis_buffer_append(&e->exp.str, buf, len, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(e);
		return NULL;
	}

	return e;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %rbx
leaq 0x148(%rsi), %r15
movl 0x148(%rsi), %edx
leaq 0x3a515(%rip), %rsi     # 0x73e7c
movq %rsp, %r12
movq %r12, %rdi
xorl %eax, %eax
callq 0x12280
incl %eax
movslq %eax, %r13
movl $0x3, (%rbx)
movl $0x80, %esi
movq %r15, %rdi
callq 0x149f4
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x14ae8
cmpl $0x0, (%r14)
je 0x399ad
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_to_hex_string_const
static subtilis_exp_t *prv_to_hex_string_const(subtilis_parser_t *p,
					       subtilis_exp_t *e,
					       subtilis_error_t *err)
{
	char buf[32];
	size_t len = sprintf(buf, "%" PRIX32, e->exp.ir_op.integer) + 1;

	e->type.type = SUBTILIS_TYPE_CONST_STRING;
	subtilis_buffer_init(&e->exp.str, 128);
	subtilis_buffer_append(&e->exp.str, buf, len, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(e);
		return NULL;
	}

	return e;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %rbx
leaq 0x148(%rsi), %r15
movl 0x148(%rsi), %edx
leaq 0x3bb1b(%rip), %rsi     # 0x75500
movq %rsp, %r12
movq %r12, %rdi
xorl %eax, %eax
callq 0x12280
incl %eax
movslq %eax, %r13
movl $0x3, (%rbx)
movl $0x80, %esi
movq %r15, %rdi
callq 0x149f4
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x14ae8
cmpl $0x0, (%r14)
je 0x39a2b
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_coerce_type_const
static subtilis_exp_t *prv_coerce_type_const(subtilis_parser_t *p,
					     subtilis_exp_t *e,
					     const subtilis_type_t *type,
					     subtilis_error_t *err)
{
	switch (type->type) {
	case SUBTILIS_TYPE_CONST_REAL:
		e->type.type = SUBTILIS_TYPE_CONST_REAL;
		e->exp.ir_op.real = (double)e->exp.ir_op.integer;
		break;
	case SUBTILIS_TYPE_CONST_INTEGER:
		break;
	case SUBTILIS_TYPE_CONST_BYTE:
		e->type.type = SUBTILIS_TYPE_CONST_BYTE;
		break;
	case SUBTILIS_TYPE_REAL:
		e = subtilis_type_if_exp_to_var(p, e, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return NULL;
		e = subtilis_type_if_to_float64(p, e, err);
		break;
	case SUBTILIS_TYPE_INTEGER:
		e = subtilis_type_if_exp_to_var(p, e, err);
		break;
	case SUBTILIS_TYPE_BYTE:
		e = subtilis_type_if_exp_to_var(p, e, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return NULL;
		e->type.type = SUBTILIS_TYPE_BYTE;
		break;
	default:
		subtilis_error_set_bad_conversion(
		    err, subtilis_type_name(&e->type), subtilis_type_name(type),
		    p->l->stream->name, p->l->line);
		subtilis_exp_delete(e);
		return NULL;
	}

	return e;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r15
movl (%rdx), %eax
cmpq $0x6, %rax
ja 0x39aae
leaq 0x3ba0c(%rip), %rcx     # 0x7546c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, (%rbx)
cvtsi2sdl 0x148(%rbx), %xmm0
movsd %xmm0, 0x148(%rbx)
jmp 0x39b11
movl $0x2, (%rbx)
jmp 0x39b11
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x36119
cmpl $0x0, (%r14)
jne 0x39b0f
movq %rax, %rbx
movl $0x6, (%rax)
jmp 0x39b11
movq %rbx, %rdi
callq 0x2f5ad
movq %rax, %r13
movq %r12, %rdi
callq 0x2f5ad
movq (%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0x3ba30(%rip), %r10     # 0x75503
movq %r14, %rdi
movl $0x45, %esi
movq %r13, %rdx
movq %rax, %rcx
pushq $0xce
pushq %r10
callq 0x143da
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x2b166
jmp 0x39b0f
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x36119
cmpl $0x0, (%r14)
je 0x39b35
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x36119
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3691a
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_add_const
static subtilis_exp_t *prv_add_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, bool swapped,
				     subtilis_error_t *err)
{
	/* a2 must be const */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a1->exp.ir_op.integer += a2->exp.ir_op.integer;
		break;
	case SUBTILIS_TYPE_CONST_REAL:
		a1->exp.ir_op.real =
		    ((double)a1->exp.ir_op.integer) + a2->exp.ir_op.real;
		a1->type.type = SUBTILIS_TYPE_CONST_REAL;
		break;
	default:
		subtilis_exp_delete(a1);
		subtilis_exp_delete(a2);
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		return NULL;
	}

	subtilis_exp_delete(a2);
	return a1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movl (%rdx), %eax
testl %eax, %eax
je 0x39b7e
cmpl $0x1, %eax
jne 0x39ba7
movl 0x148(%r14), %eax
addl %eax, 0x148(%rbx)
jmp 0x39b9d
cvtsi2sdl 0x148(%rbx), %xmm0
addsd 0x148(%r14), %xmm0
movsd %xmm0, 0x148(%rbx)
movl $0x0, (%rbx)
movq %r14, %rdi
callq 0x2b166
jmp 0x39be4
movq %r8, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x2b166
movq %r14, %rdi
callq 0x2b166
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3b934(%rip), %r8      # 0x75503
movq %r15, %rdi
movl $0x19, %esi
movl $0xf1, %r9d
callq 0x145c8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_mul_const
static subtilis_exp_t *prv_mul_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, subtilis_error_t *err)
{
	/* a2 must be const */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a1->exp.ir_op.integer *= a2->exp.ir_op.integer;
		break;
	case SUBTILIS_TYPE_CONST_REAL:
		a1->exp.ir_op.real =
		    ((double)a1->exp.ir_op.integer) * a2->exp.ir_op.real;
		a1->type.type = SUBTILIS_TYPE_CONST_REAL;
		break;
	default:
		subtilis_exp_delete(a1);
		subtilis_exp_delete(a2);
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		return NULL;
	}

	subtilis_exp_delete(a2);
	return a1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movl (%rdx), %eax
testl %eax, %eax
je 0x39c22
cmpl $0x1, %eax
jne 0x39c4b
movl 0x148(%rbx), %eax
imull 0x148(%r14), %eax
movl %eax, 0x148(%rbx)
jmp 0x39c41
cvtsi2sdl 0x148(%rbx), %xmm0
mulsd 0x148(%r14), %xmm0
movsd %xmm0, 0x148(%rbx)
movl $0x0, (%rbx)
movq %r14, %rdi
callq 0x2b166
jmp 0x39c88
movq %rcx, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x2b166
movq %r14, %rdi
callq 0x2b166
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3b890(%rip), %r8      # 0x75503
movq %r15, %rdi
movl $0x19, %esi
movl $0x10b, %r9d            # imm = 0x10B
callq 0x145c8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_and_const
static subtilis_exp_t *prv_and_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, subtilis_error_t *err)
{
	/* a2 must be const */

	a2 = subtilis_type_if_to_int(p, a2, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(a1);
		return NULL;
	}

	a1->exp.ir_op.integer &= a2->exp.ir_op.integer;
	subtilis_exp_delete(a2);
	return a1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rsi, %rbx
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x367cf
cmpl $0x0, (%r14)
je 0x39cb9
movq %rbx, %rax
xorl %ebx, %ebx
jmp 0x39cc5
movl 0x148(%rax), %ecx
andl %ecx, 0x148(%rbx)
movq %rax, %rdi
callq 0x2b166
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq