	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_deferred_cb_schedule_    ## -- Begin function event_deferred_cb_schedule_
	.p2align	4, 0x90
_event_deferred_cb_schedule_:           ## @event_deferred_cb_schedule_
	.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
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_current_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_2:
	movq	_th_base_lock@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_EVBASE_ACQUIRE_LOCK
	movq	(%rbx), %rax
	movq	_MAX_DEFERREDS_QUEUED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_event_callback_activate_later_nolock_
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_event_callback_activate_nolock_
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r14d
	incq	(%rbx)
	jmp	LBB0_7
LBB0_5:
	xorl	%r14d, %r14d
LBB0_7:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_EVBASE_RELEASE_LOCK
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current_base,8,3               ## @current_base
	.comm	_th_base_lock,4,2               ## @th_base_lock
	.comm	_MAX_DEFERREDS_QUEUED,8,3       ## @MAX_DEFERREDS_QUEUED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_deferred_cb_schedule_    ; -- Begin function event_deferred_cb_schedule_
	.p2align	2
_event_deferred_cb_schedule_:           ; @event_deferred_cb_schedule_
	.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	x20, x1
Lloh0:
	adrp	x8, _current_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current_base@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x19, x8, x0, eq
Lloh3:
	adrp	x21, _th_base_lock@GOTPAGE
Lloh4:
	ldr	x21, [x21, _th_base_lock@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_EVBASE_ACQUIRE_LOCK
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _MAX_DEFERREDS_QUEUED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_DEFERREDS_QUEUED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	mov	x0, x19
	mov	x1, x20
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	bl	_event_callback_activate_later_nolock_
	mov	x20, x0
	b	LBB0_4
LBB0_2:
	bl	_event_callback_activate_nolock_
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_EVBASE_RELEASE_LOCK
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_current_base,8,3               ; @current_base
	.comm	_th_base_lock,4,2               ; @th_base_lock
	.comm	_MAX_DEFERREDS_QUEUED,8,3       ; @MAX_DEFERREDS_QUEUED
.subsections_via_symbols
