	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function destroy_superblock
_destroy_superblock:                    ## @destroy_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_dsa_get_address
	movq	%rax, %rbx
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_unlink_span
	movq	%r15, %rdi
	callq	_DSA_AREA_LOCK
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_LWLockAcquire
	movq	%r15, %rdi
	callq	_check_for_freed_segments_locked
	movl	8(%rbx), %edi
	callq	_DSA_EXTRACT_SEGMENT_NUMBER
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_get_segment_by_index
	movq	%rax, %r13
	movl	24(%rax), %r12d
	movl	8(%rbx), %edi
	callq	_DSA_EXTRACT_OFFSET
	movq	_FPM_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	4(%rbx), %edx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_FreePageManagerPut
	movl	24(%r13), %edi
	callq	_fpm_largest
	movq	8(%r13), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_get_segment_index
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_unlink_segment
	movq	8(%r13), %rax
	movl	$1, 8(%rax)
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	16(%rax), %rcx
	setge	%dil
	callq	_Assert
	movq	8(%r13), %rax
	movq	16(%rax), %rax
	movq	(%r15), %rcx
	subq	%rax, (%rcx)
	movq	16(%r13), %rdi
	callq	_dsm_segment_handle
	movl	%eax, %edi
	callq	_dsm_unpin_segment
	movq	16(%r13), %rdi
	callq	_dsm_detach
	movq	_DSM_HANDLE_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movq	16(%rcx), %rdx
	movl	%eax, (%rdx,%r12,4)
	incl	8(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movq	$0, 16(%r13)
LBB0_3:
	movq	%r15, %rdi
	callq	_DSA_AREA_LOCK
	movl	%eax, %edi
	callq	_LWLockRelease
	movq	_DSA_SCLASS_BLOCK_OF_SPANS@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	jne	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsa_free                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_FPM_PAGE_SIZE,4,2              ## @FPM_PAGE_SIZE
	.comm	_DSM_HANDLE_INVALID,4,2         ## @DSM_HANDLE_INVALID
	.comm	_DSA_SCLASS_BLOCK_OF_SPANS,4,2  ## @DSA_SCLASS_BLOCK_OF_SPANS
	.no_dead_strip	_destroy_superblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function destroy_superblock
_destroy_superblock:                    ; @destroy_superblock
	.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	x19, x1
	mov	x20, x0
	bl	_dsa_get_address
	mov	x22, x0
	ldr	w24, [x0]
	mov	x0, x20
	mov	x1, x22
	bl	_unlink_span
	mov	x0, x20
	bl	_DSA_AREA_LOCK
Lloh0:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	mov	x0, x20
	bl	_check_for_freed_segments_locked
	ldr	w0, [x22, #8]
	bl	_DSA_EXTRACT_SEGMENT_NUMBER
	mov	x1, x0
	mov	x0, x20
	bl	_get_segment_by_index
	mov	x21, x0
	ldr	w23, [x0, #24]
	ldr	w0, [x22, #8]
	bl	_DSA_EXTRACT_OFFSET
Lloh3:
	adrp	x8, _FPM_PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FPM_PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w1, w0, w8
	ldr	w2, [x22, #4]
	mov	x0, x23
	bl	_FreePageManagerPut
	ldr	w0, [x21, #24]
	bl	_fpm_largest
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_get_segment_index
	cbz	x0, LBB0_3
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_unlink_segment
	ldr	x8, [x21, #8]
	mov	w9, #1
	str	w9, [x8, #8]
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	x8, [x8, #16]
	cmp	x9, x8
	cset	w0, ge
	bl	_Assert
	ldp	x8, x0, [x21, #8]
	ldr	x8, [x8, #16]
	ldr	x9, [x20]
	ldr	x10, [x9]
	sub	x8, x10, x8
	str	x8, [x9]
	bl	_dsm_segment_handle
	bl	_dsm_unpin_segment
	ldr	x0, [x21, #16]
	bl	_dsm_detach
Lloh6:
	adrp	x8, _DSM_HANDLE_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DSM_HANDLE_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	x10, [x9, #16]
	str	w8, [x10, x22, lsl #2]
	ldr	w8, [x9, #8]
	add	w8, w8, #1
	str	w8, [x9, #8]
	stp	xzr, xzr, [x21, #8]
	str	xzr, [x21]
LBB0_3:
	mov	x0, x20
	bl	_DSA_AREA_LOCK
	bl	_LWLockRelease
Lloh9:
	adrp	x8, _DSA_SCLASS_BLOCK_OF_SPANS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSA_SCLASS_BLOCK_OF_SPANS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_5
; %bb.4:
	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
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	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
	b	_dsa_free
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_FPM_PAGE_SIZE,4,2              ; @FPM_PAGE_SIZE
	.comm	_DSM_HANDLE_INVALID,4,2         ; @DSM_HANDLE_INVALID
	.comm	_DSA_SCLASS_BLOCK_OF_SPANS,4,2  ; @DSA_SCLASS_BLOCK_OF_SPANS
	.no_dead_strip	_destroy_superblock
.subsections_via_symbols
