	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extent_record
_extent_record:                         ## @extent_record
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	-76(%rbp), %rsi
	callq	_tsdn_rtree_ctx
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_extents_state_get
	movq	_extent_state_dirty@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_extents_state_get
	movq	_extent_state_muzzy@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_extent_zeroed_get
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
LBB0_3:
	callq	_assert
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_malloc_mutex_lock
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_extent_hooks_assure_initialized
	movq	_NSIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_extent_szind_set
	movq	%rbx, %rdi
	callq	_extent_slab_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_extent_interior_deregister
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_extent_slab_set
LBB0_5:
	movq	%rbx, %rdi
	callq	_extent_base_get
	movq	_extents_rtree@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%rax, %rcx
	movl	$1, %r8d
	callq	_rtree_extent_read
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	cmpl	$0, 4(%r14)
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_extent_size_get
	movq	_LARGE_MINCLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_12
## %bb.8:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_extent_size_get
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_extent_state_get
	xorl	%edi, %edi
	movq	_extent_state_active@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	movq	%rbx, %r9
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	leaq	-52(%rbp), %rax
	pushq	%rax
	callq	_extent_try_coalesce
	addq	$16, %rsp
	movq	%rax, %rbx
	cmpl	$0, -52(%rbp)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_extent_size_get
	movq	_LARGE_MINCLASS@GOTPCREL(%rip), %rcx
	addq	(%rcx), %r15
	cmpq	%r15, %rax
	jae	LBB0_9
LBB0_11:
	movq	%r13, %r15
	jmp	LBB0_12
LBB0_6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%r14, %r8
	movq	%rbx, %r9
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_extent_try_coalesce
	addq	$16, %rsp
	movq	%rax, %rbx
LBB0_12:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_extent_deactivate_locked
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_malloc_mutex_unlock
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_extent_state_dirty,8,3         ## @extent_state_dirty
	.comm	_extent_state_muzzy,8,3         ## @extent_state_muzzy
	.comm	_NSIZES,4,2                     ## @NSIZES
	.comm	_extents_rtree,4,2              ## @extents_rtree
	.comm	_LARGE_MINCLASS,8,3             ## @LARGE_MINCLASS
	.comm	_extent_state_active,8,3        ## @extent_state_active
	.no_dead_strip	_extent_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extent_record
_extent_record:                         ; @extent_record
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x5
	mov	x22, x4
	mov	x19, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	add	x1, sp, #12
	bl	_tsdn_rtree_ctx
	mov	x25, x0
	mov	x0, x19
	bl	_extents_state_get
Lloh0:
	adrp	x8, _extent_state_dirty@GOTPAGE
Lloh1:
	ldr	x8, [x8, _extent_state_dirty@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_extents_state_get
Lloh3:
	adrp	x8, _extent_state_muzzy@GOTPAGE
Lloh4:
	ldr	x8, [x8, _extent_state_muzzy@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_extent_zeroed_get
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
	bl	_assert
	mov	x0, x20
	mov	x1, x19
	bl	_malloc_mutex_lock
	mov	x0, x21
	mov	x1, x24
	bl	_extent_hooks_assure_initialized
Lloh6:
	adrp	x8, _NSIZES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NSIZES@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_extent_szind_set
	mov	x0, x22
	bl	_extent_slab_get
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x22
	bl	_extent_interior_deregister
	mov	x0, x22
	mov	w1, #0
	bl	_extent_slab_set
LBB0_6:
	mov	x0, x22
	bl	_extent_base_get
	mov	x3, x0
Lloh9:
	adrp	x1, _extents_rtree@GOTPAGE
Lloh10:
	ldr	x1, [x1, _extents_rtree@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x25
	mov	w4, #1
	bl	_rtree_extent_read
	cmp	x0, x22
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_11
; %bb.7:
	mov	x0, x22
	bl	_extent_size_get
Lloh11:
	adrp	x27, _LARGE_MINCLASS@GOTPAGE
Lloh12:
	ldr	x27, [x27, _LARGE_MINCLASS@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.lo	LBB0_12
; %bb.8:
Lloh13:
	adrp	x28, _extent_state_active@GOTPAGE
Lloh14:
	ldr	x28, [x28, _extent_state_active@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_extent_size_get
	mov	x26, x0
	mov	x0, x22
	bl	_extent_state_get
	ldr	x8, [x28]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	add	x6, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	mov	x3, x25
	mov	x4, x19
	mov	x5, x22
	mov	x7, x23
	bl	_extent_try_coalesce
	mov	x22, x0
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_extent_size_get
	ldr	x8, [x27]
	add	x8, x8, x26
	cmp	x0, x8
	b.hs	LBB0_9
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	mov	x3, x25
	mov	x4, x19
	mov	x5, x22
	mov	x6, #0
	mov	x7, x23
	bl	_extent_try_coalesce
	mov	x22, x0
LBB0_12:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	bl	_extent_deactivate_locked
	mov	x0, x20
	mov	x1, x19
	bl	_malloc_mutex_unlock
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_extent_state_dirty,8,3         ; @extent_state_dirty
	.comm	_extent_state_muzzy,8,3         ; @extent_state_muzzy
	.comm	_NSIZES,4,2                     ; @NSIZES
	.comm	_extents_rtree,4,2              ; @extents_rtree
	.comm	_LARGE_MINCLASS,8,3             ; @LARGE_MINCLASS
	.comm	_extent_state_active,8,3        ; @extent_state_active
	.no_dead_strip	_extent_record
.subsections_via_symbols
