	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ensure_active_superblock
_ensure_active_superblock:              ## @ensure_active_superblock
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_dsa_size_classes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rbx
	movq	(%rax,%rbx,8), %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	callq	_DSA_SCLASS_LOCK
	movl	%eax, %edi
	callq	_LWLockHeldByMe
	movl	%eax, %edi
	callq	_Assert
	movq	_DSA_SCLASS_BLOCK_OF_SPANS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_FPM_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rcx
	orq	%r14, %rcx
	shrq	$32, %rcx
	je	LBB0_5
## %bb.2:
	xorl	%edx, %edx
	divq	%r14
	decq	%rax
	jmp	LBB0_7
LBB0_3:
	movq	_DSA_SUPERBLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rcx
	orq	%r14, %rcx
	shrq	$32, %rcx
	je	LBB0_6
## %bb.4:
	xorl	%edx, %edx
	divq	%r14
	jmp	LBB0_7
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
                                        ## kill: def $eax killed $eax def $rax
	decq	%rax
	jmp	LBB0_7
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_DSA_FULLNESS_CLASSES@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
                                        ## implicit-def: $rbx
	jl	LBB0_29
## %bb.8:
	movl	$2, %ecx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	(%rax,%rcx,8), %r13
	movq	%r13, %rdi
	callq	_DsaPointerIsValid
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rbx
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	callq	_DsaPointerIsValid
	testl	%eax, %eax
	jne	LBB0_44
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_DSA_FULLNESS_CLASSES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	cmpq	%rax, %rcx
	jl	LBB0_9
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	%eax, 24(%r15)
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_DsaPointerIsValid
	movq	%rbx, %r13
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
LBB0_15:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_dsa_get_address
	movq	%rax, %r15
	movq	(%rax), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, %rcx
	subq	8(%rax), %rcx
	movq	_DSA_FULLNESS_CLASSES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	imulq	%rcx, %rax
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %rbx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ebx
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_DsaPointerIsValid
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_dsa_get_address
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=2
	xorl	%eax, %eax
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	%rbx, %rcx
	movslq	%ecx, %rbx
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_14
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	(%r12), %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax,%r14,8), %r12
	movq	16(%r15), %rdi
	callq	_DsaPointerIsValid
	cmpq	%r13, %r12
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	%eax, %edi
	callq	_Assert
	movq	16(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dsa_get_address
	movq	(%r15), %rcx
	movq	%rcx, (%rax)
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_26
	jmp	LBB0_27
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=2
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	(%r15), %rax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	_InvalidDsaPointer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rcx)
LBB0_26:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	16(%r15), %rax
	movq	%rax, 16(%rcx)
LBB0_27:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rcx
	movq	%rcx, (%r15)
	movq	%r13, (%rax,%rbx,8)
	movq	_InvalidDsaPointer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	(%r15), %rdi
	callq	_DsaPointerIsValid
	testl	%eax, %eax
	je	LBB0_13
## %bb.28:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dsa_get_address
	movq	%r13, 16(%rax)
	jmp	LBB0_13
LBB0_29:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	callq	_DsaPointerIsValid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_DSA_FULLNESS_CLASSES@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_33
## %bb.30:
	movl	$2, %ebx
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_transfer_first_span
	testq	%rax, %rax
	jne	LBB0_54
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	incl	%ebx
	movq	_DSA_FULLNESS_CLASSES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, %ebx
	jl	LBB0_31
LBB0_33:
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	callq	_DsaPointerIsValid
	testl	%eax, %eax
	je	LBB0_45
LBB0_34:
	movq	_DSA_SCLASS_BLOCK_OF_SPANS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r15d
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	cmpl	%r13d, %esi
	je	LBB0_37
## %bb.35:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_alloc_object
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_DsaPointerIsValid
	testl	%eax, %eax
	je	LBB0_53
## %bb.36:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_DSA_PAGES_PER_SUPERBLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_37:
	movq	%r12, %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_DSA_AREA_LOCK
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_LWLockAcquire
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_get_best_segment
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_39
## %bb.38:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_make_new_segment
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_52
LBB0_39:
	movl	8(%r12), %edi
	leaq	-104(%rbp), %rdx
	movq	%r15, %rsi
	callq	_FreePageManagerGet
	testl	%eax, %eax
	jne	LBB0_41
## %bb.40:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_elog
LBB0_41:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_DSA_AREA_LOCK
	movl	%eax, %edi
	callq	_LWLockRelease
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_get_segment_index
	movq	_FPM_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	imulq	-104(%rbp), %rsi
	movl	%eax, %edi
	callq	_DSA_MAKE_POINTER
	movq	_DSA_SCLASS_BLOCK_OF_SPANS@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmoveq	%rax, %rsi
	movq	%rbx, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	movq	%rax, %rcx
	movq	%r15, %r8
	movl	%r13d, %r9d
	callq	_init_span
	movl	$1, %r14d
	testq	%r15, %r15
	je	LBB0_54
## %bb.42:
	movq	-104(%rbp), %rdx
	leaq	-1(%r15), %rcx
	movl	%r15d, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_46
## %bb.43:
	xorl	%ecx, %ecx
	jmp	LBB0_48
LBB0_44:
	movl	$1, %r14d
	jmp	LBB0_54
LBB0_45:
	movl	$1, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_transfer_first_span
	testq	%rax, %rax
	jne	LBB0_54
	jmp	LBB0_34
LBB0_46:
	andq	$-4, %r15
	leaq	(,%rdx,8), %rsi
	xorl	%ecx, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%rsi, %rdi
	movq	%rbx, (%rdi,%rcx,8)
	movq	(%r12), %rdi
	addq	%rsi, %rdi
	movq	%rbx, 8(%rdi,%rcx,8)
	movq	(%r12), %rdi
	addq	%rsi, %rdi
	movq	%rbx, 16(%rdi,%rcx,8)
	movq	(%r12), %rdi
	addq	%rsi, %rdi
	movq	%rbx, 24(%rdi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %r15
	jne	LBB0_47
LBB0_48:
	testq	%rax, %rax
	je	LBB0_54
## %bb.49:
	addq	%rdx, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdx
	movq	%rsi, (%rdx,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_50
	jmp	LBB0_54
LBB0_52:
	movq	%rbx, %rdi
	callq	_DSA_AREA_LOCK
	movl	%eax, %edi
	callq	_LWLockRelease
LBB0_53:
	xorl	%r14d, %r14d
LBB0_54:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dsa_size_classes,8,3           ## @dsa_size_classes
	.comm	_DSA_SCLASS_BLOCK_OF_SPANS,4,2  ## @DSA_SCLASS_BLOCK_OF_SPANS
	.comm	_FPM_PAGE_SIZE,8,3              ## @FPM_PAGE_SIZE
	.comm	_DSA_SUPERBLOCK_SIZE,8,3        ## @DSA_SUPERBLOCK_SIZE
	.comm	_DSA_FULLNESS_CLASSES,4,2       ## @DSA_FULLNESS_CLASSES
	.comm	_InvalidDsaPointer,8,3          ## @InvalidDsaPointer
	.comm	_DSA_PAGES_PER_SUPERBLOCK,8,3   ## @DSA_PAGES_PER_SUPERBLOCK
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsa_allocate could not find %zu free pages for superblock"

	.no_dead_strip	_ensure_active_superblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ensure_active_superblock
_ensure_active_superblock:              ; @ensure_active_superblock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _dsa_size_classes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dsa_size_classes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x19, [x8, w2, sxtw #3]
	mov	x1, x2
	bl	_DSA_SCLASS_LOCK
	bl	_LWLockHeldByMe
	bl	_Assert
Lloh3:
	adrp	x8, _DSA_SCLASS_BLOCK_OF_SPANS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSA_SCLASS_BLOCK_OF_SPANS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _FPM_PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FPM_PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	udiv	x8, x8, x19
	sub	x8, x8, #1
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _DSA_SUPERBLOCK_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSA_SUPERBLOCK_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	udiv	x8, x8, x19
LBB0_3:
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh12:
	adrp	x28, _DSA_FULLNESS_CLASSES@GOTPAGE
Lloh13:
	ldr	x28, [x28, _DSA_FULLNESS_CLASSES@GOTPAGEOFF]
	ldr	w8, [x28]
                                        ; implicit-def: $x22
	cmp	w8, #4
	mov	x20, x23
	b.lt	LBB0_22
; %bb.4:
	mov	w26, #2
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x20]
	ldr	x23, [x8, x26, lsl #3]
	mov	x0, x23
	bl	_DsaPointerIsValid
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x23
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	bl	_DsaPointerIsValid
	cbnz	w0, LBB0_38
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x28]
	sub	x8, x8, #1
	cmp	x26, x8
	b.lt	LBB0_5
	b	LBB0_22
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	str	w19, [x24, #24]
Lloh14:
	adrp	x28, _DSA_FULLNESS_CLASSES@GOTPAGE
Lloh15:
	ldr	x28, [x28, _DSA_FULLNESS_CLASSES@GOTPAGEOFF]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x22
	bl	_DsaPointerIsValid
	mov	x23, x22
	cbz	w0, LBB0_7
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x23
	bl	_dsa_get_address
	mov	x24, x0
	ldp	x22, x8, [x0]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	sub	x19, x9, x8
	ldrsw	x8, [x28]
	sub	x27, x8, #1
	mov	x0, x22
	bl	_DsaPointerIsValid
	cbz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x1, [x24]
	mov	x0, x21
	bl	_dsa_get_address
	mov	x25, x0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x25, #0
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=2
	mul	x8, x19, x27
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	udiv	x19, x8, x9
	sxtw	x27, w19
	cmp	x26, x27
	b.le	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x28, x21
	ldr	x8, [x20]
	mov	x21, x20
	ldr	x20, [x8, x26, lsl #3]
	ldr	x0, [x24, #16]
	bl	_DsaPointerIsValid
	cmp	x20, x23
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=2
	bl	_Assert
	ldr	x1, [x24, #16]
	mov	x0, x28
	bl	_dsa_get_address
	ldr	x8, [x24]
	str	x8, [x0]
	mov	x20, x21
	cbnz	x25, LBB0_19
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=2
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x24]
	ldr	x9, [x21]
	str	x8, [x9, x26, lsl #3]
	mov	x20, x21
	cbz	x25, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=2
Lloh16:
	adrp	x8, _InvalidDsaPointer@GOTPAGE
Lloh17:
	ldr	x8, [x8, _InvalidDsaPointer@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x25, #16]
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x24, #16]
	str	x8, [x25, #16]
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x20]
	lsl	x9, x27, #3
	ldr	x10, [x8, x9]
	str	x10, [x24]
	str	x23, [x8, x9]
Lloh19:
	adrp	x8, _InvalidDsaPointer@GOTPAGE
Lloh20:
	ldr	x8, [x8, _InvalidDsaPointer@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x24, #16]
	ldr	x0, [x24]
	bl	_DsaPointerIsValid
	mov	x21, x28
	cbz	w0, LBB0_9
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x1, [x24]
	mov	x0, x21
	bl	_dsa_get_address
	str	x23, [x0, #16]
	b	LBB0_9
LBB0_22:
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	bl	_DsaPointerIsValid
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x28]
	cmp	w8, #4
	b.lt	LBB0_26
; %bb.23:
	mov	w24, #2
	mov	w23, #1
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	w3, #1
	bl	_transfer_first_span
	cbnz	x0, LBB0_39
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	w24, w24, #1
	ldr	w8, [x28]
	sub	w8, w8, #1
	cmp	w24, w8
	b.lt	LBB0_24
LBB0_26:
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	bl	_DsaPointerIsValid
	cbz	w0, LBB0_40
LBB0_27:
Lloh22:
	adrp	x8, _DSA_SCLASS_BLOCK_OF_SPANS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DSA_SCLASS_BLOCK_OF_SPANS@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w1, w8
	b.ne	LBB0_29
; %bb.28:
	mov	w23, #1
	b	LBB0_31
LBB0_29:
	mov	x0, x21
	bl	_alloc_object
	mov	x22, x0
	bl	_DsaPointerIsValid
	cbz	w0, LBB0_41
; %bb.30:
Lloh25:
	adrp	x8, _DSA_PAGES_PER_SUPERBLOCK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DSA_PAGES_PER_SUPERBLOCK@GOTPAGEOFF]
Lloh27:
	ldr	x23, [x8]
LBB0_31:
	mov	x0, x21
	bl	_DSA_AREA_LOCK
Lloh28:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	mov	x0, x21
	mov	x1, x23
	bl	_get_best_segment
	mov	x24, x0
	cbnz	x0, LBB0_33
; %bb.32:
	mov	x0, x21
	mov	x1, x23
	bl	_make_new_segment
	mov	x24, x0
	cbz	x0, LBB0_42
LBB0_33:
	ldr	w0, [x24, #8]
	add	x2, sp, #24
	mov	x1, x23
	bl	_FreePageManagerGet
	cbnz	w0, LBB0_35
; %bb.34:
Lloh31:
	adrp	x8, _FATAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_elog
LBB0_35:
	mov	x0, x21
	bl	_DSA_AREA_LOCK
	bl	_LWLockRelease
	mov	x0, x21
	mov	x1, x24
	bl	_get_segment_index
	ldr	x8, [sp, #24]
Lloh36:
	adrp	x9, _FPM_PAGE_SIZE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _FPM_PAGE_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	mul	x1, x9, x8
	bl	_DSA_MAKE_POINTER
	mov	x3, x0
Lloh39:
	adrp	x8, _DSA_SCLASS_BLOCK_OF_SPANS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DSA_SCLASS_BLOCK_OF_SPANS@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w5, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w5
	csel	x22, x0, x22, eq
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x4, x23
	bl	_init_span
	cbz	x23, LBB0_38
; %bb.36:
	ldr	x8, [sp, #24]
	lsl	x8, x8, #3
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	str	x22, [x9, x8]
	add	x8, x8, #8
	subs	x23, x23, #1
	b.ne	LBB0_37
LBB0_38:
	mov	w23, #1
LBB0_39:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_40:
	mov	w23, #1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	w3, #1
	bl	_transfer_first_span
	cbnz	x0, LBB0_39
	b	LBB0_27
LBB0_41:
	mov	w23, #0
	b	LBB0_39
LBB0_42:
	mov	x0, x21
	bl	_DSA_AREA_LOCK
	bl	_LWLockRelease
	mov	w23, #0
	b	LBB0_39
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_dsa_size_classes,8,3           ; @dsa_size_classes
	.comm	_DSA_SCLASS_BLOCK_OF_SPANS,4,2  ; @DSA_SCLASS_BLOCK_OF_SPANS
	.comm	_FPM_PAGE_SIZE,8,3              ; @FPM_PAGE_SIZE
	.comm	_DSA_SUPERBLOCK_SIZE,8,3        ; @DSA_SUPERBLOCK_SIZE
	.comm	_DSA_FULLNESS_CLASSES,4,2       ; @DSA_FULLNESS_CLASSES
	.comm	_InvalidDsaPointer,8,3          ; @InvalidDsaPointer
	.comm	_DSA_PAGES_PER_SUPERBLOCK,8,3   ; @DSA_PAGES_PER_SUPERBLOCK
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsa_allocate could not find %zu free pages for superblock"

	.no_dead_strip	_ensure_active_superblock
.subsections_via_symbols
