	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcaches_elm_remove
_tcaches_elm_remove:                    ## @tcaches_elm_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_tsd_tsdn
	movq	_tcaches_mtx@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_malloc_mutex_assert_owner
	movq	(%rbx), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	_TCACHES_ELM_NEED_REINIT@GOTPCREL(%rip), %rdx
	movl	$0, %esi
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	(%rdx), %rsi
LBB0_3:
	movq	%rsi, (%rbx)
	cmpq	(%rdx), %rcx
	cmovneq	%rcx, %rax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tcaches_mtx,4,2                ## @tcaches_mtx
	.comm	_TCACHES_ELM_NEED_REINIT,8,3    ## @TCACHES_ELM_NEED_REINIT
	.no_dead_strip	_tcaches_elm_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcaches_elm_remove
_tcaches_elm_remove:                    ; @tcaches_elm_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	bl	_tsd_tsdn
Lloh0:
	adrp	x1, _tcaches_mtx@GOTPAGE
Lloh1:
	ldr	x1, [x1, _tcaches_mtx@GOTPAGEOFF]
	bl	_malloc_mutex_assert_owner
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _TCACHES_ELM_NEED_REINIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TCACHES_ELM_NEED_REINIT@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	w20, #0
	csel	x10, xzr, x10, eq
	str	x10, [x19]
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x0, xzr, x8, eq
	b	LBB0_3
LBB0_2:
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_tcaches_mtx,4,2                ; @tcaches_mtx
	.comm	_TCACHES_ELM_NEED_REINIT,8,3    ; @TCACHES_ELM_NEED_REINIT
	.no_dead_strip	_tcaches_elm_remove
.subsections_via_symbols
