	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cik_sdma_set_trap_irq_state
_cik_sdma_set_trap_irq_state:           ## @cik_sdma_set_trap_irq_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	$128, %edx
	je	LBB0_7
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_13
## %bb.2:
	cmpl	$130, %ecx
	je	LBB0_6
## %bb.3:
	cmpl	$131, %ecx
	jne	LBB0_13
## %bb.4:
	movq	_mmSDMA0_CNTL@GOTPCREL(%rip), %rax
	movq	_SDMA0_REGISTER_OFFSET@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_7:
	cmpl	$130, %ecx
	je	LBB0_10
## %bb.8:
	cmpl	$131, %ecx
	jne	LBB0_13
## %bb.9:
	movq	_mmSDMA0_CNTL@GOTPCREL(%rip), %rax
	movq	_SDMA1_REGISTER_OFFSET@GOTPCREL(%rip), %rbx
LBB0_5:
	movq	(%rbx), %rdi
	addq	(%rax), %rdi
	callq	_RREG32
	movq	_SDMA0_CNTL__TRAP_ENABLE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	jmp	LBB0_12
LBB0_6:
	movq	_mmSDMA0_CNTL@GOTPCREL(%rip), %rax
	movq	_SDMA0_REGISTER_OFFSET@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_10:
	movq	_mmSDMA0_CNTL@GOTPCREL(%rip), %rax
	movq	_SDMA1_REGISTER_OFFSET@GOTPCREL(%rip), %rbx
LBB0_11:
	movq	(%rbx), %rdi
	addq	(%rax), %rdi
	callq	_RREG32
	movl	%eax, %esi
	movq	_SDMA0_CNTL__TRAP_ENABLE_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
LBB0_12:
	movq	_mmSDMA0_CNTL@GOTPCREL(%rip), %rax
	movq	(%rbx), %rdi
	addq	(%rax), %rdi
	callq	_WREG32
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmSDMA0_CNTL,8,3               ## @mmSDMA0_CNTL
	.comm	_SDMA0_REGISTER_OFFSET,8,3      ## @SDMA0_REGISTER_OFFSET
	.comm	_SDMA0_CNTL__TRAP_ENABLE_MASK,4,2 ## @SDMA0_CNTL__TRAP_ENABLE_MASK
	.comm	_SDMA1_REGISTER_OFFSET,8,3      ## @SDMA1_REGISTER_OFFSET
	.no_dead_strip	_cik_sdma_set_trap_irq_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cik_sdma_set_trap_irq_state
_cik_sdma_set_trap_irq_state:           ; @cik_sdma_set_trap_irq_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	w2, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_13
; %bb.2:
	cmp	w3, #130
	b.eq	LBB0_9
; %bb.3:
	cmp	w3, #131
	b.ne	LBB0_13
; %bb.4:
Lloh0:
	adrp	x8, _mmSDMA0_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmSDMA0_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x19, _SDMA0_REGISTER_OFFSET@GOTPAGE
Lloh4:
	ldr	x19, [x19, _SDMA0_REGISTER_OFFSET@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	cmp	w3, #130
	b.eq	LBB0_10
; %bb.6:
	cmp	w3, #131
	b.ne	LBB0_13
; %bb.7:
Lloh5:
	adrp	x8, _mmSDMA0_CNTL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmSDMA0_CNTL@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x19, _SDMA1_REGISTER_OFFSET@GOTPAGE
Lloh9:
	ldr	x19, [x19, _SDMA1_REGISTER_OFFSET@GOTPAGEOFF]
LBB0_8:
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh10:
	adrp	x8, _SDMA0_CNTL__TRAP_ENABLE_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDMA0_CNTL__TRAP_ENABLE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w1, w0, w8
	b	LBB0_12
LBB0_9:
Lloh13:
	adrp	x8, _mmSDMA0_CNTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmSDMA0_CNTL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x19, _SDMA0_REGISTER_OFFSET@GOTPAGE
Lloh17:
	ldr	x19, [x19, _SDMA0_REGISTER_OFFSET@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x8, _mmSDMA0_CNTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mmSDMA0_CNTL@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x19, _SDMA1_REGISTER_OFFSET@GOTPAGE
Lloh22:
	ldr	x19, [x19, _SDMA1_REGISTER_OFFSET@GOTPAGEOFF]
LBB0_11:
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh23:
	adrp	x8, _SDMA0_CNTL__TRAP_ENABLE_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SDMA0_CNTL__TRAP_ENABLE_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w1, w8, w0
LBB0_12:
Lloh26:
	adrp	x8, _mmSDMA0_CNTL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _mmSDMA0_CNTL@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_WREG32
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_mmSDMA0_CNTL,8,3               ; @mmSDMA0_CNTL
	.comm	_SDMA0_REGISTER_OFFSET,8,3      ; @SDMA0_REGISTER_OFFSET
	.comm	_SDMA0_CNTL__TRAP_ENABLE_MASK,4,2 ; @SDMA0_CNTL__TRAP_ENABLE_MASK
	.comm	_SDMA1_REGISTER_OFFSET,8,3      ; @SDMA1_REGISTER_OFFSET
	.no_dead_strip	_cik_sdma_set_trap_irq_state
.subsections_via_symbols
