	.file	"extr_gfx_v9_0.c_gfx_v9_0_ring_emit_hdp_flush.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gfx_v9_0_ring_emit_hdp_flush, @function
gfx_v9_0_ring_emit_hdp_flush:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rcx, QWORD PTR AMDGPU_RING_TYPE_COMPUTE[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r12, QWORD PTR 16[rdi]
	mov	rdx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR [r12]
	mov	rsi, QWORD PTR 16[rax]
	cmp	QWORD PTR [rdx], rcx
	je	.L9
	mov	r13d, DWORD PTR 8[rsi]
	mov	r14d, 1
.L6:
	mov	rdi, r12
	call	[QWORD PTR [rax]]
	mov	rdi, r12
	mov	ebx, eax
	mov	rax, QWORD PTR [r12]
	call	[QWORD PTR 8[rax]]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r9d, ebx
	mov	ecx, 1
	push	32
	.cfi_def_cfa_offset 64
	mov	r8d, eax
	xor	edx, edx
	mov	esi, r14d
	push	r13
	.cfi_def_cfa_offset 72
	mov	rdi, rbp
	push	r13
	.cfi_def_cfa_offset 80
	call	gfx_v9_0_wait_reg_mem@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
.L1:
	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
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR [rdi]
	cmp	edx, 1
	je	.L3
	cmp	edx, 2
	jne	.L1
	mov	ecx, DWORD PTR 4[rdi]
	mov	r13d, DWORD PTR 4[rsi]
	xor	r14d, r14d
	sal	r13d, cl
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR 4[rdi]
	mov	r13d, DWORD PTR [rsi]
	xor	r14d, r14d
	sal	r13d, cl
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	gfx_v9_0_ring_emit_hdp_flush, .-gfx_v9_0_ring_emit_hdp_flush
	.comm	AMDGPU_RING_TYPE_COMPUTE,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_gfx_v9_0.c_gfx_v9_0_ring_emit_hdp_flush.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gfx_v9_0_ring_emit_hdp_flush, %function
gfx_v9_0_ring_emit_hdp_flush:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L10
	ldr	r2, [r0, #8]
	ldr	r5, [r0, #12]
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [r5]
	cmp	r1, r2
	mov	r4, r0
	ldr	r2, [r3, #8]
	sub	sp, sp, #28
	beq	.L9
	mov	r7, #1
	ldr	r6, [r2, #8]
.L6:
	mov	r0, r5
	ldr	r3, [r3, #4]
	blx	r3
	mov	r3, r0
	ldr	r2, [r5]
	mov	r0, r5
	ldr	r2, [r2]
	mov	r5, r3
	blx	r2
	mov	r3, #32
	str	r0, [sp, #4]
	str	r3, [sp, #16]
	mov	r1, r7
	mov	r0, r4
	mov	r3, #1
	mov	r2, #0
	str	r5, [sp]
	str	r6, [sp, #12]
	str	r6, [sp, #8]
	bl	gfx_v9_0_wait_reg_mem
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r1, [r0]
	cmp	r1, #1
	beq	.L3
	cmp	r1, #2
	bne	.L1
	ldr	r6, [r2, #4]
	ldr	r2, [r0, #4]
	mov	r7, #0
	lsl	r6, r6, r2
	b	.L6
.L3:
	ldr	r6, [r2]
	ldr	r2, [r0, #4]
	mov	r7, #0
	lsl	r6, r6, r2
	b	.L6
.L11:
	.align	2
.L10:
	.word	AMDGPU_RING_TYPE_COMPUTE
	.size	gfx_v9_0_ring_emit_hdp_flush, .-gfx_v9_0_ring_emit_hdp_flush
	.comm	AMDGPU_RING_TYPE_COMPUTE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
