	.file	"972268.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n"
.LC1:
	.string	"returned %d\n"
	.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, 1840
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1820[rbp], 0
	mov	BYTE PTR -1825[rbp], 32
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	lea	rdx, -1825[rbp]
	lea	rax, -1008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1816[rbp], rax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -1820[rbp]
	cdqe
	mov	rdx, QWORD PTR -1816[rbp]
	mov	QWORD PTR -1808[rbp+rax*8], rdx
	add	DWORD PTR -1820[rbp], 1
	lea	rax, -1825[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1816[rbp], rax
.L2:
	cmp	QWORD PTR -1816[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -1820[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -1808[rbp+rax*8]
	lea	rdx, .LC0[rip]
	cmp	rax, rdx
	jne	.L4
	mov	eax, DWORD PTR -1820[rbp]
	sub	eax, 1
	cdqe
	mov	QWORD PTR -1808[rbp+rax*8], 0
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -1820[rbp]
	cdqe
	mov	QWORD PTR -1808[rbp+rax*8], 0
.L5:
	call	fork@PLT
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -1808[rbp]
	lea	rdx, -1808[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	jmp	.L7
.L6:
	lea	rax, -1824[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	eax, DWORD PTR -1824[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"972268.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"returned %d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1424
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1424
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1416]
	mov	r3, #32
	strb	r3, [fp, #-1421]
	ldr	r3, .L10+4
	ldr	r2, [r3]
	sub	r3, fp, #1008
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #1408
	sub	r3, r3, #4
	sub	r3, r3, #9
	sub	r2, fp, #1008
	mov	r1, r3
	mov	r0, r2
	bl	strtok
	str	r0, [fp, #-1412]
	b	.L2
.L3:
	ldr	r3, [fp, #-1416]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-1412]
	str	r2, [r3, #-1404]
	ldr	r3, [fp, #-1416]
	add	r3, r3, #1
	str	r3, [fp, #-1416]
	sub	r3, fp, #1408
	sub	r3, r3, #4
	sub	r3, r3, #9
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1412]
.L2:
	ldr	r3, [fp, #-1412]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-1416]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1404]
	ldr	r2, .L10+8
	cmp	r3, r2
	bne	.L4
	ldr	r3, [fp, #-1416]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1404]
	b	.L5
.L4:
	ldr	r3, [fp, #-1416]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1404]
.L5:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r2, [fp, #-1408]
	sub	r3, fp, #1392
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, r2
	bl	execvp
	b	.L7
.L6:
	sub	r3, fp, #1408
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	wait
	ldr	r3, [fp, #-1420]
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
.L7:
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	stdin
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
