	.file	"extr_thr_barrier.c__pthread_barrier_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_pthread_barrier_init
	.type	_pthread_barrier_init, @function
_pthread_barrier_init:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L17
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	test	edx, edx
	je	.L2
	cmp	DWORD PTR INT_MAX[rip], edx
	jb	.L2
	mov	rbp, rdi
	test	rsi, rsi
	je	.L5
	mov	rax, QWORD PTR [rsi]
	test	rax, rax
	je	.L5
	mov	rcx, QWORD PTR PTHREAD_PROCESS_PRIVATE[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L6
.L5:
	mov	esi, 4
	mov	edi, 1
	call	calloc@PLT
	mov	r12, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	test	r12, r12
	je	.L1
	mov	QWORD PTR 0[rbp], r12
	lea	rdi, 8[r12]
	call	_thr_umutex_init@PLT
	lea	rdi, 4[r12]
	call	_thr_ucond_init@PLT
.L8:
	mov	DWORD PTR [r12], ebx
	xor	eax, eax
	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	eax, DWORD PTR EINVAL[rip]
.L1:
	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
.L6:
	.cfi_restore_state
	mov	esi, 1
	call	__thr_pshared_offpage@PLT
	mov	r12, rax
	mov	eax, DWORD PTR EFAULT[rip]
	test	r12, r12
	je	.L1
	mov	rax, QWORD PTR THR_PSHARED_PTR[rip]
	lea	rdi, 8[r12]
	mov	QWORD PTR 0[rbp], rax
	call	_thr_umutex_init@PLT
	lea	rdi, 4[r12]
	call	_thr_ucond_init@PLT
	mov	eax, DWORD PTR USYNC_PROCESS_SHARED[rip]
	or	DWORD PTR 8[r12], eax
	or	DWORD PTR 4[r12], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, DWORD PTR EINVAL[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	_pthread_barrier_init, .-_pthread_barrier_init
	.comm	USYNC_PROCESS_SHARED,4,4
	.comm	THR_PSHARED_PTR,8,8
	.comm	PTHREAD_PROCESS_PRIVATE,8,8
	.comm	INT_MAX,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EFAULT,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_thr_barrier.c__pthread_barrier_init.c"
	.text
	.align	2
	.global	_pthread_barrier_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	_pthread_barrier_init, %function
_pthread_barrier_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	cmpne	r0, #0
	beq	.L17
	ldr	r3, .L24
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r5, r2
	cmp	r3, r2
	bcc	.L21
	cmp	r1, #0
	mov	r6, r0
	beq	.L5
	ldr	r3, [r1]
	cmp	r3, #0
	beq	.L5
	ldr	r1, .L24+4
	ldr	r2, [r3]
	ldr	r3, [r1]
	cmp	r2, r3
	bne	.L6
.L5:
	mov	r1, #4
	mov	r0, #1
	bl	calloc
	subs	r4, r0, #0
	beq	.L22
	str	r4, [r6]
	add	r0, r4, #8
	bl	_thr_umutex_init
	add	r0, r4, #4
	bl	_thr_ucond_init
.L8:
	mov	r0, #0
	str	r5, [r4]
	pop	{r4, r5, r6, pc}
.L21:
	ldr	r3, .L24+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L6:
	mov	r1, #1
	bl	__thr_pshared_offpage
	subs	r4, r0, #0
	beq	.L23
	ldr	r3, .L24+12
	add	r0, r4, #8
	ldr	r3, [r3]
	str	r3, [r6]
	bl	_thr_umutex_init
	add	r0, r4, #4
	bl	_thr_ucond_init
	ldr	r3, .L24+16
	ldr	r2, [r4, #8]
	ldr	r1, [r3]
	ldr	r3, [r4, #4]
	orr	r2, r2, r1
	orr	r3, r3, r1
	str	r2, [r4, #8]
	str	r3, [r4, #4]
	b	.L8
.L17:
	ldr	r3, .L24+8
	ldr	r0, [r3]
	bx	lr
.L23:
	ldr	r3, .L24+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L22:
	ldr	r3, .L24+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L25:
	.align	2
.L24:
	.word	INT_MAX
	.word	PTHREAD_PROCESS_PRIVATE
	.word	EINVAL
	.word	THR_PSHARED_PTR
	.word	USYNC_PROCESS_SHARED
	.word	EFAULT
	.word	ENOMEM
	.size	_pthread_barrier_init, .-_pthread_barrier_init
	.comm	USYNC_PROCESS_SHARED,4,4
	.comm	THR_PSHARED_PTR,4,4
	.comm	PTHREAD_PROCESS_PRIVATE,4,4
	.comm	INT_MAX,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
