	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prof_gctx_try_destroy
_prof_gctx_try_destroy:                 ## @prof_gctx_try_destroy
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_config_prof@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cassert
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_prof_enter
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	4(%rbx), %esi
	movl	%eax, %edi
	callq	_malloc_mutex_lock
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	setne	%dil
	callq	_assert
	leaq	12(%rbx), %rdi
	callq	_tctx_tree_empty
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpl	$1, %ecx
	jne	LBB0_5
## %bb.2:
	leaq	8(%rbx), %rdx
	movq	_bt2gctx@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ckh_remove
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_not_reached
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_prof_leave
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	4(%rbx), %esi
	movl	%eax, %edi
	callq	_malloc_mutex_unlock
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_idalloctm                      ## TAILCALL
LBB0_5:
	decl	%ecx
	movl	%ecx, (%rbx)
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	4(%rbx), %esi
	movl	%eax, %edi
	callq	_malloc_mutex_unlock
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_prof_leave                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_config_prof,4,2                ## @config_prof
	.comm	_bt2gctx,4,2                    ## @bt2gctx
	.no_dead_strip	_prof_gctx_try_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prof_gctx_try_destroy
_prof_gctx_try_destroy:                 ; @prof_gctx_try_destroy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _config_prof@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config_prof@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cassert
	mov	x0, x20
	mov	x1, x21
	bl	_prof_enter
	mov	x0, x20
	bl	_tsd_tsdn
	ldr	w1, [x19, #4]
	bl	_malloc_mutex_lock
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, ne
	bl	_assert
	add	x0, x19, #12
	bl	_tctx_tree_empty
	ldr	w8, [x19]
	cbz	x0, LBB0_5
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	add	x2, x19, #8
Lloh3:
	adrp	x1, _bt2gctx@GOTPAGE
Lloh4:
	ldr	x1, [x1, _bt2gctx@GOTPAGEOFF]
	mov	x0, x20
	mov	x3, #0
	mov	x4, #0
	bl	_ckh_remove
	cbz	x0, LBB0_4
; %bb.3:
	bl	_not_reached
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_prof_leave
	mov	x0, x20
	bl	_tsd_tsdn
	ldr	w1, [x19, #4]
	bl	_malloc_mutex_unlock
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	mov	w4, #1
	mov	w5, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_idalloctm
LBB0_5:
	sub	w8, w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_tsd_tsdn
	ldr	w1, [x19, #4]
	bl	_malloc_mutex_unlock
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_prof_leave
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_config_prof,4,2                ; @config_prof
	.comm	_bt2gctx,4,2                    ; @bt2gctx
	.no_dead_strip	_prof_gctx_try_destroy
.subsections_via_symbols
