	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_als4000_interrupt
_snd_als4000_interrupt:                 ## @snd_als4000_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, %r12
	movl	%edi, %r15d
	movl	(%rsi), %edi
	movq	_ALS4K_IOB_0E_IRQTYPE_SB_CR1E_MPU@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_snd_als4k_iobase_readb
	movl	%eax, %r14d
	movq	_ALS4K_IOB_0E_SB_DMA_IRQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.1:
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_snd_pcm_period_elapsed
LBB0_3:
	movq	_ALS4K_IOB_0E_CR1E_IRQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.4:
	movq	24(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_snd_pcm_period_elapsed
LBB0_6:
	movq	_ALS4K_IOB_0E_MPU_IRQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.7:
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_snd_mpu401_uart_interrupt
LBB0_9:
	movl	(%r12), %edi
	movl	(%rbx), %esi
	movl	%r14d, %edx
	callq	_snd_als4k_iobase_writeb
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_SB_DSP4_IRQSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_sbmixer_read
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_SB_IRQTYPE_8BIT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_snd_sb_ack_8bit
LBB0_11:
	movq	_SB_IRQTYPE_16BIT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_snd_sb_ack_16bit
LBB0_13:
	movq	_SB_IRQTYPE_MPUIN@GOTPCREL(%rip), %rbx
	testl	%r15d, (%rbx)
	je	LBB0_15
## %bb.14:
	movl	4(%r12), %edi
	callq	_inb
LBB0_15:
	movq	_ALS4K_IRQTYPE_CR1E_DMA@GOTPCREL(%rip), %r13
	testl	%r15d, (%r13)
	je	LBB0_17
## %bb.16:
	movl	(%r12), %edi
	movq	_ALS4K_IOB_16_ACK_FOR_CR1E@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_snd_als4k_iobase_readb
LBB0_17:
	movq	_ALS4K_IOB_0E_CR1E_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ALS4K_IOB_0E_SB_DMA_IRQ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ALS4K_IOB_0E_MPU_IRQ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	$1, %edi
	testl	%r14d, %eax
	jne	LBB0_19
## %bb.18:
	movq	_SB_IRQTYPE_16BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SB_IRQTYPE_8BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%rbx), %eax
	orl	(%r13), %eax
	xorl	%edi, %edi
	testl	%r15d, %eax
	setne	%dil
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ALS4K_IOB_0E_IRQTYPE_SB_CR1E_MPU,4,2 ## @ALS4K_IOB_0E_IRQTYPE_SB_CR1E_MPU
	.comm	_ALS4K_IOB_0E_SB_DMA_IRQ,4,2    ## @ALS4K_IOB_0E_SB_DMA_IRQ
	.comm	_ALS4K_IOB_0E_CR1E_IRQ,4,2      ## @ALS4K_IOB_0E_CR1E_IRQ
	.comm	_ALS4K_IOB_0E_MPU_IRQ,4,2       ## @ALS4K_IOB_0E_MPU_IRQ
	.comm	_SB_DSP4_IRQSTATUS,4,2          ## @SB_DSP4_IRQSTATUS
	.comm	_SB_IRQTYPE_8BIT,4,2            ## @SB_IRQTYPE_8BIT
	.comm	_SB_IRQTYPE_16BIT,4,2           ## @SB_IRQTYPE_16BIT
	.comm	_SB_IRQTYPE_MPUIN,4,2           ## @SB_IRQTYPE_MPUIN
	.comm	_ALS4K_IRQTYPE_CR1E_DMA,4,2     ## @ALS4K_IRQTYPE_CR1E_DMA
	.comm	_ALS4K_IOB_16_ACK_FOR_CR1E,4,2  ## @ALS4K_IOB_16_ACK_FOR_CR1E
	.no_dead_strip	_snd_als4000_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_als4000_interrupt
_snd_als4000_interrupt:                 ; @snd_als4000_interrupt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1]
Lloh0:
	adrp	x26, _ALS4K_IOB_0E_IRQTYPE_SB_CR1E_MPU@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ALS4K_IOB_0E_IRQTYPE_SB_CR1E_MPU@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_snd_als4k_iobase_readb
	mov	x19, x0
Lloh2:
	adrp	x23, _ALS4K_IOB_0E_SB_DMA_IRQ@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ALS4K_IOB_0E_SB_DMA_IRQ@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_snd_pcm_period_elapsed
LBB0_3:
Lloh4:
	adrp	x24, _ALS4K_IOB_0E_CR1E_IRQ@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ALS4K_IOB_0E_CR1E_IRQ@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.4:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_snd_pcm_period_elapsed
LBB0_6:
Lloh6:
	adrp	x25, _ALS4K_IOB_0E_MPU_IRQ@GOTPAGE
Lloh7:
	ldr	x25, [x25, _ALS4K_IOB_0E_MPU_IRQ@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w19
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_snd_mpu401_uart_interrupt
LBB0_9:
	mov	x22, x20
	ldr	w0, [x22], #8
	ldr	w1, [x26]
	mov	x2, x19
	bl	_snd_als4k_iobase_writeb
	mov	x0, x22
	bl	_spin_lock
Lloh8:
	adrp	x8, _SB_DSP4_IRQSTATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SB_DSP4_IRQSTATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_sbmixer_read
	mov	x21, x0
	mov	x0, x22
	bl	_spin_unlock
Lloh11:
	adrp	x22, _SB_IRQTYPE_8BIT@GOTPAGE
Lloh12:
	ldr	x22, [x22, _SB_IRQTYPE_8BIT@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_snd_sb_ack_8bit
LBB0_11:
Lloh13:
	adrp	x26, _SB_IRQTYPE_16BIT@GOTPAGE
Lloh14:
	ldr	x26, [x26, _SB_IRQTYPE_16BIT@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_snd_sb_ack_16bit
LBB0_13:
Lloh15:
	adrp	x27, _SB_IRQTYPE_MPUIN@GOTPAGE
Lloh16:
	ldr	x27, [x27, _SB_IRQTYPE_MPUIN@GOTPAGEOFF]
	ldr	w8, [x27]
	tst	w8, w21
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x20, #4]
	bl	_inb
LBB0_15:
Lloh17:
	adrp	x28, _ALS4K_IRQTYPE_CR1E_DMA@GOTPAGE
Lloh18:
	ldr	x28, [x28, _ALS4K_IRQTYPE_CR1E_DMA@GOTPAGEOFF]
	ldr	w8, [x28]
	tst	w8, w21
	b.eq	LBB0_17
; %bb.16:
	ldr	w0, [x20]
Lloh19:
	adrp	x8, _ALS4K_IOB_16_ACK_FOR_CR1E@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ALS4K_IOB_16_ACK_FOR_CR1E@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_snd_als4k_iobase_readb
LBB0_17:
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	tst	w8, w19
	b.eq	LBB0_19
; %bb.18:
	mov	w0, #1
	b	LBB0_20
LBB0_19:
	ldr	w8, [x22]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x28]
	orr	w8, w8, w9
	tst	w8, w21
	cset	w0, ne
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_IRQ_RETVAL
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ALS4K_IOB_0E_IRQTYPE_SB_CR1E_MPU,4,2 ; @ALS4K_IOB_0E_IRQTYPE_SB_CR1E_MPU
	.comm	_ALS4K_IOB_0E_SB_DMA_IRQ,4,2    ; @ALS4K_IOB_0E_SB_DMA_IRQ
	.comm	_ALS4K_IOB_0E_CR1E_IRQ,4,2      ; @ALS4K_IOB_0E_CR1E_IRQ
	.comm	_ALS4K_IOB_0E_MPU_IRQ,4,2       ; @ALS4K_IOB_0E_MPU_IRQ
	.comm	_SB_DSP4_IRQSTATUS,4,2          ; @SB_DSP4_IRQSTATUS
	.comm	_SB_IRQTYPE_8BIT,4,2            ; @SB_IRQTYPE_8BIT
	.comm	_SB_IRQTYPE_16BIT,4,2           ; @SB_IRQTYPE_16BIT
	.comm	_SB_IRQTYPE_MPUIN,4,2           ; @SB_IRQTYPE_MPUIN
	.comm	_ALS4K_IRQTYPE_CR1E_DMA,4,2     ; @ALS4K_IRQTYPE_CR1E_DMA
	.comm	_ALS4K_IOB_16_ACK_FOR_CR1E,4,2  ; @ALS4K_IOB_16_ACK_FOR_CR1E
	.no_dead_strip	_snd_als4000_interrupt
.subsections_via_symbols
