	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v8_0_set_compute_eop_interrupt_state
_gfx_v8_0_set_compute_eop_interrupt_state: ## @gfx_v8_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$1, %esi
	jne	LBB0_3
## %bb.1:
	cmpl	$4, %edx
	jae	LBB0_2
## %bb.5:
	movslq	%edx, %rax
	leaq	l_switch.table.gfx_v8_0_set_compute_eop_interrupt_state(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %ebx
	cmpl	$128, %ecx
	je	LBB0_8
## %bb.6:
	cmpl	$129, %ecx
	jne	LBB0_10
## %bb.7:
	movl	%ebx, %edi
	callq	_RREG32
	movq	_CP_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_DEBUG                      ## TAILCALL
LBB0_8:
	movl	%ebx, %edi
	callq	_RREG32
	movq	_CP_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK,4,2 ## @CP_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK
	.no_dead_strip	_gfx_v8_0_set_compute_eop_interrupt_state
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.gfx_v8_0_set_compute_eop_interrupt_state
l_switch.table.gfx_v8_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_v8_0_set_compute_eop_interrupt_state
_gfx_v8_0_set_compute_eop_interrupt_state: ; @gfx_v8_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:
Lloh0:
	adrp	x8, l_switch.table.gfx_v8_0_set_compute_eop_interrupt_state@PAGE
Lloh1:
	add	x8, x8, l_switch.table.gfx_v8_0_set_compute_eop_interrupt_state@PAGEOFF
	ldr	x8, [x8, w2, sxtw #3]
	ldr	w19, [x8]
	cmp	w3, #128
	b.eq	LBB0_8
; %bb.3:
	cmp	w3, #129
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_RREG32
Lloh2:
	adrp	x8, _CP_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CP_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w1, w0, w8
	b	LBB0_9
LBB0_5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	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
Lloh9:
	adrp	x8, _CP_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CP_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w1, w8, w0
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.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_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK,4,2 ; @CP_INT_CNTL_RING0__TIME_STAMP_INT_ENABLE_MASK
	.no_dead_strip	_gfx_v8_0_set_compute_eop_interrupt_state
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.gfx_v8_0_set_compute_eop_interrupt_state
l_switch.table.gfx_v8_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
