	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ceq_event_handler
_ceq_event_handler:                     ## @ceq_event_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movl	%esi, %edi
	callq	_CEQE_TYPE
	movl	%eax, %r13d
	movq	_HINIC_MAX_CEQ_EVENTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jae	LBB0_6
## %bb.1:
	movq	(%rbx), %rbx
	movl	%r13d, %eax
	leaq	(%rax,%rax,2), %r14
	leaq	(%rbx,%r14,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_4
## %bb.2:
	movq	16(%rbx,%r14,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%rbx,%r14,8), %r15d
	movl	%r12d, %edi
	movq	%rax, %rbx
	callq	_CEQE_DATA
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	*%rbx
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_dev_err
LBB0_5:
	movq	_HINIC_EQE_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	andq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_MAX_CEQ_EVENTS,4,2       ## @HINIC_MAX_CEQ_EVENTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown CEQ event, event = %d\n"

	.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 CEQ Event %d\n"

	.no_dead_strip	_ceq_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ceq_event_handler
_ceq_event_handler:                     ; @ceq_event_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	mov	x0, x1
	bl	_CEQE_TYPE
	mov	x22, x0
Lloh0:
	adrp	x8, _HINIC_MAX_CEQ_EVENTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINIC_MAX_CEQ_EVENTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_4
; %bb.1:
	ldr	x24, [x19]
	mov	w8, #24
Lloh3:
	adrp	x25, _HINIC_EQE_ENABLED@GOTPAGE
Lloh4:
	ldr	x25, [x25, _HINIC_EQE_ENABLED@GOTPAGEOFF]
	umaddl	x19, w22, w8, x24
	ldr	x1, [x25]
Lloh5:
	adrp	x23, _HINIC_EQE_RUNNING@GOTPAGE
Lloh6:
	ldr	x23, [x23, _HINIC_EQE_RUNNING@GOTPAGEOFF]
	ldr	x8, [x23]
	orr	x2, x8, x1
	mov	x0, x19
	bl	_cmpxchg
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	w8, w22
	mov	w9, #24
	madd	x9, x8, x9, x24
	ldr	x25, [x9, #16]
	cbz	x25, LBB0_5
; %bb.3:
	mov	w9, #24
	madd	x8, x8, x9, x24
	ldr	w21, [x8, #8]
	mov	x0, x20
	bl	_CEQE_DATA
	mov	x1, x0
	mov	x0, x21
	blr	x25
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dev_err
LBB0_5:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_err
LBB0_6:
	ldr	x8, [x23]
	ldr	x9, [x19]
	bic	x8, x9, x8
	str	x8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_MAX_CEQ_EVENTS,4,2       ; @HINIC_MAX_CEQ_EVENTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown CEQ event, event = %d\n"

	.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 CEQ Event %d\n"

	.no_dead_strip	_ceq_event_handler
.subsections_via_symbols
