	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_v3_0_set_trap_irq_state
_sdma_v3_0_set_trap_irq_state:          ## @sdma_v3_0_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$128, %edx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_9
## %bb.2:
	movq	_SDMA0_REGISTER_OFFSET@GOTPCREL(%rip), %rbx
	cmpl	$131, %ecx
	je	LBB0_7
LBB0_5:
	cmpl	$130, %ecx
	jne	LBB0_9
## %bb.6:
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_4:
	movq	_SDMA1_REGISTER_OFFSET@GOTPCREL(%rip), %rbx
	cmpl	$131, %ecx
	jne	LBB0_5
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	_mmSDMA0_CNTL@GOTPCREL(%rip), %r15
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movq	_SDMA0_CNTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TRAP_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%r14d, %ecx
	callq	_REG_SET_FIELD
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	movl	%eax, %esi
	callq	_WREG32
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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,4,2                 ## @SDMA0_CNTL
	.comm	_TRAP_ENABLE,4,2                ## @TRAP_ENABLE
	.comm	_SDMA1_REGISTER_OFFSET,8,3      ## @SDMA1_REGISTER_OFFSET
	.no_dead_strip	_sdma_v3_0_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 sdma_v3_0_set_trap_irq_state
_sdma_v3_0_set_trap_irq_state:          ; @sdma_v3_0_set_trap_irq_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_13
; %bb.2:
	cmp	w3, #131
	b.eq	LBB0_8
; %bb.3:
	cmp	w3, #130
	b.ne	LBB0_13
; %bb.4:
	mov	w19, #1
	b	LBB0_9
LBB0_5:
	cmp	w3, #131
	b.eq	LBB0_10
; %bb.6:
	cmp	w3, #130
	b.ne	LBB0_13
; %bb.7:
	mov	w19, #1
	b	LBB0_11
LBB0_8:
	mov	w19, #0
LBB0_9:
Lloh0:
	adrp	x20, _SDMA0_REGISTER_OFFSET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SDMA0_REGISTER_OFFSET@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	w19, #0
LBB0_11:
Lloh2:
	adrp	x20, _SDMA1_REGISTER_OFFSET@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SDMA1_REGISTER_OFFSET@GOTPAGEOFF]
LBB0_12:
Lloh4:
	adrp	x21, _mmSDMA0_CNTL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _mmSDMA0_CNTL@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_RREG32
Lloh6:
	adrp	x8, _SDMA0_CNTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDMA0_CNTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _TRAP_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRAP_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_WREG32
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mmSDMA0_CNTL,8,3               ; @mmSDMA0_CNTL
	.comm	_SDMA0_REGISTER_OFFSET,8,3      ; @SDMA0_REGISTER_OFFSET
	.comm	_SDMA0_CNTL,4,2                 ; @SDMA0_CNTL
	.comm	_TRAP_ENABLE,4,2                ; @TRAP_ENABLE
	.comm	_SDMA1_REGISTER_OFFSET,8,3      ; @SDMA1_REGISTER_OFFSET
	.no_dead_strip	_sdma_v3_0_set_trap_irq_state
.subsections_via_symbols
