	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_tdata_detach              ## -- Begin function prof_tdata_detach
	.p2align	4, 0x90
_prof_tdata_detach:                     ## @prof_tdata_detach
	.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	%rsi, %r15
	movq	%rdi, %r14
	callq	_tsd_tsdn
	movl	4(%r15), %esi
	movl	%eax, %edi
	callq	_malloc_mutex_lock
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_tsd_tsdn
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_prof_tdata_should_destroy
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tsd_prof_tdata_set
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	4(%r15), %esi
	movl	%eax, %edi
	callq	_malloc_mutex_unlock
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_prof_tdata_destroy             ## TAILCALL
LBB0_2:
	movl	$0, (%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tsd_prof_tdata_set
	movq	%r14, %rdi
	callq	_tsd_tsdn
LBB0_3:
	movl	4(%r15), %esi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_malloc_mutex_unlock            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_tdata_detach              ; -- Begin function prof_tdata_detach
	.p2align	2
_prof_tdata_detach:                     ; @prof_tdata_detach
	.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, x1
	mov	x20, x0
	bl	_tsd_tsdn
	ldr	w1, [x19, #4]
	bl	_malloc_mutex_lock
	ldr	w21, [x19]
	mov	x0, x20
	bl	_tsd_tsdn
	cbz	w21, LBB0_4
; %bb.1:
	mov	x1, x19
	mov	w2, #1
	bl	_prof_tdata_should_destroy
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, #0
	bl	_tsd_prof_tdata_set
	mov	x0, x20
	bl	_tsd_tsdn
	ldr	w1, [x19, #4]
	bl	_malloc_mutex_unlock
	mov	x0, x20
	mov	x1, x19
	mov	w2, #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	_prof_tdata_destroy
LBB0_3:
	str	wzr, [x19]
	mov	x0, x20
	mov	x1, #0
	bl	_tsd_prof_tdata_set
	mov	x0, x20
	bl	_tsd_tsdn
LBB0_4:
	ldr	w1, [x19, #4]
	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	_malloc_mutex_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
