	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcaches_create                 ## -- Begin function tcaches_create
	.p2align	4, 0x90
_tcaches_create:                        ## @tcaches_create
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_tsd_tsdn
	movl	%eax, %edi
	callq	_tsdn_witness_tsdp_get
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_witness_assert_depth
	movq	%rbx, %rdi
	callq	_tcaches_create_prep
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_tcache_create_explicit
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_tsd_tsdn
	movq	_tcaches_mtx@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_malloc_mutex_lock
	movq	_tcaches_avail@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rax), %rdx
	movq	%rdx, (%rcx)
	movq	%r12, (%rax)
	movq	_tcaches@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	shrq	$4, %rax
	movl	%eax, (%r14)
	jmp	LBB0_5
LBB0_4:
	movq	_tcaches@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_tcaches_past@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, %rsi
	shlq	$4, %rsi
	movq	%r12, (%rax,%rsi)
	movl	%edx, (%r14)
	incq	%rdx
	movq	%rdx, (%rcx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_tsd_tsdn
	movq	_tcaches_mtx@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_malloc_mutex_unlock
	xorl	%r15d, %r15d
LBB0_6:
	movq	%rbx, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	callq	_tsdn_witness_tsdp_get
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_witness_assert_depth
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tcaches_mtx,4,2                ## @tcaches_mtx
	.comm	_tcaches_avail,8,3              ## @tcaches_avail
	.comm	_tcaches,8,3                    ## @tcaches
	.comm	_tcaches_past,8,3               ## @tcaches_past
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcaches_create                 ; -- Begin function tcaches_create
	.p2align	2
_tcaches_create:                        ; @tcaches_create
	.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	x20, x1
	mov	x19, x0
	bl	_tsd_tsdn
	bl	_tsdn_witness_tsdp_get
	mov	w1, #0
	bl	_witness_assert_depth
	mov	x0, x19
	bl	_tcaches_create_prep
	cbz	x0, LBB0_2
LBB0_1:
	mov	w20, #1
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_tcache_create_explicit
	cbz	x0, LBB0_1
; %bb.3:
	mov	x21, x0
	mov	x0, x19
	bl	_tsd_tsdn
Lloh0:
	adrp	x1, _tcaches_mtx@GOTPAGE
Lloh1:
	ldr	x1, [x1, _tcaches_mtx@GOTPAGEOFF]
	bl	_malloc_mutex_lock
Lloh2:
	adrp	x9, _tcaches_avail@GOTPAGE
Lloh3:
	ldr	x9, [x9, _tcaches_avail@GOTPAGEOFF]
	ldr	x8, [x9]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x10, [x8, #8]
	str	x10, [x9]
	str	x21, [x8]
Lloh4:
	adrp	x9, _tcaches@GOTPAGE
Lloh5:
	ldr	x9, [x9, _tcaches@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	sub	x8, x8, x9
	lsr	x8, x8, #4
	str	w8, [x20]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _tcaches@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tcaches@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _tcaches_past@GOTPAGE
Lloh11:
	ldr	x9, [x9, _tcaches_past@GOTPAGEOFF]
	ldr	x10, [x9]
	lsl	x11, x10, #4
	str	x21, [x8, x11]
	str	w10, [x20]
	add	x8, x10, #1
	str	x8, [x9]
LBB0_6:
	mov	x0, x19
	bl	_tsd_tsdn
Lloh12:
	adrp	x1, _tcaches_mtx@GOTPAGE
Lloh13:
	ldr	x1, [x1, _tcaches_mtx@GOTPAGEOFF]
	bl	_malloc_mutex_unlock
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_tsd_tsdn
	bl	_tsdn_witness_tsdp_get
	mov	w1, #0
	bl	_witness_assert_depth
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_tcaches_mtx,4,2                ; @tcaches_mtx
	.comm	_tcaches_avail,8,3              ; @tcaches_avail
	.comm	_tcaches,8,3                    ; @tcaches
	.comm	_tcaches_past,8,3               ; @tcaches_past
.subsections_via_symbols
