// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/arch/arm32/arm_expression.c
// Function: prv_priority5
static subtilis_arm_exp_val_t *prv_priority5(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_log_int_fn_t log_int_fn = NULL;
	subtilis_ass_log_real_fn_t log_real_fn = NULL;
	subtilis_ass_log_str_fn_t log_str_fn = NULL;
	subtilis_ass_int_fn_t int_fn = NULL;

	e1 = prv_priority4(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

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

		if (!strcmp(tbuf, "=")) {
			log_int_fn = prv_equal_int32_fn;
			log_real_fn = prv_equal_real_fn;
			log_str_fn = prv_equal_str_fn;
		} else if (!strcmp(tbuf, "<>")) {
			log_int_fn = prv_not_equal_int32_fn;
			log_real_fn = prv_not_equal_real_fn;
			log_str_fn = prv_not_equal_str_fn;
		} else if (!strcmp(tbuf, ">")) {
			log_int_fn = prv_gt_int32_fn;
			log_real_fn = prv_gt_real_fn;
			log_str_fn = prv_gt_str_fn;
		} else if (!strcmp(tbuf, "<=")) {
			log_int_fn = prv_lte_int32_fn;
			log_real_fn = prv_lte_real_fn;
			log_str_fn = prv_lte_str_fn;
		} else if (!strcmp(tbuf, "<")) {
			log_int_fn = prv_lt_int32_fn;
			log_real_fn = prv_lt_real_fn;
			log_str_fn = prv_lt_str_fn;
		} else if (!strcmp(tbuf, ">=")) {
			log_int_fn = prv_gte_int32_fn;
			log_real_fn = prv_gte_real_fn;
			log_str_fn = prv_gte_str_fn;
		} else if (!strcmp(tbuf, "<<")) {
			int_fn = prv_lsl_int32_fn;
		} else if (!strcmp(tbuf, ">>")) {
			int_fn = prv_lsr_int32_fn;
		} else if (!strcmp(tbuf, ">>>")) {
			int_fn = prv_asr_int32_fn;
		} else {
			break;
		}

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

		if (int_fn) {
			e1 = prv_binary_int(c, e1, e2, int_fn, err);
		} else {
			if ((e1->type == SUBTILIS_ARM_EXP_TYPE_STRING) &&
			    (e1->type == e2->type) && log_str_fn)
				e1 =
				    prv_logical_str(c, e1, e2, log_str_fn, err);
			else
				e1 = prv_logical_numeric(c, e1, e2, log_int_fn,
							 log_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
subq $0x38, %rsp
movq %rsi, %rbp
movq %rdi, %r15
callq 0x69f3d
movq %rax, %rbx
cmpl $0x0, (%rbp)
je 0x69b24
xorl %r13d, %r13d
movq %r13, %rdi
callq 0x69167
movq %rbx, %rdi
callq 0x69167
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x28(%rsp)
xorl %eax, %eax
xorl %ecx, %ecx
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %rbx, 0x10(%rsp)
movq %rbp, %r14
movq %rax, %rbp
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rdi
cmpl $0x2, (%rdi)
jne 0x69ea0
movq %rcx, %rbx
callq 0x12ad0
movq %rax, %r13
movq %rax, %rdi
leaq 0x9a9f(%rip), %rsi      # 0x73604
callq 0x12160
testl %eax, %eax
je 0x69c57
movq %r13, %rdi
leaq 0x9d49(%rip), %rsi      # 0x738c5
callq 0x12160
testl %eax, %eax
je 0x69c6e
movq %r13, %rdi
leaq 0x9d33(%rip), %rsi      # 0x738c6
callq 0x12160
testl %eax, %eax
je 0x69c85
movq %r13, %rdi
leaq 0x9d1e(%rip), %rsi      # 0x738c8
callq 0x12160
testl %eax, %eax
je 0x69c9c
movq %r13, %rdi
leaq 0x9d0e(%rip), %rsi      # 0x738cf
callq 0x12160
testl %eax, %eax
je 0x69cb3
movq %r13, %rdi
leaq 0x9cf3(%rip), %rsi      # 0x738cb
callq 0x12160
leaq 0x5bf(%rip), %rdx       # 0x6a1a3
leaq 0x5c2(%rip), %rsi       # 0x6a1ad
leaq 0x5c5(%rip), %rcx       # 0x6a1b7
movq %rcx, 0x8(%rsp)
testl %eax, %eax
je 0x69ccd
movq %r13, %rdi
leaq 0x9cc5(%rip), %rsi      # 0x738ce
callq 0x12160
testl %eax, %eax
je 0x69e72
movq %r13, %rdi
leaq 0x9cb2(%rip), %rsi      # 0x738d2
callq 0x12160
testl %eax, %eax
je 0x69e89
movq %r13, %rdi
leaq 0x9c9a(%rip), %rsi      # 0x738d1
callq 0x12160
movq %rbp, %rdx
movq %rbx, %rsi
movq %r12, 0x8(%rsp)
leaq 0x584(%rip), %r15       # 0x6a1d2
testl %eax, %eax
je 0x69ccd
jmp 0x69ea0
leaq 0x489(%rip), %rdx       # 0x6a0e7
leaq 0x48c(%rip), %rsi       # 0x6a0f1
leaq 0x490(%rip), %rax       # 0x6a0fc
jmp 0x69cc8
leaq 0x498(%rip), %rdx       # 0x6a10d
leaq 0x49b(%rip), %rsi       # 0x6a117
leaq 0x49f(%rip), %rax       # 0x6a122
jmp 0x69cc8
leaq 0x4a6(%rip), %rdx       # 0x6a132
leaq 0x4a9(%rip), %rsi       # 0x6a13c
leaq 0x4ae(%rip), %rax       # 0x6a148
jmp 0x69cc8
leaq 0x4b8(%rip), %rdx       # 0x6a15b
leaq 0x4bb(%rip), %rsi       # 0x6a165
leaq 0x4be(%rip), %rax       # 0x6a16f
jmp 0x69cc8
leaq 0x4c8(%rip), %rdx       # 0x6a182
leaq 0x4cb(%rip), %rsi       # 0x6a18c
leaq 0x4d0(%rip), %rax       # 0x6a198
movq %rax, 0x8(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x28(%rsp), %r12
movq 0x8(%r12), %rdi
movq 0x10(%r12), %rsi
movq %r14, %rbp
movq %r14, %rdx
callq 0x12eda
cmpl $0x0, (%r14)
jne 0x69eaa
movq %r12, %rdi
movq %rbp, %rsi
callq 0x69f3d
movq %rax, %r13
cmpl $0x0, (%rbp)
movq 0x10(%rsp), %rbx
jne 0x69b03
testq %r15, %r15
je 0x69d39
movq %r12, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r15, %rcx
movq %rbp, %r8
callq 0x69eb7
movq %rax, %rbx
jmp 0x69e3d
movl (%rbx), %eax
cmpl $0x6, %eax
je 0x69db1
cmpl $0x8, %eax
jne 0x69df4
cmpl $0x8, (%r13)
sete %cl
movq 0x8(%rsp), %r14
testq %r14, %r14
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x69dac
leaq 0x8(%rbx), %rdi
callq 0x14dfb
movq %rax, %r12
movq %r13, %rdi
addq $0x8, %rdi
callq 0x14dfb
movq %r12, %rdi
movq %rax, %rsi
callq *%r14
movl %eax, %edi
movq %rbp, %rsi
callq 0x6903c
movq %rax, %r12
movq %rbx, %rdi
callq 0x69167
movq %r13, %rdi
callq 0x69167
movq %r12, %rbx
movq %r14, %r12
jmp 0x69e42
cmpl $0x6, %eax
jne 0x69df4
cmpl $0x6, (%r13)
jne 0x69df4
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x6b731
cmpl $0x0, (%rbp)
jne 0x69e2b
movl %eax, %r14d
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x6b731
cmpl $0x0, (%rbp)
jne 0x69e2b
movl $0x6, (%rbx)
movl %r14d, %edi
movl %eax, %esi
callq *0x18(%rsp)
jmp 0x69e65
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x6bad3
cmpl $0x0, (%rbp)
jne 0x69e2b
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movsd %xmm0, 0x30(%rsp)
callq 0x6bad3
movaps %xmm0, %xmm1
movsd 0x30(%rsp), %xmm0
cmpl $0x0, (%rbp)
je 0x69e5b
movq %r13, %rdi
callq 0x69167
movq %rbx, %rdi
callq 0x69167
xorl %ebx, %ebx
movq 0x8(%rsp), %r12
cmpl $0x0, (%rbp)
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
je 0x69b33
jmp 0x69b00
movl $0x6, (%rbx)
callq *0x20(%rsp)
movl %eax, 0x8(%rbx)
movq %r13, %rdi
callq 0x69167
jmp 0x69e3d
movq %rbp, %rdx
movq %rbx, %rsi
movq %r12, 0x8(%rsp)
leaq 0x340(%rip), %r15       # 0x6a1c4
jmp 0x69ccd
movq %rbp, %rdx
movq %rbx, %rsi
movq %r12, 0x8(%rsp)
leaq 0x330(%rip), %r15       # 0x6a1cb
jmp 0x69ccd
movq 0x10(%rsp), %rax
jmp 0x69b15
xorl %r13d, %r13d
movq 0x10(%rsp), %rbx
jmp 0x69b03