	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_ac97c_interrupt
_atmel_ac97c_interrupt:                 ## @atmel_ac97c_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	%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	%rsi, %r13
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ac97c_readl
	movl	%eax, %r14d
	movq	_CASR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ac97c_readl
	movl	%eax, %r15d
	movq	_COSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ac97c_readl
	movl	%eax, %r12d
	movq	_AC97C_SR_CAEVT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rdi
	movq	_AC97C_CSR_OVRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_AC97C_CSR_RXRDY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	_AC97C_CSR_UNRUN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%r15d, %esi
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	movq	_AC97C_CSR_TXEMPTY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%r15d, %esi
	leaq	L_.str.5(%rip), %r9
	cmoveq	%rax, %r9
	movq	_AC97C_CSR_TXRDY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%r15d, %esi
	leaq	L_.str.6(%rip), %r10
	cmoveq	%rax, %r10
	testl	%r15d, %r15d
	leaq	L_.str.7(%rip), %rbx
	cmovneq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_dev_info
	addq	$16, %rsp
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_2:
	movq	_AC97C_SR_COEVT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rdi
	movq	_AC97C_CSR_OVRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_AC97C_CSR_RXRDY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r12d, %ecx
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	_AC97C_CSR_TXEMPTY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%r12d, %esi
	leaq	L_.str.5(%rip), %r8
	cmoveq	%rax, %r8
	movq	_AC97C_CSR_TXRDY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%r12d, %esi
	leaq	L_.str.6(%rip), %r9
	cmoveq	%rax, %r9
	testl	%r12d, %r12d
	leaq	L_.str.7(%rip), %rbx
	cmovneq	%rax, %rbx
	subq	$8, %rsp
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbx
	callq	_dev_info
	addq	$16, %rsp
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_4:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_6
## %bb.5:
	movq	(%r13), %rdi
	leaq	L_.str.9(%rip), %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_dev_err
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,8,3                   ## @IRQ_NONE
	.comm	_SR,4,2                         ## @SR
	.comm	_CASR,4,2                       ## @CASR
	.comm	_COSR,4,2                       ## @COSR
	.comm	_AC97C_SR_CAEVT,4,2             ## @AC97C_SR_CAEVT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel A event%s%s%s%s%s%s\n"

	.comm	_AC97C_CSR_OVRUN,4,2            ## @AC97C_CSR_OVRUN
L_.str.1:                               ## @.str.1
	.asciz	" OVRUN"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_AC97C_CSR_RXRDY,4,2            ## @AC97C_CSR_RXRDY
L_.str.3:                               ## @.str.3
	.asciz	" RXRDY"

	.comm	_AC97C_CSR_UNRUN,4,2            ## @AC97C_CSR_UNRUN
L_.str.4:                               ## @.str.4
	.asciz	" UNRUN"

	.comm	_AC97C_CSR_TXEMPTY,4,2          ## @AC97C_CSR_TXEMPTY
L_.str.5:                               ## @.str.5
	.asciz	" TXEMPTY"

	.comm	_AC97C_CSR_TXRDY,4,2            ## @AC97C_CSR_TXRDY
L_.str.6:                               ## @.str.6
	.asciz	" TXRDY"

L_.str.7:                               ## @.str.7
	.asciz	" NONE"

	.comm	_IRQ_HANDLED,8,3                ## @IRQ_HANDLED
	.comm	_AC97C_SR_COEVT,4,2             ## @AC97C_SR_COEVT
L_.str.8:                               ## @.str.8
	.asciz	"codec channel event%s%s%s%s%s\n"

L_.str.9:                               ## @.str.9
	.asciz	"spurious interrupt sr 0x%08x casr 0x%08x cosr 0x%08x\n"

	.no_dead_strip	_atmel_ac97c_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_ac97c_interrupt
_atmel_ac97c_interrupt:                 ; @atmel_ac97c_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _SR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ac97c_readl
	mov	x20, x0
Lloh6:
	adrp	x8, _CASR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CASR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ac97c_readl
	mov	x21, x0
Lloh9:
	adrp	x8, _COSR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COSR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ac97c_readl
	mov	x22, x0
Lloh12:
	adrp	x8, _AC97C_SR_CAEVT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AC97C_SR_CAEVT@GOTPAGEOFF]
Lloh14:
	adrp	x17, _AC97C_CSR_OVRUN@GOTPAGE
Lloh15:
	ldr	x17, [x17, _AC97C_CSR_OVRUN@GOTPAGEOFF]
Lloh16:
	adrp	x14, l_.str.1@PAGE
Lloh17:
	add	x14, x14, l_.str.1@PAGEOFF
Lloh18:
	adrp	x26, l_.str.2@PAGE
Lloh19:
	add	x26, x26, l_.str.2@PAGEOFF
Lloh20:
	adrp	x1, _AC97C_CSR_RXRDY@GOTPAGE
Lloh21:
	ldr	x1, [x1, _AC97C_CSR_RXRDY@GOTPAGEOFF]
Lloh22:
	adrp	x15, l_.str.3@PAGE
Lloh23:
	add	x15, x15, l_.str.3@PAGEOFF
Lloh24:
	adrp	x16, _AC97C_CSR_TXEMPTY@GOTPAGE
Lloh25:
	ldr	x16, [x16, _AC97C_CSR_TXEMPTY@GOTPAGEOFF]
Lloh26:
	adrp	x12, l_.str.5@PAGE
Lloh27:
	add	x12, x12, l_.str.5@PAGEOFF
Lloh28:
	adrp	x13, _AC97C_CSR_TXRDY@GOTPAGE
Lloh29:
	ldr	x13, [x13, _AC97C_CSR_TXRDY@GOTPAGEOFF]
Lloh30:
	adrp	x11, l_.str.6@PAGE
Lloh31:
	add	x11, x11, l_.str.6@PAGEOFF
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x10, l_.str.7@PAGE
Lloh34:
	add	x10, x10, l_.str.7@PAGEOFF
Lloh35:
	adrp	x9, _IRQ_HANDLED@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IRQ_HANDLED@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19]
	ldr	w8, [x17]
	tst	w8, w21
	csel	x2, x26, x14, eq
	ldr	w8, [x1]
	tst	w8, w21
	csel	x3, x26, x15, eq
Lloh37:
	adrp	x8, _AC97C_CSR_UNRUN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AC97C_CSR_UNRUN@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	mov	x23, x9
Lloh40:
	adrp	x9, l_.str.4@PAGE
Lloh41:
	add	x9, x9, l_.str.4@PAGEOFF
	tst	w8, w21
	csel	x4, x26, x9, eq
	ldr	w8, [x16]
	tst	w8, w21
	mov	x24, x12
	csel	x5, x26, x12, eq
	mov	x25, x13
	ldr	w8, [x13]
	tst	w8, w21
	mov	x28, x11
	csel	x6, x26, x11, eq
	cmp	w21, #0
	mov	x27, x10
	csel	x8, x10, x26, eq
	str	x8, [sp]
Lloh42:
	adrp	x1, l_.str@PAGE
Lloh43:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x9, x23
	ldr	x23, [x23]
	b	LBB0_3
LBB0_2:
	mov	x25, x13
	mov	x24, x12
	mov	x28, x11
	mov	x27, x10
LBB0_3:
Lloh44:
	adrp	x8, _AC97C_SR_COEVT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AC97C_SR_COEVT@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x19]
Lloh47:
	adrp	x8, _AC97C_CSR_OVRUN@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AC97C_CSR_OVRUN@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	tst	w8, w22
Lloh50:
	adrp	x8, l_.str.1@PAGE
Lloh51:
	add	x8, x8, l_.str.1@PAGEOFF
	csel	x2, x26, x8, eq
Lloh52:
	adrp	x8, _AC97C_CSR_RXRDY@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AC97C_CSR_RXRDY@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	tst	w8, w22
Lloh55:
	adrp	x8, l_.str.3@PAGE
Lloh56:
	add	x8, x8, l_.str.3@PAGEOFF
	csel	x3, x26, x8, eq
Lloh57:
	adrp	x8, _AC97C_CSR_TXEMPTY@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AC97C_CSR_TXEMPTY@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	tst	w8, w22
	csel	x4, x26, x24, eq
	ldr	w8, [x25]
	tst	w8, w22
	csel	x5, x26, x28, eq
	cmp	w22, #0
	csel	x6, x27, x26, eq
Lloh60:
	adrp	x1, l_.str.8@PAGE
Lloh61:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x23, x9
	bl	_dev_info
	ldr	x23, [x23]
LBB0_5:
Lloh62:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x19]
Lloh65:
	adrp	x1, l_.str.9@PAGE
Lloh66:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_dev_err
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh32
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,8,3                   ; @IRQ_NONE
	.comm	_SR,4,2                         ; @SR
	.comm	_CASR,4,2                       ; @CASR
	.comm	_COSR,4,2                       ; @COSR
	.comm	_AC97C_SR_CAEVT,4,2             ; @AC97C_SR_CAEVT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel A event%s%s%s%s%s%s\n"

	.comm	_AC97C_CSR_OVRUN,4,2            ; @AC97C_CSR_OVRUN
l_.str.1:                               ; @.str.1
	.asciz	" OVRUN"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_AC97C_CSR_RXRDY,4,2            ; @AC97C_CSR_RXRDY
l_.str.3:                               ; @.str.3
	.asciz	" RXRDY"

	.comm	_AC97C_CSR_UNRUN,4,2            ; @AC97C_CSR_UNRUN
l_.str.4:                               ; @.str.4
	.asciz	" UNRUN"

	.comm	_AC97C_CSR_TXEMPTY,4,2          ; @AC97C_CSR_TXEMPTY
l_.str.5:                               ; @.str.5
	.asciz	" TXEMPTY"

	.comm	_AC97C_CSR_TXRDY,4,2            ; @AC97C_CSR_TXRDY
l_.str.6:                               ; @.str.6
	.asciz	" TXRDY"

l_.str.7:                               ; @.str.7
	.asciz	" NONE"

	.comm	_IRQ_HANDLED,8,3                ; @IRQ_HANDLED
	.comm	_AC97C_SR_COEVT,4,2             ; @AC97C_SR_COEVT
l_.str.8:                               ; @.str.8
	.asciz	"codec channel event%s%s%s%s%s\n"

l_.str.9:                               ; @.str.9
	.asciz	"spurious interrupt sr 0x%08x casr 0x%08x cosr 0x%08x\n"

	.no_dead_strip	_atmel_ac97c_interrupt
.subsections_via_symbols
