	.file	"extr_pthread.c_pthread_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pthread_init
	.type	pthread_init, @function
pthread_init:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR pte_processInitialized[rip]
	mov	eax, DWORD PTR PTE_TRUE[rip]
	test	edx, edx
	je	.L11
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	DWORD PTR pte_processInitialized[rip], eax
	xor	eax, eax
	call	pte_osInit@PLT
	xor	esi, esi
	lea	rdi, pte_selfThreadKey[rip]
	call	pthread_key_create@PLT
	test	rax, rax
	jne	.L5
	xor	esi, esi
	lea	rdi, pte_cleanupKey[rip]
	call	pthread_key_create@PLT
	test	rax, rax
	je	.L4
.L5:
	xor	eax, eax
	call	pthread_terminate@PLT
.L4:
	lea	rdi, pte_thread_reuse_lock[rip]
	call	pte_osMutexCreate@PLT
	lea	rdi, pte_mutex_test_init_lock[rip]
	call	pte_osMutexCreate@PLT
	lea	rdi, pte_cond_list_lock[rip]
	call	pte_osMutexCreate@PLT
	lea	rdi, pte_cond_test_init_lock[rip]
	call	pte_osMutexCreate@PLT
	lea	rdi, pte_rwlock_test_init_lock[rip]
	call	pte_osMutexCreate@PLT
	lea	rdi, pte_spinlock_test_init_lock[rip]
	call	pte_osMutexCreate@PLT
	mov	eax, DWORD PTR pte_processInitialized[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pthread_init, .-pthread_init
	.comm	pte_thread_reuse_lock,4,4
	.comm	pte_spinlock_test_init_lock,4,4
	.comm	pte_selfThreadKey,4,4
	.comm	pte_rwlock_test_init_lock,4,4
	.comm	pte_processInitialized,4,4
	.comm	pte_mutex_test_init_lock,4,4
	.comm	pte_cond_test_init_lock,4,4
	.comm	pte_cond_list_lock,4,4
	.comm	pte_cleanupKey,4,4
	.comm	PTE_TRUE,4,4
	.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_pthread.c_pthread_init.c"
	.text
	.align	2
	.global	pthread_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	pthread_init, %function
pthread_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L8
	ldr	r3, .L8+4
	ldr	r5, [r4]
	ldr	r0, [r3]
	cmp	r5, #0
	popne	{r4, r5, r6, pc}
	str	r0, [r4]
	bl	pte_osInit
	mov	r1, r5
	ldr	r0, .L8+8
	bl	pthread_key_create
	subs	r1, r0, #0
	bne	.L5
	ldr	r0, .L8+12
	bl	pthread_key_create
	cmp	r0, #0
	beq	.L4
.L5:
	bl	pthread_terminate
.L4:
	ldr	r0, .L8+16
	bl	pte_osMutexCreate
	ldr	r0, .L8+20
	bl	pte_osMutexCreate
	ldr	r0, .L8+24
	bl	pte_osMutexCreate
	ldr	r0, .L8+28
	bl	pte_osMutexCreate
	ldr	r0, .L8+32
	bl	pte_osMutexCreate
	ldr	r0, .L8+36
	bl	pte_osMutexCreate
	ldr	r0, [r4]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	pte_processInitialized
	.word	PTE_TRUE
	.word	pte_selfThreadKey
	.word	pte_cleanupKey
	.word	pte_thread_reuse_lock
	.word	pte_mutex_test_init_lock
	.word	pte_cond_list_lock
	.word	pte_cond_test_init_lock
	.word	pte_rwlock_test_init_lock
	.word	pte_spinlock_test_init_lock
	.size	pthread_init, .-pthread_init
	.comm	pte_thread_reuse_lock,4,4
	.comm	pte_spinlock_test_init_lock,4,4
	.comm	pte_selfThreadKey,4,4
	.comm	pte_rwlock_test_init_lock,4,4
	.comm	pte_processInitialized,4,4
	.comm	pte_mutex_test_init_lock,4,4
	.comm	pte_cond_test_init_lock,4,4
	.comm	pte_cond_list_lock,4,4
	.comm	pte_cleanupKey,4,4
	.comm	PTE_TRUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
