	.file	"709601.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"main: fork"
.LC1:
	.string	"In child process (ID: %d)\n"
.LC2:
	.string	"In parent process (ID: %d)\n"
.LC3:
	.string	"\nEnter the files "
.LC4:
	.string	"\n%s is larger than %s\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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -284[rbp], 0
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	pipe@PLT
	lea	rax, -264[rbp]
	mov	rdi, rax
	call	pipe@PLT
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	pipe@PLT
	lea	rax, -248[rbp]
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR -280[rbp], eax
	cmp	DWORD PTR -280[rbp], -1
	je	.L2
	cmp	DWORD PTR -280[rbp], 0
	je	.L3
	jmp	.L13
.L2:
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -272[rbp]
	lea	rcx, -224[rbp]
	mov	edx, 60
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -160[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR -240[rbp], eax
	mov	eax, DWORD PTR -252[rbp]
	lea	rcx, -240[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	call	fork@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], -1
	je	.L5
	cmp	DWORD PTR -276[rbp], 0
	je	.L6
	jmp	.L14
.L5:
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -264[rbp]
	lea	rcx, -224[rbp]
	mov	edx, 60
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -160[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR -240[rbp], eax
	mov	eax, DWORD PTR -244[rbp]
	lea	rcx, -240[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rax, -160[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	mov	eax, DWORD PTR -268[rbp]
	lea	rcx, -224[rbp]
	mov	edx, 60
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -260[rbp]
	lea	rcx, -160[rbp]
	mov	edx, 60
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -280[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	mov	eax, DWORD PTR -276[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	mov	eax, DWORD PTR -256[rbp]
	lea	rcx, -240[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -248[rbp]
	lea	rcx, -232[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	edx, DWORD PTR -240[rbp]
	mov	eax, DWORD PTR -232[rbp]
	cmp	edx, eax
	jle	.L8
	lea	rdx, -160[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L8:
	lea	rdx, -224[rbp]
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"709601.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"main: fork\000"
	.align	2
.LC1:
	.ascii	"In child process (ID: %d)\012\000"
	.align	2
.LC2:
	.ascii	"In parent process (ID: %d)\012\000"
	.align	2
.LC3:
	.ascii	"\012Enter the files \000"
	.align	2
.LC4:
	.ascii	"\012%s is larger than %s\012\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 = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-280]
	sub	r3, fp, #176
	mov	r0, r3
	bl	pipe
	sub	r3, fp, #168
	mov	r0, r3
	bl	pipe
	sub	r3, fp, #160
	mov	r0, r3
	bl	pipe
	sub	r3, fp, #152
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmn	r3, #1
	beq	.L2
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	beq	.L3
	b	.L13
.L2:
	ldr	r0, .L16+4
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-176]
	sub	r1, fp, #128
	mov	r2, #60
	mov	r0, r3
	bl	read
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L16+8
	bl	printf
	sub	r2, fp, #268
	sub	r3, fp, #128
	mov	r1, r2
	mov	r0, r3
	bl	stat
	ldr	r3, [fp, #-224]
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-156]
	sub	r1, fp, #144
	mov	r2, #8
	mov	r0, r3
	bl	write
	mov	r0, #1
	bl	exit
.L13:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmn	r3, #1
	beq	.L5
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	beq	.L6
	b	.L14
.L5:
	ldr	r0, .L16+4
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-168]
	sub	r1, fp, #128
	mov	r2, #60
	mov	r0, r3
	bl	read
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L16+8
	bl	printf
	sub	r2, fp, #268
	sub	r3, fp, #128
	mov	r1, r2
	mov	r0, r3
	bl	stat
	ldr	r3, [fp, #-224]
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-148]
	sub	r1, fp, #144
	mov	r2, #8
	mov	r0, r3
	bl	write
	mov	r0, #1
	bl	exit
.L14:
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L16+12
	bl	printf
	ldr	r0, .L16+16
	bl	puts
	sub	r3, fp, #128
	mov	r0, r3
	bl	gets
	sub	r3, fp, #68
	mov	r0, r3
	bl	gets
	ldr	r3, [fp, #-172]
	sub	r1, fp, #128
	mov	r2, #60
	mov	r0, r3
	bl	write
	ldr	r3, [fp, #-164]
	sub	r1, fp, #68
	mov	r2, #60
	mov	r0, r3
	bl	write
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-276]
	bl	waitpid
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-272]
	bl	waitpid
	ldr	r3, [fp, #-160]
	sub	r1, fp, #144
	mov	r2, #8
	mov	r0, r3
	bl	read
	ldr	r3, [fp, #-152]
	sub	r1, fp, #136
	mov	r2, #8
	mov	r0, r3
	bl	read
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	ble	.L8
	sub	r2, fp, #68
	sub	r3, fp, #128
	mov	r1, r3
	ldr	r0, .L16+20
	bl	printf
	b	.L15
.L8:
	sub	r2, fp, #128
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L16+20
	bl	printf
.L15:
	nop
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
