	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_interrupt
_snd_cmipci_interrupt:                  ## @snd_cmipci_interrupt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %ebx
	movq	_CM_REG_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_snd_cmipci_read
	movl	%eax, %r14d
	movq	_CM_INTR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	24(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	_CM_CHINT0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	je	LBB0_4
## %bb.3:
	movq	_CM_CH0_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movq	_CM_CHINT1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%r14d, %ebx
	je	LBB0_6
## %bb.5:
	movq	_CM_CH1_INT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_6:
	orl	%eax, %ebx
	movq	_CM_REG_INT_HLDCLR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_snd_cmipci_clear_bit
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_snd_cmipci_set_bit
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_CM_UARTINT@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_snd_mpu401_uart_interrupt
LBB0_9:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	cmpq	$0, 8(%r13)
	je	LBB0_16
## %bb.10:
	movq	_CM_CHINT0@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.11:
	movq	(%r13), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.12:
	movl	(%rax), %edi
	callq	_snd_pcm_period_elapsed
LBB0_13:
	movq	_CM_CHINT1@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_16
## %bb.14:
	movq	(%r13), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_16
## %bb.15:
	movl	16(%rax), %edi
	callq	_snd_pcm_period_elapsed
	jmp	LBB0_16
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
LBB0_16:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_REG_INT_STATUS,4,2          ## @CM_REG_INT_STATUS
	.comm	_CM_INTR,4,2                    ## @CM_INTR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_CM_CHINT0,4,2                  ## @CM_CHINT0
	.comm	_CM_CH0_INT_EN,4,2              ## @CM_CH0_INT_EN
	.comm	_CM_CHINT1,4,2                  ## @CM_CHINT1
	.comm	_CM_CH1_INT_EN,4,2              ## @CM_CH1_INT_EN
	.comm	_CM_REG_INT_HLDCLR,4,2          ## @CM_REG_INT_HLDCLR
	.comm	_CM_UARTINT,4,2                 ## @CM_UARTINT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_snd_cmipci_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cmipci_interrupt
_snd_cmipci_interrupt:                  ; @snd_cmipci_interrupt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CM_REG_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_REG_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_cmipci_read
Lloh3:
	adrp	x8, _CM_INTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CM_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.1:
	mov	x20, x0
	add	x22, x19, #24
	mov	x0, x22
	bl	_spin_lock
Lloh6:
	adrp	x25, _CM_CHINT0@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CM_CHINT0@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh8:
	adrp	x9, _CM_CH0_INT_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CM_CH0_INT_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w8, w20
	csel	w8, wzr, w9, eq
Lloh11:
	adrp	x24, _CM_CHINT1@GOTPAGE
Lloh12:
	ldr	x24, [x24, _CM_CHINT1@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh13:
	adrp	x10, _CM_CH1_INT_EN@GOTPAGE
Lloh14:
	ldr	x10, [x10, _CM_CH1_INT_EN@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	tst	w9, w20
	csel	w9, wzr, w10, eq
	orr	w23, w9, w8
Lloh16:
	adrp	x26, _CM_REG_INT_HLDCLR@GOTPAGE
Lloh17:
	ldr	x26, [x26, _CM_REG_INT_HLDCLR@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x23
	bl	_snd_cmipci_clear_bit
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x23
	bl	_snd_cmipci_set_bit
	mov	x0, x22
	bl	_spin_unlock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
Lloh18:
	adrp	x9, _CM_UARTINT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CM_UARTINT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_snd_mpu401_uart_interrupt
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.5:
	ldr	w8, [x25]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_8
; %bb.7:
	ldr	w0, [x8]
	bl	_snd_pcm_period_elapsed
LBB0_8:
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.9:
	ldr	x8, [x19]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_11
; %bb.10:
	ldr	w0, [x8, #16]
	bl	_snd_pcm_period_elapsed
LBB0_11:
Lloh21:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh23:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_REG_INT_STATUS,4,2          ; @CM_REG_INT_STATUS
	.comm	_CM_INTR,4,2                    ; @CM_INTR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_CM_CHINT0,4,2                  ; @CM_CHINT0
	.comm	_CM_CH0_INT_EN,4,2              ; @CM_CH0_INT_EN
	.comm	_CM_CHINT1,4,2                  ; @CM_CHINT1
	.comm	_CM_CH1_INT_EN,4,2              ; @CM_CH1_INT_EN
	.comm	_CM_REG_INT_HLDCLR,4,2          ; @CM_REG_INT_HLDCLR
	.comm	_CM_UARTINT,4,2                 ; @CM_UARTINT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_snd_cmipci_interrupt
.subsections_via_symbols
