	.file	"extr_..xiph.h_xiph_SplitHeaders.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xiph_SplitHeaders, @function
xiph_SplitHeaders:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, ecx
	test	ebx, ebx
	jne	.L2
.L13:
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbp, rdi
	mov	r12, rsi
	mov	rdi, r8
	mov	esi, ebx
	mov	r14, rdx
	mov	r13, r8
	call	xiph_CountHeaders@PLT
	test	eax, eax
	je	.L13
	test	r14, r14
	je	.L5
	mov	DWORD PTR [r14], eax
.L5:
	mov	r11d, eax
	lea	rsi, 0[r13+rbx*4]
	lea	rdx, 4[r13]
	sub	r11d, 1
	je	.L6
	lea	r9d, -2[rax]
	mov	rcx, rbp
	xor	edi, edi
	lea	r10, 4[rbp+r9*4]
.L10:
	mov	DWORD PTR [rcx], 0
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	rdx, rsi
	jnb	.L13
	mov	eax, DWORD PTR [rdx]
	add	rdx, 4
	add	eax, DWORD PTR [rcx]
	mov	DWORD PTR [rcx], eax
	cmp	DWORD PTR -4[rdx], 255
	je	.L8
	mov	r8d, DWORD PTR UINT_MAX[rip]
	sub	r8d, edi
	cmp	eax, r8d
	ja	.L13
	add	rcx, 4
	add	edi, eax
	cmp	r10, rcx
	jne	.L10
	lea	rax, [rdx+rdi*4]
	cmp	rsi, rax
	jb	.L13
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L12:
	mov	ecx, DWORD PTR 0[rbp+rax*4]
	mov	QWORD PTR [r12+rax*8], rdx
	lea	rdx, [rdx+rcx*4]
	mov	rcx, rax
	add	rax, 1
	cmp	r9, rcx
	jne	.L12
	mov	r11d, r11d
	lea	rbp, 0[rbp+r11*4]
	lea	r12, [r12+r11*8]
.L14:
	sub	rsi, rdx
	sar	rsi, 2
	mov	DWORD PTR 0[rbp], esi
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
	mov	QWORD PTR [r12], rdx
	jmp	.L1
.L6:
	cmp	rsi, rdx
	jb	.L13
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	xiph_SplitHeaders, .-xiph_SplitHeaders
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	UINT_MAX,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_..xiph.h_xiph_SplitHeaders.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xiph_SplitHeaders, %function
xiph_SplitHeaders:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r4, r3, #0
	ldr	r8, [sp, #40]
	bne	.L2
.L13:
	ldr	r3, .L28
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r5, r0
	mov	r6, r1
	mov	r0, r8
	mov	r1, r4
	mov	r7, r2
	bl	xiph_CountHeaders
	cmp	r0, #0
	beq	.L13
	cmp	r7, #0
	strne	r0, [r7]
	subs	r10, r0, #1
	add	lr, r8, r4, lsl #2
	add	r3, r8, #4
	beq	.L6
	mov	r1, #0
	sub	r9, r5, #4
	mov	r7, r1
	mov	r8, r1
	mov	ip, r9
	ldr	fp, .L28+4
.L10:
	str	r8, [ip, #4]!
.L8:
	cmp	r3, lr
	bcs	.L13
	ldr	r4, [ip]
	ldr	r2, [r3]
	add	r2, r4, r2
	str	r2, [ip]
	ldr	r4, [r3], #4
	cmp	r4, #255
	beq	.L8
	ldr	r4, [fp]
	sub	r4, r4, r7
	cmp	r2, r4
	bhi	.L13
	add	r1, r1, #1
	cmp	r1, r10
	add	r7, r7, r2
	bne	.L10
	add	r7, r3, r7, lsl #2
	cmp	lr, r7
	subcs	ip, r6, #8
	addcs	ip, ip, r0, lsl #2
	subcs	r2, r6, #4
	bcc	.L13
.L12:
	str	r3, [r2, #4]!
	ldr	r1, [r9, #4]!
	cmp	ip, r2
	add	r3, r3, r1, lsl #2
	bne	.L12
.L15:
	sub	r2, lr, r3
	sub	r1, r0, #-1073741823
	asr	r2, r2, #2
	ldr	r0, .L28+8
	str	r2, [r5, r1, lsl #2]
	ldr	r0, [r0]
	str	r3, [r6, r1, lsl #2]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	cmp	lr, r3
	bcc	.L13
	b	.L15
.L29:
	.align	2
.L28:
	.word	VLC_EGENERIC
	.word	UINT_MAX
	.word	VLC_SUCCESS
	.size	xiph_SplitHeaders, .-xiph_SplitHeaders
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	UINT_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
