	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_als300_interrupt
_snd_als300_interrupt:                  ## @snd_als300_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_ALS300_IRQ_STATUS@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	24(%rsi), %rdi
	callq	_inb
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	(%r15), %rsi
	addq	24(%r14), %rsi
	movl	%eax, %edi
	callq	_outb
	movq	_IRQ_PLAYBACK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.3:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.4:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	xorl	$1, (%rax)
	callq	_snd_pcm_period_elapsed
	leaq	L_.str(%rip), %rdi
	callq	_snd_als300_dbgplay
LBB0_6:
	movq	_IRQ_CAPTURE@GOTPCREL(%rip), %rax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.7:
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.8:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	xorl	$1, (%rax)
	callq	_snd_pcm_period_elapsed
	leaq	L_.str.1(%rip), %rdi
	callq	_snd_als300_dbgplay
	jmp	LBB0_10
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_10:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALS300_IRQ_STATUS,8,3          ## @ALS300_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_als300_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_als300_interrupt
_snd_als300_interrupt:                  ; @snd_als300_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, #24]
Lloh0:
	adrp	x21, _ALS300_IRQ_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ALS300_IRQ_STATUS@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb
	cbz	w0, LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outb
Lloh2:
	adrp	x8, _IRQ_PLAYBACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_PLAYBACK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w9, [x8]
	eor	w9, w9, #0x1
	str	w9, [x8]
	bl	_snd_pcm_period_elapsed
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_als300_dbgplay
LBB0_5:
Lloh7:
	adrp	x8, _IRQ_CAPTURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_CAPTURE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w9, [x8]
	eor	w9, w9, #0x1
	str	w9, [x8]
	bl	_snd_pcm_period_elapsed
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snd_als300_dbgplay
LBB0_9:
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh15:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ALS300_IRQ_STATUS,8,3          ; @ALS300_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_als300_interrupt
.subsections_via_symbols
