	.file	"678156.c"
	.intel_syntax noprefix
	.text
	.globl	calc
	.type	calc, @function
calc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, esi
	mov	DWORD PTR -12[rbp], edx
	mov	BYTE PTR -8[rbp], al
	movsx	eax, BYTE PTR -8[rbp]
	cmp	eax, 47
	je	.L2
	cmp	eax, 47
	jg	.L3
	cmp	eax, 45
	je	.L4
	cmp	eax, 45
	jg	.L3
	cmp	eax, 42
	je	.L5
	cmp	eax, 43
	jne	.L3
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	jmp	.L6
.L4:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -12[rbp]
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -12[rbp]
	jmp	.L6
.L2:
	cmp	DWORD PTR -12[rbp], 0
	je	.L3
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -12[rbp]
	jmp	.L6
.L3:
	mov	eax, 0
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calc, .-calc
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"./test1/a.txt"
	.align 8
.LC2:
	.string	"=============================="
.LC3:
	.string	"%d%c%d="
.LC4:
	.string	"fillCount = %d\n"
.LC5:
	.string	"rowIdx = %d, s = %s"
.LC6:
	.string	"%d%c%d=%d\n"
.LC7:
	.string	"rowCount = %d\n"
.LC8:
	.string	"w"
.LC9:
	.string	"%s"
	.text
	.globl	test01
	.type	test01, @function
test01:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	je	.L15
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	esi, 1
	mov	edi, 0
	call	calloc@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	DWORD PTR -148[rbp], 0
	jmp	.L9
.L11:
	lea	rax, -112[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR -120[rbp]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	mov	DWORD PTR -156[rbp], 0
	mov	BYTE PTR -157[rbp], 0
	mov	DWORD PTR -152[rbp], 0
	lea	rsi, -152[rbp]
	lea	rcx, -157[rbp]
	lea	rdx, -156[rbp]
	lea	rax, -112[rbp]
	mov	r8, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR -140[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -140[rbp], 3
	je	.L10
	jmp	.L9
.L10:
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -148[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -148[rbp], 1
	mov	edx, DWORD PTR -148[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	movsx	rdx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	edx, DWORD PTR -152[rbp]
	movzx	eax, BYTE PTR -157[rbp]
	movsx	ecx, al
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	calc
	mov	esi, eax
	mov	edi, DWORD PTR -152[rbp]
	movzx	eax, BYTE PTR -157[rbp]
	movsx	ecx, al
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	r9d, esi
	mov	r8d, edi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	QWORD PTR -128[rbp], 10
.L9:
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -148[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rsi, .LC8[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	DWORD PTR -144[rbp], 0
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	add	QWORD PTR -128[rbp], 10
	add	DWORD PTR -144[rbp], 1
.L12:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L13
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -120[rbp], 0
.L15:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test01, .-test01
	.section	.rodata
.LC10:
	.string	"a"
.LC11:
	.string	"./a.txt"
	.text
	.globl	testFputs
	.type	testFputs, @function
testFputs:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rax, -18[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -18[rbp]
	mov	DWORD PTR [rax], 6513249
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -18[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -32[rbp], 0
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	testFputs, .-testFputs
	.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
	mov	eax, 0
	call	test01
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"678156.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	calc
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc, %function
calc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	mov	r3, r1
	str	r2, [fp, #-16]
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	sub	r3, r3, #42
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L2
	.word	.L5
	.word	.L2
	.word	.L3
.L6:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	b	.L8
.L5:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	b	.L8
.L7:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	b	.L8
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L2
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	__aeabi_idiv
	mov	r3, r0
	b	.L8
.L2:
	mov	r3, #0
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	calc, .-calc
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"./test1/a.txt\000"
	.align	2
.LC2:
	.ascii	"==============================\000"
	.align	2
.LC3:
	.ascii	"%d%c%d=\000"
	.align	2
.LC4:
	.ascii	"fillCount = %d\012\000"
	.align	2
.LC5:
	.ascii	"rowIdx = %d, s = %s\000"
	.align	2
.LC6:
	.ascii	"%d%c%d=%d\012\000"
	.align	2
.LC7:
	.ascii	"rowCount = %d\012\000"
	.align	2
.LC8:
	.ascii	"w\000"
	.align	2
.LC9:
	.ascii	"%s\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test01
	.syntax unified
	.arm
	.fpu softvfp
	.type	test01, %function
test01:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #156
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r1, .L18+4
	ldr	r0, .L18+8
	bl	fopen
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L18+12
	bl	puts
	mov	r1, #1
	mov	r0, #0
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-148]
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L11
.L13:
	sub	r3, fp, #124
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #124
	ldr	r2, [fp, #-132]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, #0
	str	r3, [fp, #-156]
	mov	r3, #0
	strb	r3, [fp, #-157]
	mov	r3, #0
	str	r3, [fp, #-152]
	sub	r1, fp, #157
	sub	r2, fp, #156
	sub	r0, fp, #124
	sub	r3, fp, #152
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L18+16
	bl	__isoc99_sscanf
	str	r0, [fp, #-128]
	ldr	r1, [fp, #-128]
	ldr	r0, .L18+20
	bl	printf
	ldr	r3, [fp, #-128]
	cmp	r3, #3
	beq	.L12
	b	.L11
.L12:
	sub	r3, fp, #124
	mov	r2, r3
	ldr	r1, [fp, #-140]
	ldr	r0, .L18+24
	bl	printf
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
	ldr	r2, [fp, #-140]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-148]
	bl	realloc
	str	r0, [fp, #-148]
	ldr	r5, [fp, #-156]
	ldrb	r3, [fp, #-157]	@ zero_extendqisi2
	mov	r6, r3
	ldr	r4, [fp, #-152]
	ldr	r3, [fp, #-156]
	ldrb	r1, [fp, #-157]	@ zero_extendqisi2
	ldr	r2, [fp, #-152]
	mov	r0, r3
	bl	calc
	mov	r3, r0
	str	r3, [sp, #4]
	str	r4, [sp]
	mov	r3, r6
	mov	r2, r5
	ldr	r1, .L18+28
	ldr	r0, [fp, #-144]
	bl	sprintf
	ldr	r3, [fp, #-144]
	add	r3, r3, #10
	str	r3, [fp, #-144]
.L11:
	ldr	r0, [fp, #-132]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-132]
	bl	fclose
	ldr	r1, [fp, #-140]
	ldr	r0, .L18+32
	bl	printf
	ldr	r0, .L18+12
	bl	puts
	ldr	r1, .L18+36
	ldr	r0, .L18+8
	bl	fopen
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-148]
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L14
.L15:
	ldr	r1, [fp, #-144]
	ldr	r0, .L18+40
	bl	printf
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-144]
	bl	fputs
	ldr	r3, [fp, #-144]
	add	r3, r3, #10
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
.L14:
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-140]
	cmp	r2, r3
	blt	.L15
	ldr	r0, [fp, #-148]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-144]
	ldr	r0, [fp, #-132]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-132]
.L17:
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	test01, .-test01
	.section	.rodata
	.align	2
.LC11:
	.ascii	"a\000"
	.align	2
.LC12:
	.ascii	"./a.txt\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testFputs
	.syntax unified
	.arm
	.fpu softvfp
	.type	testFputs, %function
testFputs:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L22+4
	ldr	r0, .L22+8
	bl	fopen
	str	r0, [fp, #-24]
	sub	r3, fp, #20
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #20
	ldr	r2, .L22+12
	str	r2, [r3]
	sub	r3, fp, #20
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	fputs
	ldr	r0, [fp, #-24]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-24]
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC13
	.word	.LC11
	.word	.LC12
	.word	6513249
	.size	testFputs, .-testFputs
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	test01
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
