	.file	"365715.c"
	.intel_syntax noprefix
	.text
	.globl	s1
	.bss
	.align 8
	.type	s1, @object
	.size	s1, 8
s1:
	.zero	8
	.globl	s2
	.align 8
	.type	s2, @object
	.size	s2, 8
s2:
	.zero	8
	.section	.rodata
.LC0:
	.string	"child 1: before"
.LC1:
	.string	"child 1: after"
	.text
	.globl	child_1
	.type	child_1, @function
child_1:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	rax, QWORD PTR s1[rip]
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR s2[rip]
	mov	rdi, rax
	call	sem_wait@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	child_1, .-child_1
	.section	.rodata
.LC2:
	.string	"child 2: before"
.LC3:
	.string	"child 2: after"
	.text
	.globl	child_2
	.type	child_2, @function
child_2:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	rax, QWORD PTR s2[rip]
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR s1[rip]
	mov	rdi, rax
	call	sem_wait@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	child_2, .-child_2
	.section	.rodata
.LC4:
	.string	"parent: begin"
.LC5:
	.string	"/sem1"
.LC6:
	.string	"/sem2"
.LC7:
	.string	"parent: end"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	esi, 0
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR s1[rip], rax
	mov	esi, 0
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR s2[rip], rax
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, child_1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, child_2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR s1[rip]
	mov	rdi, rax
	call	sem_close@PLT
	mov	rax, QWORD PTR s2[rip]
	mov	rdi, rax
	call	sem_close@PLT
	lea	rdi, .LC5[rip]
	call	sem_unlink@PLT
	lea	rdi, .LC6[rip]
	call	sem_unlink@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"365715.c"
	.text
	.comm	s1,4,4
	.comm	s2,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"child 1: before\000"
	.align	2
.LC1:
	.ascii	"child 1: after\000"
	.text
	.align	2
	.global	child_1
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_1, %function
child_1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L3
	bl	puts
	mov	r0, #1
	bl	sleep
	ldr	r3, .L3+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_post
	ldr	r3, .L3+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_wait
	ldr	r0, .L3+12
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	s1
	.word	s2
	.word	.LC1
	.size	child_1, .-child_1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"child 2: before\000"
	.align	2
.LC3:
	.ascii	"child 2: after\000"
	.text
	.align	2
	.global	child_2
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_2, %function
child_2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L7
	bl	puts
	mov	r0, #1
	bl	sleep
	ldr	r3, .L7+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_post
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_wait
	ldr	r0, .L7+12
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	s2
	.word	s1
	.word	.LC3
	.size	child_2, .-child_2
	.section	.rodata
	.align	2
.LC4:
	.ascii	"parent: begin\000"
	.align	2
.LC5:
	.ascii	"/sem1\000"
	.align	2
.LC6:
	.ascii	"/sem2\000"
	.align	2
.LC7:
	.ascii	"parent: end\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L12+4
	bl	puts
	mov	r1, #0
	ldr	r0, .L12+8
	bl	sem_open
	mov	r3, r0
	ldr	r2, .L12+12
	str	r3, [r2]
	mov	r1, #0
	ldr	r0, .L12+16
	bl	sem_open
	mov	r3, r0
	ldr	r2, .L12+20
	str	r3, [r2]
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L12+24
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L12+28
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, .L12+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_close
	ldr	r3, .L12+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_close
	ldr	r0, .L12+8
	bl	sem_unlink
	ldr	r0, .L12+16
	bl	sem_unlink
	ldr	r0, .L12+32
	bl	puts
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC8
	.word	.LC4
	.word	.LC5
	.word	s1
	.word	.LC6
	.word	s2
	.word	child_1
	.word	child_2
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
