	.file	"extr_tcache.c_tcaches_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tcaches_create
	.type	tcaches_create, @function
tcaches_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	tsd_tsdn@PLT
	mov	edi, eax
	call	tsdn_witness_tsdp_get@PLT
	xor	esi, esi
	mov	edi, eax
	call	witness_assert_depth@PLT
	mov	rdi, rbp
	call	tcaches_create_prep@PLT
	test	rax, rax
	je	.L2
.L4:
	mov	r12d, 1
.L3:
	mov	rdi, rbp
	call	tsd_tsdn@PLT
	mov	edi, eax
	call	tsdn_witness_tsdp_get@PLT
	xor	esi, esi
	mov	edi, eax
	call	witness_assert_depth@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	tcache_create_explicit@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	rdi, rbp
	call	tsd_tsdn@PLT
	lea	rsi, tcaches_mtx[rip]
	mov	edi, eax
	call	malloc_mutex_lock@PLT
	mov	rax, QWORD PTR tcaches_avail[rip]
	test	rax, rax
	je	.L5
	mov	rdx, QWORD PTR 8[rax]
	mov	QWORD PTR tcaches_avail[rip], rdx
	mov	QWORD PTR [rax], r12
	sub	rax, QWORD PTR tcaches[rip]
	sar	rax, 4
	mov	DWORD PTR [rbx], eax
.L6:
	mov	rdi, rbp
	xor	r12d, r12d
	call	tsd_tsdn@PLT
	lea	rsi, tcaches_mtx[rip]
	mov	edi, eax
	call	malloc_mutex_unlock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR tcaches_past[rip]
	mov	rdx, rax
	sal	rdx, 4
	add	rdx, QWORD PTR tcaches[rip]
	mov	QWORD PTR [rdx], r12
	mov	DWORD PTR [rbx], eax
	add	rax, 1
	mov	QWORD PTR tcaches_past[rip], rax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	tcaches_create, .-tcaches_create
	.comm	tcaches_past,8,8
	.comm	tcaches_mtx,4,4
	.comm	tcaches_avail,8,8
	.comm	tcaches,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tcache.c_tcaches_create.c"
	.text
	.align	2
	.global	tcaches_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcaches_create, %function
tcaches_create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r1
	bl	tsd_tsdn
	bl	tsdn_witness_tsdp_get
	mov	r1, #0
	bl	witness_assert_depth
	mov	r0, r4
	bl	tcaches_create_prep
	subs	r5, r0, #0
	beq	.L2
.L4:
	mov	r5, #1
.L3:
	mov	r0, r4
	bl	tsd_tsdn
	bl	tsdn_witness_tsdp_get
	mov	r1, #0
	bl	witness_assert_depth
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r4
	bl	tcache_create_explicit
	subs	r7, r0, #0
	beq	.L4
	mov	r0, r4
	bl	tsd_tsdn
	ldr	r1, .L12
	bl	malloc_mutex_lock
	ldr	r1, .L12+4
	ldr	r2, [r1]
	cmp	r2, #0
	beq	.L5
	ldr	r3, .L12+8
	ldr	r0, [r2, #4]
	ldr	r3, [r3]
	str	r0, [r1]
	sub	r3, r2, r3
	asr	r3, r3, #3
	str	r7, [r2]
	str	r3, [r6]
.L6:
	mov	r0, r4
	bl	tsd_tsdn
	ldr	r1, .L12
	bl	malloc_mutex_unlock
	b	.L3
.L5:
	ldr	r2, .L12+12
	ldr	r1, .L12+8
	ldr	r3, [r2]
	ldr	r0, [r1]
	add	r1, r3, #1
	str	r7, [r0, r3, lsl #3]
	str	r3, [r6]
	str	r1, [r2]
	b	.L6
.L13:
	.align	2
.L12:
	.word	tcaches_mtx
	.word	tcaches_avail
	.word	tcaches
	.word	tcaches_past
	.size	tcaches_create, .-tcaches_create
	.comm	tcaches_past,4,4
	.comm	tcaches_mtx,4,4
	.comm	tcaches_avail,4,4
	.comm	tcaches,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
