	.file	"126799.c"
	.intel_syntax noprefix
	.text
	.local	sigusr2Count
	.comm	sigusr2Count,4,4
	.globl	child
	.bss
	.align 4
	.type	child, @object
	.size	child, 4
child:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Parent: World"
	.text
	.globl	sigusr1
	.type	sigusr1, @function
sigusr1:
.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	DWORD PTR -4[rbp], edi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sigusr1, .-sigusr1
	.section	.rodata
.LC1:
	.string	"Parent: Hello"
	.text
	.globl	sigusr2
	.type	sigusr2, @function
sigusr2:
.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR sigusr2Count[rip]
	add	eax, 1
	mov	DWORD PTR sigusr2Count[rip], eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR sigusr2Count[rip]
	cmp	eax, 4
	jle	.L6
	mov	eax, DWORD PTR child[rip]
	mov	esi, 19
	mov	edi, eax
	call	kill@PLT
	call	getpid@PLT
	mov	esi, 19
	mov	edi, eax
	call	kill@PLT
	nop
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sigusr2, .-sigusr2
	.section	.rodata
.LC2:
	.string	"Child: World"
.LC3:
	.string	"Child: Hello"
	.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, 16
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rsi, sigusr1[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rsi, sigusr2[rip]
	mov	edi, 12
	call	signal@PLT
	call	fork@PLT
	mov	DWORD PTR child[rip], eax
	mov	eax, DWORD PTR child[rip]
	test	eax, eax
	jne	.L8
.L11:
	mov	edi, 5
	call	sleep@PLT
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	DWORD PTR -8[rbp], eax
	call	getppid@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L9
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 12
	mov	edi, eax
	call	kill@PLT
	jmp	.L11
.L9:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	jmp	.L11
.L8:
	mov	eax, DWORD PTR child[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, 0
	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	"126799.c"
	.text
	.local	sigusr2Count
	.comm	sigusr2Count,4,4
	.comm	child,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Parent: World\000"
	.text
	.align	2
	.global	sigusr1
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigusr1, %function
sigusr1:
	@ 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
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	sigusr1, .-sigusr1
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Parent: Hello\000"
	.text
	.align	2
	.global	sigusr2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigusr2, %function
sigusr2:
	@ 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	r3, .L9
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9
	str	r3, [r2]
	ldr	r0, .L9+4
	bl	puts
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #4
	ble	.L8
	ldr	r3, .L9+8
	ldr	r3, [r3]
	mov	r1, #19
	mov	r0, r3
	bl	kill
	bl	getpid
	mov	r3, r0
	mov	r1, #19
	mov	r0, r3
	bl	kill
	nop
.L8:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	sigusr2Count
	.word	.LC1
	.word	child
	.size	sigusr2, .-sigusr2
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Child: World\000"
	.align	2
.LC3:
	.ascii	"Child: Hello\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r1, .L17
	mov	r0, #10
	bl	signal
	ldr	r1, .L17+4
	mov	r0, #12
	bl	signal
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L17+8
	str	r2, [r3]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
.L15:
	mov	r0, #5
	bl	sleep
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	str	r3, [fp, #-12]
	bl	getppid
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L17+12
	bl	puts
	mov	r1, #12
	ldr	r0, [fp, #-8]
	bl	kill
	b	.L15
.L13:
	ldr	r0, .L17+16
	bl	puts
	mov	r1, #10
	ldr	r0, [fp, #-8]
	bl	kill
	b	.L15
.L12:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	sigusr1
	.word	sigusr2
	.word	child
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
