	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v10_0_set_gfx_eop_interrupt_state
_gfx_v10_0_set_gfx_eop_interrupt_state: ## @gfx_v10_0_set_gfx_eop_interrupt_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%esi, %esi
	je	LBB0_1
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_DEBUG                      ## TAILCALL
LBB0_1:
	movl	%ecx, %ebx
	testl	%edx, %edx
	je	LBB0_2
## %bb.3:
	cmpl	$1, %edx
	jne	LBB0_9
## %bb.4:
	movq	_mmCP_INT_CNTL_RING1@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_mmCP_INT_CNTL_RING0@GOTPCREL(%rip), %rax
LBB0_5:
	movq	_GC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	%eax, %r14d
	cmpl	$128, %ebx
	je	LBB0_12
## %bb.6:
	cmpl	$129, %ebx
	jne	LBB0_13
## %bb.7:
	movl	%r14d, %edi
	callq	_RREG32
	movq	_CP_INT_CNTL_RING0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	jmp	LBB0_11
LBB0_12:
	movl	%r14d, %edi
	callq	_RREG32
	movq	_CP_INT_CNTL_RING0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
LBB0_8:
	callq	_REG_SET_FIELD
	movl	%r14d, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_mmCP_INT_CNTL_RING0,4,2        ## @mmCP_INT_CNTL_RING0
	.comm	_mmCP_INT_CNTL_RING1,4,2        ## @mmCP_INT_CNTL_RING1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid pipe %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid me %d\n"

	.comm	_CP_INT_CNTL_RING0,4,2          ## @CP_INT_CNTL_RING0
	.comm	_TIME_STAMP_INT_ENABLE,4,2      ## @TIME_STAMP_INT_ENABLE
	.no_dead_strip	_gfx_v10_0_set_gfx_eop_interrupt_state
.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_set_gfx_eop_interrupt_state
_gfx_v10_0_set_gfx_eop_interrupt_state: ; @gfx_v10_0_set_gfx_eop_interrupt_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	w1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEBUG
LBB0_3:
	mov	x20, x3
	cbz	w2, LBB0_6
; %bb.4:
	cmp	w2, #1
	b.ne	LBB0_10
; %bb.5:
Lloh2:
	adrp	x8, _mmCP_INT_CNTL_RING1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmCP_INT_CNTL_RING1@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _mmCP_INT_CNTL_RING0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mmCP_INT_CNTL_RING0@GOTPAGEOFF]
LBB0_7:
Lloh6:
	adrp	x9, _GC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x19, x0
	cmp	w20, #128
	b.eq	LBB0_11
; %bb.8:
	cmp	w20, #129
	b.ne	LBB0_13
; %bb.9:
	mov	x0, x19
	bl	_RREG32
Lloh9:
	adrp	x8, _CP_INT_CNTL_RING0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CP_INT_CNTL_RING0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _TIME_STAMP_INT_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TIME_STAMP_INT_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w3, #0
	b	LBB0_12
LBB0_10:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	b	LBB0_2
LBB0_11:
	mov	x0, x19
	bl	_RREG32
Lloh17:
	adrp	x8, _CP_INT_CNTL_RING0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CP_INT_CNTL_RING0@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _TIME_STAMP_INT_ENABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TIME_STAMP_INT_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w3, #1
LBB0_12:
	bl	_REG_SET_FIELD
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_mmCP_INT_CNTL_RING0,4,2        ; @mmCP_INT_CNTL_RING0
	.comm	_mmCP_INT_CNTL_RING1,4,2        ; @mmCP_INT_CNTL_RING1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid pipe %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid me %d\n"

	.comm	_CP_INT_CNTL_RING0,4,2          ; @CP_INT_CNTL_RING0
	.comm	_TIME_STAMP_INT_ENABLE,4,2      ; @TIME_STAMP_INT_ENABLE
	.no_dead_strip	_gfx_v10_0_set_gfx_eop_interrupt_state
.subsections_via_symbols
