// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_parse_vfp_cmp
static void prv_parse_vfp_cmp(subtilis_arm_ass_context_t *c, const char *name,
			      subtilis_arm_instr_type_t itype,
			      subtilis_arm_ccode_type_t ccode,
			      subtilis_error_t *err)
{
	subtilis_arm_reg_t op1;
	subtilis_arm_reg_t op2;
	const char *tbuf;

	switch (itype) {
	case SUBTILIS_VFP_INSTR_FCMPD:
	case SUBTILIS_VFP_INSTR_FCMPED:
		op1 = prv_get_vfp_dreg(c, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		tbuf = subtilis_token_get_text(c->t);
		if ((c->t->type != SUBTILIS_TOKEN_OPERATOR) ||
		    (strcmp(tbuf, ","))) {
			subtilis_error_set_expected(
			    err, ",", tbuf, c->l->stream->name, c->l->line);
			return;
		}
		op2 = prv_get_vfp_dreg(c, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		subtilis_vfp_add_cmp(c->arm_s, itype, ccode, op1, op2, err);
		break;
	case SUBTILIS_VFP_INSTR_FCMPS:
	case SUBTILIS_VFP_INSTR_FCMPES:
		op1 = prv_get_vfp_sreg(c, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		tbuf = subtilis_token_get_text(c->t);
		if ((c->t->type != SUBTILIS_TOKEN_OPERATOR) ||
		    (strcmp(tbuf, ","))) {
			subtilis_error_set_expected(
			    err, ",", tbuf, c->l->stream->name, c->l->line);
			return;
		}
		op2 = prv_get_vfp_sreg(c, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		subtilis_vfp_add_cmp(c->arm_s, itype, ccode, op1, op2, err);
		break;
	case SUBTILIS_VFP_INSTR_FCMPZS:
	case SUBTILIS_VFP_INSTR_FCMPEZS:
		op1 = prv_get_vfp_sreg(c, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		subtilis_vfp_add_cmpz(c->arm_s, itype, ccode, op1, err);
		break;
	case SUBTILIS_VFP_INSTR_FCMPZD:
	case SUBTILIS_VFP_INSTR_FCMPEZD:
		op1 = prv_get_vfp_dreg(c, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		subtilis_vfp_add_cmpz(c->arm_s, itype, ccode, op1, err);
		break;
	default:
		subtilis_error_set_assertion_failed(err);
		break;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movl -0x14(%rbp), %eax
addl $-0x71, %eax
movl %eax, %ecx
movq %rcx, -0x40(%rbp)
subl $0x7, %eax
ja 0x955ad
movq -0x40(%rbp), %rax
leaq 0x18cea(%rip), %rcx     # 0xae064
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x96470
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x953a2
jmp 0x955c7
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x12d70
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
cmpl $0x2, (%rax)
jne 0x953d5
movq -0x38(%rbp), %rdi
leaq 0x151de(%rip), %rsi     # 0xaa5a9
callq 0x12140
cmpl $0x0, %eax
je 0x9541e
movq -0x20(%rbp), %rdi
movq -0x38(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rax), %r8
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl 0x38(%rax), %r9d
movl $0x1d, %esi
leaq 0x151a8(%rip), %rdx     # 0xaa5a9
leaq 0x18d18(%rip), %rax     # 0xae120
movq %rax, (%rsp)
movl $0xb49, 0x8(%rsp)       # imm = 0xB49
callq 0x156d0
jmp 0x955c7
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x96470
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x9543d
jmp 0x955c7
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x20(%rbp), %r9
callq 0x884e0
jmp 0x955c7
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x963a0
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x9547f
jmp 0x955c7
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x12d70
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
cmpl $0x2, (%rax)
jne 0x954b2
movq -0x38(%rbp), %rdi
leaq 0x15101(%rip), %rsi     # 0xaa5a9
callq 0x12140
cmpl $0x0, %eax
je 0x954fb
movq -0x20(%rbp), %rdi
movq -0x38(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rax), %r8
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl 0x38(%rax), %r9d
movl $0x1d, %esi
leaq 0x150cb(%rip), %rdx     # 0xaa5a9
leaq 0x18c3b(%rip), %rax     # 0xae120
movq %rax, (%rsp)
movl $0xb5a, 0x8(%rsp)       # imm = 0xB5A
callq 0x156d0
jmp 0x955c7
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x963a0
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x9551a
jmp 0x955c7
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x20(%rbp), %r9
callq 0x884e0
jmp 0x955c7
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x963a0
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x95559
jmp 0x955c7
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %r8
callq 0x88550
jmp 0x955c7
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x96470
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x95591
jmp 0x955c7
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %r8
callq 0x88550
jmp 0x955c7
movq -0x20(%rbp), %rdi
movl $0xf, %esi
leaq 0x18b63(%rip), %rdx     # 0xae120
movl $0xb71, %ecx            # imm = 0xB71
callq 0x158e0
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)