	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ali_card_interrupt
_snd_ali_card_interrupt:                ## @snd_ali_card_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	_IRQ_NONE@GOTPCREL(%rip), %rbx
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	cmpl	$0, 16(%rsi)
	je	LBB0_8
## %bb.2:
	movq	_ALI_MISCINT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ALI_REG
	movl	%eax, %edi
	callq	_inl
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	_ADDRESS_IRQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.4:
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_ALI_REG
	movl	%eax, %edi
	callq	_inl
	movq	%rax, 8(%r14)
	movq	_ALI_CHANNELS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_snd_ali_update_ptr
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_6
LBB0_7:
	movq	_TARGET_REACHED@GOTPCREL(%rip), %rax
	movq	_MIXER_OVERFLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_MIXER_UNDERFLOW@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ALI_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outl
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
LBB0_8:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_ALI_MISCINT,4,2                ## @ALI_MISCINT
	.comm	_ADDRESS_IRQ,4,2                ## @ADDRESS_IRQ
	.comm	_ALI_CHANNELS,4,2               ## @ALI_CHANNELS
	.comm	_TARGET_REACHED,4,2             ## @TARGET_REACHED
	.comm	_MIXER_OVERFLOW,4,2             ## @MIXER_OVERFLOW
	.comm	_MIXER_UNDERFLOW,4,2            ## @MIXER_UNDERFLOW
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_snd_ali_card_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ali_card_interrupt
_snd_ali_card_interrupt:                ; @snd_ali_card_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
	cbz	x1, LBB0_8
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1, #16]
	cbz	w8, LBB0_8
; %bb.2:
Lloh0:
	adrp	x21, _ALI_MISCINT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ALI_MISCINT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ALI_REG
	bl	_inl
	cbz	w0, LBB0_8
; %bb.3:
Lloh2:
	adrp	x8, _ADDRESS_IRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADDRESS_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.4:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_ALI_REG
	bl	_inl
	str	x0, [x19, #8]
Lloh5:
	adrp	x22, _ALI_CHANNELS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ALI_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ali_update_ptr
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.lt	LBB0_6
LBB0_7:
Lloh7:
	adrp	x8, _TARGET_REACHED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TARGET_REACHED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _MIXER_OVERFLOW@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MIXER_OVERFLOW@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _MIXER_UNDERFLOW@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MIXER_UNDERFLOW@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ALI_REG
	mov	x1, x0
	mov	x0, x20
	bl	_outl
Lloh16:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_ALI_MISCINT,4,2                ; @ALI_MISCINT
	.comm	_ADDRESS_IRQ,4,2                ; @ADDRESS_IRQ
	.comm	_ALI_CHANNELS,4,2               ; @ALI_CHANNELS
	.comm	_TARGET_REACHED,4,2             ; @TARGET_REACHED
	.comm	_MIXER_OVERFLOW,4,2             ; @MIXER_OVERFLOW
	.comm	_MIXER_UNDERFLOW,4,2            ; @MIXER_UNDERFLOW
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_snd_ali_card_interrupt
.subsections_via_symbols
