	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extent_gdump_add
_extent_gdump_add:                      ## @extent_gdump_add
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_config_prof@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cassert
	movq	%r14, %rdi
	callq	_tsdn_witness_tsdp_get
	movq	_WITNESS_RANK_CORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_witness_assert_depth_to_rank
	movq	_opt_prof@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_extent_state_get
	movq	_extent_state_active@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	callq	_extent_size_get
	movq	%rax, %r15
	movq	_LG_PAGE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r15
	movq	_ATOMIC_RELAXED@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_curpages@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_atomic_fetch_add_zu
	movq	%rax, %rbx
	addq	%r15, %rbx
	movl	(%r13), %esi
	movq	_highpages@GOTPCREL(%rip), %rdi
	callq	_atomic_load_zu
	movq	%rax, -48(%rbp)
	cmpq	%rax, %rbx
	jbe	LBB0_6
## %bb.3:
	movq	_highpages@GOTPCREL(%rip), %r15
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%ecx, %r8d
	callq	_atomic_compare_exchange_weak_zu
	movl	%eax, %ecx
	movq	-48(%rbp), %rax
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, %rbx
	ja	LBB0_4
LBB0_6:
	cmpq	%rax, %rbx
	jbe	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	callq	_prof_gdump_get_unlocked
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_prof_gdump
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_config_prof,4,2                ## @config_prof
	.comm	_WITNESS_RANK_CORE,4,2          ## @WITNESS_RANK_CORE
	.comm	_opt_prof,8,3                   ## @opt_prof
	.comm	_extent_state_active,8,3        ## @extent_state_active
	.comm	_LG_PAGE,8,3                    ## @LG_PAGE
	.comm	_curpages,4,2                   ## @curpages
	.comm	_ATOMIC_RELAXED,4,2             ## @ATOMIC_RELAXED
	.comm	_highpages,4,2                  ## @highpages
	.no_dead_strip	_extent_gdump_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extent_gdump_add
_extent_gdump_add:                      ; @extent_gdump_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _config_prof@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config_prof@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cassert
	mov	x0, x19
	bl	_tsdn_witness_tsdp_get
Lloh3:
	adrp	x8, _WITNESS_RANK_CORE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WITNESS_RANK_CORE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_witness_assert_depth_to_rank
Lloh6:
	adrp	x8, _opt_prof@GOTPAGE
Lloh7:
	ldr	x8, [x8, _opt_prof@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_extent_state_get
Lloh9:
	adrp	x8, _extent_state_active@GOTPAGE
Lloh10:
	ldr	x8, [x8, _extent_state_active@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_extent_size_get
Lloh12:
	adrp	x8, _LG_PAGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LG_PAGE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	lsr	x20, x0, x8
Lloh15:
	adrp	x22, _ATOMIC_RELAXED@GOTPAGE
Lloh16:
	ldr	x22, [x22, _ATOMIC_RELAXED@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh17:
	adrp	x0, _curpages@GOTPAGE
Lloh18:
	ldr	x0, [x0, _curpages@GOTPAGEOFF]
	mov	x1, x20
	bl	_atomic_fetch_add_zu
	add	x20, x0, x20
	ldr	w1, [x22]
Lloh19:
	adrp	x0, _highpages@GOTPAGE
Lloh20:
	ldr	x0, [x0, _highpages@GOTPAGEOFF]
	bl	_atomic_load_zu
	str	x0, [sp, #8]
	cmp	x20, x0
	b.ls	LBB0_5
; %bb.3:
Lloh21:
	adrp	x21, _highpages@GOTPAGE
Lloh22:
	ldr	x21, [x21, _highpages@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x22]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	x4, x3
	bl	_atomic_compare_exchange_weak_zu
	mov	x8, x0
	ldr	x0, [sp, #8]
	cmp	w8, #0
	ccmp	x20, x0, #0, eq
	b.hi	LBB0_4
LBB0_5:
	cmp	x20, x0
	b.ls	LBB0_8
; %bb.6:
	bl	_prof_gdump_get_unlocked
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_prof_gdump
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_config_prof,4,2                ; @config_prof
	.comm	_WITNESS_RANK_CORE,4,2          ; @WITNESS_RANK_CORE
	.comm	_opt_prof,8,3                   ; @opt_prof
	.comm	_extent_state_active,8,3        ; @extent_state_active
	.comm	_LG_PAGE,8,3                    ; @LG_PAGE
	.comm	_curpages,4,2                   ; @curpages
	.comm	_ATOMIC_RELAXED,4,2             ; @ATOMIC_RELAXED
	.comm	_highpages,4,2                  ; @highpages
	.no_dead_strip	_extent_gdump_add
.subsections_via_symbols
