	.file	"549310.c"
	.intel_syntax noprefix
	.text
	.type	fsize, @function
fsize:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fsize, .-fsize
	.section	.rodata
	.align 8
.LC1:
	.string	"audiomatch <testfile> <reffile>"
	.align 8
.LC2:
	.string	"WAV headers are skipped automatically."
.LC3:
	.string	"rb"
.LC4:
	.string	"Could not open input files.\n"
.LC5:
	.string	"RIFF"
.LC6:
	.string	"WAVE"
.LC7:
	.string	"data"
	.align 8
.LC11:
	.string	"presig: %d postsig:%d c:%7.4f lenerr:%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 232
	.cfi_offset 3, -24
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -212[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -184[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -176[rbp], xmm0
	mov	DWORD PTR -208[rbp], 16384
	cmp	DWORD PTR -228[rbp], 2
	jg	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L36
.L4:
	mov	rax, QWORD PTR -240[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -136[rbp]
	test	rax, rax
	jne	.L7
.L6:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L36
.L7:
	mov	DWORD PTR -220[rbp], 0
	jmp	.L8
.L16:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	rdx, QWORD PTR -144[rbp+rax*8]
	lea	rax, -128[rbp]
	mov	rcx, rdx
	mov	edx, 12
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 12
	je	.L9
	mov	eax, 1
	jmp	.L36
.L9:
	lea	rax, -128[rbp]
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L11
	lea	rax, -128[rbp]
	add	rax, 8
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	rdx, QWORD PTR -144[rbp+rax*8]
	lea	rax, -128[rbp]
	mov	rcx, rdx
	mov	edx, 8
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 8
	je	.L13
	mov	eax, 1
	jmp	.L36
.L14:
	movzx	eax, BYTE PTR -124[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -123[rbp]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	movzx	eax, BYTE PTR -122[rbp]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	movzx	eax, BYTE PTR -121[rbp]
	movzx	eax, al
	sal	eax, 24
	or	eax, edx
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	rax, QWORD PTR -144[rbp+rax*8]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	rdx, QWORD PTR -144[rbp+rax*8]
	lea	rax, -128[rbp]
	mov	rcx, rdx
	mov	edx, 8
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 8
	je	.L13
	mov	eax, 1
	jmp	.L36
.L13:
	lea	rax, -128[rbp]
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L14
	jmp	.L15
.L11:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	rax, QWORD PTR -144[rbp+rax*8]
	mov	edx, 1
	mov	rsi, -12
	mov	rdi, rax
	call	fseek@PLT
.L15:
	add	DWORD PTR -220[rbp], 1
.L8:
	cmp	DWORD PTR -220[rbp], 1
	jle	.L16
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	fsize
	mov	ebx, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	DWORD PTR -204[rbp], eax
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	fsize
	mov	ebx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	DWORD PTR -200[rbp], eax
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	add	rax, rax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	add	rax, rax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	rcx, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR -204[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -160[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rcx, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR -200[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -204[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -204[rbp], eax
	mov	eax, DWORD PTR -200[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -200[rbp], eax
	mov	DWORD PTR -220[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rcx
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	add	edx, eax
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	edx, ax
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	cwde
	imul	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -176[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -176[rbp], xmm0
	add	DWORD PTR -220[rbp], 1
.L17:
	mov	eax, DWORD PTR -220[rbp]
	cmp	eax, DWORD PTR -200[rbp]
	jl	.L18
	mov	DWORD PTR -220[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rcx
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	add	edx, eax
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	add	DWORD PTR -220[rbp], 1
.L19:
	mov	eax, DWORD PTR -220[rbp]
	cmp	eax, DWORD PTR -204[rbp]
	jl	.L20
	mov	DWORD PTR -216[rbp], 0
	jmp	.L21
.L35:
	mov	QWORD PTR -168[rbp], 0
	mov	eax, DWORD PTR -204[rbp]
	sub	eax, DWORD PTR -216[rbp]
	cmp	DWORD PTR -200[rbp], eax
	cmovle	eax, DWORD PTR -200[rbp]
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -216[rbp], 0
	jg	.L22
	mov	eax, DWORD PTR -216[rbp]
	neg	eax
	jmp	.L23
.L22:
	mov	eax, 0
.L23:
	mov	DWORD PTR -220[rbp], eax
	jmp	.L24
.L25:
	mov	edx, DWORD PTR -216[rbp]
	mov	eax, DWORD PTR -220[rbp]
	add	eax, edx
	mov	DWORD PTR -192[rbp], eax
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	edx, ax
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	cwde
	imul	eax, edx
	cdqe
	add	QWORD PTR -168[rbp], rax
	add	DWORD PTR -220[rbp], 1
.L24:
	mov	eax, DWORD PTR -220[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L25
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -168[rbp]
	movq	xmm1, QWORD PTR .LC8[rip]
	andpd	xmm0, xmm1
	movsd	xmm2, QWORD PTR -176[rbp]
	movsd	xmm1, QWORD PTR .LC9[rip]
	mulsd	xmm1, xmm2
	comisd	xmm0, xmm1
	jbe	.L26
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -208[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -216[rbp]
	movq	xmm2, QWORD PTR .LC8[rip]
	andpd	xmm2, xmm1
	movsd	xmm1, QWORD PTR .LC10[rip]
	addsd	xmm1, xmm2
	comisd	xmm0, xmm1
	jbe	.L41
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -216[rbp]
	movq	xmm1, QWORD PTR .LC8[rip]
	andpd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC10[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	jmp	.L30
.L41:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -208[rbp]
	cvttsd2si	eax, xmm0
.L30:
	mov	DWORD PTR -208[rbp], eax
.L26:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -168[rbp]
	movq	xmm1, QWORD PTR .LC8[rip]
	andpd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -184[rbp]
	movq	xmm2, QWORD PTR .LC8[rip]
	andpd	xmm1, xmm2
	comisd	xmm0, xmm1
	jbe	.L31
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -168[rbp]
	movsd	QWORD PTR -184[rbp], xmm0
	mov	eax, DWORD PTR -216[rbp]
	mov	DWORD PTR -212[rbp], eax
.L31:
	cmp	DWORD PTR -216[rbp], 0
	jns	.L33
	mov	eax, DWORD PTR -216[rbp]
	neg	eax
	jmp	.L34
.L33:
	mov	eax, DWORD PTR -216[rbp]
	not	eax
.L34:
	mov	DWORD PTR -216[rbp], eax
.L21:
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -208[rbp]
	jl	.L35
	mov	eax, DWORD PTR -204[rbp]
	sub	eax, DWORD PTR -200[rbp]
	mov	ecx, eax
	movsd	xmm0, QWORD PTR -184[rbp]
	divsd	xmm0, QWORD PTR -176[rbp]
	movq	rsi, xmm0
	mov	eax, DWORD PTR -204[rbp]
	sub	eax, DWORD PTR -200[rbp]
	sub	eax, DWORD PTR -212[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -212[rbp]
	movq	xmm0, rsi
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
.L36:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC8:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC9:
	.long	-515396076
	.long	1072567418
	.align 8
.LC10:
	.long	0
	.long	1077936128
	.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	"549310.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsize, %function
fsize:
	@ 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	ftell
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
	ldr	r0, [fp, #-24]
	bl	ftell
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	fseek
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fsize, .-fsize
	.section	.rodata
	.align	2
.LC0:
	.ascii	"audiomatch <testfile> <reffile>\000"
	.align	2
.LC1:
	.ascii	"WAV headers are skipped automatically.\000"
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.ascii	"Could not open input files.\012\000"
	.align	2
.LC4:
	.ascii	"RIFF\000"
	.align	2
.LC5:
	.ascii	"WAVE\000"
	.align	2
.LC6:
	.ascii	"data\000"
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_l2d
	.global	__aeabi_dmul
	.global	__aeabi_dcmpgt
	.global	__aeabi_d2iz
	.global	__aeabi_ddiv
	.align	2
.LC7:
	.ascii	"presig: %d postsig:%d c:%7.4f lenerr:%d\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #240
	str	r0, [fp, #-216]
	str	r1, [fp, #-220]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-200]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-164]
	str	r3, [fp, #-160]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-156]
	str	r3, [fp, #-152]
	mov	r3, #16384
	str	r3, [fp, #-196]
	ldr	r3, [fp, #-216]
	cmp	r3, #2
	bgt	.L4
	ldr	r0, .L42+4
	bl	puts
	ldr	r0, .L42+8
	bl	puts
	mov	r3, #1
	b	.L36
.L4:
	ldr	r3, [fp, #-220]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L42+12
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-220]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L42+12
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	bne	.L7
.L6:
	ldr	r3, .L42+16
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L42+20
	bl	fwrite
	mov	r3, #1
	b	.L36
.L7:
	mov	r3, #0
	str	r3, [fp, #-208]
	b	.L8
.L16:
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-112]
	sub	r0, fp, #132
	mov	r2, #12
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #12
	beq	.L9
	mov	r3, #1
	b	.L36
.L9:
	sub	r3, fp, #132
	mov	r2, #4
	ldr	r1, .L42+24
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #132
	add	r3, r3, #8
	mov	r2, #4
	ldr	r1, .L42+28
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-112]
	sub	r0, fp, #132
	mov	r2, #8
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #8
	beq	.L13
	mov	r3, #1
	b	.L36
.L14:
	ldrb	r3, [fp, #-128]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldrb	r3, [fp, #-126]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldrb	r3, [fp, #-125]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r2, r3
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-112]
	mov	r2, #1
	ldr	r1, [fp, #-168]
	mov	r0, r3
	bl	fseek
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-112]
	sub	r0, fp, #132
	mov	r2, #8
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #8
	beq	.L13
	mov	r3, #1
	b	.L36
.L13:
	sub	r3, fp, #132
	mov	r2, #4
	ldr	r1, .L42+32
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	b	.L15
.L11:
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-112]
	mov	r2, #1
	mvn	r1, #11
	mov	r0, r3
	bl	fseek
.L15:
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L8:
	ldr	r3, [fp, #-208]
	cmp	r3, #1
	ble	.L16
	ldr	r3, [fp, #-140]
	mov	r0, r3
	bl	fsize
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	ldr	r3, [fp, #-140]
	mov	r0, r3
	bl	ftell
	mov	r3, r0
	sub	r3, r4, r3
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-136]
	mov	r0, r3
	bl	fsize
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	ldr	r3, [fp, #-136]
	mov	r0, r3
	bl	ftell
	mov	r3, r0
	sub	r3, r4, r3
	str	r3, [fp, #-188]
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-180]
	ldr	r2, [fp, #-192]
	ldr	r3, [fp, #-140]
	mov	r1, #1
	ldr	r0, [fp, #-184]
	bl	fread
	ldr	r2, [fp, #-188]
	ldr	r3, [fp, #-136]
	mov	r1, #1
	ldr	r0, [fp, #-180]
	bl	fread
	ldr	r3, [fp, #-192]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-188]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-188]
	mov	r3, #0
	str	r3, [fp, #-208]
	b	.L17
.L18:
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldr	r3, [fp, #-208]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-180]
	add	r3, r3, r2
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r1, r3
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldr	r3, [fp, #-208]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-180]
	add	r2, r3, r2
	lsl	r3, r1, #16
	asr	r3, r3, #16
	strh	r3, [r2]	@ movhi
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-208]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-180]
	add	r3, r3, r2
	ldrsh	r3, [r3]
	mul	r3, r1, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #156
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-156]
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L17:
	ldr	r2, [fp, #-208]
	ldr	r3, [fp, #-188]
	cmp	r2, r3
	blt	.L18
	mov	r3, #0
	str	r3, [fp, #-208]
	b	.L19
.L20:
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-184]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldr	r3, [fp, #-208]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-184]
	add	r3, r3, r2
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r1, r3
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldr	r3, [fp, #-208]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-184]
	add	r2, r3, r2
	lsl	r3, r1, #16
	asr	r3, r3, #16
	strh	r3, [r2]	@ movhi
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L19:
	ldr	r2, [fp, #-208]
	ldr	r3, [fp, #-192]
	cmp	r2, r3
	blt	.L20
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L21
.L35:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-148]
	str	r3, [fp, #-144]
	ldr	r2, [fp, #-192]
	ldr	r3, [fp, #-204]
	sub	r3, r2, r3
	ldr	r2, [fp, #-188]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-204]
	cmp	r3, #0
	bgt	.L22
	ldr	r3, [fp, #-204]
	rsb	r3, r3, #0
	b	.L23
.L22:
	mov	r3, #0
.L23:
	str	r3, [fp, #-208]
	b	.L24
.L25:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-208]
	add	r3, r2, r3
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-172]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-184]
	add	r3, r3, r2
	ldrsh	r3, [r3]
	mul	r3, r1, r3
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #148
	ldmia	r3, {r2-r3}
	adds	r6, r2, r0
	adc	r7, r3, r1
	str	r6, [fp, #-148]
	str	r7, [fp, #-144]
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L24:
	ldr	r2, [fp, #-208]
	ldr	r3, [fp, #-176]
	cmp	r2, r3
	blt	.L25
	sub	r1, fp, #148
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-228]
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-224]
	ldr	r2, .L42+36
	ldr	r3, .L42+40
	sub	r1, fp, #156
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #228
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r0, [fp, #-196]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-204]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-236]
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-232]
	mov	r2, #0
	ldr	r3, .L42+44
	sub	r1, fp, #236
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r0, [fp, #-204]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-244]
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-240]
	mov	r2, #0
	ldr	r3, .L42+44
	sub	r1, fp, #244
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	b	.L30
.L41:
	ldr	r0, [fp, #-196]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
.L30:
	str	r3, [fp, #-196]
.L26:
	sub	r1, fp, #148
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-252]
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-248]
	ldr	r8, [fp, #-164]
	ldr	r3, [fp, #-160]
	bic	r9, r3, #-2147483648
	mov	r2, r8
	mov	r3, r9
	sub	r1, fp, #252
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	sub	r1, fp, #148
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-164]
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-204]
	str	r3, [fp, #-200]
.L31:
	ldr	r3, [fp, #-204]
	cmp	r3, #0
	bge	.L33
	ldr	r3, [fp, #-204]
	rsb	r3, r3, #0
	b	.L34
.L33:
	ldr	r3, [fp, #-204]
	mvn	r3, r3
.L34:
	str	r3, [fp, #-204]
.L21:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-196]
	cmp	r2, r3
	blt	.L35
	ldr	r2, [fp, #-192]
	ldr	r3, [fp, #-188]
	sub	r2, r2, r3
	ldr	r3, [fp, #-200]
	sub	r4, r2, r3
	sub	r3, fp, #156
	ldmia	r3, {r2-r3}
	sub	r1, fp, #164
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [fp, #-192]
	ldr	r1, [fp, #-188]
	sub	r1, r0, r1
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r4
	ldr	r1, [fp, #-200]
	ldr	r0, .L42+48
	bl	printf
	mov	r3, #0
.L36:
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	-515396076
	.word	1072567418
	.word	1077936128
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
