	.file	"526660.c"
	.intel_syntax noprefix
	.text
	.globl	readAll
	.type	readAll, @function
readAll:
.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, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	jmp	.L2
.L5:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jg	.L3
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -24[rbp], rax
.L2:
	mov	rax, QWORD PTR -24[rbp]
	cmp	QWORD PTR -56[rbp], rax
	ja	.L5
	mov	rax, QWORD PTR -24[rbp]
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	readAll, .-readAll
	.section	.rodata
.LC0:
	.string	"OggS"
.LC3:
	.string	"%f\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
	sub	rsp, 1120
	mov	DWORD PTR -1108[rbp], edi
	mov	QWORD PTR -1120[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1092[rbp], -1
	mov	QWORD PTR -1080[rbp], 0
	mov	DWORD PTR -1084[rbp], 1024
	cmp	DWORD PTR -1108[rbp], 1
	jle	.L8
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -1092[rbp], eax
	jmp	.L8
.L25:
	lea	rax, -1045[rbp]
	mov	edx, 4
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L30
	lea	rax, -1072[rbp]
	mov	edx, 21
	mov	rsi, rax
	mov	edi, 0
	call	readAll
	cmp	rax, 21
	jne	.L31
	mov	DWORD PTR -1088[rbp], 0
	lea	rax, -1094[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	readAll
	cmp	rax, 1
	jne	.L32
	jmp	.L13
.L16:
	lea	rax, -1093[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	readAll
	cmp	rax, 1
	jne	.L33
	movzx	eax, BYTE PTR -1093[rbp]
	movzx	eax, al
	add	DWORD PTR -1088[rbp], eax
	movzx	eax, BYTE PTR -1094[rbp]
	sub	eax, 1
	mov	BYTE PTR -1094[rbp], al
.L13:
	movzx	eax, BYTE PTR -1094[rbp]
	test	al, al
	jne	.L16
	jmp	.L15
.L33:
	nop
.L15:
	cmp	DWORD PTR -1088[rbp], 0
	je	.L34
	mov	eax, DWORD PTR -1088[rbp]
	cmp	eax, DWORD PTR -1084[rbp]
	jbe	.L19
	mov	edx, DWORD PTR -1084[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	readAll
	mov	edx, DWORD PTR -1084[rbp]
	cmp	rax, rdx
	jne	.L35
	mov	eax, DWORD PTR -1084[rbp]
	sub	DWORD PTR -1088[rbp], eax
.L19:
	mov	edx, DWORD PTR -1088[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	readAll
	mov	edx, DWORD PTR -1088[rbp]
	cmp	rax, rdx
	jne	.L36
	cmp	DWORD PTR -1092[rbp], 0
	js	.L22
	mov	edx, DWORD PTR -1063[rbp]
	mov	eax, DWORD PTR -1092[rbp]
	cmp	edx, eax
	jne	.L37
.L22:
	mov	rax, QWORD PTR -1071[rbp]
	cmp	QWORD PTR -1080[rbp], rax
	jnb	.L8
	mov	rax, QWORD PTR -1071[rbp]
	mov	QWORD PTR -1080[rbp], rax
	jmp	.L8
.L34:
	nop
	jmp	.L8
.L37:
	nop
.L8:
	lea	rax, -1045[rbp]
	mov	edx, 5
	mov	rsi, rax
	mov	edi, 0
	call	readAll
	cmp	rax, 5
	je	.L25
	jmp	.L24
.L30:
	nop
	jmp	.L24
.L31:
	nop
	jmp	.L24
.L32:
	nop
	jmp	.L24
.L35:
	nop
	jmp	.L24
.L36:
	nop
.L24:
	mov	rax, QWORD PTR -1080[rbp]
	test	rax, rax
	js	.L26
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L27
.L26:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L27:
	movsd	xmm2, QWORD PTR .LC1[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC2[rip]
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1088909312
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.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	"526660.c"
	.text
	.align	2
	.global	readAll
	.syntax unified
	.arm
	.fpu softvfp
	.type	readAll, %function
readAll:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L5:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r1, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-24]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L3
	ldr	r3, [fp, #-8]
	b	.L4
.L3:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bhi	.L5
	ldr	r3, [fp, #-16]
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	readAll, .-readAll
	.section	.rodata
	.align	2
.LC0:
	.ascii	"OggS\000"
	.global	__aeabi_ul2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.align	2
.LC1:
	.ascii	"%f\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1096
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1088
	sub	sp, sp, #8
	str	r0, [fp, #-1096]
	str	r1, [fp, #-1100]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-1088]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1076]
	str	r3, [fp, #-1072]
	mov	r3, #1024
	str	r3, [fp, #-1080]
	ldr	r3, [fp, #-1096]
	cmp	r3, #1
	ble	.L8
	ldr	r3, [fp, #-1100]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1088]
	b	.L8
.L25:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #4
	ldr	r1, .L36+4
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #21
	mov	r1, r3
	mov	r0, #0
	bl	readAll
	mov	r3, r0
	cmp	r3, #21
	bne	.L29
	mov	r3, #0
	str	r3, [fp, #-1084]
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #14
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	readAll
	mov	r3, r0
	cmp	r3, #1
	bne	.L30
	b	.L13
.L16:
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #13
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	readAll
	mov	r3, r0
	cmp	r3, #1
	bne	.L31
	ldrb	r3, [fp, #-1089]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-1084]
	add	r3, r3, r2
	str	r3, [fp, #-1084]
	ldrb	r3, [fp, #-1090]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-1090]
.L13:
	ldrb	r3, [fp, #-1090]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	b	.L15
.L31:
	nop
.L15:
	ldr	r3, [fp, #-1084]
	cmp	r3, #0
	beq	.L32
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	cmp	r2, r3
	bls	.L19
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1080]
	mov	r1, r3
	mov	r0, #0
	bl	readAll
	mov	r2, r0
	ldr	r3, [fp, #-1080]
	cmp	r2, r3
	bne	.L33
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	sub	r3, r2, r3
	str	r3, [fp, #-1084]
.L19:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1084]
	mov	r1, r3
	mov	r0, #0
	bl	readAll
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1084]
	cmp	r3, r2
	bne	.L34
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	blt	.L22
	ldr	r3, [fp, #-1056]
	lsr	r3, r3, #8
	ldrb	r2, [fp, #-1052]	@ zero_extendqisi2
	lsl	r2, r2, #24
	orr	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-1088]
	cmp	r2, r3
	bne	.L35
.L22:
	ldr	r3, [fp, #-1064]
	lsr	r3, r3, #8
	ldrb	r2, [fp, #-1060]	@ zero_extendqisi2
	lsl	r2, r2, #24
	orr	r3, r2, r3
	mov	r0, r3
	ldr	r3, [fp, #-1060]
	lsr	r3, r3, #8
	ldrb	r2, [fp, #-1056]	@ zero_extendqisi2
	lsl	r2, r2, #24
	orr	r3, r2, r3
	mov	r1, r3
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	cmp	r3, r1
	cmpeq	r2, r0
	bcs	.L8
	ldr	r1, [fp, #-1064]
	lsr	r1, r1, #8
	ldrb	r0, [fp, #-1060]	@ zero_extendqisi2
	lsl	r0, r0, #24
	orr	r1, r0, r1
	mov	r2, r1
	ldr	r1, [fp, #-1060]
	lsr	r1, r1, #8
	ldrb	r0, [fp, #-1056]	@ zero_extendqisi2
	lsl	r0, r0, #24
	orr	r1, r0, r1
	mov	r3, r1
	str	r2, [fp, #-1076]
	str	r3, [fp, #-1072]
	b	.L8
.L32:
	nop
	b	.L8
.L35:
	nop
.L8:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #5
	mov	r1, r3
	mov	r0, #0
	bl	readAll
	mov	r3, r0
	cmp	r3, #5
	beq	.L25
	b	.L24
.L28:
	nop
	b	.L24
.L29:
	nop
	b	.L24
.L30:
	nop
	b	.L24
.L33:
	nop
	b	.L24
.L34:
	nop
.L24:
	ldr	r0, [fp, #-1076]
	ldr	r1, [fp, #-1072]
	bl	__aeabi_ul2d
	mov	r2, #0
	ldr	r3, .L36+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L36+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC2
	.word	.LC0
	.word	1088909312
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
