	.file	"extr_packetizer_helper.h_packetizer_PacketizeBlock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	packetizer_PacketizeBlock, @function
packetizer_PacketizeBlock:
.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
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rsi
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rcx
	xor	ecx, ecx
	test	rsi, rsi
	je	.L5
	mov	rax, QWORD PTR 8[rsp]
	mov	r13, QWORD PTR [rax]
	test	r13, r13
	je	.L5
	mov	edi, DWORD PTR BLOCK_FLAG_DISCONTINUITY[rip]
	or	edi, DWORD PTR BLOCK_FLAG_CORRUPTED[rip]
	lea	rbp, 24[rbx]
	and	edi, DWORD PTR 0[r13]
	call	unlikely@PLT
	test	rax, rax
	jne	.L63
.L7:
	mov	rsi, r13
	mov	rdi, rbp
	call	block_BytestreamPush@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r12, QWORD PTR 24[rbx]
	test	r12, r12
	je	.L1
	lea	rbp, 24[rbx]
.L4:
	mov	eax, DWORD PTR [rbx]
	mov	r8d, DWORD PTR 72[rbx]
	lea	r13, 4[rbx]
	lea	r15, 20[rsp]
	mov	ecx, DWORD PTR 68[rbx]
	mov	edx, DWORD PTR 76[rbx]
	.p2align 4,,10
	.p2align 3
.L28:
	cmp	eax, 128
	je	.L8
	cmp	eax, 129
	jne	.L28
.L9:
	xor	r9d, r9d
	mov	rsi, r13
	mov	rdi, rbp
	call	block_FindStartcodeFromOffset@PLT
	test	eax, eax
	je	.L19
	cmp	QWORD PTR 8[rsp], 0
	jne	.L14
	mov	edx, DWORD PTR 32[rbx]
	test	edx, edx
	je	.L14
	mov	rdi, rbp
	call	block_BytestreamRemaining@PLT
	mov	DWORD PTR 4[rbx], eax
	test	eax, eax
	je	.L14
	cmp	eax, DWORD PTR 68[rbx]
	ja	.L19
	mov	rax, QWORD PTR 24[rbx]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR BLOCK_FLAG_AU_END[rip], eax
	je	.L14
.L19:
	mov	rdi, rbp
	call	block_BytestreamFlush@PLT
	mov	r14, QWORD PTR 24[rbx]
	movsx	rdi, DWORD PTR 4[rbx]
	add	rdi, QWORD PTR 8[rbx]
	call	block_Alloc@PLT
	mov	r12, rax
	mov	rax, QWORD PTR 16[r14]
	mov	QWORD PTR 16[r12], rax
	mov	rax, QWORD PTR 24[r14]
	mov	QWORD PTR 24[r12], rax
	mov	eax, DWORD PTR BLOCK_FLAG_AU_END[rip]
	test	DWORD PTR [r14], eax
	je	.L18
	movsx	rdx, DWORD PTR 4[rbx]
	cmp	QWORD PTR 8[r14], rdx
	jne	.L18
	or	DWORD PTR [r12], eax
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR 8[r12]
	mov	rdi, rbp
	mov	rsi, QWORD PTR 32[r12]
	sub	rdx, rax
	lea	rsi, [rsi+rax*4]
	call	block_GetBytes@PLT
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	jne	.L64
.L20:
	mov	DWORD PTR 4[rbx], 0
	mov	rax, QWORD PTR 16[rbx]
	cmp	QWORD PTR 8[r12], rax
	jb	.L65
	mov	rdx, r12
	mov	edi, DWORD PTR 40[rbx]
	mov	rsi, r15
	call	[QWORD PTR 56[rbx]]
	mov	r12, rax
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	je	.L23
	mov	rax, QWORD PTR VLC_TICK_INVALID[rip]
	mov	QWORD PTR 24[r14], rax
	mov	QWORD PTR 16[r14], rax
.L23:
	test	r12, r12
	je	.L22
	mov	edi, DWORD PTR 40[rbx]
	mov	rsi, r12
	call	[QWORD PTR 48[rbx]]
	test	eax, eax
	je	.L25
	mov	DWORD PTR [rbx], 128
	mov	rdi, r12
	call	block_Release@PLT
	mov	eax, DWORD PTR [rbx]
	mov	r8d, DWORD PTR 72[rbx]
	mov	ecx, DWORD PTR 68[rbx]
	mov	edx, DWORD PTR 76[rbx]
	jmp	.L28
.L25:
	mov	r15, QWORD PTR 8[rsp]
	test	r15, r15
	je	.L26
	mov	rdi, rbp
	call	block_BytestreamPop@PLT
	mov	QWORD PTR [r15], rax
.L26:
	mov	DWORD PTR [rbx], 128
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L66
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L65:
	.cfi_restore_state
	mov	rdi, r12
	call	block_Release@PLT
.L22:
	mov	r8d, DWORD PTR 72[rbx]
	mov	ecx, DWORD PTR 68[rbx]
	mov	DWORD PTR [rbx], 128
	mov	edx, DWORD PTR 76[rbx]
.L8:
	xor	r9d, r9d
	mov	rsi, r13
	mov	rdi, rbp
	call	block_FindStartcodeFromOffset@PLT
	test	eax, eax
	jne	.L11
	mov	esi, DWORD PTR 4[rbx]
	mov	DWORD PTR [rbx], 129
	test	esi, esi
	jne	.L12
.L15:
	mov	r8d, DWORD PTR 72[rbx]
	mov	ecx, DWORD PTR 68[rbx]
	mov	DWORD PTR 4[rbx], 1
	mov	edx, DWORD PTR 76[rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L64:
	mov	esi, DWORD PTR 64[rbx]
	mov	rdi, QWORD PTR 32[r12]
	call	memcpy@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR 4[rbx]
	test	esi, esi
	jne	.L12
.L13:
	cmp	DWORD PTR [rbx], 129
	je	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rbp
	call	block_SkipBytes@PLT
	mov	DWORD PTR 4[rbx], 0
	mov	rdi, rbp
	call	block_BytestreamFlush@PLT
	jmp	.L13
.L63:
	xor	esi, esi
	mov	rdi, rbx
	call	packetizer_PacketizeBlock
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	DWORD PTR [rbx], 128
	lea	rbp, 24[rbx]
	mov	rdi, rbp
	call	block_BytestreamEmpty@PLT
	mov	DWORD PTR 4[rbx], 0
	mov	edi, DWORD PTR 40[rbx]
	xor	esi, esi
	call	[QWORD PTR 80[rbx]]
	jmp	.L7
.L66:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	packetizer_PacketizeBlock, .-packetizer_PacketizeBlock
	.comm	VLC_TICK_INVALID,8,8
	.comm	BLOCK_FLAG_DISCONTINUITY,4,4
	.comm	BLOCK_FLAG_CORRUPTED,4,4
	.comm	BLOCK_FLAG_AU_END,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_packetizer_helper.h_packetizer_PacketizeBlock.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	packetizer_PacketizeBlock, %function
packetizer_PacketizeBlock:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L74
	sub	sp, sp, #20
	subs	r10, r1, #0
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L5
	ldr	r7, [r10]
	cmp	r7, #0
	beq	.L5
	ldr	r3, .L74+4
	ldr	r2, .L74+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [r7]
	orr	r3, r3, r2
	and	r0, r0, r3
	bl	unlikely
	cmp	r0, #0
	addeq	r6, r4, #16
	bne	.L70
.L7:
	mov	r1, r7
	mov	r0, r6
	bl	block_BytestreamPush
	b	.L4
.L5:
	ldr	r5, [r4, #16]
	cmp	r5, #0
	beq	.L1
	add	r6, r4, #16
.L4:
	mov	r8, r4
	mov	r7, #0
	ldr	r2, [r4, #48]
	ldr	r1, [r8], #4
	ldr	r3, [r4, #40]
	ldr	r0, [r4, #44]
	ldr	r9, .L74+12
.L28:
	cmp	r1, #128
	beq	.L8
	cmp	r1, #129
	bne	.L28
.L9:
	stm	sp, {r0, r7}
	mov	r1, r8
	mov	r0, r6
	bl	block_FindStartcodeFromOffset
	cmp	r0, #0
	beq	.L19
	cmp	r10, #0
	bne	.L14
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L14
	mov	r0, r6
	bl	block_BytestreamRemaining
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L14
	ldr	r3, [r4, #40]
	cmp	r0, r3
	bhi	.L19
	ldr	r2, [r4, #16]
	ldr	r3, [r9]
	ldr	r2, [r2]
	tst	r2, r3
	beq	.L14
.L19:
	mov	r0, r6
	bl	block_BytestreamFlush
	ldmib	r4, {r0, r2}
	add	r0, r0, r2
	ldr	fp, [r4, #16]
	bl	block_Alloc
	mov	r5, r0
	ldr	ip, [r9]
	ldr	r0, [fp]
	ldr	r1, [fp, #8]
	ldr	r2, [fp, #12]
	tst	ip, r0
	str	r1, [r5, #8]
	str	r2, [r5, #12]
	beq	.L18
	ldr	r2, [r4, #4]
	ldr	r1, [fp, #4]
	cmp	r1, r2
	ldreq	r2, [r5]
	orreq	ip, r2, ip
	streq	ip, [r5]
.L18:
	ldr	r1, [r4, #8]
	ldr	r0, [r5, #16]
	ldr	r2, [r5, #4]
	sub	r2, r2, r1
	add	r1, r0, r1, lsl #2
	mov	r0, r6
	bl	block_GetBytes
	ldr	r2, [r4, #8]
	cmp	r2, #0
	bne	.L71
.L20:
	ldr	r1, [r5, #4]
	ldr	r2, [r4, #12]
	str	r7, [r4, #4]
	cmp	r1, r2
	bcc	.L72
	mov	r2, r5
	ldr	r0, [r4, #24]
	ldr	r5, [r4, #32]
	add	r1, sp, #8
	blx	r5
	ldr	r2, [sp, #8]
	mov	r5, r0
	cmp	r2, #0
	ldrne	r3, .L74+16
	ldrne	r2, [r3]
	strne	r2, [fp, #12]
	strne	r2, [fp, #8]
	cmp	r0, #0
	beq	.L22
	mov	r1, r0
	ldr	r3, [r4, #28]
	ldr	r0, [r4, #24]
	blx	r3
	cmp	r0, #0
	beq	.L25
	mov	r3, #128
	mov	r0, r5
	str	r3, [r4]
	bl	block_Release
	ldr	r1, [r4]
	ldr	r2, [r4, #48]
	ldr	r3, [r4, #40]
	ldr	r0, [r4, #44]
	b	.L28
.L25:
	cmp	r10, #0
	beq	.L26
	mov	r0, r6
	bl	block_BytestreamPop
	str	r0, [r10]
.L26:
	mov	r3, #128
	str	r3, [r4]
.L1:
	ldr	r3, .L74
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L73
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L72:
	mov	r0, r5
	bl	block_Release
.L22:
	mov	r3, #128
	ldr	r2, [r4, #48]
	str	r3, [r4]
	ldr	r0, [r4, #44]
	ldr	r3, [r4, #40]
.L8:
	stm	sp, {r0, r7}
	mov	r1, r8
	mov	r0, r6
	bl	block_FindStartcodeFromOffset
	cmp	r0, #0
	bne	.L11
	mov	r3, #129
	ldr	r1, [r4, #4]
	str	r3, [r4]
	cmp	r1, #0
	bne	.L12
.L15:
	mov	r3, #1
	ldr	r2, [r4, #48]
	str	r3, [r4, #4]
	ldr	r0, [r4, #44]
	ldr	r3, [r4, #40]
	b	.L9
.L71:
	ldr	r1, [r4, #36]
	ldr	r0, [r5, #16]
	bl	memcpy
	b	.L20
.L11:
	ldr	r1, [r4, #4]
	cmp	r1, #0
	bne	.L12
.L13:
	ldr	r3, [r4]
	cmp	r3, #129
	beq	.L15
.L14:
	mov	r5, #0
	b	.L1
.L12:
	mov	r0, r6
	bl	block_SkipBytes
	mov	r0, r6
	str	r7, [r4, #4]
	bl	block_BytestreamFlush
	b	.L13
.L70:
	mov	r1, #0
	mov	r0, r4
	bl	packetizer_PacketizeBlock
	subs	r5, r0, #0
	bne	.L1
	mov	r3, #128
	mov	r6, r4
	str	r3, [r6], #16
	mov	r0, r6
	bl	block_BytestreamEmpty
	mov	r1, r5
	ldr	r3, [r4, #52]
	ldr	r0, [r4, #24]
	str	r5, [r4, #4]
	blx	r3
	b	.L7
.L73:
	bl	__stack_chk_fail
.L75:
	.align	2
.L74:
	.word	.LC0
	.word	BLOCK_FLAG_DISCONTINUITY
	.word	BLOCK_FLAG_CORRUPTED
	.word	BLOCK_FLAG_AU_END
	.word	VLC_TICK_INVALID
	.size	packetizer_PacketizeBlock, .-packetizer_PacketizeBlock
	.comm	VLC_TICK_INVALID,4,4
	.comm	BLOCK_FLAG_DISCONTINUITY,4,4
	.comm	BLOCK_FLAG_CORRUPTED,4,4
	.comm	BLOCK_FLAG_AU_END,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
