	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcaches_create_prep
_tcaches_create_prep:                   ## @tcaches_create_prep
	.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	%rdi, %r14
	callq	_tsd_tsdn
	movq	_tcaches_mtx@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_malloc_mutex_lock
	movq	_tcaches@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_b0get
	movq	_MALLOCX_TCACHE_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	8(,%rcx,8), %edx
	movq	_CACHELINE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_base_alloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_tcaches_avail@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_tcaches_past@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MALLOCX_TCACHE_MAX@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpl	(%rcx), %eax
	jg	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movq	_tcaches_mtx@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_malloc_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$1, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_tcaches_mtx,4,2                ## @tcaches_mtx
	.comm	_tcaches,8,3                    ## @tcaches
	.comm	_MALLOCX_TCACHE_MAX,4,2         ## @MALLOCX_TCACHE_MAX
	.comm	_CACHELINE,4,2                  ## @CACHELINE
	.comm	_tcaches_avail,8,3              ## @tcaches_avail
	.comm	_tcaches_past,4,2               ## @tcaches_past
	.no_dead_strip	_tcaches_create_prep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcaches_create_prep
_tcaches_create_prep:                   ; @tcaches_create_prep
	.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, x0
	bl	_tsd_tsdn
Lloh0:
	adrp	x1, _tcaches_mtx@GOTPAGE
Lloh1:
	ldr	x1, [x1, _tcaches_mtx@GOTPAGEOFF]
	bl	_malloc_mutex_lock
Lloh2:
	adrp	x21, _tcaches@GOTPAGE
Lloh3:
	ldr	x21, [x21, _tcaches@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tsd_tsdn
	mov	x20, x0
	bl	_b0get
	mov	x1, x0
Lloh4:
	adrp	x8, _MALLOCX_TCACHE_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MALLOCX_TCACHE_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	lsl	w8, w8, #3
	add	w2, w8, #8
Lloh7:
	adrp	x8, _CACHELINE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CACHELINE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_base_alloc
	str	x0, [x21]
	cbz	x0, LBB0_4
LBB0_2:
Lloh10:
	adrp	x8, _tcaches_avail@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tcaches_avail@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
; %bb.3:
Lloh13:
	adrp	x8, _tcaches_past@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tcaches_past@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _MALLOCX_TCACHE_MAX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MALLOCX_TCACHE_MAX@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_5
LBB0_4:
	mov	w20, #1
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x19
	bl	_tsd_tsdn
Lloh19:
	adrp	x1, _tcaches_mtx@GOTPAGE
Lloh20:
	ldr	x1, [x1, _tcaches_mtx@GOTPAGEOFF]
	bl	_malloc_mutex_unlock
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_tcaches_mtx,4,2                ; @tcaches_mtx
	.comm	_tcaches,8,3                    ; @tcaches
	.comm	_MALLOCX_TCACHE_MAX,4,2         ; @MALLOCX_TCACHE_MAX
	.comm	_CACHELINE,4,2                  ; @CACHELINE
	.comm	_tcaches_avail,8,3              ; @tcaches_avail
	.comm	_tcaches_past,4,2               ; @tcaches_past
	.no_dead_strip	_tcaches_create_prep
.subsections_via_symbols
