	.file	"extr_info.c__vorbis_unpack_books.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_vorbis_unpack_books, @function
_vorbis_unpack_books:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR [rdi]
	mov	eax, DWORD PTR OV_EFAULT[rip]
	test	rbp, rbp
	je	.L1
	mov	r12, rsi
	mov	r14, rdi
	mov	esi, 8
	mov	rdi, r12
	call	oggpack_read@PLT
	add	eax, 1
	mov	DWORD PTR 0[rbp], eax
	test	eax, eax
	jle	.L5
	mov	rax, QWORD PTR 88[rbp]
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L20
.L6:
	mov	rdi, r12
	lea	r13, [rax+rbx*4]
	call	vorbis_staticbook_unpack@PLT
	mov	DWORD PTR 0[r13], eax
	mov	rax, QWORD PTR 88[rbp]
	mov	esi, DWORD PTR [rax+rbx*4]
	test	esi, esi
	jne	.L21
.L5:
	mov	rdi, r14
	call	vorbis_info_clear@PLT
	mov	eax, DWORD PTR OV_EBADHEADER[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	esi, 6
	mov	rdi, r12
	call	oggpack_read@PLT
	test	eax, eax
	js	.L5
	lea	ebx, 1[rax]
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, 16
	mov	rdi, r12
	call	oggpack_read@PLT
	test	eax, eax
	js	.L5
	cmp	DWORD PTR VI_TIMEB[rip], eax
	jle	.L5
	add	r13d, 1
	cmp	ebx, r13d
	jne	.L7
	mov	esi, 6
	mov	rdi, r12
	call	oggpack_read@PLT
	add	eax, 1
	mov	DWORD PTR 4[rbp], eax
	test	eax, eax
	jle	.L5
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	eax, DWORD PTR VI_FLOORB[rip]
	jge	.L5
	mov	rdx, QWORD PTR _floor_P[rip]
	mov	r15, QWORD PTR 80[rbp]
	mov	rsi, r12
	mov	rdi, r14
	mov	rax, QWORD PTR [rdx+rax*8]
	add	r15, r13
	call	[QWORD PTR [rax]]
	mov	DWORD PTR [r15], eax
	mov	rax, QWORD PTR 80[rbp]
	mov	ecx, DWORD PTR [rax+r13]
	test	ecx, ecx
	je	.L5
	add	rbx, 1
	cmp	DWORD PTR 4[rbp], ebx
	jle	.L22
.L8:
	mov	r15, QWORD PTR 8[rbp]
	lea	r13, 0[0+rbx*4]
	mov	esi, 16
	mov	rdi, r12
	call	oggpack_read@PLT
	add	r15, r13
	mov	DWORD PTR [r15], eax
	mov	rax, QWORD PTR 8[rbp]
	movsx	rax, DWORD PTR [rax+rbx*4]
	test	eax, eax
	jns	.L23
	jmp	.L5
.L22:
	mov	esi, 6
	mov	rdi, r12
	call	oggpack_read@PLT
	add	eax, 1
	mov	DWORD PTR 16[rbp], eax
	test	eax, eax
	jle	.L5
	xor	ebx, ebx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	cmp	eax, DWORD PTR VI_RESB[rip]
	jge	.L5
	mov	rdx, QWORD PTR _residue_P[rip]
	mov	r15, QWORD PTR 72[rbp]
	mov	rsi, r12
	mov	rdi, r14
	mov	rax, QWORD PTR [rdx+rax*8]
	add	r15, r13
	call	[QWORD PTR [rax]]
	mov	DWORD PTR [r15], eax
	mov	rax, QWORD PTR 72[rbp]
	mov	edx, DWORD PTR [rax+r13]
	test	edx, edx
	je	.L5
	add	rbx, 1
	cmp	DWORD PTR 16[rbp], ebx
	jle	.L24
.L9:
	mov	r15, QWORD PTR 24[rbp]
	lea	r13, 0[0+rbx*4]
	mov	esi, 16
	mov	rdi, r12
	call	oggpack_read@PLT
	add	r15, r13
	mov	DWORD PTR [r15], eax
	mov	rax, QWORD PTR 24[rbp]
	movsx	rax, DWORD PTR [rax+rbx*4]
	test	eax, eax
	jns	.L25
	jmp	.L5
.L24:
	mov	esi, 6
	mov	rdi, r12
	call	oggpack_read@PLT
	add	eax, 1
	mov	DWORD PTR 32[rbp], eax
	test	eax, eax
	jle	.L5
	xor	ebx, ebx
	jmp	.L10
.L27:
	cmp	eax, DWORD PTR VI_MAPB[rip]
	jge	.L5
	mov	rdx, QWORD PTR _mapping_P[rip]
	mov	r15, QWORD PTR 64[rbp]
	mov	rsi, r12
	mov	rdi, r14
	mov	rax, QWORD PTR [rdx+rax*8]
	add	r15, r13
	call	[QWORD PTR [rax]]
	mov	DWORD PTR [r15], eax
	mov	rax, QWORD PTR 64[rbp]
	mov	eax, DWORD PTR [rax+r13]
	test	eax, eax
	je	.L5
	add	rbx, 1
	cmp	DWORD PTR 32[rbp], ebx
	jle	.L26
.L10:
	mov	r15, QWORD PTR 40[rbp]
	lea	r13, 0[0+rbx*4]
	mov	esi, 16
	mov	rdi, r12
	call	oggpack_read@PLT
	add	r15, r13
	mov	DWORD PTR [r15], eax
	mov	rax, QWORD PTR 40[rbp]
	movsx	rax, DWORD PTR [rax+rbx*4]
	test	eax, eax
	jns	.L27
	jmp	.L5
.L26:
	mov	esi, 6
	mov	rdi, r12
	call	oggpack_read@PLT
	add	eax, 1
	mov	DWORD PTR 48[rbp], eax
	test	eax, eax
	jle	.L5
	mov	rax, QWORD PTR 56[rbp]
	xor	ebx, ebx
	jmp	.L11
.L29:
	cmp	ecx, DWORD PTR 8[rdx]
	jle	.L5
	mov	edx, DWORD PTR 12[rdx]
	cmp	edx, DWORD PTR 32[rbp]
	jge	.L5
	test	edx, edx
	js	.L5
	add	rbx, 1
	cmp	DWORD PTR 48[rbp], ebx
	jle	.L28
.L11:
	mov	esi, 16
	mov	edi, 1
	lea	r13, [rax+rbx*8]
	call	_ogg_calloc@PLT
	mov	esi, 1
	mov	rdi, r12
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR 56[rbp]
	mov	r13, QWORD PTR [rax+rbx*8]
	call	oggpack_read@PLT
	mov	esi, 16
	mov	rdi, r12
	mov	DWORD PTR 0[r13], eax
	mov	rax, QWORD PTR 56[rbp]
	mov	r13, QWORD PTR [rax+rbx*8]
	call	oggpack_read@PLT
	mov	esi, 16
	mov	rdi, r12
	mov	DWORD PTR 4[r13], eax
	mov	rax, QWORD PTR 56[rbp]
	mov	r13, QWORD PTR [rax+rbx*8]
	call	oggpack_read@PLT
	mov	esi, 8
	mov	rdi, r12
	mov	DWORD PTR 8[r13], eax
	mov	rax, QWORD PTR 56[rbp]
	mov	r13, QWORD PTR [rax+rbx*8]
	call	oggpack_read@PLT
	mov	ecx, DWORD PTR VI_WINDOWB[rip]
	mov	DWORD PTR 12[r13], eax
	mov	rax, QWORD PTR 56[rbp]
	mov	rdx, QWORD PTR [rax+rbx*8]
	cmp	DWORD PTR 4[rdx], ecx
	jl	.L29
	jmp	.L5
.L28:
	mov	esi, 1
	mov	rdi, r12
	call	oggpack_read@PLT
	sub	eax, 1
	jne	.L5
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	_vorbis_unpack_books, .-_vorbis_unpack_books
	.comm	_residue_P,8,8
	.comm	_mapping_P,8,8
	.comm	_floor_P,8,8
	.comm	VI_WINDOWB,4,4
	.comm	VI_TIMEB,4,4
	.comm	VI_RESB,4,4
	.comm	VI_MAPB,4,4
	.comm	VI_FLOORB,4,4
	.comm	OV_EFAULT,4,4
	.comm	OV_EBADHEADER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_info.c__vorbis_unpack_books.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_vorbis_unpack_books, %function
_vorbis_unpack_books:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r0]
	cmp	r5, #0
	beq	.L32
	mov	r7, r1
	mov	r8, r0
	mov	r1, #8
	mov	r0, r7
	bl	oggpack_read
	add	r0, r0, #1
	cmp	r0, #0
	str	r0, [r5]
	ble	.L5
	mov	r4, #0
	ldr	r6, [r5, #48]
	b	.L6
.L34:
	ldr	r3, [r5]
	cmp	r3, r4
	ble	.L33
.L6:
	mov	r0, r7
	bl	vorbis_staticbook_unpack
	str	r0, [r6, r4, lsl #2]
	ldr	r6, [r5, #48]
	ldr	r3, [r6, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, #0
	bne	.L34
.L5:
	mov	r0, r8
	bl	vorbis_info_clear
	ldr	r3, .L43
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L32:
	ldr	r3, .L43+4
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	mov	r1, #6
	mov	r0, r7
	bl	oggpack_read
	cmp	r0, #0
	blt	.L5
	mov	r4, #0
	ldr	r9, .L43+8
	add	r6, r0, #1
.L7:
	mov	r1, #16
	mov	r0, r7
	bl	oggpack_read
	cmp	r0, #0
	add	r4, r4, #1
	blt	.L5
	ldr	r3, [r9]
	cmp	r3, r0
	ble	.L5
	cmp	r4, r6
	bne	.L7
	mov	r1, #6
	mov	r0, r7
	bl	oggpack_read
	add	r3, r0, #1
	cmp	r3, #0
	str	r3, [r5, #4]
	ble	.L5
	mov	r4, #0
	ldr	r9, .L43+12
	ldr	r10, .L43+16
	b	.L8
.L36:
	ldr	r2, [r9]
	cmp	r3, r2
	bge	.L5
	ldr	r2, [r10]
	mov	r1, r7
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r8
	ldr	r3, [r3]
	ldr	fp, [r5, #44]
	blx	r3
	ldr	r3, [r5, #44]
	str	r0, [fp, r6]
	ldr	r3, [r3, r6]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r5, #4]
	cmp	r3, r4
	ble	.L35
.L8:
	mov	r1, #16
	mov	r0, r7
	ldr	r6, [r5, #8]
	bl	oggpack_read
	ldr	r3, [r5, #8]
	str	r0, [r6, r4, lsl #2]
	ldr	r3, [r3, r4, lsl #2]
	lsl	r6, r4, #2
	cmp	r3, #0
	add	r4, r4, #1
	bge	.L36
	b	.L5
.L35:
	mov	r1, #6
	mov	r0, r7
	bl	oggpack_read
	add	r3, r0, #1
	cmp	r3, #0
	str	r3, [r5, #12]
	ble	.L5
	mov	r4, #0
	ldr	r10, .L43+20
	ldr	r9, .L43+24
	b	.L9
.L38:
	ldr	r2, [r10]
	cmp	r3, r2
	bge	.L5
	ldr	r2, [r9]
	mov	r1, r7
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r8
	ldr	r3, [r3]
	ldr	fp, [r5, #40]
	blx	r3
	ldr	r3, [r5, #40]
	str	r0, [fp, r6]
	ldr	r3, [r3, r6]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r5, #12]
	cmp	r3, r4
	ble	.L37
.L9:
	mov	r1, #16
	mov	r0, r7
	ldr	r6, [r5, #16]
	bl	oggpack_read
	ldr	r3, [r5, #16]
	str	r0, [r6, r4, lsl #2]
	ldr	r3, [r3, r4, lsl #2]
	lsl	r6, r4, #2
	cmp	r3, #0
	add	r4, r4, #1
	bge	.L38
	b	.L5
.L37:
	mov	r1, #6
	mov	r0, r7
	bl	oggpack_read
	add	r3, r0, #1
	cmp	r3, #0
	str	r3, [r5, #20]
	ble	.L5
	mov	r4, #0
	ldr	r10, .L43+28
	ldr	r9, .L43+32
	b	.L10
.L40:
	ldr	r2, [r10]
	cmp	r3, r2
	bge	.L5
	ldr	r2, [r9]
	mov	r1, r7
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r8
	ldr	r3, [r3]
	ldr	fp, [r5, #36]
	blx	r3
	ldr	r3, [r5, #36]
	str	r0, [fp, r6]
	ldr	r3, [r3, r6]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r5, #20]
	cmp	r3, r4
	ble	.L39
.L10:
	mov	r1, #16
	mov	r0, r7
	ldr	r6, [r5, #24]
	bl	oggpack_read
	ldr	r3, [r5, #24]
	str	r0, [r6, r4, lsl #2]
	ldr	r3, [r3, r4, lsl #2]
	lsl	r6, r4, #2
	cmp	r3, #0
	add	r4, r4, #1
	bge	.L40
	b	.L5
.L39:
	mov	r1, #6
	mov	r0, r7
	bl	oggpack_read
	add	r3, r0, #1
	cmp	r3, #0
	str	r3, [r5, #28]
	ble	.L5
	mov	r6, #0
	ldr	r9, [r5, #32]
	ldr	r10, .L43+36
	b	.L11
.L42:
	ldr	r3, [r5, #28]
	cmp	r3, r6
	ble	.L41
.L11:
	mov	r1, #16
	mov	r0, #1
	bl	_ogg_calloc
	ldr	r3, [r5, #32]
	mov	r1, #1
	str	r0, [r9, r6, lsl #2]
	mov	r0, r7
	ldr	r4, [r3, r6, lsl #2]
	bl	oggpack_read
	ldr	r3, [r5, #32]
	mov	r1, #16
	str	r0, [r4]
	mov	r0, r7
	ldr	r4, [r3, r6, lsl #2]
	bl	oggpack_read
	ldr	r3, [r5, #32]
	mov	r1, #16
	str	r0, [r4, #4]
	mov	r0, r7
	ldr	r4, [r3, r6, lsl #2]
	bl	oggpack_read
	ldr	r3, [r5, #32]
	mov	r1, #8
	str	r0, [r4, #8]
	mov	r0, r7
	ldr	r4, [r3, r6, lsl #2]
	bl	oggpack_read
	ldr	r9, [r5, #32]
	ldr	r2, [r10]
	ldr	r3, [r9, r6, lsl #2]
	add	r6, r6, #1
	ldr	r1, [r3, #4]
	str	r0, [r4, #12]
	cmp	r1, r2
	bge	.L5
	ldr	r1, [r3, #8]
	cmp	r2, r1
	ble	.L5
	ldr	r4, [r3, #12]
	ldr	r3, [r5, #20]
	lsr	r0, r4, #31
	cmp	r4, r3
	movlt	r4, r0
	orrge	r4, r0, #1
	cmp	r4, #0
	beq	.L42
	b	.L5
.L41:
	mov	r0, r7
	mov	r1, #1
	bl	oggpack_read
	cmp	r0, #1
	bne	.L5
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L44:
	.align	2
.L43:
	.word	OV_EBADHEADER
	.word	OV_EFAULT
	.word	VI_TIMEB
	.word	VI_FLOORB
	.word	_floor_P
	.word	VI_RESB
	.word	_residue_P
	.word	VI_MAPB
	.word	_mapping_P
	.word	VI_WINDOWB
	.size	_vorbis_unpack_books, .-_vorbis_unpack_books
	.comm	_residue_P,4,4
	.comm	_mapping_P,4,4
	.comm	_floor_P,4,4
	.comm	VI_WINDOWB,4,4
	.comm	VI_TIMEB,4,4
	.comm	VI_RESB,4,4
	.comm	VI_MAPB,4,4
	.comm	VI_FLOORB,4,4
	.comm	OV_EFAULT,4,4
	.comm	OV_EBADHEADER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
