	.file	"24226.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"Reading file \"solver.inp\"..."
.LC2:
	.string	"r"
.LC3:
	.string	"solver.inp"
	.align 8
.LC4:
	.string	"Error: Input file \"solver.inp\" not found."
.LC5:
	.string	"%s"
.LC6:
	.string	"begin"
.LC7:
	.string	"ndims"
.LC8:
	.string	"%d"
.LC9:
	.string	"size"
.LC10:
	.string	"ip_file_type"
.LC11:
	.string	"end"
	.align 8
.LC12:
	.string	"Error: Illegal format in solver.inp. Crash and burn!"
	.align 8
.LC13:
	.string	"ndims is not 3 in solver.inp. this code is to generate 3D exact solution"
.LC14:
	.string	"Grid:\t\t\t%d x %d x %d.\n"
.LC22:
	.string	"ascii"
	.align 8
.LC23:
	.string	"Error: ascii output not implemented. Set ip_file_type to \"binary\" in solver.inp."
.LC24:
	.string	"binary"
.LC25:
	.string	"bin"
	.align 8
.LC26:
	.string	"Writing binary initial solution file initial.inp"
.LC27:
	.string	"wb"
.LC28:
	.string	"initial.inp"
	.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, 736
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -664[rbp], xmm0
	lea	rax, -576[rbp]
	mov	DWORD PTR [rax], 1768125281
	mov	WORD PTR 4[rax], 105
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -656[rbp], rax
	cmp	QWORD PTR -656[rbp], 0
	jne	.L2
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L35
.L2:
	lea	rdx, -512[rbp]
	mov	rax, QWORD PTR -656[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -512[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	jmp	.L5
.L8:
	lea	rdx, -512[rbp]
	mov	rax, QWORD PTR -656[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -512[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	lea	rdx, -716[rbp]
	mov	rax, QWORD PTR -656[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L5
.L6:
	lea	rax, -512[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	lea	rdx, -728[rbp]
	mov	rax, QWORD PTR -656[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rdx, -724[rbp]
	mov	rax, QWORD PTR -656[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rdx, -720[rbp]
	mov	rax, QWORD PTR -656[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L5
.L7:
	lea	rax, -512[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	lea	rdx, -576[rbp]
	mov	rax, QWORD PTR -656[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
.L5:
	lea	rax, -512[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	jmp	.L46
.L4:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L35
.L46:
	mov	rax, QWORD PTR -656[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -716[rbp]
	cmp	eax, 3
	je	.L10
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L35
.L10:
	mov	ecx, DWORD PTR -720[rbp]
	mov	edx, DWORD PTR -724[rbp]
	mov	eax, DWORD PTR -728[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -728[rbp]
	sub	eax, 1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC15[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -648[rbp], xmm0
	mov	eax, DWORD PTR -724[rbp]
	sub	eax, 1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC15[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -640[rbp], xmm0
	movsd	xmm0, QWORD PTR -640[rbp]
	comisd	xmm0, QWORD PTR -648[rbp]
	jbe	.L47
	movsd	xmm0, QWORD PTR -648[rbp]
	jmp	.L13
.L47:
	movsd	xmm0, QWORD PTR -640[rbp]
.L13:
	movsd	QWORD PTR -632[rbp], xmm0
	mov	eax, DWORD PTR -728[rbp]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -624[rbp], rax
	mov	eax, DWORD PTR -724[rbp]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -616[rbp], rax
	mov	eax, DWORD PTR -720[rbp]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -608[rbp], rax
	mov	edx, DWORD PTR -728[rbp]
	mov	eax, DWORD PTR -724[rbp]
	imul	edx, eax
	mov	eax, DWORD PTR -720[rbp]
	imul	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -600[rbp], rax
	mov	DWORD PTR -712[rbp], 0
	jmp	.L14
.L31:
	mov	DWORD PTR -708[rbp], 0
	jmp	.L15
.L30:
	mov	DWORD PTR -704[rbp], 0
	jmp	.L16
.L29:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -712[rbp]
	mulsd	xmm0, QWORD PTR -648[rbp]
	mov	eax, DWORD PTR -712[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -624[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR .LC16[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -708[rbp]
	mulsd	xmm0, QWORD PTR -640[rbp]
	mov	eax, DWORD PTR -708[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -616[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR .LC16[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -704[rbp]
	mov	eax, DWORD PTR -704[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -608[rbp]
	add	rax, rdx
	mulsd	xmm0, QWORD PTR -632[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -728[rbp]
	imul	eax, DWORD PTR -708[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -712[rbp]
	lea	ecx, [rdx+rax]
	mov	edx, DWORD PTR -728[rbp]
	mov	eax, DWORD PTR -724[rbp]
	imul	eax, edx
	imul	eax, DWORD PTR -704[rbp]
	add	eax, ecx
	mov	DWORD PTR -700[rbp], eax
	mov	eax, DWORD PTR -712[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -624[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	jbe	.L17
	mov	eax, DWORD PTR -708[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -616[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	jbe	.L17
	movsd	xmm0, QWORD PTR .LC18[rip]
	movsd	QWORD PTR -696[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC18[rip]
	movsd	QWORD PTR -672[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC19[rip]
	movsd	QWORD PTR -688[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC19[rip]
	movsd	QWORD PTR -680[rbp], xmm0
	jmp	.L20
.L17:
	mov	eax, DWORD PTR -712[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -624[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jb	.L21
	mov	eax, DWORD PTR -708[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -616[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	jbe	.L21
	movsd	xmm0, QWORD PTR .LC20[rip]
	movsd	QWORD PTR -696[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC21[rip]
	movsd	QWORD PTR -672[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -688[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC19[rip]
	movsd	QWORD PTR -680[rbp], xmm0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -712[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -624[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	jbe	.L24
	mov	eax, DWORD PTR -708[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -616[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jb	.L24
	movsd	xmm0, QWORD PTR .LC20[rip]
	movsd	QWORD PTR -696[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC21[rip]
	movsd	QWORD PTR -672[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC19[rip]
	movsd	QWORD PTR -688[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -680[rbp], xmm0
	jmp	.L20
.L24:
	mov	eax, DWORD PTR -712[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -624[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jb	.L20
	mov	eax, DWORD PTR -708[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -616[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jb	.L20
	movsd	xmm0, QWORD PTR .LC18[rip]
	movsd	QWORD PTR -696[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC18[rip]
	movsd	QWORD PTR -672[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -688[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -680[rbp], xmm0
.L20:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -584[rbp], xmm0
	mov	edx, DWORD PTR -700[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -600[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR -696[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	edx, DWORD PTR -700[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -600[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR -696[rbp]
	mulsd	xmm0, QWORD PTR -688[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	edx, DWORD PTR -700[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -600[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR -696[rbp]
	mulsd	xmm0, QWORD PTR -680[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	edx, DWORD PTR -700[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	cdqe
	add	rax, 3
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -600[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR -696[rbp]
	mulsd	xmm0, QWORD PTR -584[rbp]
	movsd	QWORD PTR [rax], xmm0
	movsd	xmm0, QWORD PTR -664[rbp]
	movsd	xmm1, QWORD PTR .LC15[rip]
	movapd	xmm2, xmm0
	subsd	xmm2, xmm1
	movsd	xmm0, QWORD PTR -672[rbp]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm2, QWORD PTR -696[rbp]
	movsd	xmm0, QWORD PTR .LC16[rip]
	mulsd	xmm2, xmm0
	movsd	xmm0, QWORD PTR -688[rbp]
	movapd	xmm3, xmm0
	mulsd	xmm3, xmm0
	movsd	xmm0, QWORD PTR -680[rbp]
	mulsd	xmm0, xmm0
	addsd	xmm3, xmm0
	movsd	xmm0, QWORD PTR -584[rbp]
	mulsd	xmm0, xmm0
	addsd	xmm0, xmm3
	mulsd	xmm0, xmm2
	mov	edx, DWORD PTR -700[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	cdqe
	add	rax, 4
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -600[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -704[rbp], 1
.L16:
	mov	eax, DWORD PTR -720[rbp]
	cmp	DWORD PTR -704[rbp], eax
	jl	.L29
	add	DWORD PTR -708[rbp], 1
.L15:
	mov	eax, DWORD PTR -724[rbp]
	cmp	DWORD PTR -708[rbp], eax
	jl	.L30
	add	DWORD PTR -712[rbp], 1
.L14:
	mov	eax, DWORD PTR -728[rbp]
	cmp	DWORD PTR -712[rbp], eax
	jl	.L31
	lea	rax, -576[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L32
	lea	rdi, .LC23[rip]
	call	puts@PLT
	jmp	.L33
.L32:
	lea	rax, -576[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L34
	lea	rax, -576[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
.L34:
	lea	rdi, .LC26[rip]
	call	puts@PLT
	lea	rsi, .LC27[rip]
	lea	rdi, .LC28[rip]
	call	fopen@PLT
	mov	QWORD PTR -592[rbp], rax
	mov	eax, DWORD PTR -728[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -592[rbp]
	mov	rax, QWORD PTR -624[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -724[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -592[rbp]
	mov	rax, QWORD PTR -616[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -720[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -592[rbp]
	mov	rax, QWORD PTR -608[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	edx, DWORD PTR -728[rbp]
	mov	eax, DWORD PTR -724[rbp]
	imul	edx, eax
	mov	eax, DWORD PTR -720[rbp]
	imul	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	movsx	rdx, eax
	mov	rcx, QWORD PTR -592[rbp]
	mov	rax, QWORD PTR -600[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -592[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L33:
	mov	rax, QWORD PTR -624[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -616[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -608[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -600[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L35:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	1717986918
	.long	1073112678
	.align 8
.LC15:
	.long	0
	.long	1072693248
	.align 8
.LC16:
	.long	0
	.long	1071644672
	.align 8
.LC18:
	.long	-1717986918
	.long	1072798105
	.align 8
.LC19:
	.long	742170349
	.long	1072470740
	.align 8
.LC20:
	.long	2095944040
	.long	1071658303
	.align 8
.LC21:
	.long	1717986918
	.long	1071015526
	.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	"24226.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ascii\000"
	.align	2
.LC1:
	.ascii	"Reading file \"solver.inp\"...\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"solver.inp\000"
	.align	2
.LC4:
	.ascii	"Error: Input file \"solver.inp\" not found.\000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"begin\000"
	.align	2
.LC7:
	.ascii	"ndims\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"size\000"
	.align	2
.LC10:
	.ascii	"ip_file_type\000"
	.align	2
.LC11:
	.ascii	"end\000"
	.align	2
.LC12:
	.ascii	"Error: Illegal format in solver.inp. Crash and burn"
	.ascii	"!\000"
	.align	2
.LC13:
	.ascii	"ndims is not 3 in solver.inp. this code is to gener"
	.ascii	"ate 3D exact solution\000"
	.align	2
.LC14:
	.ascii	"Grid:\011\011\011%d x %d x %d.\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dcmplt
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_dcmpge
	.global	__aeabi_dadd
	.align	2
.LC15:
	.ascii	"Error: ascii output not implemented. Set ip_file_ty"
	.ascii	"pe to \"binary\" in solver.inp.\000"
	.align	2
.LC16:
	.ascii	"binary\000"
	.align	2
.LC17:
	.ascii	"bin\000"
	.align	2
.LC18:
	.ascii	"Writing binary initial solution file initial.inp\000"
	.align	2
.LC19:
	.ascii	"wb\000"
	.align	2
.LC20:
	.ascii	"initial.inp\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 688
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #688
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r2, .L48+4
	ldr	r3, .L48+8
	str	r2, [fp, #-628]
	str	r3, [fp, #-624]
	sub	r3, fp, #584
	ldr	r2, .L48+12
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	ldr	r0, .L48+16
	bl	puts
	ldr	r1, .L48+20
	ldr	r0, .L48+24
	bl	fopen
	str	r0, [fp, #-688]
	ldr	r3, [fp, #-688]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L48+28
	bl	puts
	mov	r3, #0
	b	.L35
.L2:
	sub	r3, fp, #532
	mov	r2, r3
	ldr	r1, .L48+32
	ldr	r0, [fp, #-688]
	bl	__isoc99_fscanf
	sub	r3, fp, #532
	ldr	r1, .L48+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	b	.L5
.L8:
	sub	r3, fp, #532
	mov	r2, r3
	ldr	r1, .L48+32
	ldr	r0, [fp, #-688]
	bl	__isoc99_fscanf
	sub	r3, fp, #532
	ldr	r1, .L48+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #704
	mov	r2, r3
	ldr	r1, .L48+44
	ldr	r0, [fp, #-688]
	bl	__isoc99_fscanf
	b	.L5
.L6:
	sub	r3, fp, #532
	ldr	r1, .L48+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #716
	mov	r2, r3
	ldr	r1, .L48+44
	ldr	r0, [fp, #-688]
	bl	__isoc99_fscanf
	sub	r3, fp, #712
	mov	r2, r3
	ldr	r1, .L48+44
	ldr	r0, [fp, #-688]
	bl	__isoc99_fscanf
	sub	r3, fp, #708
	mov	r2, r3
	ldr	r1, .L48+44
	ldr	r0, [fp, #-688]
	bl	__isoc99_fscanf
	b	.L5
.L7:
	sub	r3, fp, #532
	ldr	r1, .L48+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #584
	mov	r2, r3
	ldr	r1, .L48+32
	ldr	r0, [fp, #-688]
	bl	__isoc99_fscanf
.L5:
	sub	r3, fp, #532
	ldr	r1, .L48+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	b	.L46
.L4:
	ldr	r0, .L48+60
	bl	puts
	mov	r3, #0
	b	.L35
.L46:
	ldr	r0, [fp, #-688]
	bl	fclose
	ldr	r3, [fp, #-704]
	cmp	r3, #3
	beq	.L10
	ldr	r0, .L48+64
	bl	puts
	mov	r3, #0
	b	.L35
.L10:
	ldr	r1, [fp, #-716]
	ldr	r2, [fp, #-712]
	ldr	r3, [fp, #-708]
	ldr	r0, .L48+68
	bl	printf
	ldr	r3, [fp, #-716]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L48+72
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-620]
	str	r3, [fp, #-616]
	ldr	r3, [fp, #-712]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L48+72
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-612]
	str	r3, [fp, #-608]
	sub	r3, fp, #612
	ldmia	r3, {r2-r3}
	sub	r1, fp, #620
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	sub	r3, fp, #620
	ldmia	r3, {r2-r3}
	b	.L13
.L47:
	sub	r3, fp, #612
	ldmia	r3, {r2-r3}
.L13:
	str	r2, [fp, #-604]
	str	r3, [fp, #-600]
	ldr	r3, [fp, #-716]
	mov	r1, #8
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-684]
	ldr	r3, [fp, #-712]
	mov	r1, #8
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-680]
	ldr	r3, [fp, #-708]
	mov	r1, #8
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-676]
	ldr	r3, [fp, #-716]
	ldr	r2, [fp, #-712]
	mul	r3, r2, r3
	ldr	r2, [fp, #-708]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r1, #8
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-672]
	mov	r3, #0
	str	r3, [fp, #-700]
	b	.L14
.L31:
	mov	r3, #0
	str	r3, [fp, #-696]
	b	.L15
.L30:
	mov	r3, #0
	str	r3, [fp, #-692]
	b	.L16
.L29:
	ldr	r0, [fp, #-700]
	bl	__aeabi_i2d
	sub	r3, fp, #620
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-700]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-684]
	add	r4, r2, r3
	mov	r2, #0
	ldr	r3, .L48+76
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r0, [fp, #-696]
	bl	__aeabi_i2d
	sub	r3, fp, #612
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-696]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-680]
	add	r4, r2, r3
	mov	r2, #0
	ldr	r3, .L48+76
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r0, [fp, #-692]
	bl	__aeabi_i2d
	ldr	r3, [fp, #-692]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-676]
	add	r4, r2, r3
	sub	r3, fp, #604
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-716]
	ldr	r2, [fp, #-696]
	mul	r2, r3, r2
	ldr	r3, [fp, #-700]
	add	r2, r2, r3
	ldr	r3, [fp, #-716]
	ldr	r1, [fp, #-712]
	mul	r3, r1, r3
	ldr	r1, [fp, #-692]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-664]
	ldr	r3, [fp, #-700]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-684]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-696]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-680]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r2, .L48+80
	ldr	r3, .L48+84
	str	r2, [fp, #-660]
	str	r3, [fp, #-656]
	ldr	r2, .L48+80
	ldr	r3, .L48+84
	str	r2, [fp, #-636]
	str	r3, [fp, #-632]
	ldr	r2, .L48+88
	ldr	r3, .L48+92
	str	r2, [fp, #-652]
	str	r3, [fp, #-648]
	ldr	r2, .L48+88
	ldr	r3, .L48+92
	str	r2, [fp, #-644]
	str	r3, [fp, #-640]
	b	.L20
.L17:
	ldr	r3, [fp, #-700]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-684]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-696]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-680]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r2, .L48+96
	ldr	r3, .L48+100
	str	r2, [fp, #-660]
	str	r3, [fp, #-656]
	ldr	r2, .L48+4
	ldr	r3, .L48+104
	str	r2, [fp, #-636]
	str	r3, [fp, #-632]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-652]
	str	r3, [fp, #-648]
	ldr	r2, .L48+88
	ldr	r3, .L48+92
	str	r2, [fp, #-644]
	str	r3, [fp, #-640]
	b	.L20
.L21:
	ldr	r3, [fp, #-700]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-684]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-696]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-680]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r2, .L48+96
	ldr	r3, .L48+100
	str	r2, [fp, #-660]
	str	r3, [fp, #-656]
	ldr	r2, .L48+4
	ldr	r3, .L48+104
	str	r2, [fp, #-636]
	str	r3, [fp, #-632]
	ldr	r2, .L48+88
	ldr	r3, .L48+92
	str	r2, [fp, #-652]
	str	r3, [fp, #-648]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-644]
	str	r3, [fp, #-640]
	b	.L20
.L24:
	ldr	r3, [fp, #-700]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-684]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-696]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-680]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r2, .L48+80
	ldr	r3, .L48+84
	str	r2, [fp, #-660]
	str	r3, [fp, #-656]
	ldr	r2, .L48+80
	ldr	r3, .L48+84
	str	r2, [fp, #-636]
	str	r3, [fp, #-632]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-652]
	str	r3, [fp, #-648]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-644]
	str	r3, [fp, #-640]
.L20:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-596]
	str	r3, [fp, #-592]
	ldr	r2, [fp, #-664]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-672]
	add	r1, r3, r2
	sub	r3, fp, #660
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r2, [fp, #-664]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #8
	ldr	r2, [fp, #-672]
	add	r4, r2, r3
	sub	r3, fp, #652
	ldmia	r3, {r2-r3}
	sub	r1, fp, #660
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r2, [fp, #-664]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #16
	ldr	r2, [fp, #-672]
	add	r4, r2, r3
	sub	r3, fp, #644
	ldmia	r3, {r2-r3}
	sub	r1, fp, #660
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r2, [fp, #-664]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #24
	ldr	r2, [fp, #-672]
	add	r4, r2, r3
	sub	r3, fp, #596
	ldmia	r3, {r2-r3}
	sub	r1, fp, #660
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	mov	r2, #0
	ldr	r3, .L48+72
	sub	r1, fp, #628
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #636
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	mov	r2, #0
	ldr	r3, .L48+76
	sub	r1, fp, #660
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #652
	ldmia	r3, {r2-r3}
	sub	r1, fp, #652
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	sub	r3, fp, #644
	ldmia	r3, {r2-r3}
	sub	r1, fp, #644
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	sub	r3, fp, #596
	ldmia	r3, {r2-r3}
	sub	r1, fp, #596
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, [fp, #-664]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #32
	ldr	r2, [fp, #-672]
	add	r4, r2, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-692]
	add	r3, r3, #1
	str	r3, [fp, #-692]
.L16:
	ldr	r3, [fp, #-708]
	ldr	r2, [fp, #-692]
	cmp	r2, r3
	blt	.L29
	ldr	r3, [fp, #-696]
	add	r3, r3, #1
	str	r3, [fp, #-696]
.L15:
	ldr	r3, [fp, #-712]
	ldr	r2, [fp, #-696]
	cmp	r2, r3
	blt	.L30
	ldr	r3, [fp, #-700]
	add	r3, r3, #1
	str	r3, [fp, #-700]
.L14:
	ldr	r3, [fp, #-716]
	ldr	r2, [fp, #-700]
	cmp	r2, r3
	blt	.L31
	sub	r3, fp, #584
	ldr	r1, .L48+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r0, .L48+108
	bl	puts
	b	.L33
.L32:
	sub	r3, fp, #584
	ldr	r1, .L48+112
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	sub	r3, fp, #584
	ldr	r1, .L48+116
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
.L34:
	ldr	r0, .L48+120
	bl	puts
	ldr	r1, .L48+124
	ldr	r0, .L48+128
	bl	fopen
	str	r0, [fp, #-668]
	ldr	r3, [fp, #-716]
	mov	r2, r3
	ldr	r3, [fp, #-668]
	mov	r1, #8
	ldr	r0, [fp, #-684]
	bl	fwrite
	ldr	r3, [fp, #-712]
	mov	r2, r3
	ldr	r3, [fp, #-668]
	mov	r1, #8
	ldr	r0, [fp, #-680]
	bl	fwrite
	ldr	r3, [fp, #-708]
	mov	r2, r3
	ldr	r3, [fp, #-668]
	mov	r1, #8
	ldr	r0, [fp, #-676]
	bl	fwrite
	ldr	r3, [fp, #-716]
	ldr	r2, [fp, #-712]
	mul	r3, r2, r3
	ldr	r2, [fp, #-708]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-668]
	mov	r1, #8
	ldr	r0, [fp, #-672]
	bl	fwrite
	ldr	r0, [fp, #-668]
	bl	fclose
.L33:
	ldr	r0, [fp, #-684]
	bl	free
	ldr	r0, [fp, #-680]
	bl	free
	ldr	r0, [fp, #-676]
	bl	free
	ldr	r0, [fp, #-672]
	bl	free
	mov	r3, #0
.L35:
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC21
	.word	1717986918
	.word	1073112678
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	1072693248
	.word	1071644672
	.word	-1717986918
	.word	1072798105
	.word	742170349
	.word	1072470740
	.word	2095944040
	.word	1071658303
	.word	1071015526
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
