	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25821_aud_irq
_cx25821_aud_irq:                       ## @cx25821_aud_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	andl	%esi, %ebx
	je	LBB0_8
## %bb.1:
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_AUD_A_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_write
	cmpl	$255, %ebx
	ja	LBB0_3
## %bb.2:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_4
LBB0_3:
	movl	(%r15), %ebx
	movq	_cx25821_aud_irqs@GOTPCREL(%rip), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r14d, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %ecx
	movl	%r13d, %r8d
	movl	%r12d, %r9d
	callq	_cx25821_print_irqbits
LBB0_4:
	movq	_AUD_INT_OPC_ERR@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	movq	_AUD_INT_DMA_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FLD_AUD_DST_A_RISC_EN@GOTPCREL(%rip), %rax
	movq	_FLD_AUD_DST_A_FIFO_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_cx_clear
	movq	_cx25821_sram_channels@GOTPCREL(%rip), %rax
	movq	_AUDIO_SRAM_CHANNEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_cx25821_sram_channel_dump_audio
LBB0_6:
	movq	_AUD_INT_DN_SYNC@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_7
## %bb.9:
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_warn
	movq	_AUD_A_GPCNT_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GP_COUNT_CONTROL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx_write                       ## TAILCALL
LBB0_7:
	movq	_AUD_INT_DN_RISCI1@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.10:
	leaq	4(%r14), %rbx
	movq	_AUD_A_GPCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_atomic_set
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_period_elapsed         ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUD_A_INT_STAT,4,2             ## @AUD_A_INT_STAT
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq aud"

	.comm	_cx25821_aud_irqs,4,2           ## @cx25821_aud_irqs
	.comm	_AUD_INT_OPC_ERR,4,2            ## @AUD_INT_OPC_ERR
L_.str.1:                               ## @.str.1
	.asciz	"WARNING %s/1: Audio risc op code error\n"

	.comm	_AUD_INT_DMA_CTL,4,2            ## @AUD_INT_DMA_CTL
	.comm	_FLD_AUD_DST_A_RISC_EN,4,2      ## @FLD_AUD_DST_A_RISC_EN
	.comm	_FLD_AUD_DST_A_FIFO_EN,4,2      ## @FLD_AUD_DST_A_FIFO_EN
	.comm	_cx25821_sram_channels,8,3      ## @cx25821_sram_channels
	.comm	_AUDIO_SRAM_CHANNEL,8,3         ## @AUDIO_SRAM_CHANNEL
	.comm	_AUD_INT_DN_SYNC,4,2            ## @AUD_INT_DN_SYNC
L_.str.2:                               ## @.str.2
	.asciz	"WARNING %s: Downstream sync error!\n"

	.comm	_AUD_A_GPCNT_CTL,4,2            ## @AUD_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_A_GPCNT,4,2                ## @AUD_A_GPCNT
	.no_dead_strip	_cx25821_aud_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx25821_aud_irq
_cx25821_aud_irq:                       ; @cx25821_aud_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ands	w23, w2, w1
	b.eq	LBB0_10
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _AUD_A_INT_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUD_A_INT_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cx_write
	cmp	w23, #255
	b.hi	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_4
LBB0_3:
	ldr	w23, [x21]
Lloh6:
	adrp	x8, _cx25821_aud_irqs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cx25821_aud_irqs@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	mov	x4, x20
	mov	x5, x22
	bl	_cx25821_print_irqbits
LBB0_4:
Lloh11:
	adrp	x8, _AUD_INT_OPC_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AUD_INT_OPC_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w1, [x21]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
Lloh16:
	adrp	x8, _AUD_INT_DMA_CTL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AUD_INT_DMA_CTL@GOTPAGEOFF]
Lloh18:
	adrp	x9, _FLD_AUD_DST_A_RISC_EN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FLD_AUD_DST_A_RISC_EN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	ldr	w8, [x9]
Lloh22:
	adrp	x9, _FLD_AUD_DST_A_FIFO_EN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FLD_AUD_DST_A_FIFO_EN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_cx_clear
Lloh25:
	adrp	x8, _cx25821_sram_channels@GOTPAGE
Lloh26:
	ldr	x8, [x8, _cx25821_sram_channels@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _AUDIO_SRAM_CHANNEL@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AUDIO_SRAM_CHANNEL@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x21
	bl	_cx25821_sram_channel_dump_audio
LBB0_6:
Lloh31:
	adrp	x8, _AUD_INT_DN_SYNC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AUD_INT_DN_SYNC@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x21]
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
Lloh36:
	adrp	x8, _AUD_A_GPCNT_CTL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AUD_A_GPCNT_CTL@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _GP_COUNT_CONTROL_RESET@GOTPAGE
Lloh40:
	ldr	x8, [x8, _GP_COUNT_CONTROL_RESET@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cx_write
LBB0_8:
Lloh42:
	adrp	x8, _AUD_INT_DN_RISCI1@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AUD_INT_DN_RISCI1@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	add	x20, x19, #4
Lloh45:
	adrp	x8, _AUD_A_GPCNT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AUD_A_GPCNT@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_cx_read
	mov	x1, x0
	mov	x0, x20
	bl	_atomic_set
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_snd_pcm_period_elapsed
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_AUD_A_INT_STAT,4,2             ; @AUD_A_INT_STAT
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq aud"

	.comm	_cx25821_aud_irqs,4,2           ; @cx25821_aud_irqs
	.comm	_AUD_INT_OPC_ERR,4,2            ; @AUD_INT_OPC_ERR
l_.str.1:                               ; @.str.1
	.asciz	"WARNING %s/1: Audio risc op code error\n"

	.comm	_AUD_INT_DMA_CTL,4,2            ; @AUD_INT_DMA_CTL
	.comm	_FLD_AUD_DST_A_RISC_EN,4,2      ; @FLD_AUD_DST_A_RISC_EN
	.comm	_FLD_AUD_DST_A_FIFO_EN,4,2      ; @FLD_AUD_DST_A_FIFO_EN
	.comm	_cx25821_sram_channels,8,3      ; @cx25821_sram_channels
	.comm	_AUDIO_SRAM_CHANNEL,8,3         ; @AUDIO_SRAM_CHANNEL
	.comm	_AUD_INT_DN_SYNC,4,2            ; @AUD_INT_DN_SYNC
l_.str.2:                               ; @.str.2
	.asciz	"WARNING %s: Downstream sync error!\n"

	.comm	_AUD_A_GPCNT_CTL,4,2            ; @AUD_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_A_GPCNT,4,2                ; @AUD_A_GPCNT
	.no_dead_strip	_cx25821_aud_irq
.subsections_via_symbols
