	.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	$56, %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, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-92(%rbp), %rsi
	callq	_tsdn_rtree_ctx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_eset_state_get
	movq	_extent_state_dirty@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_eset_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	%r14, %rdi
	movq	%r12, %rsi
	callq	_malloc_mutex_lock
	movq	%r15, %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_extent_hooks_assure_initialized
	movq	_SC_NSIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_extent_szind_set
	movq	%rbx, %rdi
	callq	_extent_slab_get
	testq	%rax, %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movq	%r14, %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	%r14, %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(%r12)
	je	LBB0_6
## %bb.8:
	movq	%rbx, %rdi
	callq	_extent_size_get
	movq	_SC_LARGE_MINCLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_7
## %bb.9:
	xorl	%edi, %edi
	cmpq	%r12, %r15
	sete	%dil
	callq	_assert
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	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	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	%rbx, %r9
	pushq	%r15
	leaq	-44(%rbp), %rax
	pushq	%rax
	callq	_extent_try_coalesce_large
	addq	$16, %rsp
	movq	%rax, %rbx
	cmpl	$0, -44(%rbp)
	jne	LBB0_10
## %bb.11:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_extent_size_get
	movq	_oversize_threshold@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_7
## %bb.12:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_malloc_mutex_unlock
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_arena_decay_extent
	jmp	LBB0_13
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%r12, %r8
	movq	%rbx, %r9
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_extent_try_coalesce
	addq	$16, %rsp
	movq	%rax, %rbx
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_extent_deactivate_locked
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_malloc_mutex_unlock
LBB0_13:
	addq	$56, %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	_SC_NSIZES,4,2                  ## @SC_NSIZES
	.comm	_extents_rtree,4,2              ## @extents_rtree
	.comm	_SC_LARGE_MINCLASS,8,3          ## @SC_LARGE_MINCLASS
	.comm	_extent_state_active,8,3        ## @extent_state_active
	.comm	_oversize_threshold,8,3         ## @oversize_threshold
	.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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x24, x5
	mov	x22, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	add	x1, sp, #12
	bl	_tsdn_rtree_ctx
	mov	x25, x0
	mov	x0, x20
	bl	_eset_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, x20
	bl	_eset_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, x19
	mov	x1, x20
	bl	_malloc_mutex_lock
	mov	x0, x21
	mov	x1, x23
	bl	_extent_hooks_assure_initialized
Lloh6:
	adrp	x8, _SC_NSIZES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SC_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, x19
	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, x19
	mov	x2, x25
	mov	w4, #1
	bl	_rtree_extent_read
	cmp	x0, x22
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_12
; %bb.7:
	mov	x0, x22
	bl	_extent_size_get
Lloh11:
	adrp	x8, _SC_LARGE_MINCLASS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SC_LARGE_MINCLASS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_13
; %bb.8:
	cmp	x21, x20
	cset	w0, eq
	bl	_assert
Lloh14:
	adrp	x26, _extent_state_active@GOTPAGE
Lloh15:
	ldr	x26, [x26, _extent_state_active@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_extent_state_get
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	add	x6, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x25
	mov	x4, x20
	mov	x5, x22
	mov	x7, x24
	bl	_extent_try_coalesce_large
	mov	x22, x0
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_9
; %bb.10:
	mov	x0, x22
	bl	_extent_size_get
Lloh16:
	adrp	x8, _oversize_threshold@GOTPAGE
Lloh17:
	ldr	x8, [x8, _oversize_threshold@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_13
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	_malloc_mutex_unlock
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_arena_decay_extent
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x25
	mov	x4, x20
	mov	x5, x22
	mov	x6, #0
	mov	x7, x24
	bl	_extent_try_coalesce
	mov	x22, x0
LBB0_13:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_extent_deactivate_locked
	mov	x0, x19
	mov	x1, x20
	bl	_malloc_mutex_unlock
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_extent_state_dirty,8,3         ; @extent_state_dirty
	.comm	_extent_state_muzzy,8,3         ; @extent_state_muzzy
	.comm	_SC_NSIZES,4,2                  ; @SC_NSIZES
	.comm	_extents_rtree,4,2              ; @extents_rtree
	.comm	_SC_LARGE_MINCLASS,8,3          ; @SC_LARGE_MINCLASS
	.comm	_extent_state_active,8,3        ; @extent_state_active
	.comm	_oversize_threshold,8,3         ; @oversize_threshold
	.no_dead_strip	_extent_record
.subsections_via_symbols
