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

	switch (itype) {
	case SUBTILIS_VFP_INSTR_FSTS:
	case SUBTILIS_VFP_INSTR_FLDS:
		dest = prv_get_vfp_sreg(c, err);
		break;
	case SUBTILIS_VFP_INSTR_FSTD:
	case SUBTILIS_VFP_INSTR_FLDD:
		dest = prv_get_vfp_dreg(c, err);
		break;
	default:
		subtilis_error_set_assertion_failed(err);
		return;
	}
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_lexer_get(c->l, c->t, 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;
	}

	base = 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) {
		if (!strcmp(tbuf, ",")) {
			prv_parse_vfp_stran_pre(c, itype, ccode, dest, base,
						err);
			return;
		}

		if (!strcmp(tbuf, "]")) {
			prv_parse_vfp_stran_post(c, itype, ccode, dest, base,
						 err);
			return;
		}
	}

	subtilis_error_set_expected(err, "] or ,", tbuf, c->l->stream->name,
				    c->l->line);
}

// 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
movl %eax, -0x3c(%rbp)
addl $-0x46, %eax
subl $0x2, %eax
jb 0x961b7
jmp 0x961aa
movl -0x3c(%rbp), %eax
addl $-0x48, %eax
subl $0x2, %eax
jb 0x961ca
jmp 0x961dd
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x963a0
movq %rax, -0x28(%rbp)
jmp 0x961fc
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x96470
movq %rax, -0x28(%rbp)
jmp 0x961fc
movq -0x20(%rbp), %rdi
movl $0xf, %esi
leaq 0x17f33(%rip), %rdx     # 0xae120
movl $0xcfe, %ecx            # imm = 0xCFE
callq 0x158e0
jmp 0x96394
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x9620a
jmp 0x96394
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x20(%rbp), %rdx
callq 0x133f0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x96231
jmp 0x96394
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 0x96264
movq -0x38(%rbp), %rdi
leaq 0x143fe(%rip), %rsi     # 0xaa658
callq 0x12140
cmpl $0x0, %eax
je 0x962ad
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 0x143c8(%rip), %rdx     # 0xaa658
leaq 0x17e89(%rip), %rax     # 0xae120
movq %rax, (%rsp)
movl $0xd0b, 0x8(%rsp)       # imm = 0xD0B
callq 0x156d0
jmp 0x96394
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x94690
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x962cc
jmp 0x96394
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 0x96350
movq -0x38(%rbp), %rdi
leaq 0x142b4(%rip), %rsi     # 0xaa5a9
callq 0x12140
cmpl $0x0, %eax
jne 0x9631c
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x20(%rbp), %r9
callq 0x966b0
jmp 0x96394
movq -0x38(%rbp), %rdi
leaq 0x17f24(%rip), %rsi     # 0xae24b
callq 0x12140
cmpl $0x0, %eax
jne 0x9634e
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x20(%rbp), %r9
callq 0x968d0
jmp 0x96394
jmp 0x96350
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 0x17e34(%rip), %rdx     # 0xae1b0
leaq 0x17d9d(%rip), %rax     # 0xae120
movq %rax, (%rsp)
movl $0xd23, 0x8(%rsp)       # imm = 0xD23
callq 0x156d0
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)