	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_wss_interrupt              ## -- Begin function snd_wss_interrupt
	.p2align	4, 0x90
_snd_wss_interrupt:                     ## @snd_wss_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, %rbx
	movq	_WSS_HW_AD1848_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	_CS4231_PLAYBACK_IRQ@GOTPCREL(%rip), %rax
	movb	(%rax), %r14b
	jmp	LBB0_3
LBB0_2:
	movq	_CS4231_IRQ_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_wss_in
	movl	%eax, %r14d
LBB0_3:
	movq	_CS4231_TIMER_IRQ@GOTPCREL(%rip), %rax
	testb	%r14b, (%rax)
	je	LBB0_6
## %bb.4:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movl	(%rdi), %esi
	callq	_snd_timer_interrupt
LBB0_6:
	cmpq	$0, 32(%rbx)
	je	LBB0_13
## %bb.7:
	movl	(%rbx), %eax
	movq	_WSS_HW_INTERWAVE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_13:
	movq	_CS4231_PLAYBACK_IRQ@GOTPCREL(%rip), %rax
	testb	%r14b, (%rax)
	je	LBB0_16
## %bb.14:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_snd_pcm_period_elapsed
LBB0_16:
	movq	_CS4231_RECORD_IRQ@GOTPCREL(%rip), %rax
	testb	%r14b, (%rax)
	jne	LBB0_17
	jmp	LBB0_19
LBB0_8:
	movq	_CS4231_PLAYBACK_IRQ@GOTPCREL(%rip), %rax
	testb	%r14b, (%rax)
	je	LBB0_19
## %bb.9:
	movl	4(%rbx), %eax
	movq	_WSS_MODE_PLAY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_snd_pcm_period_elapsed
	movl	4(%rbx), %eax
LBB0_12:
	movq	_WSS_MODE_RECORD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
LBB0_17:
	cmpq	$0, 16(%rbx)
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	_snd_wss_overrange
	movq	16(%rbx), %rdi
	callq	_snd_pcm_period_elapsed
LBB0_19:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_21
## %bb.20:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CS4231P
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_wss_outb
	jmp	LBB0_22
LBB0_21:
	movq	_CS4231_ALL_IRQS@GOTPCREL(%rip), %rax
	andb	(%rax), %r14b
	notb	%r14b
	movq	_CS4231_IRQ_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r14b, %edx
	movq	%rbx, %rdi
	callq	_snd_wss_out
LBB0_22:
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WSS_HW_AD1848_MASK,4,2         ## @WSS_HW_AD1848_MASK
	.comm	_CS4231_PLAYBACK_IRQ,1,0        ## @CS4231_PLAYBACK_IRQ
	.comm	_CS4231_IRQ_STATUS,4,2          ## @CS4231_IRQ_STATUS
	.comm	_CS4231_TIMER_IRQ,1,0           ## @CS4231_TIMER_IRQ
	.comm	_WSS_HW_INTERWAVE,4,2           ## @WSS_HW_INTERWAVE
	.comm	_WSS_MODE_PLAY,4,2              ## @WSS_MODE_PLAY
	.comm	_WSS_MODE_RECORD,4,2            ## @WSS_MODE_RECORD
	.comm	_CS4231_RECORD_IRQ,1,0          ## @CS4231_RECORD_IRQ
	.comm	_CS4231_ALL_IRQS,1,0            ## @CS4231_ALL_IRQS
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_wss_interrupt              ; -- Begin function snd_wss_interrupt
	.p2align	2
_snd_wss_interrupt:                     ; @snd_wss_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	w8, [x1]
Lloh0:
	adrp	x22, _WSS_HW_AD1848_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WSS_HW_AD1848_MASK@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh2:
	adrp	x21, _CS4231_PLAYBACK_IRQ@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CS4231_PLAYBACK_IRQ@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldrb	w20, [x21]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _CS4231_IRQ_STATUS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CS4231_IRQ_STATUS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_wss_in
	mov	x20, x0
LBB0_3:
Lloh7:
	adrp	x8, _CS4231_TIMER_IRQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CS4231_TIMER_IRQ@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.4:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x0]
	bl	_snd_timer_interrupt
LBB0_6:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _WSS_HW_INTERWAVE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WSS_HW_INTERWAVE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_8:
	ldrb	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.9:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_snd_pcm_period_elapsed
LBB0_11:
Lloh12:
	adrp	x8, _CS4231_RECORD_IRQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CS4231_RECORD_IRQ@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_17
	b	LBB0_19
LBB0_12:
	ldrb	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.13:
	ldr	w8, [x19, #4]
Lloh14:
	adrp	x9, _WSS_MODE_PLAY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WSS_MODE_PLAY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_snd_pcm_period_elapsed
	ldr	w8, [x19, #4]
LBB0_16:
Lloh17:
	adrp	x9, _WSS_MODE_RECORD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _WSS_MODE_RECORD@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
LBB0_17:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_snd_wss_overrange
	ldr	x0, [x19, #16]
	bl	_snd_pcm_period_elapsed
LBB0_19:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
Lloh20:
	adrp	x8, _STATUS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_CS4231P
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_wss_outb
	b	LBB0_22
LBB0_21:
Lloh23:
	adrp	x8, _CS4231_ALL_IRQS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CS4231_ALL_IRQS@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w8, w8, w20
	eor	w2, w8, #0xff
Lloh25:
	adrp	x8, _CS4231_IRQ_STATUS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CS4231_IRQ_STATUS@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_wss_out
LBB0_22:
	mov	x0, x21
	bl	_spin_unlock
Lloh28:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh30:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_WSS_HW_AD1848_MASK,4,2         ; @WSS_HW_AD1848_MASK
	.comm	_CS4231_PLAYBACK_IRQ,1,0        ; @CS4231_PLAYBACK_IRQ
	.comm	_CS4231_IRQ_STATUS,4,2          ; @CS4231_IRQ_STATUS
	.comm	_CS4231_TIMER_IRQ,1,0           ; @CS4231_TIMER_IRQ
	.comm	_WSS_HW_INTERWAVE,4,2           ; @WSS_HW_INTERWAVE
	.comm	_WSS_MODE_PLAY,4,2              ; @WSS_MODE_PLAY
	.comm	_WSS_MODE_RECORD,4,2            ; @WSS_MODE_RECORD
	.comm	_CS4231_RECORD_IRQ,1,0          ; @CS4231_RECORD_IRQ
	.comm	_CS4231_ALL_IRQS,1,0            ; @CS4231_ALL_IRQS
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
