// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_parse_vfp_sysreg
static void prv_parse_vfp_sysreg(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 sysreg = SIZE_MAX;
	subtilis_arm_reg_t reg = SIZE_MAX;
	const char *tbuf;

	if (!strcmp(name, "FMSTAT")) {
		subtilis_vfp_add_sysreg(c->arm_s, itype, ccode,
					SUBTILIS_VFP_SYSREG_FPSCR, 15, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;

		subtilis_lexer_get(c->l, c->t, err);
		return;
	}

	if (itype == SUBTILIS_VFP_INSTR_FMXR)
		sysreg = prv_get_vfp_sysreg(c, err);
	else
		reg = prv_get_reg(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;
	}

	if (itype == SUBTILIS_VFP_INSTR_FMXR)
		reg = prv_get_reg(c, err);
	else
		sysreg = prv_get_vfp_sysreg(c, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_vfp_add_sysreg(c->arm_s, itype, ccode, sysreg, reg, err);
}

// 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)
movq $-0x1, -0x28(%rbp)
movq $-0x1, -0x30(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x18871(%rip), %rsi     # 0xae166
callq 0x12140
cmpl $0x0, %eax
jne 0x9594c
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x20(%rbp), %r9
movl $0x1, %ecx
movl $0xf, %r8d
callq 0x88620
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x9592e
jmp 0x95a52
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x20(%rbp), %rdx
callq 0x133f0
jmp 0x95a52
cmpl $0x7b, -0x14(%rbp)
jne 0x95965
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x965e0
movq %rax, -0x28(%rbp)
jmp 0x95976
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x94690
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x95984
jmp 0x95a52
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 0x959b7
movq -0x38(%rbp), %rdi
leaq 0x14bfc(%rip), %rsi     # 0xaa5a9
callq 0x12140
cmpl $0x0, %eax
je 0x959fd
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 0x14bc6(%rip), %rdx     # 0xaa5a9
leaq 0x18736(%rip), %rax     # 0xae120
movq %rax, (%rsp)
movl $0xbe3, 0x8(%rsp)       # imm = 0xBE3
callq 0x156d0
jmp 0x95a52
cmpl $0x7b, -0x14(%rbp)
jne 0x95a16
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x94690
movq %rax, -0x30(%rbp)
jmp 0x95a27
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x965e0
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x95a32
jmp 0x95a52
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %rax
movl %eax, %ecx
movq -0x30(%rbp), %r8
movq -0x20(%rbp), %r9
callq 0x88620
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)