	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v10_0_set_compute_eop_interrupt_state
_gfx_v10_0_set_compute_eop_interrupt_state: ## @gfx_v10_0_set_compute_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
	cmpl	$1, %esi
	jne	LBB0_3
## %bb.1:
	cmpl	$4, %edx
	jae	LBB0_2
## %bb.5:
	movl	%ecx, %ebx
	movslq	%edx, %rax
	leaq	l_switch.table.gfx_v10_0_set_compute_eop_interrupt_state(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	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_9
## %bb.6:
	cmpl	$129, %ebx
	jne	LBB0_10
## %bb.7:
	movl	%r14d, %edi
	callq	_RREG32
	movq	_CP_ME1_PIPE0_INT_CNTL@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_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_DEBUG                      ## TAILCALL
LBB0_9:
	movl	%r14d, %edi
	callq	_RREG32
	movq	_CP_ME1_PIPE0_INT_CNTL@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_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_mmCP_ME1_PIPE0_INT_CNTL,4,2    ## @mmCP_ME1_PIPE0_INT_CNTL
	.comm	_mmCP_ME1_PIPE1_INT_CNTL,4,2    ## @mmCP_ME1_PIPE1_INT_CNTL
	.comm	_mmCP_ME1_PIPE2_INT_CNTL,4,2    ## @mmCP_ME1_PIPE2_INT_CNTL
	.comm	_mmCP_ME1_PIPE3_INT_CNTL,4,2    ## @mmCP_ME1_PIPE3_INT_CNTL
	.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_ME1_PIPE0_INT_CNTL,4,2      ## @CP_ME1_PIPE0_INT_CNTL
	.comm	_TIME_STAMP_INT_ENABLE,4,2      ## @TIME_STAMP_INT_ENABLE
	.no_dead_strip	_gfx_v10_0_set_compute_eop_interrupt_state
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.gfx_v10_0_set_compute_eop_interrupt_state
l_switch.table.gfx_v10_0_set_compute_eop_interrupt_state:
	.quad	_mmCP_ME1_PIPE0_INT_CNTL
	.quad	_mmCP_ME1_PIPE1_INT_CNTL
	.quad	_mmCP_ME1_PIPE2_INT_CNTL
	.quad	_mmCP_ME1_PIPE3_INT_CNTL

.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_compute_eop_interrupt_state
_gfx_v10_0_set_compute_eop_interrupt_state: ; @gfx_v10_0_set_compute_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
	cmp	w1, #1
	b.ne	LBB0_5
; %bb.1:
	cmp	w2, #4
	b.hs	LBB0_6
; %bb.2:
	mov	x20, x3
Lloh0:
	adrp	x8, l_switch.table.gfx_v10_0_set_compute_eop_interrupt_state@PAGE
Lloh1:
	add	x8, x8, l_switch.table.gfx_v10_0_set_compute_eop_interrupt_state@PAGEOFF
	ldr	x8, [x8, w2, sxtw #3]
Lloh2:
	adrp	x9, _GC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x19, x0
	cmp	w20, #128
	b.eq	LBB0_8
; %bb.3:
	cmp	w20, #129
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_RREG32
Lloh5:
	adrp	x8, _CP_ME1_PIPE0_INT_CNTL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CP_ME1_PIPE0_INT_CNTL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _TIME_STAMP_INT_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TIME_STAMP_INT_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w3, #0
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEBUG
LBB0_8:
	mov	x0, x19
	bl	_RREG32
Lloh15:
	adrp	x8, _CP_ME1_PIPE0_INT_CNTL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CP_ME1_PIPE0_INT_CNTL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _TIME_STAMP_INT_ENABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TIME_STAMP_INT_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w3, #1
LBB0_9:
	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_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_mmCP_ME1_PIPE0_INT_CNTL,4,2    ; @mmCP_ME1_PIPE0_INT_CNTL
	.comm	_mmCP_ME1_PIPE1_INT_CNTL,4,2    ; @mmCP_ME1_PIPE1_INT_CNTL
	.comm	_mmCP_ME1_PIPE2_INT_CNTL,4,2    ; @mmCP_ME1_PIPE2_INT_CNTL
	.comm	_mmCP_ME1_PIPE3_INT_CNTL,4,2    ; @mmCP_ME1_PIPE3_INT_CNTL
	.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_ME1_PIPE0_INT_CNTL,4,2      ; @CP_ME1_PIPE0_INT_CNTL
	.comm	_TIME_STAMP_INT_ENABLE,4,2      ; @TIME_STAMP_INT_ENABLE
	.no_dead_strip	_gfx_v10_0_set_compute_eop_interrupt_state
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.gfx_v10_0_set_compute_eop_interrupt_state
l_switch.table.gfx_v10_0_set_compute_eop_interrupt_state:
	.quad	_mmCP_ME1_PIPE0_INT_CNTL
	.quad	_mmCP_ME1_PIPE1_INT_CNTL
	.quad	_mmCP_ME1_PIPE2_INT_CNTL
	.quad	_mmCP_ME1_PIPE3_INT_CNTL

.subsections_via_symbols
