	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v10_0_eop_irq
_gfx_v10_0_eop_irq:                     ## @gfx_v10_0_eop_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movl	(%r14), %edx
	movl	%edx, %r13d
	shrl	$2, %r13d
	andl	$3, %r13d
	movl	%edx, %r14d
	andl	$3, %r14d
	leal	-1(%r13), %eax
	cmpl	$2, %eax
	jae	LBB0_8
## %bb.1:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.2:
	shrl	$4, %edx
	andl	$7, %edx
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$12, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	cmpl	%r13d, (%rdi,%rbx)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r14d, 4(%rdi,%rbx)
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edx, 8(%rdi,%rbx)
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %rdi
	callq	_amdgpu_fence_process
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	(%r15), %eax
	jmp	LBB0_3
LBB0_8:
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.9:
	movq	16(%r15), %rdi
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:
	addq	$12, %rdi
LBB0_11:
	callq	_amdgpu_fence_process
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IH: CP EOP\n"

	.no_dead_strip	_gfx_v10_0_eop_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v10_0_eop_irq
_gfx_v10_0_eop_irq:                     ; @gfx_v10_0_eop_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w9, [x20]
	ubfx	w21, w9, #2, #2
	and	w20, w9, #0x3
	sub	w8, w21, #1
	cmp	w8, #2
	b.hs	LBB0_8
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x22, #0
	mov	x23, #0
	ubfx	w24, w9, #4, #3
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	add	x22, x22, #12
	cmp	x23, w8, sxtw
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x0, x9, x22
	ldr	w10, [x0]
	cmp	w10, w21
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x0, #4]
	cmp	w10, w20
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, x22
	ldr	w9, [x9, #8]
	cmp	w9, w24
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_amdgpu_fence_process
	ldr	w8, [x19]
	b	LBB0_3
LBB0_8:
	cbnz	w21, LBB0_12
; %bb.9:
	ldr	x0, [x19, #16]
	cbz	w20, LBB0_11
; %bb.10:
	add	x0, x0, #12
LBB0_11:
	bl	_amdgpu_fence_process
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IH: CP EOP\n"

	.no_dead_strip	_gfx_v10_0_eop_irq
.subsections_via_symbols
