	.file	"403442.c"
	.intel_syntax noprefix
	.text
	.globl	HEADER_SIZE_1
	.section	.rodata
	.align 4
	.type	HEADER_SIZE_1, @object
	.size	HEADER_SIZE_1, 4
HEADER_SIZE_1:
	.long	44
	.globl	HEADER_SIZE_2
	.align 4
	.type	HEADER_SIZE_2, @object
	.size	HEADER_SIZE_2, 4
HEADER_SIZE_2:
	.long	1024
	.globl	HEADER_SIZE_3
	.align 4
	.type	HEADER_SIZE_3, @object
	.size	HEADER_SIZE_3, 4
HEADER_SIZE_3:
	.long	88
	.globl	NBITS
	.align 4
	.type	NBITS, @object
	.size	NBITS, 4
NBITS:
	.long	16
.LC0:
	.string	"Usage: peak input.wav"
.LC1:
	.string	"r"
.LC2:
	.string	"Could not open file."
.LC3:
	.string	"Could not read input."
.LC8:
	.string	"Could not read file"
.LC11:
	.string	"%f dB\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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 248
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -212[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L33
.L2:
	mov	rax, QWORD PTR -224[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L33
.L4:
	mov	DWORD PTR -180[rbp], 0
	mov	DWORD PTR -184[rbp], 0
	mov	DWORD PTR -176[rbp], 0
	mov	rax, QWORD PTR -168[rbp]
	lea	rdi, -112[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 44
	call	fread@PLT
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, 544501094
	jne	.L6
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, 1635017060
	jne	.L6
	mov	DWORD PTR -184[rbp], 1
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, 1954047330
	jne	.L8
	mov	DWORD PTR -184[rbp], 2
	jmp	.L7
.L8:
	mov	DWORD PTR -184[rbp], 3
.L7:
	movzx	eax, WORD PTR -90[rbp]
	cwde
	mov	DWORD PTR -180[rbp], eax
	movzx	eax, WORD PTR -80[rbp]
	cwde
	mov	DWORD PTR -176[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -224[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L10
	jmp	.L35
.L5:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L33
.L35:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L33
.L10:
	mov	DWORD PTR -188[rbp], 0
	cmp	DWORD PTR -184[rbp], 1
	jne	.L11
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, 44
	cdqe
	sub	rax, 1
	mov	QWORD PTR -128[rbp], rax
	mov	eax, 44
	cdqe
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	mov	eax, 44
	cdqe
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	mov	eax, 44
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L12:
	cmp	rsp, rdx
	je	.L13
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L12
.L13:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L14
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L14:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -120[rbp], rax
	mov	eax, 44
	movsx	rdx, eax
	mov	rcx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L15
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	mov	rsp, rbx
	jmp	.L33
.L15:
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR 36[rax]
	cmp	al, 100
	jne	.L16
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR 37[rax]
	cmp	al, 97
	jne	.L16
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR 38[rax]
	cmp	al, 116
	jne	.L16
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR 39[rax]
	cmp	al, 97
	jne	.L16
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR 40[rax]
	movzx	eax, al
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR 41[rax]
	movzx	eax, al
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR 42[rax]
	movzx	eax, al
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC5[rip]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR 43[rax]
	movzx	eax, al
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	DWORD PTR -188[rbp], eax
.L16:
	mov	rsp, rbx
	jmp	.L17
.L11:
	cmp	DWORD PTR -184[rbp], 2
	jne	.L18
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, 1024
	cdqe
	sub	rax, 1
	mov	QWORD PTR -144[rbp], rax
	mov	eax, 1024
	cdqe
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	mov	eax, 1024
	cdqe
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], 0
	mov	eax, 1024
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L19:
	cmp	rsp, rdx
	je	.L20
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L19
.L20:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L21
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L21:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -136[rbp], rax
	mov	eax, 1024
	movsx	rdx, eax
	mov	rcx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L22
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	mov	rsp, rbx
	jmp	.L33
.L22:
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR 1016[rax]
	cmp	al, 100
	jne	.L23
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR 1017[rax]
	cmp	al, 97
	jne	.L23
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR 1018[rax]
	cmp	al, 116
	jne	.L23
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR 1019[rax]
	cmp	al, 97
	jne	.L23
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR 1020[rax]
	movzx	eax, al
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR 1021[rax]
	movzx	eax, al
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR 1022[rax]
	movzx	eax, al
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC5[rip]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR 1023[rax]
	movzx	eax, al
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	DWORD PTR -188[rbp], eax
.L23:
	mov	rsp, rbx
	jmp	.L17
.L18:
	cmp	DWORD PTR -184[rbp], 3
	jne	.L17
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, 88
	cdqe
	sub	rax, 1
	mov	QWORD PTR -160[rbp], rax
	mov	eax, 88
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, 88
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, 88
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L24:
	cmp	rsp, rdx
	je	.L25
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L24
.L25:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L26
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L26:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -152[rbp], rax
	mov	eax, 88
	movsx	rdx, eax
	mov	rcx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L27
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	mov	rsp, rbx
	jmp	.L33
.L27:
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, BYTE PTR 80[rax]
	cmp	al, 100
	jne	.L28
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, BYTE PTR 81[rax]
	cmp	al, 97
	jne	.L28
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, BYTE PTR 82[rax]
	cmp	al, 116
	jne	.L28
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, BYTE PTR 83[rax]
	cmp	al, 97
	jne	.L28
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, BYTE PTR 84[rax]
	movzx	eax, al
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, BYTE PTR 85[rax]
	movzx	eax, al
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, BYTE PTR 86[rax]
	movzx	eax, al
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC5[rip]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, BYTE PTR 87[rax]
	movzx	eax, al
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	DWORD PTR -188[rbp], eax
.L28:
	mov	rsp, rbx
.L17:
	mov	WORD PTR -198[rbp], 0
	mov	WORD PTR -200[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -192[rbp], xmm0
	mov	eax, DWORD PTR -188[rbp]
	shr	eax
	mov	DWORD PTR -172[rbp], eax
	mov	DWORD PTR -196[rbp], 0
	jmp	.L29
.L32:
	mov	rdx, QWORD PTR -168[rbp]
	lea	rax, -200[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L30
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L33
.L30:
	movzx	eax, WORD PTR -200[rbp]
	mov	edx, eax
	sar	dx, 15
	xor	eax, edx
	sub	eax, edx
	movzx	edx, ax
	movsx	eax, WORD PTR -198[rbp]
	cmp	edx, eax
	jle	.L31
	movzx	eax, WORD PTR -200[rbp]
	mov	edx, eax
	sar	dx, 15
	xor	eax, edx
	sub	eax, edx
	mov	WORD PTR -198[rbp], ax
.L31:
	movsx	eax, WORD PTR -198[rbp]
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, eax
	movq	rax, xmm3
	movq	xmm0, rax
	call	log2@PLT
	movsd	xmm1, QWORD PTR .LC9[rip]
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -192[rbp], xmm0
	mov	eax, 16
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, eax
	movss	xmm0, DWORD PTR -192[rbp]
	movaps	xmm1, xmm0
	subss	xmm1, xmm2
	movss	xmm0, DWORD PTR .LC10[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR -192[rbp], xmm0
	add	DWORD PTR -196[rbp], 1
.L29:
	mov	eax, DWORD PTR -196[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L32
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -192[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
.L33:
	mov	rsi, QWORD PTR -56[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1081081856
	.align 8
.LC5:
	.long	0
	.long	1089470464
	.align 8
.LC6:
	.long	0
	.long	1097859072
	.align 8
.LC9:
	.long	0
	.long	1072693248
	.align 4
.LC10:
	.long	1086324736
	.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	"403442.c"
	.text
	.global	HEADER_SIZE_1
	.section	.rodata
	.align	2
	.type	HEADER_SIZE_1, %object
	.size	HEADER_SIZE_1, 4
HEADER_SIZE_1:
	.word	44
	.global	HEADER_SIZE_2
	.align	2
	.type	HEADER_SIZE_2, %object
	.size	HEADER_SIZE_2, 4
HEADER_SIZE_2:
	.word	1024
	.global	HEADER_SIZE_3
	.align	2
	.type	HEADER_SIZE_3, %object
	.size	HEADER_SIZE_3, 4
HEADER_SIZE_3:
	.word	88
	.global	NBITS
	.align	2
	.type	NBITS, %object
	.size	NBITS, 4
NBITS:
	.word	16
	.align	2
.LC0:
	.ascii	"Usage: peak input.wav\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Could not open file.\000"
	.align	2
.LC3:
	.ascii	"Could not read input.\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2uiz
	.align	2
.LC4:
	.ascii	"Could not read file\000"
	.global	__aeabi_d2f
	.global	__aeabi_i2f
	.global	__aeabi_fsub
	.global	__aeabi_fmul
	.global	__aeabi_f2d
	.align	2
.LC5:
	.ascii	"%f dB\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 = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #124
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [fp, #-136]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L27+4
	bl	puts
	mov	r3, #1
	b	.L24
.L2:
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L27+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L27+12
	bl	puts
	mov	r3, #1
	b	.L24
.L4:
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-100]
	sub	r0, fp, #68
	ldr	r3, [fp, #-108]
	mov	r2, #1
	mov	r1, #44
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-56]
	ldr	r2, .L27+16
	cmp	r3, r2
	bne	.L6
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+20
	cmp	r3, r2
	bne	.L6
	mov	r3, #1
	str	r3, [fp, #-112]
	b	.L7
.L6:
	ldr	r3, [fp, #-56]
	ldr	r2, .L27+24
	cmp	r3, r2
	bne	.L8
	mov	r3, #2
	str	r3, [fp, #-112]
	b	.L7
.L8:
	mov	r3, #3
	str	r3, [fp, #-112]
.L7:
	ldrsh	r3, [fp, #-46]
	str	r3, [fp, #-104]
	ldrsh	r3, [fp, #-36]
	str	r3, [fp, #-100]
	ldr	r0, [fp, #-108]
	bl	fclose
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L27+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L10
	b	.L26
.L5:
	ldr	r0, .L27+28
	bl	puts
	mov	r3, #1
	b	.L24
.L26:
	ldr	r0, .L27+12
	bl	puts
	mov	r3, #1
	b	.L24
.L10:
	mov	r3, #0
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-112]
	cmp	r3, #1
	bne	.L11
	mov	r3, sp
	mov	r6, r3
	mov	r3, #44
	sub	r3, r3, #1
	str	r3, [fp, #-80]
	mov	r3, #44
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #44
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #44
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-76]
	mov	r3, #44
	mov	r2, r3
	ldr	r3, [fp, #-108]
	mov	r1, #1
	ldr	r0, [fp, #-76]
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L27+28
	bl	puts
	mov	r3, #1
	mov	sp, r6
	b	.L24
.L12:
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3, #36]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L13
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3, #37]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L13
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3, #38]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L13
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3, #39]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L13
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3, #40]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3, #41]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L27+32
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3, #42]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L27+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3, #43]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L27+40
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-116]
.L13:
	mov	sp, r6
	b	.L14
.L11:
	ldr	r3, [fp, #-112]
	cmp	r3, #2
	bne	.L15
	mov	r3, sp
	mov	r6, r3
	mov	r3, #1024
	sub	r3, r3, #1
	str	r3, [fp, #-88]
	mov	r3, #1024
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #1024
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #1024
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-84]
	mov	r3, #1024
	mov	r2, r3
	ldr	r3, [fp, #-108]
	mov	r1, #1
	ldr	r0, [fp, #-84]
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L27+28
	bl	puts
	mov	r3, #1
	mov	sp, r6
	b	.L24
.L16:
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3, #1016]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L17
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3, #1017]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L17
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3, #1018]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L17
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3, #1019]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L17
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3, #1020]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3, #1021]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L27+32
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3, #1022]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L27+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3, #1023]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L27+40
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-116]
.L17:
	mov	sp, r6
	b	.L14
.L15:
	ldr	r3, [fp, #-112]
	cmp	r3, #3
	bne	.L14
	mov	r3, sp
	mov	r6, r3
	mov	r3, #88
	sub	r3, r3, #1
	str	r3, [fp, #-96]
	mov	r3, #88
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #88
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #88
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-92]
	mov	r3, #88
	mov	r2, r3
	ldr	r3, [fp, #-108]
	mov	r1, #1
	ldr	r0, [fp, #-92]
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L27+28
	bl	puts
	mov	r3, #1
	mov	sp, r6
	b	.L24
.L18:
	ldr	r3, [fp, #-92]
	ldrb	r3, [r3, #80]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L19
	ldr	r3, [fp, #-92]
	ldrb	r3, [r3, #81]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L19
	ldr	r3, [fp, #-92]
	ldrb	r3, [r3, #82]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L19
	ldr	r3, [fp, #-92]
	ldrb	r3, [r3, #83]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L19
	ldr	r3, [fp, #-92]
	ldrb	r3, [r3, #84]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-92]
	ldrb	r3, [r3, #85]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L27+32
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-92]
	ldrb	r3, [r3, #86]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L27+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-92]
	ldrb	r3, [r3, #87]	@ zero_extendqisi2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L27+40
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-116]
.L19:
	mov	sp, r6
.L14:
	mov	r3, #0
	strh	r3, [fp, #-126]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-128]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-120]	@ float
	ldr	r3, [fp, #-116]
	lsr	r3, r3, #1
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L20
.L23:
	sub	r0, fp, #128
	ldr	r3, [fp, #-108]
	mov	r2, #1
	mov	r1, #2
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L27+44
	bl	puts
	mov	r3, #1
	b	.L24
.L21:
	ldrsh	r3, [fp, #-128]
	cmp	r3, #0
	rsblt	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldrsh	r3, [fp, #-126]
	cmp	r2, r3
	ble	.L22
	ldrsh	r3, [fp, #-128]
	cmp	r3, #0
	rsblt	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-126]	@ movhi
.L22:
	ldrsh	r3, [fp, #-126]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log2
	mov	r2, #0
	ldr	r3, .L27+48
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-120]	@ float
	mov	r3, #16
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-120]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	ldr	r1, .L27+52
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-120]	@ float
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L20:
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L23
	ldr	r0, [fp, #-108]
	bl	fclose
	ldr	r0, [fp, #-120]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L27+56
	bl	printf
	mov	r3, #0
.L24:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	544501094
	.word	1635017060
	.word	1954047330
	.word	.LC3
	.word	1081081856
	.word	1089470464
	.word	1097859072
	.word	.LC4
	.word	1072693248
	.word	1086324736
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
