	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	4(%rdi), %r13
	xorl	%r12d, %r12d
	cmpq	$0, 24(%rdi)
	js	LBB0_1
## %bb.2:
	leaq	24(%rbx), %r15
	movq	%rbx, %rdi
	callq	_update_time_cache
	leaq	-64(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_gettime
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	callq	_evutil_timeradd
	cmpl	$0, 8(%rbx)
	jg	LBB0_4
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%rbx)
	jle	LBB0_12
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	callq	_event_process_active_single_queue
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	8(%rbx), %rax
	addq	$4, %r14
	cmpq	%rax, %r15
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdi
	addq	%r14, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, 12(%rbx)
	movq	16(%rbx), %rsi
	addq	%r14, %rsi
	cmpq	%r13, %r15
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	movl	$-1, 12(%rbx)
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.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, #96
	.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
	mov	x19, x0
	ldp	w20, w23, [x0]
                                        ; kill: def $w23 killed $w23 def $x23
	sxtw	x23, w23
	mov	x22, x0
	ldr	x8, [x22, #24]!
	tbnz	x8, #63, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_update_time_cache
	add	x21, sp, #8
	add	x1, sp, #8
	mov	x0, x19
	bl	_gettime
	add	x1, sp, #8
	add	x2, sp, #8
	mov	x0, x22
	bl	_evutil_timeradd
	b	LBB0_3
LBB0_2:
	mov	x21, #0
LBB0_3:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x22, #0
	mov	x24, #0
Lloh0:
	adrp	x25, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _INT_MAX@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_event_process_active_single_queue
	cbz	w0, LBB0_9
	b	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x22
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w24, [x19, #12]
	ldr	x8, [x19, #16]
	add	x1, x8, x22
	cmp	x24, x23
	b.ge	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x3, #0
	bl	_event_process_active_single_queue
	cbnz	w0, LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19, #8]
	add	x22, x22, #4
	cmp	x24, x8
	b.lt	LBB0_6
LBB0_10:
	mov	w0, #0
LBB0_11:
	mov	w8, #-1
	str	w8, [x19, #12]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_event_process_active
.subsections_via_symbols
