	.file	"extr_vorbisfile.c__fetch_and_process_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_fetch_and_process_packet, @function
_fetch_and_process_packet:
.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
	lea	r14, 84[rdi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, 48[rdi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 4[rsp], edx
	lea	r12, 24[rsp]
	mov	DWORD PTR 8[rsp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	cmp	QWORD PTR STREAMSET[rip], rax
	jle	.L22
	cmp	QWORD PTR 64[rbx], 0
	jne	.L47
	mov	edx, DWORD PTR 56[rbx]
	mov	esi, DWORD PTR 60[rbx]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	r9, r12
	mov	rdi, rbx
	call	_fetch_headers@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 48[rbx]
	add	DWORD PTR 16[rbx], 1
	mov	QWORD PTR 24[rbx], rax
.L22:
	mov	rsi, r12
	mov	rdi, r13
	call	ogg_stream_pagein@PLT
.L2:
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR STREAMSET[rip]
	je	.L48
	cmp	QWORD PTR INITSET[rip], rax
	je	.L49
.L5:
	cmp	rax, QWORD PTR OPENED[rip]
	jl	.L17
.L19:
	mov	edx, DWORD PTR 4[rsp]
	test	edx, edx
	je	.L36
	mov	edx, -1
	mov	rsi, r12
	mov	rdi, rbx
	call	_get_next_page@PLT
	test	eax, eax
	js	.L45
	mov	eax, DWORD PTR 24[rsp]
	sal	eax, 3
	add	DWORD PTR 12[rbx], eax
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR INITSET[rip]
	jne	.L17
	mov	r15, QWORD PTR 24[rbx]
	mov	rdi, r12
	call	ogg_page_serialno@PLT
	cmp	r15, rax
	je	.L44
	mov	rdi, r12
	call	ogg_page_bos@PLT
	test	rax, rax
	je	.L19
	mov	eax, DWORD PTR 8[rsp]
	test	eax, eax
	je	.L45
	mov	rdi, rbx
	call	_decode_clear@PLT
	cmp	QWORD PTR 64[rbx], 0
	je	.L21
.L44:
	mov	rax, QWORD PTR [rbx]
.L15:
	cmp	QWORD PTR INITSET[rip], rax
	je	.L22
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rdi, rbx
	call	_make_decode_ready@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR INITSET[rip], rax
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L49:
	mov	edi, DWORD PTR 60[rbx]
	call	vorbis_synthesis_halfrate_p@PLT
	test	rbp, rbp
	mov	DWORD PTR 12[rsp], eax
	lea	rax, 28[rsp]
	cmove	rbp, rax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L7:
	test	eax, eax
	jle	.L9
	mov	rsi, rbp
	mov	rdi, r14
	mov	r15d, DWORD PTR 0[rbp]
	call	vorbis_synthesis@PLT
	test	eax, eax
	je	.L50
	lea	rbp, 28[rsp]
.L14:
	mov	rsi, rbp
	mov	rdi, r13
	call	ogg_stream_packetout@PLT
	cmp	eax, -1
	jne	.L7
	mov	eax, DWORD PTR OV_HOLE[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L51
	add	rsp, 56
	.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
.L47:
	.cfi_restore_state
	mov	rdi, r12
	call	ogg_page_serialno@PLT
	mov	r9d, DWORD PTR 32[rbx]
	mov	rsi, rax
	test	r9d, r9d
	jle	.L37
	mov	rax, QWORD PTR 40[rbx]
	lea	r8d, -1[r9]
	xor	edx, edx
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L52:
	lea	ecx, 1[rdx]
	lea	rdi, 1[rdx]
	cmp	rdx, r8
	je	.L25
	mov	rdx, rdi
.L27:
	mov	ecx, edx
	cmp	QWORD PTR [rax+rdx*8], rsi
	jne	.L52
.L26:
	mov	QWORD PTR 24[rbx], rsi
	mov	rdi, r13
	mov	DWORD PTR 16[rbx], ecx
	call	ogg_stream_reset_serialno@PLT
	mov	rax, QWORD PTR STREAMSET[rip]
	mov	QWORD PTR [rbx], rax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR 60[rbx]
	call	vorbis_info_clear@PLT
	mov	edi, DWORD PTR 56[rbx]
	call	vorbis_comment_clear@PLT
	jmp	.L44
.L37:
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L25:
	cmp	r9d, ecx
	je	.L2
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR [rbx]
	xor	ebp, ebp
	cmp	rax, QWORD PTR OPENED[rip]
	jl	.L15
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L50:
	lea	r12, 80[rbx]
	xor	esi, esi
	mov	DWORD PTR 4[rsp], eax
	mov	rdi, r12
	call	vorbis_synthesis_pcmout@PLT
	mov	edx, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR OV_EFAULT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	mov	eax, DWORD PTR OV_EOF[rip]
	jmp	.L1
.L11:
	mov	rsi, r14
	mov	rdi, r12
	mov	DWORD PTR 4[rsp], edx
	call	vorbis_synthesis_blockin@PLT
	xor	esi, esi
	mov	rdi, r12
	call	vorbis_synthesis_pcmout@PLT
	mov	r14d, DWORD PTR 12[rsp]
	mov	ecx, r14d
	sal	eax, cl
	add	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 4[rbp]
	sal	eax, 3
	add	DWORD PTR 12[rbx], eax
	mov	eax, 1
	cmp	r15d, -1
	je	.L1
	mov	ecx, DWORD PTR 8[rbp]
	test	ecx, ecx
	jne	.L1
	cmp	QWORD PTR 64[rbx], 0
	jne	.L53
.L12:
	test	r15d, r15d
	mov	edx, 0
	mov	rdi, r12
	cmovs	r15d, edx
	xor	esi, esi
	call	vorbis_synthesis_pcmout@PLT
	movzx	ecx, BYTE PTR 12[rsp]
	mov	edx, r15d
	sal	eax, cl
	sub	edx, eax
.L29:
	mov	DWORD PTR 20[rbx], edx
	mov	eax, 1
	jmp	.L1
.L36:
	xor	eax, eax
	jmp	.L1
.L53:
	mov	r13d, DWORD PTR 16[rbx]
	test	r13d, r13d
	jle	.L12
	mov	rcx, QWORD PTR 72[rbx]
	lea	eax, [r13+r13]
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, r12
	cdqe
	sub	r15d, DWORD PTR [rcx+rax*8]
	cmovs	r15d, edx
	xor	esi, esi
	call	vorbis_synthesis_pcmout@PLT
	mov	ecx, r14d
	mov	rsi, QWORD PTR 72[rbx]
	sal	eax, cl
	lea	ecx, -1[r13]
	mov	edx, r15d
	sal	rcx, 4
	sub	edx, eax
	lea	rax, 8[rsi]
	lea	rcx, 24[rsi+rcx]
	.p2align 4,,10
	.p2align 3
.L13:
	add	edx, DWORD PTR [rax]
	add	rax, 16
	cmp	rax, rcx
	jne	.L13
	jmp	.L29
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_fetch_and_process_packet, .-_fetch_and_process_packet
	.comm	STREAMSET,8,8
	.comm	OV_HOLE,4,4
	.comm	OV_EOF,4,4
	.comm	OV_EFAULT,4,4
	.comm	OPENED,8,8
	.comm	INITSET,8,8
	.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_vorbisfile.c__fetch_and_process_packet.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_fetch_and_process_packet, %function
_fetch_and_process_packet:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #52
	str	r3, [sp, #16]
	ldr	r3, .L60
	str	r2, [sp, #12]
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r6, .L60+4
	ldr	r7, .L60+8
	ldr	r8, .L60+12
	b	.L2
.L17:
	ldr	r2, [r6]
	cmp	r2, r3
	ble	.L50
	ldr	r3, [r4, #44]
	cmp	r3, #0
	bne	.L53
	add	r2, sp, #28
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r0, r4
	ldr	r2, [r4, #36]
	ldr	r1, [r4, #40]
	bl	_fetch_headers
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #32]
	add	r3, r3, #1
	str	r3, [r4, #12]
	str	r2, [r4, #20]
.L50:
	add	r9, r4, #32
.L22:
	mov	r0, r9
	add	r1, sp, #28
	bl	ogg_stream_pagein
.L2:
	ldr	r3, [r4]
	ldr	r2, [r6]
	cmp	r3, r2
	beq	.L54
	ldr	r2, [r7]
	cmp	r2, r3
	beq	.L55
.L5:
	ldr	r2, [r8]
	cmp	r2, r3
	bgt	.L17
.L19:
	ldr	r3, [sp, #12]
	cmp	r3, #0
	beq	.L36
	mvn	r2, #0
	mov	r0, r4
	add	r1, sp, #28
	bl	_get_next_page
	cmp	r0, #0
	blt	.L51
	ldr	r2, [r4, #8]
	ldr	r0, [sp, #28]
	ldr	r3, [r4]
	ldr	r1, [r7]
	add	r2, r2, r0, lsl #3
	cmp	r3, r1
	str	r2, [r4, #8]
	bne	.L17
	add	r0, sp, #28
	ldr	r9, [r4, #20]
	bl	ogg_page_serialno
	cmp	r9, r0
	beq	.L49
	add	r0, sp, #28
	bl	ogg_page_bos
	cmp	r0, #0
	beq	.L19
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L51
	mov	r0, r4
	bl	_decode_clear
	ldr	r3, [r4, #44]
	cmp	r3, #0
	beq	.L21
.L49:
	ldr	r3, [r4]
.L15:
	ldr	r2, [r7]
	cmp	r3, r2
	beq	.L50
	b	.L17
.L54:
	mov	r0, r4
	bl	_make_decode_ready
	cmp	r0, #0
	blt	.L1
	ldr	r3, [r4]
	ldr	r2, [r7]
	cmp	r2, r3
	bne	.L5
.L55:
	ldr	r0, [r4, #40]
	bl	vorbis_synthesis_halfrate_p
	cmp	r5, #0
	str	r0, [sp, #20]
	addeq	r5, sp, #32
	add	r9, r4, #32
	add	r10, r4, #56
	b	.L14
.L7:
	cmp	r0, #0
	ble	.L9
	mov	r1, r5
	mov	r0, r10
	ldr	fp, [r5]
	bl	vorbis_synthesis
	cmp	r0, #0
	beq	.L56
	add	r5, sp, #32
.L14:
	mov	r1, r5
	mov	r0, r9
	bl	ogg_stream_packetout
	cmn	r0, #1
	bne	.L7
	ldr	r3, .L60+16
	ldr	r0, [r3]
.L1:
	ldr	r3, .L60
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L57
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L53:
	add	r0, sp, #28
	bl	ogg_page_serialno
	ldr	lr, [r4, #24]
	mov	r1, r0
	cmp	lr, #0
	ble	.L25
	ldr	r2, [r4, #28]
	mov	r3, #0
	sub	r2, r2, #4
	b	.L27
.L58:
	add	r3, r3, #1
	cmp	lr, r3
	beq	.L2
.L27:
	ldr	r0, [r2, #4]!
	cmp	r0, r1
	bne	.L58
.L26:
	add	r9, r4, #32
	str	r3, [r4, #12]
	mov	r0, r9
	str	r1, [r4, #20]
	bl	ogg_stream_reset_serialno
	ldr	r3, [r6]
	str	r3, [r4]
	b	.L22
.L21:
	ldr	r0, [r4, #40]
	bl	vorbis_info_clear
	ldr	r0, [r4, #36]
	bl	vorbis_comment_clear
	b	.L49
.L9:
	ldr	r3, [r4]
	ldr	r2, [r8]
	mov	r5, #0
	cmp	r3, r2
	blt	.L15
	b	.L19
.L56:
	add	r7, r4, #52
	mov	r1, r0
	mov	r0, r7
	bl	vorbis_synthesis_pcmout
	subs	r6, r0, #0
	beq	.L11
	ldr	r3, .L60+20
	ldr	r0, [r3]
	b	.L1
.L25:
	beq	.L2
	mov	r3, #0
	b	.L26
.L51:
	ldr	r3, .L60+24
	ldr	r0, [r3]
	b	.L1
.L11:
	mov	r1, r10
	mov	r0, r7
	bl	vorbis_synthesis_blockin
	mov	r1, r6
	mov	r0, r7
	bl	vorbis_synthesis_pcmout
	ldr	r2, [r4, #4]
	ldr	r1, [r5, #4]
	ldr	r3, [r4, #8]
	ldr	r6, [sp, #20]
	add	r3, r3, r1, lsl #3
	add	r2, r2, r0, lsl r6
	cmn	fp, #1
	stmib	r4, {r2, r3}
	beq	.L34
	ldr	r1, [r5, #8]
	cmp	r1, #0
	bne	.L34
	ldr	r3, [r4, #44]
	cmp	r3, #0
	bne	.L59
.L12:
	mov	r0, r7
	mov	r1, #0
	bl	vorbis_synthesis_pcmout
	ldr	r3, [sp, #20]
	bic	fp, fp, fp, asr #31
	sub	fp, fp, r0, lsl r3
.L29:
	mov	r0, #1
	str	fp, [r4, #16]
	b	.L1
.L34:
	mov	r0, #1
	b	.L1
.L36:
	ldr	r0, [sp, #12]
	b	.L1
.L59:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	ble	.L12
	ldr	r2, [r4, #48]
	mov	r0, r7
	ldr	r2, [r2, r3, lsl #3]
	lsl	r5, r3, #3
	sub	fp, fp, r2
	bl	vorbis_synthesis_pcmout
	ldr	r3, [r4, #48]
	bic	fp, fp, fp, asr #31
	sub	fp, fp, r0, lsl r6
	add	r1, r5, r3
.L13:
	ldr	r2, [r3, #4]
	add	r3, r3, #8
	cmp	r1, r3
	add	fp, fp, r2
	bne	.L13
	b	.L29
.L57:
	bl	__stack_chk_fail
.L61:
	.align	2
.L60:
	.word	.LC0
	.word	STREAMSET
	.word	INITSET
	.word	OPENED
	.word	OV_HOLE
	.word	OV_EFAULT
	.word	OV_EOF
	.size	_fetch_and_process_packet, .-_fetch_and_process_packet
	.comm	STREAMSET,4,4
	.comm	OV_HOLE,4,4
	.comm	OV_EOF,4,4
	.comm	OV_EFAULT,4,4
	.comm	OPENED,4,4
	.comm	INITSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
