LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_div_const
static subtilis_exp_t *prv_div_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, subtilis_error_t *err)
{
	/*
	 * Oddly, a2 may not be const as we don't currently swap operands
	 * for integer division as the ARM backend has no implementation
	 * for rdiv.  Some day we'll have to as some CPUs have native
	 * support for integer division, but for the time being we'll have to
	 * handle the unusual case of having to deal with a variable here.
	 * a2 is at least guaranteed to be an integer.
	 */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		if (a2->exp.ir_op.integer == 0) {
			subtilis_error_set_divide_by_zero(
			    err, p->l->stream->name, p->l->line);
			goto on_error;
		}
		a1->exp.ir_op.integer /= a2->exp.ir_op.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:
		prv_div_mod_const_var(p, a1, a2, SUBTILIS_OP_INSTR_DIV_I32,
				      err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

on_error:

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

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x39f9e
cmpl $0x5, %eax
je 0x39fb5
cmpl $0x1, %eax
jne 0x39ff8
movl 0x148(%r14), %ecx
testl %ecx, %ecx
je 0x39fd3
movl 0x148(%rbx), %eax
cltd
idivl %ecx
movl %eax, 0x148(%rbx)
jmp 0x3a002
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x367cf
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x39ff8
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movl $0x6, %ecx
movq %r15, %r8
callq 0x3b7cd
cmpl $0x0, (%r15)
jne 0x39ff8
jmp 0x3a002
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3b51e(%rip), %r8      # 0x75503
movq %r15, %rdi
movl $0x1a, %esi
movl $0x20d, %r9d            # imm = 0x20D
callq 0x145c8
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
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/int32_type.c
// Function: prv_lsl_const
static subtilis_exp_t *prv_lsl_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, subtilis_error_t *err)
{
	/* a2 may not be const as we don't order the arguments */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a1->exp.ir_op.integer = a1->exp.ir_op.integer
					<< (a2->exp.ir_op.integer & 63);
		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:
		prv_shift_const_var(p, a1, a2, SUBTILIS_OP_INSTR_LSL_I32, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

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

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x3a58a
cmpl $0x5, %eax
je 0x3a5a1
cmpl $0x1, %eax
jne 0x3a5bf
movb 0x148(%r14), %cl
shll %cl, 0x148(%rbx)
jmp 0x3a5ee
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x367cf
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x3a5e4
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movl $0x4b, %ecx
movq %r15, %r8
callq 0x3b9f2
cmpl $0x0, (%r15)
jne 0x3a5e4
jmp 0x3a5ee
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3af32(%rip), %r8      # 0x75503
movq %r15, %rdi
movl $0x19, %esi
movl $0x320, %r9d            # imm = 0x320
callq 0x145c8
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
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/int32_type.c
// Function: prv_lsr_const
static subtilis_exp_t *prv_lsr_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, subtilis_error_t *err)
{
	/* a2 may not be const as we don't order the arguments */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a1->exp.ir_op.integer =
		    (int32_t)((uint32_t)a1->exp.ir_op.integer >>
			      ((uint32_t)a2->exp.ir_op.integer & 63));
		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:
		prv_shift_const_var(p, a1, a2, SUBTILIS_OP_INSTR_LSR_I32, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

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

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x3a639
cmpl $0x5, %eax
je 0x3a650
cmpl $0x1, %eax
jne 0x3a66e
movb 0x148(%r14), %cl
shrl %cl, 0x148(%rbx)
jmp 0x3a69d
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x367cf
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x3a693
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movl $0x4d, %ecx
movq %r15, %r8
callq 0x3b9f2
cmpl $0x0, (%r15)
jne 0x3a693
jmp 0x3a69d
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3ae83(%rip), %r8      # 0x75503
movq %r15, %rdi
movl $0x19, %esi
movl $0x343, %r9d            # imm = 0x343
callq 0x145c8
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
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/int32_type.c
// Function: prv_asr_const
static subtilis_exp_t *prv_asr_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, subtilis_error_t *err)
{
	/* a2 may not be const as we don't order the arguments */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a1->exp.ir_op.integer =
		    a1->exp.ir_op.integer >> (a2->exp.ir_op.integer & 63);
		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:
		prv_shift_const_var(p, a1, a2, SUBTILIS_OP_INSTR_ASR_I32, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

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

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x3a6e8
cmpl $0x5, %eax
je 0x3a6ff
cmpl $0x1, %eax
jne 0x3a71d
movb 0x148(%r14), %cl
sarl %cl, 0x148(%rbx)
jmp 0x3a74c
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x367cf
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x3a742
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movl $0x4f, %ecx
movq %r15, %r8
callq 0x3b9f2
cmpl $0x0, (%r15)
jne 0x3a742
jmp 0x3a74c
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3add4(%rip), %r8      # 0x75503
movq %r15, %rdi
movl $0x19, %esi
movl $0x365, %r9d            # imm = 0x365
callq 0x145c8
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
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/int32_type.c
// Function: prv_sgn_const
static subtilis_exp_t *prv_sgn_const(subtilis_parser_t *p, subtilis_exp_t *e,
				     subtilis_error_t *err)
{
	if (e->exp.ir_op.integer < 0)
		e->exp.ir_op.integer = -1;
	else if (e->exp.ir_op.integer > 0)
		e->exp.ir_op.integer = 1;

	return e;
}

// Assembly:
movq %rsi, %rax
cmpl $0x0, 0x148(%rsi)
js 0x3a78e
movl $0x1, %ecx
jne 0x3a793
retq
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl %ecx, 0x148(%rax)
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_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.integer = 0;
	reg_num = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;
	return subtilis_exp_new_int32_var(reg_num, err);
}

// Assembly:
pushq %rbx
movq %rdx, %rbx
movq 0x48(%rdi), %rdi
movl $0x1b, %esi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x2be09
cmpl $0x0, (%rbx)
je 0x3a7ce
xorl %eax, %eax
popq %rbx
retq
movl %eax, %edi
movq %rbx, %rsi
popq %rbx
jmp 0x2b71f
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_top_bit
static subtilis_exp_t *prv_top_bit(subtilis_parser_t *p, subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	size_t reg_num;

	op1.integer = (int32_t)0x80000000;
	reg_num = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;
	return subtilis_exp_new_int32_var(reg_num, err);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
movl $0x80000000, %edx       # imm = 0x80000000
movl $0x1b, %esi
movq %rbx, %rcx
callq 0x2be09
cmpl $0x0, (%rbx)
je 0x3a7fc
xorl %eax, %eax
popq %rbx
retq
movl %eax, %edi
movq %rbx, %rsi
popq %rbx
jmp 0x2b71f
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_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_MOV,
					     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 $0x1d, %esi
movq %r14, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
jne 0x3a865
movl %eax, %edi
movq %r14, %rsi
callq 0x2b71f
cmpl $0x0, (%r14)
je 0x3a879
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x2b166
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
jmp 0x3a868
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_to_float64
static subtilis_exp_t *prv_to_float64(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_I32_FP, e->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	e->type.type = SUBTILIS_TYPE_REAL;
	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 $0x51, %esi
movq %r14, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
je 0x3a93d
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x3a94a
movl $0x4, (%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/int32_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->type.type = SUBTILIS_TYPE_CONST_INTEGER;
		e->exp.ir_op.integer = (int32_t)e->exp.ir_op.real;
		e = subtilis_type_if_exp_to_var(p, e, err);
		break;
	case SUBTILIS_TYPE_CONST_INTEGER:
		e = subtilis_type_if_exp_to_var(p, e, err);
		break;
	case SUBTILIS_TYPE_REAL:
		e = subtilis_type_if_to_float64(p, e, err);
		break;
	case SUBTILIS_TYPE_BYTE:
		e->type.type = SUBTILIS_TYPE_BYTE;
		break;
	case SUBTILIS_TYPE_INTEGER:
		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 0x3a9df
leaq 0x3aadd(%rip), %rcx     # 0x75488
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, (%rbx)
cvttsd2si 0x148(%rbx), %eax
movl %eax, 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 0x3aaff(%rip), %r10     # 0x75503
movq %r14, %rdi
movl $0x45, %esi
movq %r13, %rdx
movq %rax, %rcx
pushq $0x4e9                  # imm = 0x4E9
pushq %r10
callq 0x143da
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x3aa4b
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3691a
movl $0x6, (%rbx)
movq %rbx, %rax
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_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.integer = 0;
	reg = subtilis_ir_section_add_instr(p->current,
					    SUBTILIS_OP_INSTR_RSUBI_I32,
					    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 $0x21, %esi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
je 0x3aa8e
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x3aa95
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/int32_type.c
// Function: prv_and
static subtilis_exp_t *prv_and(subtilis_parser_t *p, subtilis_exp_t *a1,
			       subtilis_exp_t *a2, subtilis_error_t *err)
{
	a2 = subtilis_type_if_to_int(p, a2, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(a1);
		return NULL;
	}

	/* last two parameters are not used. */

	return prv_commutative(
	    p, a1, a2, SUBTILIS_OP_INSTR_ANDI_I32, SUBTILIS_OP_INSTR_AND_I32,
	    SUBTILIS_OP_INSTR_ANDI_I32, SUBTILIS_OP_INSTR_AND_I32, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x367cf
cmpl $0x0, (%rbx)
je 0x3ab0d
movq %r14, %rdi
callq 0x2b166
xorl %eax, %eax
jmp 0x3ab33
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
movl $0x25, %ecx
movl $0x24, %r8d
movl $0x25, %r9d
pushq %rbx
pushq $0x24
callq 0x3bbb2
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_or
static subtilis_exp_t *prv_or(subtilis_parser_t *p, subtilis_exp_t *a1,
			      subtilis_exp_t *a2, subtilis_error_t *err)
{
	a2 = subtilis_type_if_to_int(p, a2, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(a1);
		return NULL;
	}

	/* last two parameters are not used. */

	return prv_commutative(
	    p, a1, a2, SUBTILIS_OP_INSTR_ORI_I32, SUBTILIS_OP_INSTR_OR_I32,
	    SUBTILIS_OP_INSTR_ORI_I32, SUBTILIS_OP_INSTR_OR_I32, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x367cf
cmpl $0x0, (%rbx)
je 0x3ab63
movq %r14, %rdi
callq 0x2b166
xorl %eax, %eax
jmp 0x3ab89
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
movl $0x27, %ecx
movl $0x26, %r8d
movl $0x27, %r9d
pushq %rbx
pushq $0x26
callq 0x3bbb2
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_not
static subtilis_exp_t *prv_not(subtilis_parser_t *p, subtilis_exp_t *e,
			       subtilis_error_t *err)
{
	size_t reg;
	subtilis_ir_operand_t operand;

	operand.integer = 0;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_NOT_I32, 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 $0x2a, %esi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
je 0x3abc5
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x3abcc
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/int32_type.c
// Function: prv_eor
static subtilis_exp_t *prv_eor(subtilis_parser_t *p, subtilis_exp_t *a1,
			       subtilis_exp_t *a2, subtilis_error_t *err)
{
	a2 = subtilis_type_if_to_int(p, a2, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(a1);
		return NULL;
	}

	/* last two parameters are not used. */

	return prv_commutative(
	    p, a1, a2, SUBTILIS_OP_INSTR_EORI_I32, SUBTILIS_OP_INSTR_EOR_I32,
	    SUBTILIS_OP_INSTR_EORI_I32, SUBTILIS_OP_INSTR_EOR_I32, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x367cf
cmpl $0x0, (%rbx)
je 0x3ac01
movq %r14, %rdi
callq 0x2b166
xorl %eax, %eax
jmp 0x3ac27
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
movl $0x29, %ecx
movl $0x28, %r8d
movl $0x29, %r9d
pushq %rbx
pushq $0x28
callq 0x3bbb2
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_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;
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;

	op2.integer = 31;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_ASRI_I32, e->exp.ir_op, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;
	op2.reg = reg;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_ADD_I32, e->exp.ir_op, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;
	op1.reg = reg;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_EOR_I32, op1, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;
	e->exp.ir_op.reg = reg;

	return e;

cleanup:

	subtilis_exp_delete(e);

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
movl $0x1f, %ecx
movl $0x50, %esi
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
jne 0x3b427
movq %rax, %r12
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
xorl %esi, %esi
movq %rax, %rcx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
jne 0x3b427
movq 0x48(%r15), %rdi
movl $0x28, %esi
movq %rax, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
je 0x3b440
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, 0x148(%rbx)
jmp 0x3b431
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_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.integer = 0;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_LTI_I32, 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_I32, e->exp.ir_op, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	e->exp.ir_op.reg = reg2;
	e = prv_abs(p, e, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	prv_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 $0x3d, %esi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
jne 0x3b541
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 0x3b541
movq 0x48(%r15), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x2cca6
cmpl $0x0, (%r14)
jne 0x3b541
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
movl $0x35, %esi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
jne 0x3b541
movq %rax, 0x148(%rbx)
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3b3b5
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x3b541
movq %r15, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x3a87e
cmpl $0x0, (%r14)
jne 0x3b53f
movq 0x48(%r15), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x2cca6
cmpl $0x0, (%r14)
je 0x3b55a
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/int32_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, "32_int_print_buf", 16, 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_I32_TO_DEC) {
		size_reg = subtilis_ir_section_add_instr(
		    p->current, SUBTILIS_OP_INSTR_I32TODEC, e->exp.ir_op, op0,
		    err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
	} else {
		sizee = subtilis_builtin_ir_call_dec_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 0x39f00(%rip), %rsi     # 0x7551f
movl $0x10, %edx
movq %r14, %rcx
callq 0x2e6ad
cmpl $0x0, (%r14)
jne 0x3b64b
movq (%rax), %rdx
movl $0x2, %esi
movq %r15, %rdi
movq %r14, %rcx
callq 0x4d71f
cmpl $0x0, (%r14)
je 0x3b65c
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2b166
movq %rax, %r12
testb $0x4, 0x8(%r15)
jne 0x3b692
movq 0x148(%rbx), %rsi
movq %r15, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x31cf1
cmpl $0x0, (%r14)
jne 0x3b64b
movq 0x148(%rax), %r13
movq %rax, %rdi
callq 0x2b166
jmp 0x3b6b6
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
movl $0x84, %esi
movq %r12, %rcx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
jne 0x3b64b
movq %rax, %r13
movq 0x48(%r15), %rdi
movl $0x1f, %esi
movq %r12, %rdx
movq %r13, %rcx
movq %r14, %r8
callq 0x2be2c
jmp 0x3b64b
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_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_MOV, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

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

	subtilis_ir_section_add_instr_no_reg2(p->current, SUBTILIS_OP_INSTR_MOV,
					      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 $0x1d, %esi
movq %r8, %rcx
callq 0x2be09
cmpl $0x0, (%rbx)
jne 0x3b71c
movq %rax, %r12
movq 0x48(%r15), %rdi
movl $0x1d, %esi
movq %r13, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x2be2c
cmpl $0x0, (%rbx)
je 0x3b726
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x48(%r15), %rdi
movl $0x1d, %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/int32_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_MOV, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

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

	subtilis_ir_section_add_instr_reg(
	    p->current, SUBTILIS_OP_INSTR_STOREO_I32, 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 $0x1d, %esi
movq %r8, %rcx
callq 0x2be09
cmpl $0x0, (%rbx)
jne 0x3b793
movq %rax, %r12
movq 0x48(%r15), %rdi
movl $0x12, %esi
movq %r13, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x2bd42
cmpl $0x0, (%rbx)
je 0x3b79d
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x48(%r15), %rdi
movl $0x17, %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/int32_type.c
// Function: prv_div_mod_const_var
static void prv_div_mod_const_var(subtilis_parser_t *p, subtilis_exp_t *a1,
				  subtilis_exp_t *a2,
				  subtilis_op_instr_type_t type,
				  subtilis_error_t *err)
{
	a1->type.type = SUBTILIS_TYPE_INTEGER;
	a1->exp.ir_op.reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, a1->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	a1->exp.ir_op.reg =
	    prv_div_mod_vars(p, a1->exp.ir_op, a2->exp.ir_op, type, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r15
movl $0x5, (%rsi)
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
movl $0x1b, %esi
movq %r8, %rcx
callq 0x2be09
movq %rax, 0x148(%rbx)
cmpl $0x0, (%r14)
jne 0x3b82d
movq 0x148(%r12), %rdx
movq %r15, %rdi
movq %rax, %rsi
movl %ebp, %ecx
movq %r14, %r8
callq 0x3b836
movq %rax, 0x148(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_shift_const_var
static void prv_shift_const_var(subtilis_parser_t *p, subtilis_exp_t *a1,
				subtilis_exp_t *a2,
				subtilis_op_instr_type_t op_type,
				subtilis_error_t *err)
{
	subtilis_ir_operand_t op;
	size_t reg;

	op.reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, a1->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	reg = subtilis_ir_section_add_instr(p->current, op_type, op,
					    a2->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	a1->exp.ir_op.reg = reg;
	a1->type.type = SUBTILIS_TYPE_INTEGER;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
movl $0x1b, %esi
movq %r8, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
jne 0x3ba52
movq 0x48(%r12), %rdi
movq 0x148(%r15), %rcx
movl %ebp, %esi
movq %rax, %rdx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
jne 0x3ba52
movq %rax, 0x148(%rbx)
movl $0x5, (%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_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 in_var_imm,
				       subtilis_op_instr_type_t in_var_var,
				       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:
		reg = subtilis_ir_section_add_instr(
		    p->current, in_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_CONST_REAL:
		prv_commutative_const_real(p, a1, a2, real_var_imm,
					   &subtilis_type_real, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		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_instr(
		    p->current, in_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;
	case SUBTILIS_TYPE_REAL:
		prv_commutative_real(p, a1, a2, real_var_var,
				     &subtilis_type_real, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		goto on_error;
	}

	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 %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movq 0x38(%rsp), %r15
movl (%rdx), %eax
cmpq $0x6, %rax
ja 0x3bc00
movl %r8d, %ebp
leaq 0x398ca(%rip), %rdx     # 0x754a4
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
leaq 0x38be6(%rip), %r8      # 0x747d0
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movl %r9d, %ecx
movq %r15, %r9
callq 0x3bcce
jmp 0x3bc43
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x398f1(%rip), %r8      # 0x75503
movq %r15, %rdi
movl $0x19, %esi
movl $0x55f, %r9d            # imm = 0x55F
callq 0x145c8
jmp 0x3bc9f
movl 0x30(%rsp), %ecx
leaq 0x38b9e(%rip), %r8      # 0x747d0
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %r9
callq 0x3bd5f
cmpl $0x0, (%r15)
jne 0x3bc9f
jmp 0x3bcba
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movq 0x148(%r14), %rax
movl %ecx, %esi
movq %rax, %rcx
jmp 0x3bc91
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x367cf
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x3bc9f
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movq 0x148(%r14), %rcx
movl %ebp, %esi
movq %r15, %r8
callq 0x2bc8f
cmpl $0x0, (%r15)
je 0x3bcb3
movq %rbx, %rdi
callq 0x2b166
movq %r14, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x3bcc2
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/int32_type.c
// Function: prv_commutative_const_real
static void prv_commutative_const_real(subtilis_parser_t *p, subtilis_exp_t *a1,
				       subtilis_exp_t *a2,
				       subtilis_op_instr_type_t real_var_imm,
				       const subtilis_type_t *result_type,
				       subtilis_error_t *err)
{
	size_t reg;

	reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOV_I32_FP, a1->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	subtilis_type_copy(&a1->type, result_type, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	a1->exp.ir_op.reg = reg;
	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)
		return;
	a1->exp.ir_op.reg = reg;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %r8, %rbp
movl %ecx, 0x4(%rsp)
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
movl $0x51, %esi
movq %r9, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
jne 0x3bd50
movq %rax, %r13
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x2f78a
cmpl $0x0, (%r14)
jne 0x3bd50
movq %r13, 0x148(%rbx)
movq 0x48(%r12), %rdi
movq 0x148(%r15), %rcx
movl 0x4(%rsp), %esi
movq %r13, %rdx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
jne 0x3bd50
movq %rax, 0x148(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/int32_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 in_var_imm,
	subtilis_op_instr_type_t in_var_var,
	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:
		reg = subtilis_ir_section_add_instr(
		    p->current, in_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_CONST_REAL:
		prv_commutative_const_real(p, a1, a2, real_var_imm,
					   &subtilis_type_integer, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		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_instr(
		    p->current, in_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;
	case SUBTILIS_TYPE_REAL:
		prv_commutative_real(p, a1, a2, real_var_var,
				     &subtilis_type_integer, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		goto on_error;
	}

	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 %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movq 0x38(%rsp), %r15
movl (%rdx), %eax
cmpq $0x6, %rax
ja 0x3be3e
movl %r8d, %ebp
leaq 0x396a8(%rip), %rdx     # 0x754c0
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
leaq 0x38af0(%rip), %r8      # 0x74918
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movl %r9d, %ecx
movq %r15, %r9
callq 0x3bcce
jmp 0x3be81
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x396b3(%rip), %r8      # 0x75503
movq %r15, %rdi
movl $0x19, %esi
movl $0x599, %r9d            # imm = 0x599
callq 0x145c8
jmp 0x3bedd
movl 0x30(%rsp), %ecx
leaq 0x38aa8(%rip), %r8      # 0x74918
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %r9
callq 0x3bd5f
cmpl $0x0, (%r15)
jne 0x3bedd
jmp 0x3bef8
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movq 0x148(%r14), %rax
movl %ecx, %esi
movq %rax, %rcx
jmp 0x3becf
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x367cf
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x3bedd
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movq 0x148(%r14), %rcx
movl %ebp, %esi
movq %r15, %r8
callq 0x2bc8f
cmpl $0x0, (%r15)
je 0x3bef1
movq %rbx, %rdi
callq 0x2b166
movq %r14, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x3bf00
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/int32_type.c
// Function: prv_shift
static subtilis_exp_t *prv_shift(subtilis_parser_t *p, subtilis_exp_t *a1,
				 subtilis_exp_t *a2,
				 subtilis_op_instr_type_t op_type,
				 subtilis_op_instr_type_t opi_type,
				 subtilis_error_t *err)
{
	size_t reg;

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		reg = subtilis_ir_section_add_instr(
		    p->current, opi_type, 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->type.type = SUBTILIS_TYPE_INTEGER;
	case SUBTILIS_TYPE_INTEGER:
		reg = subtilis_ir_section_add_instr(
		    p->current, op_type, 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_assertion_failed(err);
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

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

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %r9, %r15
movq %rdx, %rbx
movq %rsi, %r14
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x3bf42
cmpl $0x5, %eax
je 0x3bf48
cmpl $0x1, %eax
jne 0x3bf76
movq 0x48(%rdi), %rdi
movq 0x148(%r14), %rdx
movq 0x148(%rbx), %rcx
movl %r8d, %esi
jmp 0x3bf5f
movl $0x5, (%rbx)
movq 0x48(%rdi), %rdi
movq 0x148(%r14), %rdx
movq 0x148(%rbx), %rax
movl %ecx, %esi
movq %rax, %rcx
movq %r15, %r8
callq 0x2bc8f
cmpl $0x0, (%r15)
jne 0x3bf8f
movq %rax, 0x148(%r14)
jmp 0x3bf9a
leaq 0x39586(%rip), %rdx     # 0x75503
movq %r15, %rdi
movl $0xf, %esi
movl $0x7c0, %ecx            # imm = 0x7C0
callq 0x145a4
movq %r14, %rdi
callq 0x2b166
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x2b166
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/byte_type_if.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.integer = 0;
	reg_num = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;
	return subtilis_exp_new_byte_var(reg_num, err);
}

// Assembly:
pushq %rbx
movq %rdx, %rbx
movq 0x48(%rdi), %rdi
movl $0x1b, %esi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x2be09
cmpl $0x0, (%rbx)
je 0x3bfd2
xorl %eax, %eax
popq %rbx
retq
movl %eax, %edi
movq %rbx, %rsi
popq %rbx
jmp 0x2b74f
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/byte_type_if.c
// Function: prv_top_bit
static subtilis_exp_t *prv_top_bit(subtilis_parser_t *p, subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	size_t reg_num;

	op1.integer = (int32_t)0x80;
	reg_num = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;
	return subtilis_exp_new_byte_var(reg_num, err);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
movl $0x80, %edx
movl $0x1b, %esi
movq %rbx, %rcx
callq 0x2be09
cmpl $0x0, (%rbx)
je 0x3c000
xorl %eax, %eax
popq %rbx
retq
movl %eax, %edi
movq %rbx, %rsi
popq %rbx
jmp 0x2b74f
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/byte_type_if.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_SIGNX_8_TO_32, 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 $0x97, %esi
movq %r14, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
je 0x3c14d
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
jmp 0x3c15a
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/byte_type_if.c
// Function: prv_zerox_from_type
static subtilis_exp_t *prv_zerox_from_type(subtilis_parser_t *p,
					   subtilis_exp_t *e,
					   const subtilis_type_t *type,
					   subtilis_error_t *err)
{
	if (type->type != SUBTILIS_TYPE_INTEGER) {
		subtilis_error_set_bad_zero_extend(
		    err, subtilis_type_name(&e->type), subtilis_type_name(type),
		    p->l->stream->name, p->l->line);
		subtilis_exp_delete(e);
		return NULL;
	}

	return prv_zerox(p, e, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rsi, %rbx
movq %rdi, %r15
cmpl $0x5, (%rdx)
jne 0x3c194
movq 0x48(%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3c8ee
movq %rdx, %r12
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 0x39374(%rip), %r10     # 0x75530
movq %r14, %rdi
movl $0x46, %esi
movq %r13, %rdx
movq %rax, %rcx
pushq $0x100                  # imm = 0x100
pushq %r10
callq 0x143da
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x2b166
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/byte_type_if.c
// Function: prv_to_float64
static subtilis_exp_t *prv_to_float64(subtilis_parser_t *p, subtilis_exp_t *e,
				      subtilis_error_t *err)
{
	size_t reg;

	e = prv_to_int32(p, e, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

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

	return e;

on_error:

	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %r15
callq 0x3c119
cmpl $0x0, (%r14)
jne 0x3c231
movq %rax, %rbx
movq 0x48(%r15), %rdi
movq 0x148(%rax), %rdx
movl $0x51, %esi
movq %r14, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
je 0x3c23c
movq %rbx, %rdi
callq 0x2b166
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movl $0x4, (%rbx)
movq %rax, 0x148(%rbx)
jmp 0x3c233
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/byte_type_if.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_REAL:
		e = prv_to_float64(p, e, err);
		break;
	case SUBTILIS_TYPE_BYTE:
		break;
	case SUBTILIS_TYPE_INTEGER:
		e = prv_to_int32(p, e, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return NULL;
		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 %rsi, %rbx
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x3c35d
movq %rcx, %r14
movq %rdi, %r15
cmpl $0x5, %eax
je 0x3c2f3
cmpl $0x4, %eax
jne 0x3c30d
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3c1f2
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3c119
xorl %ebx, %ebx
cmpl $0x0, (%r14)
cmoveq %rax, %rbx
jmp 0x3c35d
movq %rdx, %r12
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 0x391fb(%rip), %r10     # 0x75530
movq %r14, %rdi
movl $0x45, %esi
movq %r13, %rdx
movq %rax, %rcx
pushq $0x179                  # imm = 0x179
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
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/byte_type_if.c
// Function: prv_div
static subtilis_exp_t *prv_div(subtilis_parser_t *p, subtilis_exp_t *a1,
			       subtilis_exp_t *a2, subtilis_error_t *err)
{
	a1 = prv_to_int32(p, a1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;

	return subtilis_type_int32.div(p, a1, a2, err);

on_error:

	subtilis_exp_delete(a2);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %r14
movq %rdx, %rbx
movq %rdi, %r15
movq %rcx, %rdx
callq 0x3c119
cmpl $0x0, (%r14)
je 0x3c50f
movq %rbx, %rdi
callq 0x2b166
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x6a33a(%rip), %rcx     # 0xa6850
movq 0x190(%rcx), %r8
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq %r14, %rcx
popq %rbx
popq %r14
popq %r15
jmpq *%r8
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/byte_type_if.c
// Function: prv_mod
static subtilis_exp_t *prv_mod(subtilis_parser_t *p, subtilis_exp_t *a1,
			       subtilis_exp_t *a2, subtilis_error_t *err)
{
	a1 = prv_to_int32(p, a1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;

	return subtilis_type_int32.mod(p, a1, a2, err);

on_error:

	subtilis_exp_delete(a2);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %r14
movq %rdx, %rbx
movq %rdi, %r15
movq %rcx, %rdx
callq 0x3c119
cmpl $0x0, (%r14)
je 0x3c55d
movq %rbx, %rdi
callq 0x2b166
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x6a2ec(%rip), %rcx     # 0xa6850
movq 0x198(%rcx), %r8
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq %r14, %rcx
popq %rbx
popq %r14
popq %r15
jmpq *%r8
// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/byte_type_if.c
// Function: prv_lsl
static subtilis_exp_t *prv_lsl(subtilis_parser_t *p, subtilis_exp_t *a1,
			       subtilis_exp_t *a2, subtilis_error_t *err)
{
	a1->type.type = SUBTILIS_TYPE_INTEGER;
	a1 = subtilis_type_int32.lsl(p, a1, a2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;
	a1->type.type = SUBTILIS_TYPE_BYTE;
	return a1;
}

// Assembly:
pushq %rbx
movq %rcx, %rbx
movl $0x5, (%rsi)
leaq 0x6a243(%rip), %rax     # 0xa6850
callq *0x1d0(%rax)
cmpl $0x0, (%rbx)
je 0x3c61c
xorl %eax, %eax
jmp 0x3c622
movl $0x6, (%rax)
popq %rbx
retq