	.file	"extr_avi_writer.c_avi_write_stream_header_list.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Chunk ID"
.LC1:
	.string	"LIST Size"
.LC2:
	.string	"Chunk Size"
	.text
	.p2align 4
	.type	avi_write_stream_header_list, @function
avi_write_stream_header_list:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	mov	edx, esi
	mov	ecx, 84
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	mov	esi, 73
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR 8[rdi]
	mov	r13, QWORD PTR [rax]
	mov	rax, QWORD PTR [rdi]
	mov	edi, 76
	mov	rbx, QWORD PTR [rax+rdx*8]
	mov	edx, 83
	call	VC_FOURCC@PLT
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	mov	esi, eax
	call	WRITE_FOURCC@PLT
	lea	rdx, .LC1[rip]
	mov	rsi, r14
	mov	rdi, rbp
	call	WRITE_U32@PLT
	mov	ecx, 108
	mov	edx, 114
	mov	esi, 116
	mov	edi, 115
	call	VC_FOURCC@PLT
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	mov	esi, eax
	call	WRITE_FOURCC@PLT
	mov	rdi, rbp
	call	STREAM_STATUS@PLT
	cmp	QWORD PTR VC_CONTAINER_SUCCESS[rip], rax
	je	.L11
.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
.L11:
	.cfi_restore_state
	mov	rsi, rbx
	mov	rdi, rbp
	call	avi_write_stream_header_chunk@PLT
	cmp	QWORD PTR VC_CONTAINER_SUCCESS[rip], rax
	jne	.L1
	mov	rsi, r13
	mov	rdi, rbp
	xor	r14d, r14d
	call	vc_container_writer_extraio_enable@PLT
	test	eax, eax
	je	.L12
.L3:
	mov	rsi, r13
	mov	rdi, rbp
	call	vc_container_writer_extraio_disable@PLT
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, rbp
	call	avi_write_stream_format_chunk@PLT
	cmp	QWORD PTR VC_CONTAINER_SUCCESS[rip], rax
	jne	.L1
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 8[rax], 0
	je	.L7
	cmp	QWORD PTR [rax], 0
	jne	.L13
.L7:
	mov	rsi, r13
	mov	rdi, rbp
	call	vc_container_writer_extraio_enable@PLT
	test	eax, eax
	je	.L14
.L6:
	mov	rsi, r13
	mov	rdi, rbp
	call	vc_container_writer_extraio_disable@PLT
	mov	rdx, r14
	mov	esi, r12d
	mov	rdi, rbp
	call	avi_write_super_index_chunk@PLT
	cmp	QWORD PTR VC_CONTAINER_SUCCESS[rip], rax
	jne	.L1
	mov	rdi, rbp
	call	AVI_END_CHUNK@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	STREAM_STATUS@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	xor	edx, edx
	mov	rsi, rbx
	mov	rdi, rbp
	call	avi_write_stream_format_chunk@PLT
	mov	rdi, rbp
	call	STREAM_POSITION@PLT
	lea	r14, -8[rax]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	xor	edx, edx
	mov	esi, r12d
	mov	rdi, rbp
	call	avi_write_super_index_chunk@PLT
	mov	rdi, rbp
	call	STREAM_POSITION@PLT
	lea	r14, -8[rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	mov	ecx, 100
	mov	edx, 114
	mov	esi, 116
	mov	edi, 115
	call	VC_FOURCC@PLT
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	mov	esi, eax
	call	WRITE_FOURCC@PLT
	mov	rax, QWORD PTR [rbx]
	lea	rdx, .LC2[rip]
	mov	rdi, rbp
	mov	rsi, QWORD PTR [rax]
	call	WRITE_U32@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdi, rbp
	mov	rsi, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR [rax]
	call	WRITE_BYTES@PLT
	mov	rdi, rbp
	call	AVI_END_CHUNK@PLT
	mov	rdi, rbp
	call	STREAM_STATUS@PLT
	cmp	QWORD PTR VC_CONTAINER_SUCCESS[rip], rax
	jne	.L1
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	avi_write_stream_header_list, .-avi_write_stream_header_list
	.comm	VC_CONTAINER_SUCCESS,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_avi_writer.c_avi_write_stream_header_list.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Chunk ID\000"
	.align	2
.LC1:
	.ascii	"LIST Size\000"
	.align	2
.LC2:
	.ascii	"Chunk Size\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avi_write_stream_header_list, %function
avi_write_stream_header_list:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldm	r0, {ip, lr}
	mov	r5, r1
	mov	r4, r0
	mov	r3, #84
	mov	r8, r2
	mov	r1, #73
	mov	r2, #83
	mov	r0, #76
	ldr	r7, [lr]
	ldr	r6, [ip, r5, lsl #2]
	bl	VC_FOURCC
	ldr	r2, .L17
	mov	r1, r0
	mov	r0, r4
	bl	WRITE_FOURCC
	mov	r1, r8
	ldr	r2, .L17+4
	mov	r0, r4
	bl	WRITE_U32
	mov	r3, #108
	mov	r2, #114
	mov	r1, #116
	mov	r0, #115
	bl	VC_FOURCC
	ldr	r2, .L17
	mov	r1, r0
	mov	r0, r4
	bl	WRITE_FOURCC
	mov	r0, r4
	bl	STREAM_STATUS
	ldr	r8, .L17+8
	ldr	r3, [r8]
	cmp	r3, r0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, r6
	mov	r0, r4
	bl	avi_write_stream_header_chunk
	ldr	r3, [r8]
	cmp	r3, r0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, r7
	mov	r0, r4
	bl	vc_container_writer_extraio_enable
	subs	r2, r0, #0
	movne	r9, #0
	beq	.L14
.L3:
	mov	r1, r7
	mov	r0, r4
	bl	vc_container_writer_extraio_disable
	mov	r2, r9
	mov	r1, r6
	mov	r0, r4
	bl	avi_write_stream_format_chunk
	ldr	r3, [r8]
	cmp	r3, r0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r6]
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L7
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
.L7:
	mov	r1, r7
	mov	r0, r4
	bl	vc_container_writer_extraio_enable
	subs	r2, r0, #0
	beq	.L16
.L6:
	mov	r1, r7
	mov	r0, r4
	bl	vc_container_writer_extraio_disable
	mov	r2, r9
	mov	r1, r5
	mov	r0, r4
	bl	avi_write_super_index_chunk
	ldr	r3, [r8]
	cmp	r3, r0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r0, r4
	bl	AVI_END_CHUNK
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	STREAM_STATUS
.L14:
	mov	r1, r6
	mov	r0, r4
	bl	avi_write_stream_format_chunk
	mov	r0, r4
	bl	STREAM_POSITION
	sub	r9, r0, #8
	b	.L3
.L16:
	mov	r1, r5
	mov	r0, r4
	bl	avi_write_super_index_chunk
	mov	r0, r4
	bl	STREAM_POSITION
	sub	r9, r0, #8
	b	.L6
.L15:
	mov	r3, #100
	mov	r2, #114
	mov	r1, #116
	mov	r0, #115
	bl	VC_FOURCC
	ldr	r2, .L17
	mov	r1, r0
	mov	r0, r4
	bl	WRITE_FOURCC
	ldr	r3, [r6]
	ldr	r2, .L17+12
	ldr	r1, [r3]
	mov	r0, r4
	bl	WRITE_U32
	ldr	r3, [r6]
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, [r3, #4]
	bl	WRITE_BYTES
	mov	r0, r4
	bl	AVI_END_CHUNK
	mov	r0, r4
	bl	STREAM_STATUS
	ldr	r3, [r8]
	cmp	r3, r0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	b	.L7
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.word	VC_CONTAINER_SUCCESS
	.word	.LC2
	.size	avi_write_stream_header_list, .-avi_write_stream_header_list
	.comm	VC_CONTAINER_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
