	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qm_aeq_irq
_qm_aeq_irq:                            ## @qm_aeq_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	%rsi, %r13
	movslq	(%rsi), %r14
	shlq	$3, %r14
	addq	8(%rsi), %r14
	movq	_QM_VF_AEQ_INT_SOURCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rsi), %rdi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_QM_AEQE_PHASE
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
	cmpl	4(%r13), %eax
	jne	LBB0_12
## %bb.3:
	movq	_qm_fifo_overflow@GOTPCREL(%rip), %r12
	movq	_QM_DOORBELL_CMD_AEQ@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %r14
	incl	%ecx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, (%r13)
	movl	(%r15), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_qm_db
	movq	%r14, %rdi
	callq	_QM_AEQE_PHASE
	cmpl	4(%r13), %eax
	jne	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rbx
	movq	_QM_AEQE_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shrq	%cl, %rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	16(%r13), %rdi
	cmpq	%rax, %rbx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_dev_err
	movl	(%r13), %ecx
	movq	_QM_Q_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, %ecx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	cmpl	$0, 4(%r13)
	sete	%al
	movl	%eax, 4(%r13)
	movq	8(%r13), %r14
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_11:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
LBB0_12:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_VF_AEQ_INT_SOURCE,8,3       ## @QM_VF_AEQ_INT_SOURCE
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_QM_AEQE_TYPE_SHIFT,8,3         ## @QM_AEQE_TYPE_SHIFT
	.comm	_qm_fifo_overflow,8,3           ## @qm_fifo_overflow
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s overflow\n"

L_.str.1:                               ## @.str.1
	.asciz	"unknown error type %d\n"

	.comm	_QM_Q_DEPTH,4,2                 ## @QM_Q_DEPTH
	.comm	_QM_DOORBELL_CMD_AEQ,4,2        ## @QM_DOORBELL_CMD_AEQ
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_qm_aeq_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qm_aeq_irq
_qm_aeq_irq:                            ; @qm_aeq_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x20, [x1, #8]
	ldrsw	x21, [x1]
	ldr	x8, [x1, #24]
Lloh0:
	adrp	x9, _QM_VF_AEQ_INT_SOURCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QM_VF_AEQ_INT_SOURCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cbz	w0, LBB0_10
; %bb.1:
	add	x20, x20, x21, lsl #3
	mov	x0, x20
	bl	_QM_AEQE_PHASE
	ldr	w8, [x19, #4]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.2:
Lloh3:
	adrp	x25, _QM_AEQE_TYPE_SHIFT@GOTPAGE
Lloh4:
	ldr	x25, [x25, _QM_AEQE_TYPE_SHIFT@GOTPAGEOFF]
Lloh5:
	adrp	x26, _qm_fifo_overflow@GOTPAGE
Lloh6:
	ldr	x26, [x26, _qm_fifo_overflow@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
Lloh9:
	adrp	x27, _QM_Q_DEPTH@GOTPAGE
Lloh10:
	ldr	x27, [x27, _QM_Q_DEPTH@GOTPAGEOFF]
Lloh11:
	adrp	x28, _QM_DOORBELL_CMD_AEQ@GOTPAGE
Lloh12:
	ldr	x28, [x28, _QM_DOORBELL_CMD_AEQ@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.1@PAGE
Lloh14:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh15:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #8
	add	w3, w8, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w3, [x19]
	ldr	w2, [x28]
	mov	x0, x19
	mov	w1, #0
	mov	w4, #0
	bl	_qm_db
	mov	x0, x20
	bl	_QM_AEQE_PHASE
	ldr	w8, [x19, #4]
	cmp	w0, w8
	b.ne	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x25]
	lsr	x23, x8, x9
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	mov	x8, x0
	ldr	x0, [x19, #16]
	cmp	x23, x8
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	ldr	x2, [x8, x23, lsl #3]
	mov	x1, x21
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x22
	mov	x2, x23
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_dev_err
	ldr	w8, [x19]
	ldr	w9, [x27]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w3, #0
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #4]
	ldr	x20, [x19, #8]
	b	LBB0_4
LBB0_10:
Lloh17:
	adrp	x24, _IRQ_NONE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh19:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh20:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x24]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_VF_AEQ_INT_SOURCE,8,3       ; @QM_VF_AEQ_INT_SOURCE
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_QM_AEQE_TYPE_SHIFT,8,3         ; @QM_AEQE_TYPE_SHIFT
	.comm	_qm_fifo_overflow,8,3           ; @qm_fifo_overflow
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s overflow\n"

l_.str.1:                               ; @.str.1
	.asciz	"unknown error type %d\n"

	.comm	_QM_Q_DEPTH,4,2                 ; @QM_Q_DEPTH
	.comm	_QM_DOORBELL_CMD_AEQ,4,2        ; @QM_DOORBELL_CMD_AEQ
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_qm_aeq_irq
.subsections_via_symbols
