	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtree_leaf_init
_rtree_leaf_init:                       ## @rtree_leaf_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_malloc_mutex_lock
	movq	_ATOMIC_RELAXED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_atomic_load_p
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	$1, %edi
	callq	_ZU
	movq	_rtree_levels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_RTREE_HEIGHT@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movb	-4(%rcx,%rdx,4), %cl
	shll	%cl, %eax
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_rtree_leaf_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	_ATOMIC_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_atomic_store_p
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_malloc_mutex_unlock
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOMIC_RELAXED,4,2             ## @ATOMIC_RELAXED
	.comm	_rtree_levels,8,3               ## @rtree_levels
	.comm	_RTREE_HEIGHT,4,2               ## @RTREE_HEIGHT
	.comm	_ATOMIC_RELEASE,4,2             ## @ATOMIC_RELEASE
	.no_dead_strip	_rtree_leaf_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtree_leaf_init
_rtree_leaf_init:                       ; @rtree_leaf_init
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_malloc_mutex_lock
Lloh0:
	adrp	x8, _ATOMIC_RELAXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATOMIC_RELAXED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_atomic_load_p
	mov	x22, x0
	cbnz	x0, LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_ZU
Lloh3:
	adrp	x8, _rtree_levels@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rtree_levels@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _RTREE_HEIGHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RTREE_HEIGHT@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	ldur	w8, [x8, #-4]
	lsl	w2, w0, w8
	mov	x0, x20
	mov	x1, x19
	bl	_rtree_leaf_alloc
	mov	x22, x0
	cbz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _ATOMIC_RELEASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATOMIC_RELEASE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_atomic_store_p
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_malloc_mutex_unlock
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOMIC_RELAXED,4,2             ; @ATOMIC_RELAXED
	.comm	_rtree_levels,8,3               ; @rtree_levels
	.comm	_RTREE_HEIGHT,4,2               ; @RTREE_HEIGHT
	.comm	_ATOMIC_RELEASE,4,2             ; @ATOMIC_RELEASE
	.no_dead_strip	_rtree_leaf_init
.subsections_via_symbols
