	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aaci_irq
_aaci_irq:                              ## @aaci_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	_AACI_ALLINTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	testb	$127, %bl
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_aaci_fifo_irq
LBB0_3:
	testl	$16256, %ebx                    ## imm = 0x3F80
	je	LBB0_5
## %bb.4:
	movl	%ebx, %edx
	sarl	$7, %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_aaci_fifo_irq
LBB0_5:
	testl	$2080768, %ebx                  ## imm = 0x1FC000
	je	LBB0_7
## %bb.6:
	movl	%ebx, %edx
	sarl	$14, %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_aaci_fifo_irq
LBB0_7:
	testl	$266338304, %ebx                ## imm = 0xFE00000
	je	LBB0_9
## %bb.8:
	movl	%ebx, %edx
	sarl	$21, %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_aaci_fifo_irq
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.11:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AACI_ALLINTS,8,3               ## @AACI_ALLINTS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_aaci_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aaci_irq
_aaci_irq:                              ; @aaci_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x0, x1
	bl	_spin_lock
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _AACI_ALLINTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AACI_ALLINTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.1:
	tst	w20, #0x7f
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_aaci_fifo_irq
LBB0_3:
	tst	w20, #0x3f80
	b.eq	LBB0_5
; %bb.4:
	asr	w2, w20, #7
	mov	x0, x19
	mov	w1, #1
	bl	_aaci_fifo_irq
LBB0_5:
	tst	w20, #0x1fc000
	b.eq	LBB0_7
; %bb.6:
	asr	w2, w20, #14
	mov	x0, x19
	mov	w1, #2
	bl	_aaci_fifo_irq
LBB0_7:
	tst	w20, #0xfe00000
	b.eq	LBB0_9
; %bb.8:
	asr	w2, w20, #21
	mov	x0, x19
	mov	w1, #3
	bl	_aaci_fifo_irq
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IRQ_NONE@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AACI_ALLINTS,8,3               ; @AACI_ALLINTS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_aaci_irq
.subsections_via_symbols
