// File: /workspace/github_c_makefile_star2_O2/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 $0x28, %rsp
movq %rsi, %r14
movq %rdi, %r15
callq 0x64c3a
movq %rax, %rbx
cmpl $0x0, (%r14)
je 0x64841
xorl %ebp, %ebp
movq %rbp, %rdi
callq 0x63ee7
movq %rbx, %rdi
callq 0x63ee7
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x20(%rsp)
xorl %r13d, %r13d
xorl %eax, %eax
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %r14, 0x8(%rsp)
movq %rbx, %r14
movq %rax, %rbx
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
cmpl $0x2, (%rdi)
jne 0x64ba2
movq %r12, %rbp
movq %r13, %r12
callq 0x12a25
movzbl (%rax), %ecx
cmpl $0x3c, %ecx
je 0x64910
cmpl $0x3e, %ecx
je 0x648bb
cmpl $0x3d, %ecx
jne 0x64963
cmpb $0x0, 0x1(%rax)
leaq 0x567(%rip), %rdx       # 0x64e05
leaq 0x56a(%rip), %rsi       # 0x64e0f
leaq 0x56e(%rip), %r13       # 0x64e1a
movq %r13, (%rsp)
jne 0x64963
jmp 0x649d3
cmpb $0x0, 0x1(%rax)
je 0x6498c
cmpb $0x3d, 0x1(%rax)
jne 0x648ee
cmpb $0x0, 0x2(%rax)
leaq 0x5eb(%rip), %rdx       # 0x64ec1
leaq 0x5ee(%rip), %rsi       # 0x64ecb
leaq 0x5f1(%rip), %r13       # 0x64ed5
movq %r13, (%rsp)
je 0x649d3
cmpb $0x3e, 0x1(%rax)
jne 0x64963
cmpb $0x0, 0x2(%rax)
jne 0x64963
movq %r12, %rdx
movq %rbx, %rsi
movq %rbp, (%rsp)
leaq 0x5de(%rip), %r15       # 0x64ee9
jmp 0x649d3
cmpb $0x3e, 0x1(%rax)
jne 0x64920
cmpb $0x0, 0x2(%rax)
je 0x649a3
cmpb $0x3d, 0x1(%rax)
jne 0x64930
cmpb $0x0, 0x2(%rax)
je 0x649ba
cmpb $0x0, 0x1(%rax)
leaq 0x565(%rip), %rdx       # 0x64ea0
leaq 0x568(%rip), %rsi       # 0x64eaa
leaq 0x56d(%rip), %r13       # 0x64eb6
movq %r13, (%rsp)
je 0x649d3
cmpb $0x3c, 0x1(%rax)
jne 0x64963
cmpb $0x0, 0x2(%rax)
je 0x64b8c
movq %rax, %rdi
leaq 0x8f48(%rip), %rsi      # 0x6d8b5
callq 0x12160
movq %r12, %rdx
movq %rbx, %rsi
movq %rbp, (%rsp)
leaq 0x56d(%rip), %r15       # 0x64ef0
testl %eax, %eax
je 0x649d3
jmp 0x64ba2
leaq 0x4bd(%rip), %rdx       # 0x64e50
leaq 0x4c0(%rip), %rsi       # 0x64e5a
leaq 0x4c5(%rip), %r13       # 0x64e66
jmp 0x649cf
leaq 0x481(%rip), %rdx       # 0x64e2b
leaq 0x484(%rip), %rsi       # 0x64e35
leaq 0x488(%rip), %r13       # 0x64e40
jmp 0x649cf
leaq 0x4b8(%rip), %rdx       # 0x64e79
leaq 0x4bb(%rip), %rsi       # 0x64e83
leaq 0x4be(%rip), %r13       # 0x64e8d
movq %r13, (%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, %r13
movq 0x20(%rsp), %r12
movq 0x8(%r12), %rdi
movq 0x10(%r12), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x12e0e
cmpl $0x0, (%rbx)
jne 0x64baa
movq %r12, %rdi
movq %rbx, %rsi
callq 0x64c3a
movq %rax, %rbp
cmpl $0x0, (%rbx)
movq %r14, %rbx
jne 0x64820
testq %r15, %r15
je 0x64a40
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %r15, %rcx
movq 0x8(%rsp), %r14
movq %r14, %r8
callq 0x64bb4
movq %rax, %rbx
jmp 0x64b65
movl (%rbx), %eax
cmpl $0x6, %eax
je 0x64abd
cmpl $0x8, %eax
jne 0x64b0a
cmpl $0x8, (%rbp)
sete %al
cmpq $0x0, (%rsp)
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x64b0a
leaq 0x8(%rbx), %rdi
callq 0x14a53
movq %rax, %r14
movq %rbp, %rdi
addq $0x8, %rdi
callq 0x14a53
movq %r14, %rdi
movq %rax, %rsi
movq (%rsp), %r12
callq *%r12
movl %eax, %edi
movq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x63dc8
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
callq 0x63ee7
movq %rbp, %rdi
callq 0x63ee7
movq 0x10(%rsp), %rbx
jmp 0x64b69
cmpl $0x6, (%rbp)
jne 0x64b0a
movq %r12, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdx
callq 0x660a6
cmpl $0x0, (%r14)
jne 0x64b4b
movl %eax, 0x10(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdx
callq 0x660a6
movl 0x10(%rsp), %edi
cmpl $0x0, (%r14)
jne 0x64b4b
movl $0x6, (%rbx)
movl %eax, %esi
callq *%r13
jmp 0x64b87
movq %r12, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdx
callq 0x663fb
cmpl $0x0, (%r14)
jne 0x64b4b
movq %r12, %rdi
movq %rbp, %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdx
movsd %xmm0, 0x10(%rsp)
callq 0x663fb
movaps %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
cmpl $0x0, (%r14)
je 0x64b7d
movq %rbp, %rdi
callq 0x63ee7
movq %rbx, %rbp
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0x63ee7
movq 0x8(%rsp), %r14
movq (%rsp), %r12
cmpl $0x0, (%r14)
movq 0x18(%rsp), %rax
je 0x64856
jmp 0x6481e
movl $0x6, (%rbx)
callq *0x18(%rsp)
movl %eax, 0x8(%rbx)
jmp 0x64b58
movq %r12, %rdx
movq %rbx, %rsi
movq %rbp, (%rsp)
leaq 0x345(%rip), %r15       # 0x64ee2
jmp 0x649d3
movq %r14, %rax
jmp 0x64832
xorl %ebp, %ebp
movq %r14, %rbx
jmp 0x64820