	.file	"extr_stream.c_generate_output_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	generate_output_data, @function
generate_output_data:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rax, 36[rsp]
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rax
	call	hb_buffer_list_clear@PLT
	mov	rax, QWORD PTR 24[rbp]
	movsx	rsi, ebx
	lea	rdx, [rsi+rsi*8]
	lea	r15, [rax+rdx*8]
	mov	ecx, DWORD PTR [r15]
	mov	r12, QWORD PTR 64[r15]
	test	ecx, ecx
	je	.L2
	mov	eax, DWORD PTR 16[r15]
.L3:
	mov	rdx, QWORD PTR 8[r12]
	mov	r13d, DWORD PTR [r12]
	movsx	rcx, eax
	lea	rcx, [rdx+rcx*4]
	sub	r13d, eax
	mov	QWORD PTR 24[rsp], rcx
	test	r13d, r13d
	jle	.L21
	mov	edx, DWORD PTR 0[rbp]
	movsx	rbx, DWORD PTR 20[r15]
	test	edx, edx
	jne	.L29
.L6:
	cmp	ebx, -1
	je	.L19
	mov	rdx, QWORD PTR 32[rbp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 48[rbx], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 16[rbp], 0
	mov	QWORD PTR 40[rbx], rax
	mov	rax, QWORD PTR AV_NOPTS_VALUE[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR 56[r15]
	mov	QWORD PTR 32[rbx], rax
	mov	rax, QWORD PTR 48[r15]
	mov	QWORD PTR 24[rbx], rax
.L17:
	mov	rdi, QWORD PTR 8[rbx]
	mov	rsi, QWORD PTR 24[rsp]
	mov	edx, r13d
	call	memcpy@PLT
	mov	rdx, QWORD PTR 32[rbp]
	mov	r14, QWORD PTR 8[rsp]
	add	r14, rdx
.L13:
	movsx	rbx, DWORD PTR 4[r14]
	cmp	ebx, -1
	je	.L19
.L18:
	sal	rbx, 4
	lea	r14, [rdx+rbx]
	mov	QWORD PTR 8[rsp], rbx
	mov	rax, QWORD PTR 8[r14]
	cmp	QWORD PTR 32[r15], rax
	je	.L22
	test	rax, rax
	jne	.L13
.L22:
	mov	edi, r13d
	call	hb_buffer_init@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR 40[r15]
	add	rax, 5
	cmp	rax, QWORD PTR 8[r15]
	jl	.L15
	mov	DWORD PTR 16[rbx], 1
.L15:
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, rbx
	call	hb_buffer_list_append@PLT
	mov	rdi, r14
	call	get_id@PLT
	mov	edi, DWORD PTR [r14]
	mov	DWORD PTR 68[rbx], eax
	call	stream_kind_to_buf_type@PLT
	mov	DWORD PTR 64[rbx], eax
	mov	rax, QWORD PTR 56[r12]
	mov	QWORD PTR 56[rbx], rax
	mov	eax, DWORD PTR 16[r15]
	mov	QWORD PTR 56[r12], 0
	test	eax, eax
	jg	.L30
	mov	rax, QWORD PTR AV_NOPTS_VALUE[rip]
	mov	QWORD PTR 40[rbx], rax
	mov	QWORD PTR 32[rbx], rax
	mov	QWORD PTR 24[rbx], rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR 40[r15]
	test	rax, rax
	jle	.L12
	add	rax, 5
	cmp	rax, QWORD PTR 8[r15]
	jl	.L31
.L12:
	mov	DWORD PTR [r12], 0
	mov	rdi, QWORD PTR 16[rsp]
	mov	DWORD PTR 16[r15], 0
	call	hb_buffer_list_clear@PLT
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L32
	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
.L29:
	.cfi_restore_state
	sal	rbx, 4
	add	rbx, QWORD PTR 32[rbp]
	mov	ebx, DWORD PTR [rbx]
	cmp	DWORD PTR V[rip], ebx
	je	.L7
.L9:
	mov	DWORD PTR [r12], 0
	xor	eax, eax
	mov	DWORD PTR [r15], 0
	mov	QWORD PTR 8[r15], 0
	mov	DWORD PTR 16[r15], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, QWORD PTR 8[r12]
	mov	edx, DWORD PTR [r12]
	lea	rcx, 24[r15]
	mov	rdi, rbp
	call	hb_parse_ps@PLT
	test	eax, eax
	je	.L33
	mov	eax, DWORD PTR 24[r15]
	mov	DWORD PTR [r15], 1
	mov	DWORD PTR 16[r15], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L31:
	mov	DWORD PTR [r15], 0
	mov	QWORD PTR 8[r15], 0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L21:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, QWORD PTR 24[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	call	isIframe@PLT
	test	eax, eax
	jne	.L8
	cmp	DWORD PTR V[rip], ebx
	jne	.L9
	mov	eax, DWORD PTR 0[rbp]
	add	eax, 1
	mov	DWORD PTR 0[rbp], eax
	cmp	eax, 511
	jle	.L9
.L8:
	mov	DWORD PTR 0[rbp], 0
	movsx	rbx, DWORD PTR 20[r15]
	jmp	.L6
.L33:
	mov	DWORD PTR [r12], 0
	xor	eax, eax
	mov	QWORD PTR 8[r15], 0
	mov	DWORD PTR 16[r15], 0
	jmp	.L1
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	generate_output_data, .-generate_output_data
	.comm	V,4,4
	.comm	AV_NOPTS_VALUE,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_stream.c_generate_output_data.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_output_data, %function
generate_output_data:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	mov	r5, r1
	sub	sp, sp, #28
	ldr	r3, .L31
	add	r0, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	add	r5, r5, r5, lsl #2
	bl	hb_buffer_list_clear
	ldr	r2, [r6, #12]
	lsl	r3, r5, #3
	str	r3, [sp, #8]
	ldr	r3, [r2, r3]
	add	r5, r2, r5, lsl #3
	cmp	r3, #0
	ldr	r7, [r5, #36]
	str	r2, [sp, #12]
	beq	.L2
	ldr	r3, [r5, #8]
.L3:
	ldm	r7, {r8, r10}
	sub	r8, r8, r3
	cmp	r8, #0
	add	r3, r10, r3, lsl #2
	movle	r0, #0
	str	r3, [sp, #4]
	ble	.L1
	ldr	r3, [r6]
	ldr	r4, [r5, #12]
	cmp	r3, #0
	bne	.L27
.L6:
	cmn	r4, #1
	beq	.L18
	ldr	r1, [r6, #16]
	ldr	fp, .L31+4
	b	.L17
.L28:
	ldmib	r6, {r1, r3}
	str	r3, [r4, #24]
	ldr	r3, [fp]
	ldr	r2, [r5, #32]
	str	r0, [r6, #8]
	str	r1, [r4, #20]
	str	r3, [r6, #4]
	ldr	r3, [r5, #28]
	str	r2, [r4, #16]
	str	r3, [r4, #12]
.L16:
	ldr	r1, [sp, #4]
	mov	r2, r8
	ldr	r0, [r4, #4]
	bl	memcpy
	ldr	r1, [r6, #16]
	add	r9, r1, r10
.L13:
	ldr	r4, [r9, #4]
	cmn	r4, #1
	beq	.L18
.L17:
	add	r4, r4, r4, lsl #1
	add	r9, r1, r4, lsl #2
	ldr	r2, [r9, #8]
	ldr	r0, [r5, #20]
	lsl	r10, r4, #2
	cmp	r0, r2
	cmpne	r2, #0
	bne	.L13
	mov	r0, r8
	bl	hb_buffer_init
	ldr	r2, [r5, #24]
	ldr	r1, [r5, #4]
	add	r2, r2, #5
	cmp	r2, r1
	movge	r3, #1
	mov	r4, r0
	strge	r3, [r0, #8]
	mov	r1, r0
	add	r0, sp, #16
	bl	hb_buffer_list_append
	mov	r0, r9
	bl	get_id
	mov	r2, r0
	ldr	r0, [r9]
	str	r2, [r4, #36]
	bl	stream_kind_to_buf_type
	ldr	r2, [r5, #8]
	ldr	r3, [r7, #28]
	str	r0, [r4, #32]
	mov	r0, #0
	cmp	r2, #0
	str	r3, [r4, #28]
	str	r0, [r7, #28]
	bgt	.L28
	ldr	r3, [fp]
	str	r3, [r4, #20]
	str	r3, [r4, #16]
	str	r3, [r4, #12]
	b	.L16
.L27:
	ldr	r3, [r6, #16]
	ldr	r9, .L31+8
	add	r4, r4, r4, lsl #1
	ldr	r3, [r3, r4, lsl #2]
	ldr	r4, [r9]
	cmp	r4, r3
	beq	.L7
.L9:
	mov	r3, #0
	mov	r0, r3
	ldr	r2, [sp, #12]
	ldr	r1, [sp, #8]
	str	r3, [r7]
	str	r3, [r2, r1]
	str	r3, [r5, #4]
	str	r3, [r5, #8]
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r3, [r5, #24]
	cmp	r3, #0
	ble	.L12
	ldr	r2, [r5, #4]
	add	r3, r3, #5
	cmp	r3, r2
	movlt	r3, #0
	ldrlt	r2, [sp, #12]
	ldrlt	r1, [sp, #8]
	strlt	r3, [r2, r1]
	strlt	r3, [r5, #4]
.L12:
	mov	r3, #0
	add	r0, sp, #16
	str	r3, [r7]
	str	r3, [r5, #8]
	bl	hb_buffer_list_clear
	b	.L1
.L2:
	add	r3, r5, #16
	mov	r0, r6
	ldr	r2, [r7]
	ldr	r1, [r7, #4]
	bl	hb_parse_ps
	subs	r3, r0, #0
	beq	.L30
	mov	r2, #1
	ldr	r3, [r5, #16]
	ldr	r1, [sp, #12]
	ldr	r0, [sp, #8]
	str	r2, [r1, r0]
	str	r3, [r5, #8]
	b	.L3
.L7:
	mov	r2, r8
	mov	r0, r6
	ldr	r1, [sp, #4]
	bl	isIframe
	cmp	r0, #0
	bne	.L8
	ldr	r3, [r9]
	cmp	r3, r4
	bne	.L9
	ldr	r3, [r6]
	add	r3, r3, #1
	cmp	r3, #512
	str	r3, [r6]
	blt	.L9
.L8:
	mov	r3, #0
	ldr	r4, [r5, #12]
	str	r3, [r6]
	b	.L6
.L30:
	str	r3, [r7]
	mov	r0, r3
	str	r3, [r5, #4]
	str	r3, [r5, #8]
	b	.L1
.L29:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	AV_NOPTS_VALUE
	.word	V
	.size	generate_output_data, .-generate_output_data
	.comm	V,4,4
	.comm	AV_NOPTS_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
