	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_process_active
_event_process_active:                  ## @event_process_active
	.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
	cmpl	$0, 16(%rdi)
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_2
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_7
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_5:
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %r14
LBB0_7:
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%rax, %rbx
	leaq	-42(%rbp), %r13
	movq	_event_gotsig@GOTPCREL(%rip), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	_EVLIST_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_event_queue_remove
	movzwl	(%rbx), %eax
	movw	%ax, -42(%rbp)
	movq	%r13, 8(%rbx)
	testw	%ax, %ax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	decl	%eax
	movw	%ax, -42(%rbp)
	movw	%ax, (%rbx)
	movl	24(%rbx), %edi
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	callq	*32(%rbx)
	cmpq	$0, (%r12)
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_12 Depth=2
	movzwl	-42(%rbp), %eax
	testw	%ax, %ax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVLIST_ACTIVE,4,2              ## @EVLIST_ACTIVE
	.comm	_event_gotsig,8,3               ## @event_gotsig
	.no_dead_strip	_event_process_active
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_process_active
_event_process_active:                  ; @event_process_active
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
	bl	_TAILQ_FIRST
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_3
LBB0_5:
	mov	x20, #0
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x20, lsl #3]
LBB0_7:
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x20
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_13
; %bb.8:
	mov	x21, x0
Lloh0:
	adrp	x22, _EVLIST_ACTIVE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EVLIST_ACTIVE@GOTPAGEOFF]
	add	x23, sp, #14
Lloh2:
	adrp	x24, _event_gotsig@GOTPAGE
Lloh3:
	ldr	x24, [x24, _event_gotsig@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	bl	_TAILQ_FIRST
	mov	x21, x0
	cbz	x0, LBB0_13
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_event_queue_remove
	ldrh	w8, [x21]
	strh	w8, [sp, #14]
	str	x23, [x21, #8]
	cbz	w8, LBB0_9
LBB0_11:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w8, w8, #1
	strh	w8, [sp, #14]
	strh	w8, [x21]
	ldr	x8, [x21, #32]
	ldp	w1, w0, [x21, #20]
	ldr	w2, [x21, #16]
	blr	x8
	ldr	x8, [x24]
	cbnz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldrh	w8, [sp, #14]
	cbnz	w8, LBB0_11
	b	LBB0_9
LBB0_13:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EVLIST_ACTIVE,4,2              ; @EVLIST_ACTIVE
	.comm	_event_gotsig,8,3               ; @event_gotsig
	.no_dead_strip	_event_process_active
.subsections_via_symbols
