	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_als300plus_interrupt
_snd_als300plus_interrupt:              ## @snd_als300plus_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_ALS300P_IRQ_STATUS@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rsi), %rdi
	callq	_inb
	movl	%eax, %r14d
	movq	_MPU_IRQ_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_inb
	movl	%eax, %ebx
	movq	_ALS300P_DRAM_IRQ_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_inb
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.1:
	andl	$128, %ebx
	jne	LBB0_4
## %bb.2:
	andl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_4:
	movq	_IRQ_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r14d, %edi
	je	LBB0_8
## %bb.5:
	cmpq	$0, 16(%r15)
	je	LBB0_8
## %bb.6:
	cmpq	$0, 24(%r15)
	je	LBB0_8
## %bb.7:
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	callq	_outb
	movq	24(%r15), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	xorl	$1, (%rax)
	callq	_snd_pcm_period_elapsed
	leaq	L_.str(%rip), %rdi
	callq	_snd_als300_dbgplay
LBB0_8:
	movq	_IRQ_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	testl	%r14d, %edi
	je	LBB0_12
## %bb.9:
	cmpq	$0, 16(%r15)
	je	LBB0_12
## %bb.10:
	cmpq	$0, (%r15)
	je	LBB0_12
## %bb.11:
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	callq	_outb
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	xorl	$1, (%rax)
	callq	_snd_pcm_period_elapsed
	leaq	L_.str.1(%rip), %rdi
	callq	_snd_als300_dbgplay
LBB0_12:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALS300P_IRQ_STATUS,8,3         ## @ALS300P_IRQ_STATUS
	.comm	_MPU_IRQ_STATUS,8,3             ## @MPU_IRQ_STATUS
	.comm	_ALS300P_DRAM_IRQ_STATUS,8,3    ## @ALS300P_DRAM_IRQ_STATUS
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_PLAYBACK,4,2               ## @IRQ_PLAYBACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ_PLAYBACK\n"

	.comm	_IRQ_CAPTURE,4,2                ## @IRQ_CAPTURE
L_.str.1:                               ## @.str.1
	.asciz	"IRQ_CAPTURE\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_snd_als300plus_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_als300plus_interrupt
_snd_als300plus_interrupt:              ; @snd_als300plus_interrupt
	.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
	mov	x19, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x22, _ALS300P_IRQ_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ALS300P_IRQ_STATUS@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_inb
	mov	x20, x0
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _MPU_IRQ_STATUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MPU_IRQ_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
	mov	x21, x0
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _ALS300P_DRAM_IRQ_STATUS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ALS300P_DRAM_IRQ_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
	and	w8, w21, #0x80
	and	w9, w0, #0x1
	cmp	w20, #0
	ccmp	w8, #0, #0, eq
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_10
; %bb.1:
Lloh8:
	adrp	x8, _IRQ_PLAYBACK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_PLAYBACK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	tst	w0, w20
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_outb
	ldr	x0, [x19, #24]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w9, [x8]
	eor	w9, w9, #0x1
	str	w9, [x8]
	bl	_snd_pcm_period_elapsed
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_als300_dbgplay
LBB0_5:
Lloh13:
	adrp	x8, _IRQ_CAPTURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_CAPTURE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	tst	w0, w20
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_outb
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w9, [x8]
	eor	w9, w9, #0x1
	str	w9, [x8]
	bl	_snd_pcm_period_elapsed
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snd_als300_dbgplay
LBB0_9:
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh20:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ALS300P_IRQ_STATUS,8,3         ; @ALS300P_IRQ_STATUS
	.comm	_MPU_IRQ_STATUS,8,3             ; @MPU_IRQ_STATUS
	.comm	_ALS300P_DRAM_IRQ_STATUS,8,3    ; @ALS300P_DRAM_IRQ_STATUS
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_PLAYBACK,4,2               ; @IRQ_PLAYBACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ_PLAYBACK\n"

	.comm	_IRQ_CAPTURE,4,2                ; @IRQ_CAPTURE
l_.str.1:                               ; @.str.1
	.asciz	"IRQ_CAPTURE\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_snd_als300plus_interrupt
.subsections_via_symbols
