	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx8801_aud_irq
_cx8801_aud_irq:                        ## @cx8801_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
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_MO_AUD_INTSTAT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_cx_read
	movl	%eax, %ebx
	movq	_MO_AUD_INTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movl	%eax, %r12d
	andl	%ebx, %r12d
	je	LBB0_8
## %bb.1:
	movl	%eax, %r15d
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_cx_write
	movq	_debug@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jg	LBB0_3
## %bb.2:
	cmpl	$256, %r12d                     ## imm = 0x100
	jb	LBB0_4
LBB0_3:
	movq	_cx88_aud_irqs@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_cx88_print_irqbits
LBB0_4:
	movq	_AUD_INT_OPC_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	movq	_MO_AUD_DMACNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$17, %esi
	callq	_cx_clear
	movq	_cx88_sram_channels@GOTPCREL(%rip), %rax
	movq	_SRAM_CH25@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cx88_sram_channel_dump
LBB0_6:
	movq	_AUD_INT_DN_SYNC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_MO_AUDD_GPCNTRL@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	%ebx, (%rax)
	je	LBB0_8
## %bb.10:
	leaq	4(%r14), %rbx
	movq	_MO_AUDD_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	_MO_AUD_INTSTAT,4,2             ## @MO_AUD_INTSTAT
	.comm	_MO_AUD_INTMSK,4,2              ## @MO_AUD_INTMSK
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq aud"

	.comm	_cx88_aud_irqs,4,2              ## @cx88_aud_irqs
	.comm	_AUD_INT_OPC_ERR,4,2            ## @AUD_INT_OPC_ERR
L_.str.1:                               ## @.str.1
	.asciz	"Audio risc op code error\n"

	.comm	_MO_AUD_DMACNTRL,4,2            ## @MO_AUD_DMACNTRL
	.comm	_cx88_sram_channels,8,3         ## @cx88_sram_channels
	.comm	_SRAM_CH25,8,3                  ## @SRAM_CH25
	.comm	_AUD_INT_DN_SYNC,4,2            ## @AUD_INT_DN_SYNC
L_.str.2:                               ## @.str.2
	.asciz	"Downstream sync error\n"

	.comm	_MO_AUDD_GPCNTRL,4,2            ## @MO_AUDD_GPCNTRL
	.comm	_GP_COUNT_CONTROL_RESET,4,2     ## @GP_COUNT_CONTROL_RESET
	.comm	_AUD_INT_DN_RISCI1,4,2          ## @AUD_INT_DN_RISCI1
	.comm	_MO_AUDD_GPCNT,4,2              ## @MO_AUDD_GPCNT
	.no_dead_strip	_cx8801_aud_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx8801_aud_irq
_cx8801_aud_irq:                        ; @cx8801_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
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x23, _MO_AUD_INTSTAT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MO_AUD_INTSTAT@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cx_read
	mov	x20, x0
Lloh2:
	adrp	x8, _MO_AUD_INTMSK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MO_AUD_INTMSK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_cx_read
	ands	w24, w0, w20
	b.eq	LBB0_10
; %bb.1:
	mov	x22, x0
	ldr	w0, [x23]
	mov	x1, x20
	bl	_cx_write
Lloh5:
	adrp	x8, _debug@GOTPAGE
Lloh6:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #1
	b.gt	LBB0_3
; %bb.2:
	cmp	w24, #256
	b.lo	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _cx88_aud_irqs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cx88_aud_irqs@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x2, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x3, x20
	mov	x4, x22
	bl	_cx88_print_irqbits
LBB0_4:
Lloh13:
	adrp	x8, _AUD_INT_OPC_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AUD_INT_OPC_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
Lloh18:
	adrp	x8, _MO_AUD_DMACNTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MO_AUD_DMACNTRL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	w1, #17
	bl	_cx_clear
Lloh21:
	adrp	x8, _cx88_sram_channels@GOTPAGE
Lloh22:
	ldr	x8, [x8, _cx88_sram_channels@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _SRAM_CH25@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SRAM_CH25@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x21
	bl	_cx88_sram_channel_dump
LBB0_6:
Lloh27:
	adrp	x8, _AUD_INT_DN_SYNC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AUD_INT_DN_SYNC@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh32:
	adrp	x8, _MO_AUDD_GPCNTRL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MO_AUDD_GPCNTRL@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x8, _GP_COUNT_CONTROL_RESET@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GP_COUNT_CONTROL_RESET@GOTPAGEOFF]
Lloh37:
	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:
Lloh38:
	adrp	x8, _AUD_INT_DN_RISCI1@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AUD_INT_DN_RISCI1@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	add	x20, x19, #4
Lloh41:
	adrp	x8, _MO_AUDD_GPCNT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MO_AUDD_GPCNT@GOTPAGEOFF]
Lloh43:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_MO_AUD_INTSTAT,4,2             ; @MO_AUD_INTSTAT
	.comm	_MO_AUD_INTMSK,4,2              ; @MO_AUD_INTMSK
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq aud"

	.comm	_cx88_aud_irqs,4,2              ; @cx88_aud_irqs
	.comm	_AUD_INT_OPC_ERR,4,2            ; @AUD_INT_OPC_ERR
l_.str.1:                               ; @.str.1
	.asciz	"Audio risc op code error\n"

	.comm	_MO_AUD_DMACNTRL,4,2            ; @MO_AUD_DMACNTRL
	.comm	_cx88_sram_channels,8,3         ; @cx88_sram_channels
	.comm	_SRAM_CH25,8,3                  ; @SRAM_CH25
	.comm	_AUD_INT_DN_SYNC,4,2            ; @AUD_INT_DN_SYNC
l_.str.2:                               ; @.str.2
	.asciz	"Downstream sync error\n"

	.comm	_MO_AUDD_GPCNTRL,4,2            ; @MO_AUDD_GPCNTRL
	.comm	_GP_COUNT_CONTROL_RESET,4,2     ; @GP_COUNT_CONTROL_RESET
	.comm	_AUD_INT_DN_RISCI1,4,2          ; @AUD_INT_DN_RISCI1
	.comm	_MO_AUDD_GPCNT,4,2              ; @MO_AUDD_GPCNT
	.no_dead_strip	_cx8801_aud_irq
.subsections_via_symbols
