// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/arch/arm32/assembler.c
// Function: prv_parse_vfp_stran_pre
static void prv_parse_vfp_stran_pre(subtilis_arm_ass_context_t *c,
				    subtilis_arm_instr_type_t itype,
				    subtilis_arm_ccode_type_t ccode,
				    subtilis_arm_reg_t dest,
				    subtilis_arm_reg_t base,
				    subtilis_error_t *err)
{
	const char *tbuf;
	uint8_t offset;
	bool sub = false;
	subtilis_vfp_stran_instr_t *stran;
	subtilis_arm_instr_t *instr;
	bool write_back = false;

	offset = prv_get_fpa_stran_offset(c, &sub, 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;
	}

	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, "!")) {
		if (base == 15) {
			subtilis_error_set_ass_bad_reg(
			    err, "R15", c->l->stream->name, c->l->line);
			return;
		}
		write_back = true;
		subtilis_lexer_get(c->l, c->t, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
	}

	instr = subtilis_arm_section_add_instr(c->arm_s, itype, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	stran = &instr->operands.vfp_stran;
	stran->ccode = ccode;
	stran->dest = dest;
	stran->base = base;
	stran->offset = offset;
	stran->pre_indexed = true;
	stran->write_back = write_back;
	stran->subtract = sub;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r15
movq %rcx, %rbp
movl %edx, %r12d
movl %esi, %r13d
movq %rdi, %r14
leaq 0x3(%rsp), %rsi
movb $0x0, (%rsi)
movq %r9, %rdx
callq 0x66f5a
cmpl $0x0, (%rbx)
je 0x67227
addq $0x8, %rsp
jmp 0x6727d
movb %al, 0x2(%rsp)
movq 0x10(%r14), %rdi
callq 0x12ad0
movq 0x10(%r14), %rsi
cmpl $0x2, (%rsi)
jne 0x67248
cmpb $0x5d, (%rax)
jne 0x67248
cmpb $0x0, 0x1(%rax)
je 0x67288
movq 0x8(%r14), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0xfb15(%rip), %r10      # 0x76d70
leaq 0xfc34(%rip), %rdx      # 0x76e96
movq %rbx, %rdi
movl $0x1d, %esi
movq %rax, %rcx
pushq $0xc97                  # imm = 0xC97
pushq %r10
callq 0x143da
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r14), %rdi
movq %rbx, %rdx
callq 0x12edc
cmpl $0x0, (%rbx)
jne 0x67221
movq 0x10(%r14), %rdi
callq 0x12ad0
movq 0x10(%r14), %rsi
cmpl $0x2, (%rsi)
jne 0x672b6
cmpb $0x21, (%rax)
jne 0x672b6
cmpb $0x0, 0x1(%rax)
je 0x672ff
movl $0x0, 0x4(%rsp)
movq (%r14), %rdi
movl %r13d, %esi
movq %rbx, %rdx
callq 0x4f6e2
cmpl $0x0, (%rbx)
movb 0x2(%rsp), %cl
jne 0x67221
movl %r12d, 0x8(%rax)
movq %rbp, 0x10(%rax)
movq %r15, 0x18(%rax)
movb %cl, 0x20(%rax)
movb $0x1, 0x21(%rax)
movl 0x4(%rsp), %ecx
movb %cl, 0x22(%rax)
movb 0x3(%rsp), %cl
movb %cl, 0x23(%rax)
jmp 0x67221
movq 0x8(%r14), %rdi
cmpq $0xf, %r15
jne 0x67339
movq 0x30(%rdi), %r8
movl 0x38(%rdi), %r9d
leaq 0xfa58(%rip), %rax      # 0x76d70
leaq 0xfae3(%rip), %rdx      # 0x76e02
leaq 0xcaef(%rip), %rcx      # 0x73e15
movq %rbx, %rdi
movl $0x58, %esi
pushq $0xca3                  # imm = 0xCA3
pushq %rax
jmp 0x67274
movq %rbx, %rdx
callq 0x12edc
cmpl $0x0, (%rbx)
jne 0x67221
movb $0x1, %al
movl %eax, 0x4(%rsp)
jmp 0x672be