	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx23885_audio_irq              ## -- Begin function cx23885_audio_irq
	.p2align	4, 0x90
_cx23885_audio_irq:                     ## @cx23885_audio_irq
	.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
	testl	%esi, %edx
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movq	_AUDIO_INT_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_write
	movq	_AUD_INT_OPC_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movq	_AUD_INT_DMA_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$17, %esi
	callq	_cx_clear
	movq	_AUDIO_SRAM_CHANNEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	movq	%r14, %rdi
	callq	_cx23885_sram_channel_dump
LBB0_4:
	movq	_AUD_INT_DN_SYNC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %r14d
	movl	$1, %edi
	callq	_dprintk
	movq	_AUD_INT_A_GPCNT_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GP_COUNT_CONTROL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cx_write
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	movq	_AUD_INT_DN_RISCI1@GOTPCREL(%rip), %rax
	movl	$1, %r14d
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	leaq	4(%r15), %rbx
	movq	_AUD_INT_A_GPCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_atomic_set
	movl	(%r15), %edi
	callq	_snd_pcm_period_elapsed
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUDIO_INT_INT_STAT,4,2         ## @AUDIO_INT_INT_STAT
	.comm	_AUD_INT_OPC_ERR,4,2            ## @AUD_INT_OPC_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/1: Audio risc op code error\n"

	.comm	_AUD_INT_DMA_CTL,4,2            ## @AUD_INT_DMA_CTL
	.comm	_AUDIO_SRAM_CHANNEL,8,3         ## @AUDIO_SRAM_CHANNEL
	.comm	_AUD_INT_DN_SYNC,4,2            ## @AUD_INT_DN_SYNC
L_.str.1:                               ## @.str.1
	.asciz	"Downstream sync error\n"

	.comm	_AUD_INT_A_GPCNT_CTL,4,2        ## @AUD_INT_A_GPCNT_CTL
	.comm	_GP_COUNT_CONTROL_RESET,4,2     ## @GP_COUNT_CONTROL_RESET
	.comm	_AUD_INT_DN_RISCI1,4,2          ## @AUD_INT_DN_RISCI1
	.comm	_AUD_INT_A_GPCNT,4,2            ## @AUD_INT_A_GPCNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx23885_audio_irq              ; -- Begin function cx23885_audio_irq
	.p2align	2
_cx23885_audio_irq:                     ; @cx23885_audio_irq
	.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
	tst	w2, w1
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x8, _AUDIO_INT_INT_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUDIO_INT_INT_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cx_write
Lloh3:
	adrp	x8, _AUD_INT_OPC_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUD_INT_OPC_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x20, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
Lloh8:
	adrp	x8, _AUD_INT_DMA_CTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AUD_INT_DMA_CTL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #17
	bl	_cx_clear
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _AUDIO_SRAM_CHANNEL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AUDIO_SRAM_CHANNEL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x20
	bl	_cx23885_sram_channel_dump
LBB0_3:
Lloh14:
	adrp	x8, _AUD_INT_DN_SYNC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AUD_INT_DN_SYNC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.4:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w19, #1
	mov	w0, #1
	bl	_dprintk
Lloh19:
	adrp	x8, _AUD_INT_A_GPCNT_CTL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AUD_INT_A_GPCNT_CTL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _GP_COUNT_CONTROL_RESET@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GP_COUNT_CONTROL_RESET@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_cx_write
	b	LBB0_9
LBB0_5:
	mov	w19, #0
	b	LBB0_9
LBB0_6:
Lloh25:
	adrp	x8, _AUD_INT_DN_RISCI1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AUD_INT_DN_RISCI1@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_8
; %bb.7:
	add	x19, x21, #4
Lloh28:
	adrp	x8, _AUD_INT_A_GPCNT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AUD_INT_A_GPCNT@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_cx_read
	mov	x1, x0
	mov	x0, x19
	bl	_atomic_set
	ldr	w0, [x21]
	bl	_snd_pcm_period_elapsed
LBB0_8:
	mov	w19, #1
LBB0_9:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_AUDIO_INT_INT_STAT,4,2         ; @AUDIO_INT_INT_STAT
	.comm	_AUD_INT_OPC_ERR,4,2            ; @AUD_INT_OPC_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/1: Audio risc op code error\n"

	.comm	_AUD_INT_DMA_CTL,4,2            ; @AUD_INT_DMA_CTL
	.comm	_AUDIO_SRAM_CHANNEL,8,3         ; @AUDIO_SRAM_CHANNEL
	.comm	_AUD_INT_DN_SYNC,4,2            ; @AUD_INT_DN_SYNC
l_.str.1:                               ; @.str.1
	.asciz	"Downstream sync error\n"

	.comm	_AUD_INT_A_GPCNT_CTL,4,2        ; @AUD_INT_A_GPCNT_CTL
	.comm	_GP_COUNT_CONTROL_RESET,4,2     ; @GP_COUNT_CONTROL_RESET
	.comm	_AUD_INT_DN_RISCI1,4,2          ; @AUD_INT_DN_RISCI1
	.comm	_AUD_INT_A_GPCNT,4,2            ; @AUD_INT_A_GPCNT
.subsections_via_symbols
