	.file	"extr_pthread_cond_init.c_pthread_cond_init.c"
	.intel_syntax noprefix
	.text
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.globl	pthread_cond_init
	.type	pthread_cond_init, @function
pthread_cond_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L1
	mov	rbx, rdi
	test	rsi, rsi
	je	.L4
	mov	rax, QWORD PTR [rsi]
	test	rax, rax
	je	.L4
	mov	rcx, QWORD PTR PTHREAD_PROCESS_SHARED[rip]
	mov	r12d, DWORD PTR ENOSYS[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L5
.L4:
	mov	esi, 56
	mov	edi, 1
	call	calloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rbp, rax
	test	rax, rax
	jne	.L28
.L5:
	test	r12d, r12d
	je	.L12
	xor	r13d, r13d
.L13:
	mov	QWORD PTR [rbx], r13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	lea	r14, 16[rax]
	mov	edx, 1
	xor	esi, esi
	mov	r13, rax
	mov	QWORD PTR 48[rax], 0
	mov	rdi, r14
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 32[rax], 0
	call	sem_init@PLT
	mov	r12d, DWORD PTR errno[rip]
	test	rax, rax
	je	.L30
.L8:
	endbr64
	mov	rdi, rbp
	call	free@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L30:
	lea	r15, 20[rbp]
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r15
	call	sem_init@PLT
	mov	r12d, DWORD PTR errno[rip]
	test	rax, rax
	jne	.L10
	lea	rdi, 24[rbp]
	xor	esi, esi
	call	pthread_mutex_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L31
	lea	r14, 4[rsp]
	lea	rdi, ptw32_cond_list_lock[rip]
	mov	rsi, r14
	call	ptw32_mcs_lock_acquire@PLT
	mov	rax, QWORD PTR ptw32_cond_list_tail[rip]
	mov	QWORD PTR 0[rbp], 0
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L14
	mov	QWORD PTR [rax], rbp
.L14:
	cmp	QWORD PTR ptw32_cond_list_head[rip], 0
	mov	QWORD PTR ptw32_cond_list_tail[rip], rbp
	je	.L32
.L15:
	mov	rdi, r14
	call	ptw32_mcs_lock_release@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L32:
	mov	QWORD PTR ptw32_cond_list_head[rip], rbp
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, r15
	call	sem_destroy@PLT
.L10:
	mov	rdi, r14
	call	sem_destroy@PLT
	mov	rdi, rbp
	call	free@PLT
	jmp	.L5
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	pthread_cond_init.cold, @function
pthread_cond_init.cold:
.LFSB0:
.L12:
	.cfi_def_cfa_offset 80
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	lea	rsi, 4[rsp]
	lea	rdi, ptw32_cond_list_lock[rip]
	call	ptw32_mcs_lock_acquire@PLT
	mov	QWORD PTR ds:0, 0
	ud2
	.cfi_endproc
.LFE0:
	.text
	.size	pthread_cond_init, .-pthread_cond_init
	.section	.text.unlikely
	.size	pthread_cond_init.cold, .-pthread_cond_init.cold
.LCOLDE0:
	.text
.LHOTE0:
	.comm	ptw32_cond_list_tail,8,8
	.comm	ptw32_cond_list_lock,4,4
	.comm	ptw32_cond_list_head,8,8
	.comm	errno,4,4
	.comm	PTHREAD_PROCESS_SHARED,8,8
	.comm	ENOSYS,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_cond_init.c_pthread_cond_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pthread_cond_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	pthread_cond_init, %function
pthread_cond_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L32
	sub	sp, sp, #12
	subs	r5, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L28
	cmp	r1, #0
	beq	.L4
	ldr	r3, [r1]
	cmp	r3, #0
	beq	.L4
	ldr	r1, .L32+4
	ldr	r2, [r3]
	ldr	r3, [r1]
	cmp	r2, r3
	beq	.L29
.L4:
	mov	r1, #32
	mov	r0, #1
	bl	calloc
	cmp	r0, #0
	ldreq	r3, .L32+8
	mov	r4, r0
	mov	r7, r0
	ldreq	r6, [r3]
	beq	.L5
	mov	r1, #0
	add	r8, r0, #8
	mov	r2, #1
	mov	r0, r8
	str	r1, [r4, #28]
	str	r1, [r4, #24]
	str	r1, [r4, #20]
	bl	sem_init
	subs	r2, r0, #0
	beq	.L7
	ldr	r3, .L32+12
	ldr	r6, [r3]
.L8:
	mov	r0, r4
	bl	free
.L5:
	cmp	r6, #0
	beq	.L12
	mov	r7, #0
.L13:
	str	r7, [r5]
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	add	r9, r4, #12
	mov	r1, r2
	mov	r0, r9
	bl	sem_init
	subs	r1, r0, #0
	beq	.L9
	ldr	r3, .L32+12
	ldr	r6, [r3]
.L10:
	mov	r0, r8
	bl	sem_destroy
	b	.L8
.L9:
	add	r0, r4, #16
	bl	pthread_mutex_init
	subs	r6, r0, #0
	bne	.L31
	mov	r1, sp
	ldr	r0, .L32+16
	bl	ptw32_mcs_lock_acquire
	ldr	r2, .L32+20
	str	r6, [r4]
	ldr	r3, [r2]
	mov	r0, sp
	cmp	r3, #0
	str	r3, [r4, #4]
	strne	r4, [r3]
	ldr	r3, .L32+24
	str	r4, [r2]
	ldr	r2, [r3]
	cmp	r2, #0
	streq	r4, [r3]
	bl	ptw32_mcs_lock_release
	b	.L13
.L29:
	ldr	r3, .L32+28
	ldr	r6, [r3]
	b	.L5
.L28:
	ldr	r3, .L32+32
	ldr	r6, [r3]
	b	.L1
.L31:
	mov	r0, r9
	bl	sem_destroy
	b	.L10
.L30:
	bl	__stack_chk_fail
.L12:
	mov	r1, sp
	ldr	r0, .L32+16
	bl	ptw32_mcs_lock_acquire
	str	r6, [r6]
	.inst	0xe7f000f0
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	PTHREAD_PROCESS_SHARED
	.word	ENOMEM
	.word	errno
	.word	ptw32_cond_list_lock
	.word	ptw32_cond_list_tail
	.word	ptw32_cond_list_head
	.word	ENOSYS
	.word	EINVAL
	.size	pthread_cond_init, .-pthread_cond_init
	.comm	ptw32_cond_list_tail,4,4
	.comm	ptw32_cond_list_lock,4,4
	.comm	ptw32_cond_list_head,4,4
	.comm	errno,4,4
	.comm	PTHREAD_PROCESS_SHARED,4,4
	.comm	ENOSYS,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
