// File: /workspace/github_c_makefile_star2_O1/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
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, %r15
movq %rcx, %rbp
movl %edx, %r12d
movl %esi, %r13d
movq %rdi, %r14
leaq 0x7(%rsp), %rsi
movb $0x0, (%rsi)
movq %r9, %rdx
callq 0x6726b
cmpl $0x0, (%rbx)
je 0x6753b
addq $0x18, %rsp
jmp 0x675a6
movb %al, 0x6(%rsp)
movq %rbp, 0x10(%rsp)
movq %r15, 0x8(%rsp)
movq 0x10(%r14), %rdi
callq 0x12ad0
movq %rax, %r15
movq 0x10(%r14), %rbp
cmpl $0x2, (%rbp)
jne 0x67572
leaq 0xf8ce(%rip), %rsi      # 0x76e34
movq %r15, %rdi
callq 0x12160
testl %eax, %eax
je 0x675b1
movq 0x8(%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0xf78b(%rip), %rax      # 0x76d10
leaq 0xf8a8(%rip), %rdx      # 0x76e34
movq %rbx, %rdi
movl $0x1d, %esi
movq %r15, %rcx
pushq $0xc97                  # imm = 0xC97
pushq %rax
callq 0x1442a
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r14), %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x12eda
cmpl $0x0, (%rbx)
jne 0x67535
movq 0x10(%r14), %rdi
callq 0x12ad0
movq 0x10(%r14), %r15
cmpl $0x2, (%r15)
jne 0x675ef
leaq 0xbed6(%rip), %rsi      # 0x734b9
movq %rax, %rdi
callq 0x12160
testl %eax, %eax
je 0x67639
xorl %ebp, %ebp
movq 0x8(%rsp), %r15
movq (%r14), %rdi
movl %r13d, %esi
movq %rbx, %rdx
callq 0x4f73a
cmpl $0x0, (%rbx)
movq 0x10(%rsp), %rcx
movb 0x6(%rsp), %dl
jne 0x67535
movl %r12d, 0x8(%rax)
movq %rcx, 0x10(%rax)
movq %r15, 0x18(%rax)
movb %dl, 0x20(%rax)
movb $0x1, 0x21(%rax)
movb %bpl, 0x22(%rax)
movb 0x7(%rsp), %cl
movb %cl, 0x23(%rax)
jmp 0x67535
movq 0x8(%r14), %rdi
cmpq $0xf, 0x8(%rsp)
jne 0x67674
movq 0x30(%rdi), %r8
movl 0x38(%rdi), %r9d
leaq 0xf6bc(%rip), %rax      # 0x76d10
leaq 0xf745(%rip), %rdx      # 0x76da0
leaq 0xc793(%rip), %rcx      # 0x73df5
movq %rbx, %rdi
movl $0x58, %esi
pushq $0xca3                  # imm = 0xCA3
jmp 0x6759c
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12eda
cmpl $0x0, (%rbx)
movq 0x8(%rsp), %r15
jne 0x67535
movb $0x1, %bpl
jmp 0x675f6