	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_queue_insert_active
_event_queue_insert_active:             ## @event_queue_insert_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_EVENT_BASE_ASSERT_LOCKED
	movl	(%r14), %esi
	movq	_EVLIST_ACTIVE@GOTPCREL(%rip), %r15
	testl	%esi, (%r15)
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_INCR_EVENT_COUNT
	movl	(%r15), %eax
	orl	%eax, (%r14)
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	incl	%esi
	movl	%esi, 16(%rbx)
	callq	_MAX_EVENT_COUNT
	movq	8(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setb	%dil
	callq	_EVUTIL_ASSERT
	movq	8(%r14), %rdi
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
	movq	_evcb_active_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TAILQ_INSERT_TAIL              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EVLIST_ACTIVE,4,2              ## @EVLIST_ACTIVE
	.comm	_evcb_active_next,4,2           ## @evcb_active_next
	.no_dead_strip	_event_queue_insert_active
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_queue_insert_active
_event_queue_insert_active:             ; @event_queue_insert_active
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_EVENT_BASE_ASSERT_LOCKED
	ldr	w1, [x19]
Lloh0:
	adrp	x21, _EVLIST_ACTIVE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EVLIST_ACTIVE@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x20
	bl	_INCR_EVENT_COUNT
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	w8, w0, [x20, #16]
	add	w1, w8, #1
	str	w1, [x20, #16]
	bl	_MAX_EVENT_COUNT
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, lo
	bl	_EVUTIL_ASSERT
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	add	x0, x8, x9, lsl #2
Lloh2:
	adrp	x8, _evcb_active_next@GOTPAGE
Lloh3:
	ldr	x8, [x8, _evcb_active_next@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_TAILQ_INSERT_TAIL
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EVLIST_ACTIVE,4,2              ; @EVLIST_ACTIVE
	.comm	_evcb_active_next,4,2           ; @evcb_active_next
	.no_dead_strip	_event_queue_insert_active
.subsections_via_symbols
