LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 0x36272
cmpl $0x1, %eax
jne 0x362a7
cvtsi2sdl 0x148(%r14), %xmm0
jmp 0x3627b
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 0x29d88
jmp 0x362e2
movq %rcx, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3911f(%rip), %r8      # 0x6f3ee
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x161, %r9d            # imm = 0x161
callq 0x142c0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x363c4
cmpl $0x1, %eax
jne 0x363e7
movsd 0x148(%rbx), %xmm0
cvtsi2sdl 0x148(%r14), %xmm1
subsd %xmm1, %xmm0
jmp 0x363d5
movsd 0x148(%rbx), %xmm0
subsd 0x148(%r14), %xmm0
movsd %xmm0, 0x148(%rbx)
movq %r14, %rdi
callq 0x29d88
jmp 0x36422
movq %r8, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x38fdf(%rip), %r8      # 0x6f3ee
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x198, %r9d            # imm = 0x198
callq 0x142c0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x36488
jp 0x36488
movq (%rdi), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x38f8e(%rip), %rax     # 0x6f3ee
pushq $0x1a
popq %rsi
movq %r8, %rdi
movq %rax, %r8
movl $0x1a8, %r9d            # imm = 0x1A8
callq 0x142c0
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x364a4
movsd 0x148(%rbx), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x148(%rbx)
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x364df
cmpl $0x1, %eax
jne 0x3650e
movsd 0x148(%rbx), %xmm0
cvtsi2sdl 0x148(%r14), %xmm1
ucomisd %xmm1, %xmm0
jmp 0x364f0
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 0x29d88
jmp 0x36549
movq %r8, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x38eb8(%rip), %r8      # 0x6f3ee
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x1c9, %r9d            # imm = 0x1C9
callq 0x142c0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x3675f
testl %eax, %eax
jne 0x36799
movsd 0x148(%r14), %xmm1
jmp 0x36780
movl 0x148(%r14), %eax
cmpl $0x1, %eax
je 0x367f7
testl %eax, %eax
je 0x3678c
cvtsi2sd %eax, %xmm1
movsd %xmm1, 0x148(%r14)
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x367d6
jp 0x367d6
pushq $0x1
popq %rax
movl %eax, 0x148(%rbx)
movl %eax, (%rbx)
jmp 0x367f7
movq %r8, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x38c2d(%rip), %r8      # 0x6f3ee
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x24a, %r9d            # imm = 0x24A
callq 0x142c0
xorl %ebx, %ebx
jmp 0x367ff
ucomisd 0x38c02(%rip), %xmm1    # 0x6f3e0
jne 0x367e2
jnp 0x367f7
movsd 0x148(%rbx), %xmm0
callq 0x120d0
movsd %xmm0, 0x148(%rbx)
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1c
popq %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x2a981
cmpl $0x0, (%rbx)
je 0x368ab
xorl %eax, %eax
popq %rbx
retq
movl %eax, %edi
movq %rbx, %rsi
popq %rbx
jmp 0x2a358
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1e
popq %rsi
movq %r14, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
jne 0x3690c
movl %eax, %edi
movq %r14, %rsi
callq 0x2a358
cmpl $0x0, (%r14)
je 0x36920
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x29d88
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
jmp 0x3690f
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x52
popq %rsi
movq %r14, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
je 0x369d2
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x369df
movl $0x5, (%rbx)
movq %rax, 0x148(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x36bbd
leaq 0x387da(%rip), %rcx     # 0x6f364
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
andl $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 0x3415f
movq %rbx, %rdi
callq 0x2dcbb
movq %rax, %r13
movq %r12, %rdi
callq 0x2dcbb
movq (%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0x3880c(%rip), %r10     # 0x6f3ee
pushq $0x45
popq %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %rax, %rcx
pushq $0x390                  # imm = 0x390
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
movq %rbx, %rdi
callq 0x29d88
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 0x347d5
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x34854
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x22
popq %rsi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
je 0x36c75
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x36c7c
movq %rax, 0x148(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
testl %ecx, %ecx
je 0x36e02
pushq $0x23
popq %rcx
jmp 0x36e0b
pushq $0x10
popq %rcx
cmpl $0x0, (%r14)
je 0x36e3c
xorl %ebp, %ebp
pushq $0x8
popq %r8
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %r9
callq 0x37593
movq %rax, %r14
testb %bpl, %bpl
jne 0x36e87
movq %r12, %rdi
movq %rbx, %rsi
callq 0x29c49
cmpl $0x0, (%rbx)
jne 0x36e7c
jmp 0x36e87
movsd 0x148(%r14), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x36e93
jp 0x36e93
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3858b(%rip), %r8      # 0x6f3ee
pushq $0x1a
popq %rsi
movq %rbx, %rdi
movl $0x47d, %r9d            # imm = 0x47D
callq 0x142c0
movq %r15, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %bpl
jmp 0x36e0d
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x69
popq %rsi
movq %rbx, %rcx
callq 0x2a981
movq %rax, %r14
movq %r15, %rdi
callq 0x29d88
cmpl $0x0, (%rbx)
je 0x37064
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
movl %r14d, %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x2a358
// File: /workspace/github_c_makefile_star2_O2/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 0x2b774
movq %rax, %r12
movq 0x48(%r15), %rdi
callq 0x2b774
movq %rax, %rbp
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
pushq $0x3e
popq %rsi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x3716c
movq %rax, %r13
movq 0x48(%r15), %rdi
pushq $0x43
popq %rsi
movq %rax, %rdx
movq %r12, %rcx
movq %rbp, %r8
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x3716c
movq 0x48(%r15), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
jne 0x3716c
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
pushq $0x36
popq %rsi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x3716c
movq %rax, 0x148(%rbx)
movl $0x5, (%rbx)
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x35590
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x3716c
movq %r15, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x342ce
cmpl $0x0, (%r14)
jne 0x3716a
movq 0x48(%r15), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
je 0x37185
xorl %ebx, %ebx
movq %rbx, %rdi
callq 0x29d88
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 0x2a336
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x8
popq %rsi
callq 0x2ce13
cmpl $0x0, (%rbx)
jne 0x3723c
movq %rax, %r12
movq (%rax), %rdx
pushq $0x2
popq %rsi
movq %r14, %rdi
movq %r15, %rcx
movq %rbx, %r8
callq 0x3694e
cmpl $0x0, (%rbx)
jne 0x37239
movl 0x8(%r14), %ecx
notl %ecx
shrl $0x3, %ecx
andl $0x4, %ecx
addl (%r12), %ecx
movq 0x48(%r14), %rdi
pushq $0x12
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x37239
movq 0x48(%r14), %rdi
pushq $0x4c
popq %rsi
pushq $0x1
popq %rcx
movq %rax, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x37239
movq 0x48(%r14), %rdi
pushq $0x2d
popq %rsi
movl $0xffe00000, %ecx       # imm = 0xFFE00000
movq %rax, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
je 0x37252
xorl %r15d, %r15d
movq %r15, %rdi
callq 0x29d88
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 0x2a336
// File: /workspace/github_c_makefile_star2_O2/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 0x380f5(%rip), %rsi     # 0x6f406
pushq $0x18
popq %rdx
movq %r14, %rcx
callq 0x2ce99
cmpl $0x0, (%r14)
jne 0x37339
movq (%rax), %rdx
pushq $0x2
popq %rsi
movq %r15, %rdi
movq %r14, %rcx
callq 0x4ab28
cmpl $0x0, (%r14)
je 0x3734a
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x29d88
movq %rax, %r12
testb $0x2, 0x8(%r15)
jne 0x37380
movq 0x148(%rbx), %rsi
movq %r15, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x31b63
cmpl $0x0, (%r14)
jne 0x37339
movq 0x148(%rax), %r13
movq %rax, %rdi
callq 0x29d88
jmp 0x373a4
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
movl $0x85, %esi
movq %r12, %rcx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x37339
movq %rax, %r13
movq 0x48(%r15), %rdi
pushq $0x1f
popq %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %r14, %r8
callq 0x2a9a4
jmp 0x37339
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1e
popq %rsi
movq %r8, %rcx
callq 0x2a981
cmpl $0x0, (%rbx)
jne 0x37404
movq %rax, %r12
movq 0x48(%r15), %rdi
pushq $0x1e
popq %rsi
movq %r13, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x2a9a4
cmpl $0x0, (%rbx)
je 0x3740e
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x48(%r15), %rdi
pushq $0x1e
popq %rsi
movq %r14, %rdx
movq %r12, %rcx
movq %rbx, %r8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2a9a4
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1e
popq %rsi
movq %r8, %rcx
callq 0x2a981
cmpl $0x0, (%rbx)
jne 0x37475
movq %rax, %r12
movq 0x48(%r15), %rdi
pushq $0x13
popq %rsi
movq %r13, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
je 0x3747f
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x48(%r15), %rdi
pushq $0x18
popq %rsi
movq %r12, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
movq %rbx, %r9
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2a8c1
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x13
popq %rsi
xorl %ecx, %ecx
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x37506
movq %rax, %r13
movq 0x48(%r15), %rdi
pushq $0x13
popq %rsi
movq %r12, %rdx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x37506
movq %rax, %rbp
movq 0x48(%r15), %rdi
pushq $0x18
popq %rsi
movq %r13, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
je 0x37515
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x48(%r15), %rdi
pushq $0x18
popq %rsi
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 0x2a8c1
// File: /workspace/github_c_makefile_star2_O2/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 0x347d5
cmpl $0x0, (%r14)
jne 0x37574
movq %rax, %r12
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x347d5
cmpl $0x0, (%r14)
movq %r12, %rbx
je 0x37587
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x29d88
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x375cb
movl %r8d, %ebp
leaq 0x37dc7(%rip), %rdx     # 0x6f380
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x148(%r14), %rax
jmp 0x37613
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x37e11(%rip), %r8      # 0x6f3ee
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x3d7, %r9d            # imm = 0x3D7
callq 0x142c0
jmp 0x376a2
movq 0x148(%r14), %rcx
jmp 0x3766b
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 0x37679
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x347d5
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x37687
movq 0x48(%r12), %rdi
movq 0x148(%r14), %rdx
pushq $0x51
popq %rsi
movq %r15, %rcx
callq 0x2a981
cmpl $0x0, (%r15)
jne 0x37687
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 0x2a819
cmpl $0x0, (%r15)
je 0x3769b
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x376aa
movq %rax, 0x148(%rbx)
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x376ee
movl %r8d, %ebp
leaq 0x37cc0(%rip), %rdx     # 0x6f39c
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x148(%r14), %rax
jmp 0x37736
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x37cee(%rip), %r8      # 0x6f3ee
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x410, %r9d            # imm = 0x410
callq 0x142c0
jmp 0x377c4
movq 0x148(%r14), %rcx
jmp 0x37787
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 0x37795
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x347d5
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x377a3
movq 0x48(%r12), %rdi
movq 0x148(%r14), %rdx
pushq $0x51
popq %rsi
movq %r15, %rcx
callq 0x2a981
cmpl $0x0, (%r15)
jne 0x377a3
movq %rax, %rcx
movq %rax, 0x148(%r14)
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movl %ebp, %esi
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
je 0x377b7
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x377cc
movq %rax, 0x148(%rbx)
movl $0x5, (%rbx)
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1b
popq %rsi
movq %r14, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
jne 0x3782e
movl %eax, %edi
movq %r14, %rsi
callq 0x2a336
cmpl $0x0, (%r14)
je 0x37842
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x29d88
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
jmp 0x37831
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1b
popq %rsi
movq %r8, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
jne 0x378cf
movq 0x48(%r13), %rdi
movl %r12d, %r8d
pushq $0x17
popq %rsi
movq %rax, %rdx
movq %r15, %rcx
movq %r14, %r9
callq 0x2a8c1
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x29d88
// File: /workspace/github_c_makefile_star2_O2/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 0x3650a(%rip), %rsi     # 0x6de2c
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 0x146a8
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x14795
cmpl $0x0, (%r14)
je 0x37968
movq %rbx, %rdi
callq 0x29d88
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_O2/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 0x37aec(%rip), %rsi     # 0x6f48c
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 0x146a8
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x14795
cmpl $0x0, (%r14)
je 0x379e6
movq %rbx, %rdi
callq 0x29d88
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_O2/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 0x37a63
leaq 0x37a01(%rip), %rcx     # 0x6f41c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
andl $0x0, (%rbx)
cvtsi2sdl 0x148(%rbx), %xmm0
movsd %xmm0, 0x148(%rbx)
jmp 0x37ac2
movl $0x2, (%rbx)
jmp 0x37ac2
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3415f
cmpl $0x0, (%r14)
jne 0x37ac0
movq %rax, %rbx
movl $0x6, (%rax)
jmp 0x37ac2
movq %rbx, %rdi
callq 0x2dcbb
movq %rax, %r13
movq %r12, %rdi
callq 0x2dcbb
movq (%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0x37a07(%rip), %r10     # 0x6f48f
pushq $0x45
popq %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %rax, %rcx
pushq $0xce
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
movq %rbx, %rdi
callq 0x29d88
jmp 0x37ac0
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3415f
cmpl $0x0, (%r14)
je 0x37ae6
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 0x3415f
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x34916
// File: /workspace/github_c_makefile_star2_O2/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 0x37b2f
cmpl $0x1, %eax
jne 0x37b55
movl 0x148(%r14), %eax
addl %eax, 0x148(%rbx)
jmp 0x37b4b
cvtsi2sdl 0x148(%rbx), %xmm0
addsd 0x148(%r14), %xmm0
movsd %xmm0, 0x148(%rbx)
andl $0x0, (%rbx)
movq %r14, %rdi
callq 0x29d88
jmp 0x37b90
movq %r8, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x37912(%rip), %r8      # 0x6f48f
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0xf1, %r9d
callq 0x142c0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x37bce
cmpl $0x1, %eax
jne 0x37bf4
movl 0x148(%rbx), %eax
imull 0x148(%r14), %eax
movl %eax, 0x148(%rbx)
jmp 0x37bea
cvtsi2sdl 0x148(%rbx), %xmm0
mulsd 0x148(%r14), %xmm0
movsd %xmm0, 0x148(%rbx)
andl $0x0, (%rbx)
movq %r14, %rdi
callq 0x29d88
jmp 0x37c2f
movq %rcx, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x37873(%rip), %r8      # 0x6f48f
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x10b, %r9d            # imm = 0x10B
callq 0x142c0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x347d5
cmpl $0x0, (%r14)
je 0x37c60
movq %rbx, %rax
xorl %ebx, %ebx
jmp 0x37c6c
movl 0x148(%rax), %ecx
andl %ecx, 0x148(%rbx)
movq %rax, %rdi
callq 0x29d88
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq