	.file	"extr_gfx_v9_0.c_gfx_v9_0_write_data_to_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gfx_v9_0_write_data_to_reg, @function
gfx_v9_0_write_data_to_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	mov	esi, 3
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR PACKET3_WRITE_DATA[rip]
	call	PACKET3@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	amdgpu_ring_write@PLT
	mov	edi, r15d
	call	WRITE_DATA_ENGINE_SEL@PLT
	xor	edi, edi
	mov	ebx, eax
	call	WRITE_DATA_DST_SEL@PLT
	or	ebx, eax
	mov	esi, ebx
	test	r14d, r14d
	je	.L2
	or	esi, DWORD PTR WR_CONFIRM[rip]
.L2:
	mov	rdi, rbp
	call	amdgpu_ring_write@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	amdgpu_ring_write@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	amdgpu_ring_write@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	esi, r12d
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	amdgpu_ring_write@PLT
	.cfi_endproc
.LFE0:
	.size	gfx_v9_0_write_data_to_reg, .-gfx_v9_0_write_data_to_reg
	.comm	WR_CONFIRM,4,4
	.comm	PACKET3_WRITE_DATA,4,4
	.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_gfx_v9_0.c_gfx_v9_0_write_data_to_reg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gfx_v9_0_write_data_to_reg, %function
gfx_v9_0_write_data_to_reg:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r1, .L8
	mov	r4, r0
	ldr	r0, [r1]
	mov	r1, #3
	mov	r6, r3
	mov	r7, r2
	ldr	r8, [sp, #24]
	bl	PACKET3
	mov	r1, r0
	mov	r0, r4
	bl	amdgpu_ring_write
	mov	r0, r5
	bl	WRITE_DATA_ENGINE_SEL
	mov	r5, r0
	mov	r0, #0
	bl	WRITE_DATA_DST_SEL
	cmp	r7, #0
	ldrne	r3, .L8+4
	orr	r1, r5, r0
	ldrne	r3, [r3]
	mov	r0, r4
	orrne	r1, r1, r3
	bl	amdgpu_ring_write
	mov	r1, r6
	mov	r0, r4
	bl	amdgpu_ring_write
	mov	r1, #0
	mov	r0, r4
	bl	amdgpu_ring_write
	mov	r1, r8
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	amdgpu_ring_write
.L9:
	.align	2
.L8:
	.word	PACKET3_WRITE_DATA
	.word	WR_CONFIRM
	.size	gfx_v9_0_write_data_to_reg, .-gfx_v9_0_write_data_to_reg
	.comm	WR_CONFIRM,4,4
	.comm	PACKET3_WRITE_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
