	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aeq_irq_handler
_aeq_irq_handler:                       ## @aeq_irq_handler
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_aeq_to_aeqs
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_13
## %bb.1:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	cmpl	%eax, %r15d
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_GET_CURR_AEQ_ELEM
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, %ebx
	movq	_WRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_EQ_ELEM_DESC_GET
	cmpl	4(%r13), %eax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_EQ_ELEM_DESC_GET
	movl	%eax, %r12d
	movq	_HINIC_MAX_AEQ_EVENTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jae	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_EQ_ELEM_DESC_GET
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_EQ_ELEM_DESC_GET
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %rdi
	movq	_HINIC_EQE_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_HINIC_EQE_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	orq	%rsi, %rdx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_cmpxchg
	movq	_HINIC_EQE_ENABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx,%rbx,8), %edi
	movl	(%r14), %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	*%rax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_HINIC_EQE_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	andq	%rax, (%rcx)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	movl	8(%r13), %ecx
	incl	%ecx
	movl	%ecx, 8(%r13)
	cmpl	%eax, %ecx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, 8(%r13)
	xorl	%ecx, %ecx
	cmpl	$0, 4(%r13)
	sete	%cl
	movl	%ecx, 4(%r13)
	jmp	LBB0_12
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WRAPPED,4,2                    ## @WRAPPED
	.comm	_TYPE,4,2                       ## @TYPE
	.comm	_HINIC_MAX_AEQ_EVENTS,4,2       ## @HINIC_MAX_AEQ_EVENTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown AEQ Event %d\n"

	.comm	_SRC,4,2                        ## @SRC
	.comm	_SIZE,4,2                       ## @SIZE
	.comm	_HINIC_EQE_ENABLED,8,3          ## @HINIC_EQE_ENABLED
	.comm	_HINIC_EQE_RUNNING,8,3          ## @HINIC_EQE_RUNNING
L_.str.1:                               ## @.str.1
	.asciz	"Unhandled AEQ Event %d\n"

	.no_dead_strip	_aeq_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aeq_irq_handler
_aeq_irq_handler:                       ; @aeq_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	bl	_aeq_to_aeqs
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	w27, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x26, _WRAPPED@GOTPAGE
Lloh1:
	ldr	x26, [x26, _WRAPPED@GOTPAGEOFF]
Lloh2:
	adrp	x22, _TYPE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TYPE@GOTPAGEOFF]
Lloh4:
	adrp	x21, _HINIC_MAX_AEQ_EVENTS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _HINIC_MAX_AEQ_EVENTS@GOTPAGEOFF]
	ldr	x8, [x8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh6:
	adrp	x20, _SRC@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SRC@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w27, w27, #1
	cmp	w27, w8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_GET_CURR_AEQ_ELEM
	mov	x23, x0
	ldr	w0, [x0, #4]
	bl	_be32_to_cpu
	mov	x25, x0
	ldr	w1, [x26]
	bl	_HINIC_EQ_ELEM_DESC_GET
	ldr	w8, [x19, #4]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22]
	mov	x0, x25
	bl	_HINIC_EQ_ELEM_DESC_GET
	mov	x24, x0
	ldr	w8, [x21]
	cmp	w0, w8
	b.hs	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20]
	mov	x0, x25
	bl	_HINIC_EQ_ELEM_DESC_GET
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #24
	mov	x20, x21
	mov	x21, x22
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x22, [x8]
Lloh8:
	adrp	x8, _SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_HINIC_EQ_ELEM_DESC_GET
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	umaddl	x25, w24, w28, x22
Lloh11:
	adrp	x28, _HINIC_EQE_ENABLED@GOTPAGE
Lloh12:
	ldr	x28, [x28, _HINIC_EQE_ENABLED@GOTPAGEOFF]
	ldr	x1, [x28]
Lloh13:
	adrp	x8, _HINIC_EQE_RUNNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HINIC_EQE_RUNNING@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	orr	x2, x8, x1
	mov	x0, x25
	bl	_cmpxchg
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, w24
	mov	w8, #24
	madd	x8, x9, x8, x22
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, #24
	madd	x9, x9, x10, x22
	ldr	w0, [x9, #8]
	ldr	w1, [x23]
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	blr	x8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	bl	_dev_err
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x8, _HINIC_EQE_RUNNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HINIC_EQE_RUNNING@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x9, [x25]
	bic	x8, x9, x8
	str	x8, [x25]
	mov	x22, x21
	mov	x21, x20
Lloh21:
	adrp	x20, _SRC@GOTPAGE
Lloh22:
	ldr	x20, [x20, _SRC@GOTPAGEOFF]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	add	w9, w8, #1
	str	w9, [x19, #8]
	ldr	w8, [x19]
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, #4]
	cmp	w9, #0
	cset	w9, eq
	stp	w9, wzr, [x19, #4]
	b	LBB0_2
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_dev_err
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_WRAPPED,4,2                    ; @WRAPPED
	.comm	_TYPE,4,2                       ; @TYPE
	.comm	_HINIC_MAX_AEQ_EVENTS,4,2       ; @HINIC_MAX_AEQ_EVENTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown AEQ Event %d\n"

	.comm	_SRC,4,2                        ; @SRC
	.comm	_SIZE,4,2                       ; @SIZE
	.comm	_HINIC_EQE_ENABLED,8,3          ; @HINIC_EQE_ENABLED
	.comm	_HINIC_EQE_RUNNING,8,3          ; @HINIC_EQE_RUNNING
l_.str.1:                               ; @.str.1
	.asciz	"Unhandled AEQ Event %d\n"

	.no_dead_strip	_aeq_irq_handler
.subsections_via_symbols
