// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_priority4
static subtilis_arm_exp_val_t *prv_priority4(subtilis_arm_ass_context_t *c,
					     subtilis_error_t *err)
{
	const char *tbuf;
	subtilis_arm_exp_val_t *e1 = NULL;
	subtilis_arm_exp_val_t *e2 = NULL;
	subtilis_ass_int_fn_t int_fn;
	subtilis_ass_real_fn_t real_fn;
	bool plus;

	e1 = prv_priority3(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;
	tbuf = subtilis_token_get_text(c->t);

	/*
	 * Special case for number too big.
	 */

	if ((c->t->type == SUBTILIS_TOKEN_INTEGER) &&
	    (c->t->tok.integer == -2147483648)) {
		subtilis_error_set_number_too_long(
		    err, tbuf, c->l->stream->name, c->l->line);
		goto cleanup;
	}

	while (c->t->type == SUBTILIS_TOKEN_OPERATOR) {
		plus = false;
		tbuf = subtilis_token_get_text(c->t);

		if (!strcmp(tbuf, "+")) {
			int_fn = prv_add_int32_fn;
			real_fn = prv_add_real_fn;
			plus = true;
		} else if (!strcmp(tbuf, "-")) {
			int_fn = prv_sub_int32_fn;
			real_fn = prv_sub_real_fn;
		} else {
			break;
		}

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

		e2 = prv_priority3(c, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;

		if (plus && e1->type == SUBTILIS_ARM_EXP_TYPE_STRING &&
		    e2->type == SUBTILIS_ARM_EXP_TYPE_STRING)
			e1 = prv_strcat(e1, e2, err);
		else
			e1 =
			    prv_binary_numeric(c, e1, e2, int_fn, real_fn, err);
		e2 = NULL;
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
	}

	return e1;

cleanup:

	subtilis_arm_exp_val_free(e2);
	subtilis_arm_exp_val_free(e1);
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
callq 0x6a1d9
movq %rax, %r12
cmpl $0x0, (%r14)
je 0x69f83
xorl %ebp, %ebp
movq %rbp, %rdi
callq 0x69167
movq %r12, %rdi
callq 0x69167
xorl %r12d, %r12d
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r15), %rdi
callq 0x12ad0
movq 0x10(%r15), %rcx
cmpl $0x4, (%rcx)
jne 0x69fd3
xorl %edx, %edx
cmpl 0x8(%rcx), %edx
jno 0x69fd3
movq 0x8(%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xcfe1(%rip), %r10      # 0x76f90
leaq 0x9e3f(%rip), %rcx      # 0x73df5
movq %r14, %rdi
movl $0x8, %esi
movq %rax, %rdx
pushq $0x70b                  # imm = 0x70B
pushq %r10
callq 0x1442a
addq $0x10, %rsp
jmp 0x69f5c
movq 0x10(%r15), %rdi
cmpl $0x2, (%rdi)
jne 0x69f71
movq %r12, (%rsp)
callq 0x12ad0
movq %rax, %rbp
movq %rax, %rdi
leaq 0x98e3(%rip), %rsi      # 0x738d5
callq 0x12160
movl %eax, %ebx
leaq 0x35b(%rip), %r13       # 0x6a35b
leaq 0x358(%rip), %r12       # 0x6a35f
testl %eax, %eax
je 0x6a030
movq %rbp, %rdi
leaq 0xca14(%rip), %rsi      # 0x76a29
callq 0x12160
leaq 0x343(%rip), %r13       # 0x6a364
leaq 0x341(%rip), %r12       # 0x6a369
testl %eax, %eax
jne 0x6a0de
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movq %r14, %rdx
callq 0x12eda
cmpl $0x0, (%r14)
jne 0x6a0d3
movq %r15, %rdi
movq %r14, %rsi
callq 0x6a1d9
movq %rax, %rbp
cmpl $0x0, (%r14)
jne 0x6a0d5
testl %ebx, %ebx
movq (%rsp), %rsi
jne 0x6a0ad
cmpl $0x8, (%rsi)
jne 0x6a0ad
cmpl $0x8, (%rbp)
jne 0x6a0ad
movq %rsi, %r12
leaq 0x8(%rsi), %rbx
movq %rbx, %rdi
callq 0x14d7f
movq %rbp, %rsi
addq $0x8, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x14bb6
movq %rbp, %rdi
callq 0x69167
cmpl $0x0, (%r14)
je 0x6a0c4
movq %r12, %rdi
callq 0x69167
xorl %r12d, %r12d
jmp 0x6a0c4
movq %r15, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq %r12, %r8
movq %r14, %r9
callq 0x6a36e
movq %rax, %r12
cmpl $0x0, (%r14)
je 0x69fd3
jmp 0x69f5c
xorl %ebp, %ebp
movq (%rsp), %r12
jmp 0x69f5e
movq (%rsp), %r12
jmp 0x69f71