	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extent_register_impl
_extent_register_impl:                  ## @extent_register_impl
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-68(%rbp), %rsi
	callq	_tsdn_rtree_ctx
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_extent_lock
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$1, %r13d
	leaq	-64(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_extent_rtree_leaf_elms_lookup
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_extent_unlock
	jmp	LBB0_7
LBB0_2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	callq	_extent_szind_get_maybe_invalid
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_extent_slab_get
	movl	%eax, %r15d
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	callq	_extent_rtree_write_acquired
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_extent_interior_register
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_extent_unlock
	xorl	%r13d, %r13d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.5:
	movq	_config_prof@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_extent_gdump_add
LBB0_7:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_config_prof,8,3                ## @config_prof
	.no_dead_strip	_extent_register_impl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extent_register_impl
_extent_register_impl:                  ; @extent_register_impl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #28
	bl	_tsdn_rtree_ctx
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_extent_lock
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	w3, #0
	mov	w4, #1
	bl	_extent_rtree_leaf_elms_lookup
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_extent_unlock
	mov	w0, #1
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_extent_szind_get_maybe_invalid
	mov	x23, x0
	mov	x0, x19
	bl	_extent_slab_get
	mov	x24, x0
	ldp	x2, x1, [sp, #8]
	mov	x0, x20
	mov	x3, x19
	mov	x4, x23
	mov	x5, x24
	bl	_extent_rtree_write_acquired
	cbz	w24, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x23
	bl	_extent_interior_register
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_extent_unlock
	mov	w0, #0
	cbz	w21, LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _config_prof@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config_prof@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_extent_gdump_add
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_config_prof,8,3                ; @config_prof
	.no_dead_strip	_extent_register_impl
.subsections_via_symbols
