	.file	"extr_stb_vorbis.c_next_segment.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	next_segment, @function
next_segment:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	jne	.L8
	mov	eax, DWORD PTR 4[rdi]
	mov	ecx, DWORD PTR 12[rdi]
	mov	rbp, rdi
	cmp	eax, -1
	je	.L11
.L3:
	mov	rsi, QWORD PTR 24[rbp]
	lea	edx, 1[rax]
	movsx	rdi, eax
	mov	DWORD PTR 4[rbp], edx
	mov	r12d, DWORD PTR [rsi+rdi*4]
	cmp	r12d, 254
	jg	.L6
	mov	esi, DWORD PTR TRUE[rip]
	mov	DWORD PTR 8[rbp], eax
	mov	DWORD PTR 0[rbp], esi
.L6:
	cmp	edx, ecx
	jge	.L12
.L7:
	mov	eax, DWORD PTR 32[rbp]
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	mov	DWORD PTR 32[rbp], r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	DWORD PTR 4[rbp], -1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	xor	r12d, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	sub	ecx, 1
	mov	DWORD PTR 8[rdi], ecx
	call	start_page@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR 16[rbp]
	test	DWORD PTR PAGEFLAG_continued_packet[rip], eax
	je	.L5
	mov	eax, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR 12[rbp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	DWORD PTR 0[rbp], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR VORBIS_continued_packet_flag_invalid[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	error@PLT
	.cfi_endproc
.LFE0:
	.size	next_segment, .-next_segment
	.comm	VORBIS_continued_packet_flag_invalid,4,4
	.comm	TRUE,4,4
	.comm	PAGEFLAG_continued_packet,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_stb_vorbis.c_next_segment.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	next_segment, %function
next_segment:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	bne	.L8
	ldr	r3, [r0, #4]
	mov	r4, r0
	cmn	r3, #1
	ldr	r1, [r0, #12]
	beq	.L11
.L3:
	ldr	r0, [r4, #20]
	add	r2, r3, #1
	str	r2, [r4, #4]
	ldr	r5, [r0, r3, lsl #2]
	cmp	r5, #254
	ldrle	r0, .L12
	strle	r3, [r4, #8]
	ldrle	r3, [r0]
	ldr	r0, [r4, #24]
	strle	r3, [r4]
	cmp	r2, r1
	mvnge	r3, #0
	clz	r0, r0
	strge	r3, [r4, #4]
	lsr	r0, r0, #5
	bl	assert
	str	r5, [r4, #24]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L8:
	mov	r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	sub	r1, r1, #1
	str	r1, [r0, #8]
	bl	start_page
	subs	r5, r0, #0
	moveq	r3, #1
	streq	r3, [r4]
	beq	.L1
	ldr	r3, .L12+4
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, [r4, #4]
	ldrne	r1, [r4, #12]
	bne	.L3
.L5:
	ldr	r3, .L12+8
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	error
.L13:
	.align	2
.L12:
	.word	TRUE
	.word	PAGEFLAG_continued_packet
	.word	VORBIS_continued_packet_flag_invalid
	.size	next_segment, .-next_segment
	.comm	VORBIS_continued_packet_flag_invalid,4,4
	.comm	TRUE,4,4
	.comm	PAGEFLAG_continued_packet,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
