	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extent_alloc_dss               ## -- Begin function extent_alloc_dss
	.p2align	4, 0x90
_extent_alloc_dss:                      ## @extent_alloc_dss
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %rbx
	movq	%rcx, %r13
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_have_dss@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cassert
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	testq	%r13, %r13
	js	LBB0_12
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_extent_alloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_extent_dss_extending_start
	movq	_ATOMIC_ACQUIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dss_exhausted@GOTPCREL(%rip), %rdi
	callq	_atomic_load_b
	testl	%eax, %eax
	je	LBB0_10
LBB0_3:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_extent_dss_extending_finish
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_extent_dalloc
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PAGE_CEILING
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_ALIGNMENT_CEILING
	movq	%rax, %r13
	movq	%rax, %rbx
	subq	%r12, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_10 Depth=1
	movq	_NSIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_arena_extent_sn_next
                                        ## kill: def $eax killed $eax def $rax
	movq	_extent_state_active@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	movl	-76(%rbp), %r9d                 ## 4-byte Reload
	pushq	$1
	pushq	$1
	pushq	$0
	pushq	%r10
	pushq	%rax
	callq	_extent_init
	addq	$48, %rsp
LBB0_6:                                 ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%r14, %r13
	jb	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %r15
	cmpq	%r14, %r15
	jb	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	subq	%r14, %rbx
	addq	%r13, %rbx
	movl	$1, %edi
	callq	_assert
	movq	%rbx, %rdi
	callq	_extent_dss_sbrk
	cmpq	%r14, %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$-1, %rax
	je	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_extent_dss_max_update
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_3
LBB0_12:
	xorl	%r13d, %r13d
LBB0_13:
	movq	%r13, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_ATOMIC_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_dss_max@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_atomic_store_p
	xorl	%eax, %eax
	callq	_extent_dss_extending_finish
	cmpq	%r12, %r13
	jne	LBB0_17
## %bb.15:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_extent_dalloc
	jmp	LBB0_18
LBB0_16:
	movq	_ATOMIC_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_dss_exhausted@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_store_b
	jmp	LBB0_3
LBB0_17:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_extent_dalloc_gap
LBB0_18:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	16(%rbp), %rbx
	movl	(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_pages_decommit
	movl	%eax, (%rbx)
LBB0_20:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx)
	je	LBB0_13
## %bb.21:
	testl	%eax, %eax
	je	LBB0_13
## %bb.22:
	movq	_EXTENT_HOOKS_INITIALIZER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)
	movq	_NSIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_extent_state_active@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-116(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	pushq	$1
	pushq	$1
	pushq	$0
	pushq	%rax
	pushq	%r10
	callq	_extent_init
	addq	$48, %rsp
	leaq	-112(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_extent_purge_forced_wrapper
	testq	%rax, %rax
	je	LBB0_13
## %bb.23:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_memset
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_have_dss,4,2                   ## @have_dss
	.comm	_dss_exhausted,4,2              ## @dss_exhausted
	.comm	_ATOMIC_ACQUIRE,4,2             ## @ATOMIC_ACQUIRE
	.comm	_NSIZES,4,2                     ## @NSIZES
	.comm	_extent_state_active,4,2        ## @extent_state_active
	.comm	_dss_max,4,2                    ## @dss_max
	.comm	_ATOMIC_RELEASE,4,2             ## @ATOMIC_RELEASE
	.comm	_EXTENT_HOOKS_INITIALIZER,8,3   ## @EXTENT_HOOKS_INITIALIZER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extent_alloc_dss               ; -- Begin function extent_alloc_dss
	.p2align	2
_extent_alloc_dss:                      ; @extent_alloc_dss
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x6
	mov	x22, x5
	mov	x26, x4
	mov	x21, x3
	mov	x27, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _have_dss@GOTPAGE
Lloh1:
	ldr	x8, [x8, _have_dss@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cassert
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	cmp	x26, #0
	cset	w0, ne
	bl	_assert
	tbnz	x21, #63, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_extent_alloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x25, x0
	stp	x23, x22, [sp, #24]             ; 16-byte Folded Spill
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	bl	_extent_dss_extending_start
Lloh3:
	adrp	x8, _ATOMIC_ACQUIRE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATOMIC_ACQUIRE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, _dss_exhausted@GOTPAGE
Lloh7:
	ldr	x0, [x0, _dss_exhausted@GOTPAGEOFF]
	bl	_atomic_load_b
	cbz	w0, LBB0_12
LBB0_3:
	bl	_extent_dss_extending_finish
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x1, x19
	mov	x2, x25
	bl	_extent_dalloc
LBB0_4:
	mov	x24, #0
LBB0_5:
	mov	x0, x24
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_6:                                 ;   in Loop: Header=BB0_12 Depth=1
	mov	x22, x0
	bl	_PAGE_CEILING
	mov	x28, x0
	mov	x1, x26
	bl	_ALIGNMENT_CEILING
	mov	x24, x0
	subs	x23, x0, x28
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh8:
	adrp	x8, _NSIZES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NSIZES@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_arena_extent_sn_next
	mov	x6, x0
Lloh11:
	adrp	x8, _extent_state_active@GOTPAGE
Lloh12:
	ldr	x8, [x8, _extent_state_active@GOTPAGEOFF]
Lloh13:
	ldr	w7, [x8]
	mov	w8, #1
	str	w8, [sp, #8]
	mov	x8, #4294967296
	str	x8, [sp]
	mov	x0, x25
	mov	x1, x19
	mov	x2, x28
	mov	x3, x23
	mov	x4, #0
	mov	x5, x20
	bl	_extent_init
LBB0_8:                                 ;   in Loop: Header=BB0_12 Depth=1
	cmp	x24, x22
	b.lo	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x24, x21
	cmp	x23, x22
	b.lo	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x8, x21, x22
	add	x20, x8, x24
	mov	w0, #1
	bl	_assert
	mov	x0, x20
	bl	_extent_dss_sbrk
	cmp	x0, x22
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_12 Depth=1
	cmn	x0, #1
	b.eq	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	bl	_extent_dss_max_update
	cbnz	x0, LBB0_6
	b	LBB0_3
LBB0_13:
Lloh14:
	adrp	x8, _ATOMIC_RELEASE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATOMIC_RELEASE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x0, _dss_max@GOTPAGE
Lloh18:
	ldr	x0, [x0, _dss_max@GOTPAGEOFF]
	mov	x1, x23
	bl	_atomic_store_p
	bl	_extent_dss_extending_finish
	cmp	x24, x28
	b.ne	LBB0_16
; %bb.14:
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_extent_dalloc
	b	LBB0_17
LBB0_15:
Lloh19:
	adrp	x8, _ATOMIC_RELEASE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATOMIC_RELEASE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x0, _dss_exhausted@GOTPAGE
Lloh23:
	ldr	x0, [x0, _dss_exhausted@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_store_b
	b	LBB0_3
LBB0_16:
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_extent_dalloc_gap
LBB0_17:
	ldp	x23, x22, [sp, #24]             ; 16-byte Folded Reload
	ldr	w0, [x23]
	cbnz	w0, LBB0_19
; %bb.18:
	mov	x0, x24
	mov	x1, x21
	bl	_pages_decommit
	str	w0, [x23]
LBB0_19:
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.20:
	cbz	w0, LBB0_5
; %bb.21:
Lloh24:
	adrp	x8, _EXTENT_HOOKS_INITIALIZER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EXTENT_HOOKS_INITIALIZER@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh27:
	adrp	x8, _NSIZES@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NSIZES@GOTPAGEOFF]
Lloh29:
	ldr	w6, [x8]
Lloh30:
	adrp	x8, _extent_state_active@GOTPAGE
Lloh31:
	ldr	x8, [x8, _extent_state_active@GOTPAGEOFF]
Lloh32:
	ldr	w7, [x8]
	mov	w8, #1
	str	w8, [sp, #8]
	mov	x8, #4294967296
	str	x8, [sp]
	add	x0, sp, #52
	mov	x1, x19
	mov	x2, x24
	mov	x3, x21
	mov	x4, x21
	mov	w5, #0
	bl	_extent_init
	add	x2, sp, #56
	add	x3, sp, #52
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	mov	x5, x21
	bl	_extent_purge_forced_wrapper
	cbz	x0, LBB0_5
; %bb.22:
	mov	x0, x24
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_have_dss,4,2                   ; @have_dss
	.comm	_dss_exhausted,4,2              ; @dss_exhausted
	.comm	_ATOMIC_ACQUIRE,4,2             ; @ATOMIC_ACQUIRE
	.comm	_NSIZES,4,2                     ; @NSIZES
	.comm	_extent_state_active,4,2        ; @extent_state_active
	.comm	_dss_max,4,2                    ; @dss_max
	.comm	_ATOMIC_RELEASE,4,2             ; @ATOMIC_RELEASE
	.comm	_EXTENT_HOOKS_INITIALIZER,8,3   ; @EXTENT_HOOKS_INITIALIZER
.subsections_via_symbols
