	.file	"248536.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\346\210\221\346\230\257\344\270\200\344\270\252\345\255\220\350\277\233\347\250\213"
.LC1:
	.string	"\347\210\266\350\277\233\347\250\2131 ID\357\274\232%d\n"
.LC2:
	.string	"\346\210\221\346\230\257\345\217\246\345\244\226\344\270\200\344\270\252\345\255\220\350\277\233\347\250\213"
.LC3:
	.string	"\347\210\266\350\277\233\347\250\2132 ID\357\274\232%d\n"
.LC4:
	.string	"wait..."
	.text
	.globl	main
	.type	main, @function
main:
.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, read_childproc[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	call	fork@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 10
	call	sleep@PLT
	mov	eax, 12
	jmp	.L7
.L2:
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	call	fork@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 10
	call	sleep@PLT
	mov	eax, 24
	jmp	.L7
.L4:
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -168[rbp], 0
	jmp	.L5
.L6:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 5
	call	sleep@PLT
	add	DWORD PTR -168[rbp], 1
.L5:
	cmp	DWORD PTR -168[rbp], 4
	jle	.L6
	mov	eax, 0
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.string	"\347\247\273\351\231\244\350\277\233\347\250\213ID\344\270\272\357\274\232%d \347\232\204\350\277\233\347\250\213\n"
.LC6:
	.string	"Child send: %d \n"
	.text
	.globl	read_childproc
	.type	read_childproc, @function
read_childproc:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, -1
	call	waitpid@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_childproc, .-read_childproc
	.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	"248536.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\346\210\221\346\230\257\344\270\200\344\270\252\345"
	.ascii	"\255\220\350\277\233\347\250\213\000"
	.align	2
.LC1:
	.ascii	"\347\210\266\350\277\233\347\250\2131 ID\357\274\232"
	.ascii	"%d\012\000"
	.align	2
.LC2:
	.ascii	"\346\210\221\346\230\257\345\217\246\345\244\226\344"
	.ascii	"\270\200\344\270\252\345\255\220\350\277\233\347\250"
	.ascii	"\213\000"
	.align	2
.LC3:
	.ascii	"\347\210\266\350\277\233\347\250\2132 ID\357\274\232"
	.ascii	"%d\012\000"
	.align	2
.LC4:
	.ascii	"wait...\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L9+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L9+8
	bl	puts
	mov	r0, #10
	bl	sleep
	mov	r3, #12
	b	.L7
.L2:
	ldr	r1, [fp, #-152]
	ldr	r0, .L9+12
	bl	printf
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L9+16
	bl	puts
	mov	r0, #10
	bl	sleep
	mov	r3, #24
	b	.L7
.L4:
	ldr	r1, [fp, #-152]
	ldr	r0, .L9+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L5
.L6:
	ldr	r0, .L9+24
	bl	puts
	mov	r0, #5
	bl	sleep
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L5:
	ldr	r3, [fp, #-156]
	cmp	r3, #4
	ble	.L6
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC5
	.word	read_childproc
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\347\247\273\351\231\244\350\277\233\347\250\213ID\344"
	.ascii	"\270\272\357\274\232%d \347\232\204\350\277\233\347"
	.ascii	"\250\213\012\000"
	.align	2
.LC7:
	.ascii	"Child send: %d \012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_childproc
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_childproc, %function
read_childproc:
	@ 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]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, #1
	mov	r1, r3
	mvn	r0, #0
	bl	waitpid
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L14
	ldr	r1, [fp, #-12]
	ldr	r0, .L15+4
	bl	printf
	ldr	r3, [fp, #-16]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
.L14:
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC8
	.word	.LC6
	.word	.LC7
	.size	read_childproc, .-read_childproc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
