	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_base_get_max_events      ## -- Begin function event_base_get_max_events
	.p2align	4, 0x90
_event_base_get_max_events:             ## @event_base_get_max_events
	.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	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_th_base_lock@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_EVBASE_ACQUIRE_LOCK
	movq	_EVENT_BASE_COUNT_ACTIVE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_1
## %bb.2:
	movl	16(%rbx), %r14d
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.3:
	movq	$0, 16(%rbx)
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movq	_EVENT_BASE_COUNT_VIRTUAL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
## %bb.5:
	addl	8(%rbx), %r14d
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.6:
	movq	$0, 8(%rbx)
	jmp	LBB0_9
LBB0_7:
	movq	_EVENT_BASE_COUNT_VIRTUAL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
## %bb.8:
	addl	8(%rbx), %r14d
LBB0_9:
	movq	_EVENT_BASE_COUNT_ADDED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_12
## %bb.10:
	addl	(%rbx), %r14d
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.11:
	movq	$0, (%rbx)
LBB0_12:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_EVBASE_RELEASE_LOCK
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_th_base_lock,4,2               ## @th_base_lock
	.comm	_EVENT_BASE_COUNT_ACTIVE,4,2    ## @EVENT_BASE_COUNT_ACTIVE
	.comm	_EVENT_BASE_COUNT_VIRTUAL,4,2   ## @EVENT_BASE_COUNT_VIRTUAL
	.comm	_EVENT_BASE_COUNT_ADDED,4,2     ## @EVENT_BASE_COUNT_ADDED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_base_get_max_events      ; -- Begin function event_base_get_max_events
	.p2align	2
_event_base_get_max_events:             ; @event_base_get_max_events
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _th_base_lock@GOTPAGE
Lloh1:
	ldr	x23, [x23, _th_base_lock@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_EVBASE_ACQUIRE_LOCK
Lloh2:
	adrp	x8, _EVENT_BASE_COUNT_ACTIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVENT_BASE_COUNT_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.1:
	ldr	w20, [x19, #16]
	cbz	w21, LBB0_7
; %bb.2:
	str	xzr, [x19, #16]
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
Lloh5:
	adrp	x8, _EVENT_BASE_COUNT_VIRTUAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVENT_BASE_COUNT_VIRTUAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.5:
	ldr	w8, [x19, #8]
	add	w20, w20, w8
	cbz	w21, LBB0_9
; %bb.6:
	str	xzr, [x19, #8]
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _EVENT_BASE_COUNT_VIRTUAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVENT_BASE_COUNT_VIRTUAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x19, #8]
	add	w20, w8, w20
LBB0_9:
Lloh11:
	adrp	x8, _EVENT_BASE_COUNT_ADDED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVENT_BASE_COUNT_ADDED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.10:
	ldr	w8, [x19]
	add	w20, w20, w8
	cbz	w21, LBB0_12
; %bb.11:
	str	xzr, [x19]
LBB0_12:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_EVBASE_RELEASE_LOCK
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_th_base_lock,4,2               ; @th_base_lock
	.comm	_EVENT_BASE_COUNT_ACTIVE,4,2    ; @EVENT_BASE_COUNT_ACTIVE
	.comm	_EVENT_BASE_COUNT_VIRTUAL,4,2   ; @EVENT_BASE_COUNT_VIRTUAL
	.comm	_EVENT_BASE_COUNT_ADDED,4,2     ; @EVENT_BASE_COUNT_ADDED
.subsections_via_symbols
