	.file	"extr_posixsem.c_child_worker.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"pipe"
.LC1:
	.string	"fork"
.LC2:
	.string	"read(pipe)"
.LC3:
	.string	"wait"
	.text
	.p2align 4
	.type	child_worker, @function
child_worker:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdi, 16[rsp]
	call	pipe@PLT
	test	rax, rax
	js	.L13
	call	fork@PLT
	mov	ebp, eax
	mov	r14d, eax
	cmp	eax, -1
	je	.L4
	test	eax, eax
	je	.L5
.L6:
	mov	edi, DWORD PTR 16[rsp]
	mov	edx, 4
	mov	rsi, r12
	call	read@PLT
	test	rax, rax
	js	.L14
	xor	edx, edx
	xor	esi, esi
	mov	edi, ebp
	call	waitpid@PLT
	test	rax, rax
	js	.L15
	mov	edi, DWORD PTR 16[rsp]
	xor	r14d, r14d
	call	close@PLT
	mov	edi, DWORD PTR 20[rsp]
	call	close@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, r13
	call	rbx
	mov	edi, DWORD PTR 20[rsp]
	lea	rsi, 12[rsp]
	mov	edx, 4
	mov	DWORD PTR 12[rsp], eax
	call	write@PLT
	xor	edi, edi
	call	exit@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rdi, .LC1[rip]
	call	fail_errno@PLT
	mov	edi, DWORD PTR 16[rsp]
	call	close@PLT
	mov	edi, DWORD PTR 20[rsp]
	call	close@PLT
	jmp	.L1
.L13:
	lea	rdi, .LC0[rip]
	mov	r14d, -1
	call	fail_errno@PLT
	jmp	.L1
.L15:
	lea	rdi, .LC3[rip]
.L11:
	call	fail_errno@PLT
	mov	edi, DWORD PTR 16[rsp]
	mov	r14d, -1
	call	close@PLT
	mov	edi, DWORD PTR 20[rsp]
	call	close@PLT
	jmp	.L1
.L14:
	lea	rdi, .LC2[rip]
	jmp	.L11
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	child_worker, .-child_worker
	.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_posixsem.c_child_worker.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pipe\000"
	.align	2
.LC1:
	.ascii	"fork\000"
	.align	2
.LC2:
	.ascii	"read(pipe)\000"
	.align	2
.LC3:
	.ascii	"wait\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_worker, %function
child_worker:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L16
	sub	sp, sp, #20
	mov	r6, r0
	add	r0, sp, #4
	mov	r7, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	pipe
	cmp	r0, #0
	blt	.L13
	bl	fork
	cmn	r0, #1
	mov	r4, r0
	beq	.L4
	cmp	r0, #0
	beq	.L5
.L6:
	mov	r1, r5
	mov	r2, #4
	ldr	r0, [sp, #4]
	bl	read
	cmp	r0, #0
	ldrlt	r0, .L16+4
	blt	.L11
	mov	r2, #0
	mov	r0, r4
	mov	r1, r2
	bl	waitpid
	cmp	r0, #0
	blt	.L14
	ldr	r0, [sp, #4]
	bl	close
	ldr	r0, [sp, #8]
	bl	close
	mov	r4, #0
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	mov	r0, r7
	blx	r6
	mov	r3, r0
	mov	r2, #4
	mov	r1, sp
	ldr	r0, [sp, #8]
	str	r3, [sp]
	bl	write
	mov	r0, r4
	bl	exit
	b	.L6
.L4:
	ldr	r0, .L16+8
	bl	fail_errno
	ldr	r0, [sp, #4]
	bl	close
	ldr	r0, [sp, #8]
	bl	close
	b	.L1
.L14:
	ldr	r0, .L16+12
.L11:
	bl	fail_errno
	ldr	r0, [sp, #4]
	bl	close
	ldr	r0, [sp, #8]
	bl	close
	mvn	r4, #0
	b	.L1
.L13:
	ldr	r0, .L16+16
	bl	fail_errno
	mvn	r4, #0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.word	.LC0
	.size	child_worker, .-child_worker
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
