	.file	"268929.c"
	.intel_syntax noprefix
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 32
p:
	.zero	32
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 32
c:
	.zero	32
	.section	.rodata
.LC0:
	.string	"Child"
	.text
	.globl	print_text
	.type	print_text, @function
print_text:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	lea	rdi, p[rip]
	call	sem_wait@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, c[rip]
	call	sem_post@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L3
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_text, .-print_text
	.section	.rodata
	.align 8
.LC1:
	.string	"Error in creating a child thread: %s\n"
.LC2:
	.string	"Parent"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -292[rbp], 0
	mov	DWORD PTR -288[rbp], 0
	mov	DWORD PTR -284[rbp], 256
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	edx, 0
	mov	esi, 0
	lea	rdi, p[rip]
	call	sem_init@PLT
	mov	edx, 1
	mov	esi, 0
	lea	rdi, c[rip]
	call	sem_init@PLT
	lea	rax, -280[rbp]
	mov	ecx, 0
	lea	rdx, print_text[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -288[rbp], eax
	cmp	DWORD PTR -288[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -284[rbp]
	movsx	rdx, eax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	__xpg_strerror_r@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -272[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	jmp	.L11
.L6:
	mov	DWORD PTR -296[rbp], 0
	jmp	.L8
.L9:
	lea	rdi, c[rip]
	call	sem_wait@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, p[rip]
	call	sem_post@PLT
	add	DWORD PTR -296[rbp], 1
.L8:
	cmp	DWORD PTR -296[rbp], 9
	jle	.L9
	mov	rax, QWORD PTR -280[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rdi, p[rip]
	call	sem_destroy@PLT
	lea	rdi, c[rip]
	call	sem_destroy@PLT
	mov	edi, 0
	call	pthread_exit@PLT
.L11:
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"268929.c"
	.text
	.comm	p,16,4
	.comm	c,16,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Child\000"
	.text
	.align	2
	.global	print_text
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_text, %function
print_text:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r0, .L5
	bl	sem_wait
	ldr	r0, .L5+4
	bl	puts
	ldr	r0, .L5+8
	bl	sem_post
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	p
	.word	.LC0
	.word	c
	.size	print_text, .-print_text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Error in creating a child thread: %s\012\000"
	.align	2
.LC2:
	.ascii	"Parent\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-276]
	mov	r3, #0
	str	r3, [fp, #-272]
	mov	r3, #256
	str	r3, [fp, #-268]
	mov	r3, #0
	str	r3, [fp, #-264]
	sub	r3, fp, #260
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L14+4
	bl	sem_init
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L14+8
	bl	sem_init
	sub	r0, fp, #284
	mov	r3, #0
	ldr	r2, .L14+12
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	beq	.L8
	ldr	r2, [fp, #-268]
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-272]
	bl	__xpg_strerror_r
	ldr	r3, .L14+16
	ldr	r3, [r3]
	sub	r2, fp, #264
	ldr	r1, .L14+20
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	b	.L13
.L8:
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L10
.L11:
	ldr	r0, .L14+8
	bl	sem_wait
	ldr	r0, .L14+24
	bl	puts
	ldr	r0, .L14+4
	bl	sem_post
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L10:
	ldr	r3, [fp, #-280]
	cmp	r3, #9
	ble	.L11
	ldr	r3, [fp, #-284]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r0, .L14+4
	bl	sem_destroy
	ldr	r0, .L14+8
	bl	sem_destroy
	mov	r0, #0
	bl	pthread_exit
.L13:
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	p
	.word	c
	.word	print_text
	.word	stderr
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
