	.file	"extr_stream.c_hb_ts_stream_append_pkt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hb_ts_stream_append_pkt, @function
hb_ts_stream_append_pkt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movsx	rsi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	lea	rbx, [rsi+rsi*2]
	sal	rbx, 3
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	add	rax, rbx
	cmp	QWORD PTR 16[rax], 0
	jne	.L1
	mov	ebp, ecx
	test	ecx, ecx
	jle	.L1
	mov	rax, QWORD PTR 8[rax]
	mov	r12, rdi
	mov	r13, rdx
	movsx	rdi, DWORD PTR [rax]
	mov	edx, DWORD PTR 4[rax]
	lea	esi, [rdi+rcx]
	cmp	esi, edx
	jg	.L6
.L3:
	add	rdi, QWORD PTR 8[rax]
	mov	edx, ebp
	mov	rsi, r13
	call	memcpy@PLT
	add	rbx, QWORD PTR [r12]
	mov	rax, QWORD PTR 8[rbx]
	add	DWORD PTR [rax], ebp
	add	DWORD PTR [rbx], ebp
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	edi, [rdx+rdx]
	call	MAX@PLT
	mov	esi, eax
	mov	rax, QWORD PTR [r12]
	mov	rdi, QWORD PTR 8[rax+rbx]
	call	hb_buffer_realloc@PLT
	mov	rax, QWORD PTR [r12]
	mov	rax, QWORD PTR 8[rax+rbx]
	movsx	rdi, DWORD PTR [rax]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	hb_ts_stream_append_pkt, .-hb_ts_stream_append_pkt
	.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_stream.c_hb_ts_stream_append_pkt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hb_ts_stream_append_pkt, %function
hb_ts_stream_append_pkt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0]
	add	ip, r1, r1, lsl #1
	add	r0, r0, ip, lsl #2
	ldr	r1, [r0, #8]
	cmp	r3, #0
	movgt	lr, #0
	movle	lr, #1
	cmp	r1, #0
	movne	lr, #1
	cmp	lr, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r7, r3
	lsl	r4, ip, #2
	ldr	ip, [r0, #4]
	mov	r6, r2
	ldr	r3, [ip]
	ldr	r0, [ip, #4]
	add	r1, r3, r7
	cmp	r1, r0
	bgt	.L6
.L3:
	ldr	r0, [ip, #8]
	mov	r1, r6
	mov	r2, r7
	add	r0, r3, r0
	bl	memcpy
	ldr	r1, [r5]
	add	r3, r1, r4
	ldr	r2, [r3, #4]
	ldr	r0, [r1, r4]
	ldr	r3, [r2]
	add	r0, r0, r7
	add	r3, r3, r7
	str	r3, [r2]
	str	r0, [r1, r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	lsl	r0, r0, #1
	bl	MAX
	ldr	r3, [r5]
	mov	r1, r0
	add	r3, r3, r4
	ldr	r0, [r3, #4]
	bl	hb_buffer_realloc
	ldr	r3, [r5]
	add	r3, r3, r4
	ldr	ip, [r3, #4]
	ldr	r3, [ip]
	b	.L3
	.size	hb_ts_stream_append_pkt, .-hb_ts_stream_append_pkt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
