	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs46xx_interrupt
_snd_cs46xx_interrupt:                  ## @snd_cs46xx_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_BA0_HISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_cs46xx_peekBA0
	testl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	_HISR_VC0@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.3:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_snd_pcm_period_elapsed
LBB0_6:
	movq	_HISR_VC1@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.7:
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.8:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_snd_pcm_period_elapsed
LBB0_10:
	movq	_HISR_MIDI@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_24
## %bb.11:
	cmpq	$0, 16(%rbx)
	je	LBB0_24
## %bb.12:
	leaq	4(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	_BA0_MIDSR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_snd_cs46xx_peekBA0
	movq	_MIDSR_RBE@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_13
LBB0_17:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_snd_cs46xx_peekBA0
	movq	_MIDSR_TBF@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_18
LBB0_23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
LBB0_24:
	movq	_BA0_HICR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HICR_CHGM@GOTPCREL(%rip), %rax
	movq	_HICR_IEV@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	(%rax), %cl
	movzbl	%cl, %edx
	movq	%rbx, %rdi
	callq	_snd_cs46xx_pokeBA0
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_1:
	movq	_BA0_HICR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HICR_CHGM@GOTPCREL(%rip), %rax
	movq	_HICR_IEV@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	(%rax), %cl
	movzbl	%cl, %edx
	movq	%rbx, %rdi
	callq	_snd_cs46xx_pokeBA0
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_BA0_MIDRP@GOTPCREL(%rip), %r13
	movq	_MIDCR_RIE@GOTPCREL(%rip), %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_snd_cs46xx_peekBA0
	testl	%eax, (%r14)
	jne	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_snd_cs46xx_peekBA0
	movb	%al, -41(%rbp)
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	12(%rbx), %edi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_snd_rawmidi_receive
	jmp	LBB0_16
LBB0_18:
	movq	_MIDCR_TIE@GOTPCREL(%rip), %r14
	leaq	-41(%rbp), %r15
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit
	cmpl	$1, %eax
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_BA0_MIDWP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-41(%rbp), %edx
	movq	%rbx, %rdi
	callq	_snd_cs46xx_pokeBA0
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_snd_cs46xx_peekBA0
	testl	%eax, (%r13)
	je	LBB0_19
	jmp	LBB0_23
LBB0_21:
	movl	(%r14), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_BA0_MIDCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_snd_cs46xx_pokeBA0
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_BA0_HISR,4,2                   ## @BA0_HISR
	.comm	_BA0_HICR,4,2                   ## @BA0_HICR
	.comm	_HICR_CHGM,1,0                  ## @HICR_CHGM
	.comm	_HICR_IEV,1,0                   ## @HICR_IEV
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_HISR_VC0,4,2                   ## @HISR_VC0
	.comm	_HISR_VC1,4,2                   ## @HISR_VC1
	.comm	_HISR_MIDI,4,2                  ## @HISR_MIDI
	.comm	_BA0_MIDSR,4,2                  ## @BA0_MIDSR
	.comm	_MIDSR_RBE,4,2                  ## @MIDSR_RBE
	.comm	_BA0_MIDRP,4,2                  ## @BA0_MIDRP
	.comm	_MIDCR_RIE,4,2                  ## @MIDCR_RIE
	.comm	_MIDSR_TBF,4,2                  ## @MIDSR_TBF
	.comm	_MIDCR_TIE,4,2                  ## @MIDCR_TIE
	.comm	_BA0_MIDCR,4,2                  ## @BA0_MIDCR
	.comm	_BA0_MIDWP,4,2                  ## @BA0_MIDWP
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_BA0_HSR0,4,2                   ## @BA0_HSR0
	.comm	_CS46XX_DSP_CAPTURE_CHANNEL,4,2 ## @CS46XX_DSP_CAPTURE_CHANNEL
	.comm	_DSP_MAX_PCM_CHANNELS,4,2       ## @DSP_MAX_PCM_CHANNELS
	.no_dead_strip	_snd_cs46xx_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs46xx_interrupt
_snd_cs46xx_interrupt:                  ; @snd_cs46xx_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _BA0_HISR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BA0_HISR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_cs46xx_peekBA0
	tst	w0, #0x7fffffff
	b.eq	LBB0_15
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _HISR_VC0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HISR_VC0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_snd_pcm_period_elapsed
LBB0_5:
Lloh6:
	adrp	x8, _HISR_VC1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HISR_VC1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_snd_pcm_period_elapsed
LBB0_9:
Lloh9:
	adrp	x8, _HISR_MIDI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HISR_MIDI@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.10:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.11:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
Lloh12:
	adrp	x21, _BA0_MIDSR@GOTPAGE
Lloh13:
	ldr	x21, [x21, _BA0_MIDSR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_cs46xx_peekBA0
Lloh14:
	adrp	x22, _MIDSR_RBE@GOTPAGE
Lloh15:
	ldr	x22, [x22, _MIDSR_RBE@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_17
LBB0_12:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_cs46xx_peekBA0
Lloh16:
	adrp	x22, _MIDSR_TBF@GOTPAGE
Lloh17:
	ldr	x22, [x22, _MIDSR_TBF@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_21
LBB0_13:
	mov	x0, x20
	bl	_spin_unlock
LBB0_14:
Lloh18:
	adrp	x8, _BA0_HICR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BA0_HICR@GOTPAGEOFF]
Lloh20:
	adrp	x9, _HICR_CHGM@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HICR_CHGM@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldrb	w8, [x9]
Lloh23:
	adrp	x9, _HICR_IEV@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HICR_IEV@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_snd_cs46xx_pokeBA0
Lloh25:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh27:
	adrp	x8, _BA0_HICR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BA0_HICR@GOTPAGEOFF]
Lloh29:
	adrp	x9, _HICR_CHGM@GOTPAGE
Lloh30:
	ldr	x9, [x9, _HICR_CHGM@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldrb	w8, [x9]
Lloh32:
	adrp	x9, _HICR_IEV@GOTPAGE
Lloh33:
	ldr	x9, [x9, _HICR_IEV@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_snd_cs46xx_pokeBA0
Lloh34:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_16:
	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
	add	sp, sp, #80
	ret
LBB0_17:
Lloh36:
	adrp	x23, _BA0_MIDRP@GOTPAGE
Lloh37:
	ldr	x23, [x23, _BA0_MIDRP@GOTPAGEOFF]
Lloh38:
	adrp	x24, _MIDCR_RIE@GOTPAGE
Lloh39:
	ldr	x24, [x24, _MIDCR_RIE@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_cs46xx_peekBA0
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_12
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_cs46xx_peekBA0
	strb	w0, [sp, #15]
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x19, #12]
	add	x1, sp, #15
	mov	w2, #1
	bl	_snd_rawmidi_receive
	b	LBB0_18
LBB0_21:
Lloh40:
	adrp	x23, _MIDCR_TIE@GOTPAGE
Lloh41:
	ldr	x23, [x23, _MIDCR_TIE@GOTPAGEOFF]
Lloh42:
	adrp	x24, _BA0_MIDWP@GOTPAGE
Lloh43:
	ldr	x24, [x24, _BA0_MIDWP@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w0, [x19, #8]
	add	x1, sp, #15
	mov	w2, #1
	bl	_snd_rawmidi_transmit
	cmp	w0, #1
	b.ne	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w1, [x24]
	ldrb	w2, [sp, #15]
	mov	x0, x19
	bl	_snd_cs46xx_pokeBA0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_cs46xx_peekBA0
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_22
	b	LBB0_13
LBB0_25:
	ldr	w8, [x23]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh44:
	adrp	x9, _BA0_MIDCR@GOTPAGE
Lloh45:
	ldr	x9, [x9, _BA0_MIDCR@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x9]
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_snd_cs46xx_pokeBA0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_BA0_HISR,4,2                   ; @BA0_HISR
	.comm	_BA0_HICR,4,2                   ; @BA0_HICR
	.comm	_HICR_CHGM,1,0                  ; @HICR_CHGM
	.comm	_HICR_IEV,1,0                   ; @HICR_IEV
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_HISR_VC0,4,2                   ; @HISR_VC0
	.comm	_HISR_VC1,4,2                   ; @HISR_VC1
	.comm	_HISR_MIDI,4,2                  ; @HISR_MIDI
	.comm	_BA0_MIDSR,4,2                  ; @BA0_MIDSR
	.comm	_MIDSR_RBE,4,2                  ; @MIDSR_RBE
	.comm	_BA0_MIDRP,4,2                  ; @BA0_MIDRP
	.comm	_MIDCR_RIE,4,2                  ; @MIDCR_RIE
	.comm	_MIDSR_TBF,4,2                  ; @MIDSR_TBF
	.comm	_MIDCR_TIE,4,2                  ; @MIDCR_TIE
	.comm	_BA0_MIDCR,4,2                  ; @BA0_MIDCR
	.comm	_BA0_MIDWP,4,2                  ; @BA0_MIDWP
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_BA0_HSR0,4,2                   ; @BA0_HSR0
	.comm	_CS46XX_DSP_CAPTURE_CHANNEL,4,2 ; @CS46XX_DSP_CAPTURE_CHANNEL
	.comm	_DSP_MAX_PCM_CHANNELS,4,2       ; @DSP_MAX_PCM_CHANNELS
	.no_dead_strip	_snd_cs46xx_interrupt
.subsections_via_symbols
