	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prof_tdata_destroy_locked
_prof_tdata_destroy_locked:             ## @prof_tdata_destroy_locked
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_tsd_tsdn
	movq	_tdatas_mtx@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_malloc_mutex_assert_owner
	movq	_tdatas@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_tdata_tree_remove
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_prof_tdata_should_destroy_unlocked
	movl	%eax, %edi
	callq	_assert
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movq	8(%rbx), %rsi
	movl	%eax, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_idalloctm
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ckh_delete
	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
	.cfi_endproc
                                        ## -- End function
	.comm	_tdatas_mtx,4,2                 ## @tdatas_mtx
	.comm	_tdatas,4,2                     ## @tdatas
	.no_dead_strip	_prof_tdata_destroy_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prof_tdata_destroy_locked
_prof_tdata_destroy_locked:             ; @prof_tdata_destroy_locked
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_tsd_tsdn
Lloh0:
	adrp	x1, _tdatas_mtx@GOTPAGE
Lloh1:
	ldr	x1, [x1, _tdatas_mtx@GOTPAGEOFF]
	bl	_malloc_mutex_assert_owner
Lloh2:
	adrp	x0, _tdatas@GOTPAGE
Lloh3:
	ldr	x0, [x0, _tdatas@GOTPAGEOFF]
	mov	x1, x19
	bl	_tdata_tree_remove
	mov	x0, x19
	mov	x1, x21
	bl	_prof_tdata_should_destroy_unlocked
	bl	_assert
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_tsd_tsdn
	ldr	x1, [x19, #8]
	mov	x2, #0
	mov	x3, #0
	mov	w4, #1
	mov	w5, #1
	bl	_idalloctm
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_ckh_delete
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tdatas_mtx,4,2                 ; @tdatas_mtx
	.comm	_tdatas,4,2                     ; @tdatas
	.no_dead_strip	_prof_tdata_destroy_locked
.subsections_via_symbols
