	.file	"730366.c"
	.intel_syntax noprefix
	.text
	.globl	read_next_num
	.type	read_next_num, @function
read_next_num:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	mov	BYTE PTR -17[rbp], 0
	lea	rcx, -18[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, -1
	jmp	.L10
.L9:
	movzx	eax, BYTE PTR -17[rbp]
	xor	eax, 1
	test	al, al
	je	.L5
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 32
	je	.L4
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 10
	je	.L4
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 9
	jne	.L7
	jmp	.L4
.L5:
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 32
	je	.L8
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 10
	je	.L8
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 9
	je	.L8
.L7:
	mov	BYTE PTR -17[rbp], 1
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	movzx	eax, BYTE PTR -18[rbp]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -16[rbp], eax
	lea	rcx, -18[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
.L4:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L9
.L8:
	mov	eax, DWORD PTR -16[rbp]
.L10:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_next_num, .-read_next_num
	.globl	toArray
	.type	toArray, @function
toArray:
.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
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -20[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	log10@PLT
	movsd	xmm1, QWORD PTR .LC0[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	mov	DWORD PTR -16[rbp], eax
	jmp	.L13
.L14:
	mov	edx, DWORD PTR -20[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, ecx
	lea	ecx, 48[rax]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	sub	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -20[rbp], eax
.L13:
	cmp	DWORD PTR -16[rbp], 0
	jns	.L14
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	toArray, .-toArray
	.section	.rodata
.LC1:
	.string	"f1.txt"
.LC2:
	.string	"f2.txt"
.LC3:
	.string	"f3.txt"
.LC4:
	.string	" "
.LC5:
	.string	"\n"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	esi, 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	edx, 511
	mov	esi, 1601
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -44[rbp], 1
	mov	DWORD PTR -40[rbp], 1
	lea	rdx, -44[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	read_next_num
	mov	DWORD PTR -36[rbp], eax
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	read_next_num
	mov	DWORD PTR -32[rbp], eax
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jge	.L18
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	toArray
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	lea	rdx, -44[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	read_next_num
	mov	DWORD PTR -36[rbp], eax
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	toArray
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	read_next_num
	mov	DWORD PTR -32[rbp], eax
.L17:
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	je	.L19
	mov	eax, DWORD PTR -40[rbp]
	test	eax, eax
	je	.L19
	cmp	DWORD PTR -36[rbp], -1
	je	.L19
	cmp	DWORD PTR -32[rbp], -1
	jne	.L20
.L19:
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	jne	.L21
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	toArray
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	read_next_num
	mov	DWORD PTR -32[rbp], eax
.L22:
	mov	eax, DWORD PTR -40[rbp]
	test	eax, eax
	jne	.L23
	jmp	.L24
.L21:
	mov	eax, DWORD PTR -40[rbp]
	test	eax, eax
	jne	.L24
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	toArray
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	lea	rdx, -44[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	read_next_num
	mov	DWORD PTR -36[rbp], eax
.L25:
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	jne	.L26
.L24:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.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	"730366.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_next_num
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_next_num, %function
read_next_num:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-17]
	sub	r3, fp, #18
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
	mvn	r3, #0
	b	.L10
.L9:
	ldrb	r3, [fp, #-17]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L5
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L4
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L4
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L7
	b	.L4
.L5:
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L8
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L8
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L8
.L7:
	mov	r3, #1
	strb	r3, [fp, #-17]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-16]
	sub	r3, fp, #18
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L9
.L8:
	ldr	r3, [fp, #-16]
.L10:
	ldr	r2, .L12
	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}
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	read_next_num, .-read_next_num
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.align	2
	.global	toArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	toArray, %function
toArray:
	@ 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	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log10
	mov	r2, #0
	ldr	r3, .L18
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L15
.L16:
	ldr	r1, [fp, #-24]
	ldr	r3, .L18+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r2, r2, #255
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r2, .L18+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-24]
.L15:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L16
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	1072693248
	.word	1717986919
	.size	toArray, .-toArray
	.section	.rodata
	.align	2
.LC1:
	.ascii	"f1.txt\000"
	.align	2
.LC2:
	.ascii	"f2.txt\000"
	.align	2
.LC3:
	.ascii	"f3.txt\000"
	.align	2
.LC4:
	.ascii	" \000"
	.align	2
.LC5:
	.ascii	"\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, .L33+4
	bl	open
	str	r0, [fp, #-24]
	mov	r1, #0
	ldr	r0, .L33+8
	bl	open
	str	r0, [fp, #-20]
	ldr	r2, .L33+12
	ldr	r1, .L33+16
	ldr	r0, .L33+20
	bl	open
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-36]
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read_next_num
	str	r0, [fp, #-32]
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	read_next_num
	str	r0, [fp, #-28]
	b	.L21
.L24:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L22
	ldr	r0, [fp, #-32]
	bl	toArray
	str	r0, [fp, #-12]
	mov	r2, #4
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, #1
	ldr	r1, .L33+24
	ldr	r0, [fp, #-16]
	bl	write
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read_next_num
	str	r0, [fp, #-32]
	b	.L21
.L22:
	ldr	r0, [fp, #-28]
	bl	toArray
	str	r0, [fp, #-12]
	mov	r2, #4
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, #1
	ldr	r1, .L33+24
	ldr	r0, [fp, #-16]
	bl	write
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	read_next_num
	str	r0, [fp, #-28]
.L21:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	beq	.L23
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L24
.L23:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L25
	b	.L26
.L27:
	ldr	r0, [fp, #-28]
	bl	toArray
	str	r0, [fp, #-12]
	mov	r2, #4
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, #1
	ldr	r1, .L33+24
	ldr	r0, [fp, #-16]
	bl	write
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	read_next_num
	str	r0, [fp, #-28]
.L26:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L27
	b	.L28
.L25:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L28
	b	.L29
.L30:
	ldr	r0, [fp, #-32]
	bl	toArray
	str	r0, [fp, #-12]
	mov	r2, #4
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, #1
	ldr	r1, .L33+24
	ldr	r0, [fp, #-16]
	bl	write
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read_next_num
	str	r0, [fp, #-32]
.L29:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L30
.L28:
	mov	r2, #1
	ldr	r1, .L33+28
	ldr	r0, [fp, #-16]
	bl	write
	ldr	r0, [fp, #-24]
	bl	close
	ldr	r0, [fp, #-20]
	bl	close
	ldr	r0, [fp, #-16]
	bl	close
	mov	r3, #0
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC6
	.word	.LC1
	.word	.LC2
	.word	511
	.word	1601
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
