	.file	"241276.c"
	.intel_syntax noprefix
	.text
	.globl	global_array
	.bss
	.align 32
	.type	global_array, @object
	.size	global_array, 4004
global_array:
	.zero	4004
	.globl	num_child
	.align 4
	.type	num_child, @object
	.size	num_child, 4
num_child:
	.zero	4
	.text
	.globl	handle_sigusr2
	.type	handle_sigusr2, @function
handle_sigusr2:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	getppid@PLT
	mov	esi, 12
	mov	edi, eax
	call	kill@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handle_sigusr2, .-handle_sigusr2
	.globl	dummy_handler
	.type	dummy_handler, @function
dummy_handler:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dummy_handler, .-dummy_handler
	.globl	handle_sigchld
	.type	handle_sigchld, @function
handle_sigchld:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	handle_sigchld, .-handle_sigchld
	.section	.rodata
	.align 8
.LC0:
	.string	"starting program in process %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -292[rbp], 2
	je	.L5
	mov	edi, -1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR num_child[rip], eax
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	srand@PLT
	mov	DWORD PTR -280[rbp], 1
	jmp	.L6
.L7:
	call	random@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, global_array[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -280[rbp], 1
.L6:
	cmp	DWORD PTR -280[rbp], 1000
	jle	.L7
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -272[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -272[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rdx, -144[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	lea	rsi, dummy_handler[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rsi, dummy_handler[rip]
	mov	edi, 12
	call	signal@PLT
	lea	rsi, handle_sigchld[rip]
	mov	edi, 17
	call	signal@PLT
	call	fork@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jne	.L8
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	push	QWORD PTR -88[rbp]
	push	QWORD PTR -96[rbp]
	push	QWORD PTR -104[rbp]
	push	QWORD PTR -112[rbp]
	push	QWORD PTR -120[rbp]
	push	QWORD PTR -128[rbp]
	push	QWORD PTR -136[rbp]
	push	QWORD PTR -144[rbp]
	mov	edi, 1
	mov	eax, 0
	call	begin_fork
	sub	rsp, -128
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	jmp	.L13
.L8:
	cmp	DWORD PTR -276[rbp], 0
	jle	.L10
.L11:
	mov	eax, DWORD PTR -276[rbp]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigsuspend@PLT
	jmp	.L11
.L10:
	mov	edi, -1
	call	exit@PLT
.L13:
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"process %d, value %d\n"
	.text
	.globl	begin_fork
	.type	begin_fork, @function
begin_fork:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 328
	.cfi_offset 3, -24
	mov	DWORD PTR -324[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	esi, 1
	mov	edi, 1
	mov	eax, 0
	call	prctl@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], rdx
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR 40[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], rdx
	mov	rax, QWORD PTR 48[rbp]
	mov	rdx, QWORD PTR 56[rbp]
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], rdx
	mov	rax, QWORD PTR 64[rbp]
	mov	rdx, QWORD PTR 72[rbp]
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], rdx
	mov	rax, QWORD PTR 80[rbp]
	mov	rdx, QWORD PTR 88[rbp]
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR 96[rbp]
	mov	rdx, QWORD PTR 104[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR 112[rbp]
	mov	rdx, QWORD PTR 120[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	mov	rax, QWORD PTR 128[rbp]
	mov	rdx, QWORD PTR 136[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], rdx
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], rdx
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR 40[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR 48[rbp]
	mov	rdx, QWORD PTR 56[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR 64[rbp]
	mov	rdx, QWORD PTR 72[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR 80[rbp]
	mov	rdx, QWORD PTR 88[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR 96[rbp]
	mov	rdx, QWORD PTR 104[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR 112[rbp]
	mov	rdx, QWORD PTR 120[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR 128[rbp]
	mov	rdx, QWORD PTR 136[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	lea	rax, -288[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -160[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rsi, dummy_handler[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rsi, handle_sigusr2[rip]
	mov	edi, 12
	call	signal@PLT
	lea	rsi, handle_sigchld[rip]
	mov	edi, 17
	call	signal@PLT
	mov	eax, DWORD PTR num_child[rip]
	cmp	DWORD PTR -324[rbp], eax
	jge	.L15
	call	fork@PLT
	mov	DWORD PTR -296[rbp], eax
	cmp	DWORD PTR -296[rbp], 0
	jne	.L16
	add	DWORD PTR -324[rbp], 1
	mov	eax, DWORD PTR -324[rbp]
	push	QWORD PTR 136[rbp]
	push	QWORD PTR 128[rbp]
	push	QWORD PTR 120[rbp]
	push	QWORD PTR 112[rbp]
	push	QWORD PTR 104[rbp]
	push	QWORD PTR 96[rbp]
	push	QWORD PTR 88[rbp]
	push	QWORD PTR 80[rbp]
	push	QWORD PTR 72[rbp]
	push	QWORD PTR 64[rbp]
	push	QWORD PTR 56[rbp]
	push	QWORD PTR 48[rbp]
	push	QWORD PTR 40[rbp]
	push	QWORD PTR 32[rbp]
	push	QWORD PTR 24[rbp]
	push	QWORD PTR 16[rbp]
	mov	edi, eax
	call	begin_fork
	sub	rsp, -128
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L25
	jmp	.L26
.L16:
	cmp	DWORD PTR -296[rbp], 0
	jle	.L18
	mov	DWORD PTR -308[rbp], 0
.L21:
	mov	eax, DWORD PTR num_child[rip]
	imul	eax, DWORD PTR -308[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -324[rbp]
	add	eax, edx
	mov	DWORD PTR -292[rbp], eax
	cmp	DWORD PTR -292[rbp], 1000
	jg	.L19
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, global_array[rip]
	mov	ebx, DWORD PTR [rdx+rax]
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	sigsuspend@PLT
	add	DWORD PTR -308[rbp], 1
	jmp	.L27
.L19:
	mov	edi, 0
	call	exit@PLT
.L27:
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigsuspend@PLT
	mov	eax, DWORD PTR -296[rbp]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	jmp	.L21
.L18:
	mov	edi, -1
	call	exit@PLT
.L15:
	mov	DWORD PTR -304[rbp], 0
.L24:
	mov	eax, DWORD PTR num_child[rip]
	imul	eax, DWORD PTR -304[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -324[rbp]
	add	eax, edx
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 1000
	jg	.L22
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, global_array[rip]
	mov	ebx, DWORD PTR [rdx+rax]
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -304[rbp], 1
	call	getppid@PLT
	mov	esi, 12
	mov	edi, eax
	call	kill@PLT
	jmp	.L28
.L22:
	mov	edi, 0
	call	exit@PLT
.L28:
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigsuspend@PLT
	jmp	.L24
.L26:
	call	__stack_chk_fail@PLT
.L25:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	begin_fork, .-begin_fork
	.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	"241276.c"
	.text
	.comm	global_array,4004,4
	.comm	num_child,4,4
	.align	2
	.global	handle_sigusr2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_sigusr2, %function
handle_sigusr2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	getppid
	mov	r3, r0
	mov	r1, #12
	mov	r0, r3
	bl	kill
	nop
	pop	{fp, pc}
	.size	handle_sigusr2, .-handle_sigusr2
	.align	2
	.global	dummy_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	dummy_handler, %function
dummy_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	dummy_handler, .-dummy_handler
	.align	2
	.global	handle_sigchld
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_sigchld, %function
handle_sigchld:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	exit
	.size	handle_sigchld, .-handle_sigchld
	.section	.rodata
	.align	2
.LC0:
	.ascii	"starting program in process %d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #400
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-280]
	cmp	r3, #2
	beq	.L5
	mvn	r0, #0
	bl	exit
.L5:
	ldr	r3, [fp, #-284]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L14+4
	str	r3, [r2]
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L14+8
	bl	printf
	mov	r0, #0
	bl	srand
	mov	r3, #1
	str	r3, [fp, #-272]
	b	.L6
.L7:
	bl	random
	mov	r2, r0
	ldr	r1, .L14+12
	ldr	r3, [fp, #-272]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-272]
	add	r3, r3, #1
	str	r3, [fp, #-272]
.L6:
	ldr	r3, [fp, #-272]
	cmp	r3, #1000
	ble	.L7
	sub	r3, fp, #264
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #264
	mov	r1, #10
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #264
	mov	r1, #12
	mov	r0, r3
	bl	sigaddset
	sub	r2, fp, #136
	sub	r3, fp, #264
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	ldr	r1, .L14+16
	mov	r0, #10
	bl	signal
	ldr	r1, .L14+16
	mov	r0, #12
	bl	signal
	ldr	r1, .L14+20
	mov	r0, #17
	bl	signal
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L8
	mov	r0, sp
	sub	r3, fp, #124
	mov	r2, #116
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #136
	ldm	r3, {r1, r2, r3}
	mov	r0, #1
	bl	begin_fork
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	b	.L13
.L8:
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	ble	.L10
.L11:
	mov	r1, #10
	ldr	r0, [fp, #-268]
	bl	kill
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigsuspend
	b	.L11
.L10:
	mvn	r0, #0
	bl	exit
.L13:
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	num_child
	.word	.LC0
	.word	global_array
	.word	dummy_handler
	.word	handle_sigchld
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"process %d, value %d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	begin_fork
	.syntax unified
	.arm
	.fpu softvfp
	.type	begin_fork, %function
begin_fork:
	@ args = 132, pretend = 16, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #408
	str	r0, [fp, #-288]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #1
	mov	r0, #1
	bl	prctl
	sub	r3, fp, #264
	add	r1, fp, #8
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #136
	add	r1, fp, #8
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #264
	mov	r1, #12
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #136
	mov	r1, #10
	mov	r0, r3
	bl	sigaddset
	ldr	r1, .L31+4
	mov	r0, #10
	bl	signal
	ldr	r1, .L31+8
	mov	r0, #12
	bl	signal
	ldr	r1, .L31+12
	mov	r0, #17
	bl	signal
	ldr	r3, .L31+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-288]
	cmp	r2, r3
	bge	.L17
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-288]
	add	r3, r3, #1
	str	r3, [fp, #-288]
	mov	r0, sp
	add	r3, fp, #20
	mov	r2, #116
	mov	r1, r3
	bl	memcpy
	add	r3, fp, #8
	ldm	r3, {r1, r2, r3}
	ldr	r0, [fp, #-288]
	bl	begin_fork
	nop
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	b	.L28
.L18:
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	ble	.L20
	mov	r3, #0
	str	r3, [fp, #-284]
.L23:
	ldr	r3, .L31+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-284]
	mul	r3, r2, r3
	ldr	r2, [fp, #-288]
	add	r3, r2, r3
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #1000
	bgt	.L21
	bl	getpid
	mov	r1, r0
	ldr	r2, .L31+20
	ldr	r3, [fp, #-268]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L31+24
	bl	printf
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigsuspend
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
	b	.L29
.L21:
	mov	r0, #0
	bl	exit
.L29:
	sub	r3, fp, #264
	mov	r0, r3
	bl	sigsuspend
	mov	r1, #10
	ldr	r0, [fp, #-272]
	bl	kill
	b	.L23
.L20:
	mvn	r0, #0
	bl	exit
.L17:
	mov	r3, #0
	str	r3, [fp, #-280]
.L26:
	ldr	r3, .L31+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-280]
	mul	r3, r2, r3
	ldr	r2, [fp, #-288]
	add	r3, r2, r3
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #1000
	bgt	.L24
	bl	getpid
	mov	r1, r0
	ldr	r2, .L31+20
	ldr	r3, [fp, #-276]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L31+24
	bl	printf
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
	bl	getppid
	mov	r3, r0
	mov	r1, #12
	mov	r0, r3
	bl	kill
	b	.L30
.L24:
	mov	r0, #0
	bl	exit
.L30:
	sub	r3, fp, #264
	mov	r0, r3
	bl	sigsuspend
	b	.L26
.L28:
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L32:
	.align	2
.L31:
	.word	.LC3
	.word	dummy_handler
	.word	handle_sigusr2
	.word	handle_sigchld
	.word	num_child
	.word	global_array
	.word	.LC2
	.size	begin_fork, .-begin_fork
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
