	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ace_interrupt
_ace_interrupt:                         ## @ace_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, %rbx
	leaq	32(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	$1, (%rbx)
	movq	_ACE_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ace_in
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	_ACE_CTRL_RESETIRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r15d, %edx
	movq	%rbx, %rdi
	callq	_ace_out
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ace_out
	movq	%rbx, %rdi
	callq	_ace_interrupt_checkstate
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 40(%rbx)
LBB0_2:
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movl	36(%rbx), %r15d
	movq	_ACE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ace_in32
	movq	%rax, %r12
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ace_in32
	movq	%rax, %r13
	movq	_ACE_SECCNTCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ace_in
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movl	%eax, %r8d
	callq	_dev_err
	movl	36(%rbx), %edi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	movl	24(%rbx), %r8d
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movl	$1, 28(%rbx)
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ace_fsm_dostate
	cmpl	$0, 28(%rbx)
	jne	LBB0_5
## %bb.6:
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACE_CTRL,4,2                   ## @ACE_CTRL
	.comm	_ACE_CTRL_RESETIRQ,4,2          ## @ACE_CTRL_RESETIRQ
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spurious irq; stat=%.8x ctrl=%.8x cmd=%.4x\n"

	.comm	_ACE_STATUS,4,2                 ## @ACE_STATUS
	.comm	_ACE_SECCNTCMD,4,2              ## @ACE_SECCNTCMD
L_.str.1:                               ## @.str.1
	.asciz	"fsm_task=%i fsm_state=%i data_count=%i\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ace_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ace_interrupt
_ace_interrupt:                         ; @ace_interrupt
	.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	x20, x1
	add	x19, x1, #32
	mov	x0, x19
	bl	_spin_lock
	mov	w8, #1
	str	w8, [x20]
Lloh0:
	adrp	x23, _ACE_CTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ACE_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_ace_in
	mov	x21, x0
	ldr	w1, [x23]
Lloh2:
	adrp	x8, _ACE_CTRL_RESETIRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ACE_CTRL_RESETIRQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x20
	bl	_ace_out
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	_ace_out
	mov	x0, x20
	bl	_ace_interrupt_checkstate
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x20, #40]
LBB0_2:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	w21, [x20, #36]
Lloh8:
	adrp	x8, _ACE_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACE_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ace_in32
	mov	x22, x0
	ldr	w1, [x23]
	mov	x0, x20
	bl	_ace_in32
	mov	x23, x0
Lloh11:
	adrp	x8, _ACE_SECCNTCMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACE_SECCNTCMD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ace_in
	mov	x4, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	_dev_err
	ldr	w0, [x20, #36]
	ldp	x2, x3, [x20, #8]
	ldr	w4, [x20, #24]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_4:
	mov	w8, #1
	str	w8, [x20, #28]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ace_fsm_dostate
	ldr	w8, [x20, #28]
	cbnz	w8, LBB0_5
; %bb.6:
	str	wzr, [x20]
	mov	x0, x19
	bl	_spin_unlock
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh20:
	ldr	w0, [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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ACE_CTRL,4,2                   ; @ACE_CTRL
	.comm	_ACE_CTRL_RESETIRQ,4,2          ; @ACE_CTRL_RESETIRQ
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spurious irq; stat=%.8x ctrl=%.8x cmd=%.4x\n"

	.comm	_ACE_STATUS,4,2                 ; @ACE_STATUS
	.comm	_ACE_SECCNTCMD,4,2              ; @ACE_SECCNTCMD
l_.str.1:                               ; @.str.1
	.asciz	"fsm_task=%i fsm_state=%i data_count=%i\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ace_interrupt
.subsections_via_symbols
