	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsalloc
_vsalloc:                               ## @vsalloc
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-44(%rbp), %rsi
	callq	_tsdn_rtree_ctx
	leaq	-32(%rbp), %rcx
	movq	%rcx, (%rsp)
	movq	_extents_rtree@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	-40(%rbp), %r9
	movq	%rbx, %rdi
	movq	%rax, %rdx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_rtree_extent_szind_read
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	callq	_extent_state_get
	movq	_extent_state_active@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	-32(%rbp), %rdi
	movq	_SC_NSIZES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_8
LBB0_6:
	xorl	%r14d, %r14d
LBB0_1:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	_sz_index2size
	movq	%rax, %r14
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_extents_rtree,4,2              ## @extents_rtree
	.comm	_extent_state_active,8,3        ## @extent_state_active
	.comm	_SC_NSIZES,8,3                  ## @SC_NSIZES
	.no_dead_strip	_vsalloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsalloc
_vsalloc:                               ; @vsalloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	sub	x1, x29, #20
	bl	_tsdn_rtree_ctx
	mov	x2, x0
Lloh0:
	adrp	x1, _extents_rtree@GOTPAGE
Lloh1:
	ldr	x1, [x1, _extents_rtree@GOTPAGEOFF]
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x0, x20
	mov	x3, x19
	mov	w4, #0
	bl	_rtree_extent_szind_read
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, #0
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_2
; %bb.4:
	bl	_extent_state_get
Lloh2:
	adrp	x8, _extent_state_active@GOTPAGE
Lloh3:
	ldr	x8, [x8, _extent_state_active@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_1
; %bb.5:
	ldr	x0, [sp, #8]
Lloh5:
	adrp	x8, _SC_NSIZES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SC_NSIZES@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.6:
	bl	_sz_index2size
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_extents_rtree,4,2              ; @extents_rtree
	.comm	_extent_state_active,8,3        ; @extent_state_active
	.comm	_SC_NSIZES,8,3                  ; @SC_NSIZES
	.no_dead_strip	_vsalloc
.subsections_via_symbols
