// File: /workspace/github_c_makefile_star2_O3/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 0x69aca
movq %rax, %rbx
cmpl $0x0, (%r14)
je 0x696d1
xorl %ebp, %ebp
movq %rbp, %rdi
callq 0x68d41
movq %rbx, %rdi
callq 0x68d41
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 0x69a32
movq %r12, %rbp
movq %r13, %r12
callq 0x12ad0
movzbl (%rax), %ecx
cmpl $0x3c, %ecx
je 0x697a0
cmpl $0x3e, %ecx
je 0x6974b
cmpl $0x3d, %ecx
jne 0x697f3
cmpb $0x0, 0x1(%rax)
leaq 0x56b(%rip), %rdx       # 0x69c99
leaq 0x56e(%rip), %rsi       # 0x69ca3
leaq 0x572(%rip), %r13       # 0x69cae
movq %r13, (%rsp)
jne 0x697f3
jmp 0x69863
cmpb $0x0, 0x1(%rax)
je 0x6981c
cmpb $0x3d, 0x1(%rax)
jne 0x6977e
cmpb $0x0, 0x2(%rax)
leaq 0x5ef(%rip), %rdx       # 0x69d55
leaq 0x5f2(%rip), %rsi       # 0x69d5f
leaq 0x5f5(%rip), %r13       # 0x69d69
movq %r13, (%rsp)
je 0x69863
cmpb $0x3e, 0x1(%rax)
jne 0x697f3
cmpb $0x0, 0x2(%rax)
jne 0x697f3
movq %r12, %rdx
movq %rbx, %rsi
movq %rbp, (%rsp)
leaq 0x5e2(%rip), %r15       # 0x69d7d
jmp 0x69863
cmpb $0x3e, 0x1(%rax)
jne 0x697b0
cmpb $0x0, 0x2(%rax)
je 0x69833
cmpb $0x3d, 0x1(%rax)
jne 0x697c0
cmpb $0x0, 0x2(%rax)
je 0x6984a
cmpb $0x0, 0x1(%rax)
leaq 0x569(%rip), %rdx       # 0x69d34
leaq 0x56c(%rip), %rsi       # 0x69d3e
leaq 0x571(%rip), %r13       # 0x69d4a
movq %r13, (%rsp)
je 0x69863
cmpb $0x3c, 0x1(%rax)
jne 0x697f3
cmpb $0x0, 0x2(%rax)
je 0x69a1c
movq %rax, %rdi
leaq 0xa0fc(%rip), %rsi      # 0x738f9
callq 0x12160
movq %r12, %rdx
movq %rbx, %rsi
movq %rbp, (%rsp)
leaq 0x571(%rip), %r15       # 0x69d84
testl %eax, %eax
je 0x69863
jmp 0x69a32
leaq 0x4c1(%rip), %rdx       # 0x69ce4
leaq 0x4c4(%rip), %rsi       # 0x69cee
leaq 0x4c9(%rip), %r13       # 0x69cfa
jmp 0x6985f
leaq 0x485(%rip), %rdx       # 0x69cbf
leaq 0x488(%rip), %rsi       # 0x69cc9
leaq 0x48c(%rip), %r13       # 0x69cd4
jmp 0x6985f
leaq 0x4bc(%rip), %rdx       # 0x69d0d
leaq 0x4bf(%rip), %rsi       # 0x69d17
leaq 0x4c2(%rip), %r13       # 0x69d21
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 0x12edc
cmpl $0x0, (%rbx)
jne 0x69a3a
movq %r12, %rdi
movq %rbx, %rsi
callq 0x69aca
movq %rax, %rbp
cmpl $0x0, (%rbx)
movq %r14, %rbx
jne 0x696b0
testq %r15, %r15
je 0x698d0
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %r15, %rcx
movq 0x8(%rsp), %r14
movq %r14, %r8
callq 0x69a44
movq %rax, %rbx
jmp 0x699f5
movl (%rbx), %eax
cmpl $0x6, %eax
je 0x6994d
cmpl $0x8, %eax
jne 0x6999a
cmpl $0x8, (%rbp)
sete %al
cmpq $0x0, (%rsp)
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x6999a
leaq 0x8(%rbx), %rdi
callq 0x14db1
movq %rax, %r14
movq %rbp, %rdi
addq $0x8, %rdi
callq 0x14db1
movq %r14, %rdi
movq %rax, %rsi
movq (%rsp), %r12
callq *%r12
movl %eax, %edi
movq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x68c10
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
callq 0x68d41
movq %rbp, %rdi
callq 0x68d41
movq 0x10(%rsp), %rbx
jmp 0x699f9
cmpl $0x6, (%rbp)
jne 0x6999a
movq %r12, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdx
callq 0x6b2c1
cmpl $0x0, (%r14)
jne 0x699db
movl %eax, 0x10(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdx
callq 0x6b2c1
movl 0x10(%rsp), %edi
cmpl $0x0, (%r14)
jne 0x699db
movl $0x6, (%rbx)
movl %eax, %esi
callq *%r13
jmp 0x69a17
movq %r12, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdx
callq 0x6b62e
cmpl $0x0, (%r14)
jne 0x699db
movq %r12, %rdi
movq %rbp, %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdx
movsd %xmm0, 0x10(%rsp)
callq 0x6b62e
movaps %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
cmpl $0x0, (%r14)
je 0x69a0d
movq %rbp, %rdi
callq 0x68d41
movq %rbx, %rbp
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0x68d41
movq 0x8(%rsp), %r14
movq (%rsp), %r12
cmpl $0x0, (%r14)
movq 0x18(%rsp), %rax
je 0x696e6
jmp 0x696ae
movl $0x6, (%rbx)
callq *0x18(%rsp)
movl %eax, 0x8(%rbx)
jmp 0x699e8
movq %r12, %rdx
movq %rbx, %rsi
movq %rbp, (%rsp)
leaq 0x349(%rip), %r15       # 0x69d76
jmp 0x69863
movq %r14, %rax
jmp 0x696c2
xorl %ebp, %ebp
movq %r14, %rbx
jmp 0x696b0