	.file	"extr_bytecodewriter.c_sm_3_dstreg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Relative addressing not supported for this shader type or register type\n"
	.text
	.p2align 4
	.type	sm_3_dstreg, @function
sm_3_dstreg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	QWORD PTR 8[rsi], 0
	mov	rbx, rsi
	je	.L2
	mov	rbp, QWORD PTR [rdi]
	xor	esi, esi
	mov	edi, 3
	call	BWRITERVS_VERSION@PLT
	cmp	rbp, rax
	jne	.L3
	mov	rdi, QWORD PTR [rbx]
	cmp	rdi, QWORD PTR BWRITERSPR_OUTPUT[rip]
	jne	.L3
	mov	ebp, DWORD PTR D3DVS_ADDRMODE_RELATIVE[rip]
	and	ebp, DWORD PTR D3DVS_ADDRESSMODE_MASK[rip]
	or	ebp, -2147483648
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR [rsi]
	mov	ebp, -2147483648
.L4:
	call	d3d9_register@PLT
	mov	esi, DWORD PTR 20[rbx]
	mov	edi, eax
	call	d3dsp_register@PLT
	mov	edi, r14d
	or	ebp, eax
	call	d3d9_dstmod@PLT
	mov	edi, DWORD PTR 16[rbx]
	or	ebp, eax
	call	d3d9_writemask@PLT
	mov	rdi, r13
	or	ebp, eax
	mov	esi, ebp
	call	put_dword@PLT
	test	DWORD PTR D3DVS_ADDRMODE_RELATIVE[rip], ebp
	jne	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdx, r13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	sm_3_srcreg@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	WARN@PLT
	mov	eax, DWORD PTR E_INVALIDARG[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	DWORD PTR 8[r12], eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sm_3_dstreg, .-sm_3_dstreg
	.comm	E_INVALIDARG,4,4
	.comm	D3DVS_ADDRMODE_RELATIVE,4,4
	.comm	D3DVS_ADDRESSMODE_MASK,4,4
	.comm	BWRITERSPR_OUTPUT,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_bytecodewriter.c_sm_3_dstreg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Relative addressing not supported for this shader t"
	.ascii	"ype or register type\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sm_3_dstreg, %function
sm_3_dstreg:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #0
	mov	r7, r1
	mov	r5, r0
	mov	r6, r2
	ldr	r9, [sp, #32]
	beq	.L2
	mov	r1, #0
	mov	r0, #3
	ldr	r4, [r5]
	bl	BWRITERVS_VERSION
	cmp	r4, r0
	bne	.L3
	ldr	r3, .L11
	ldr	r0, [r7]
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L3
	ldr	r8, .L11+4
	ldr	r3, .L11+8
	ldr	r4, [r8]
	ldr	r3, [r3]
	and	r4, r4, r3
	orr	r4, r4, #-2147483648
	b	.L4
.L2:
	mov	r4, #-2147483648
	ldr	r0, [r1]
	ldr	r8, .L11+4
.L4:
	bl	d3d9_register
	ldr	r1, [r7, #12]
	bl	d3dsp_register
	mov	r1, r0
	mov	r0, r9
	orr	r4, r4, r1
	bl	d3d9_dstmod
	mov	r1, r0
	ldr	r0, [r7, #8]
	orr	r4, r4, r1
	bl	d3d9_writemask
	orr	r4, r4, r0
	mov	r1, r4
	mov	r0, r6
	bl	put_dword
	ldr	r3, [r8]
	tst	r4, r3
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r7, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	sm_3_srcreg
.L3:
	ldr	r0, .L11+12
	bl	WARN
	ldr	r3, .L11+16
	ldr	r3, [r3]
	str	r3, [r5, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	BWRITERSPR_OUTPUT
	.word	D3DVS_ADDRMODE_RELATIVE
	.word	D3DVS_ADDRESSMODE_MASK
	.word	.LC0
	.word	E_INVALIDARG
	.size	sm_3_dstreg, .-sm_3_dstreg
	.comm	E_INVALIDARG,4,4
	.comm	D3DVS_ADDRMODE_RELATIVE,4,4
	.comm	D3DVS_ADDRESSMODE_MASK,4,4
	.comm	BWRITERSPR_OUTPUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
