	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avi_write_stream_header_list
_avi_write_stream_header_list:          ## @avi_write_stream_header_list
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %r12
	movl	$76, %edi
	movl	$73, %esi
	movl	$83, %edx
	movl	$84, %ecx
	callq	_VC_FOURCC
	leaq	L_.str(%rip), %r15
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_WRITE_FOURCC
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_WRITE_U32
	movl	$115, %edi
	movl	$116, %esi
	movl	$114, %edx
	movl	$108, %ecx
	callq	_VC_FOURCC
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_WRITE_FOURCC
	movq	%r13, %rdi
	callq	_STREAM_STATUS
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_12
## %bb.1:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_avi_write_stream_header_chunk
	cmpq	(%rbx), %rax
	jne	LBB0_12
## %bb.2:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vc_container_writer_extraio_enable
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_avi_write_stream_format_chunk
	movq	%r13, %rdi
	callq	_STREAM_POSITION
	movq	%rax, %r15
	addq	$-8, %r15
LBB0_5:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vc_container_writer_extraio_disable
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_avi_write_stream_format_chunk
	cmpq	(%rbx), %rax
	jne	LBB0_12
## %bb.6:
	movq	(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.7:
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movl	$115, %edi
	movl	$116, %esi
	movl	$114, %edx
	movl	$100, %ecx
	callq	_VC_FOURCC
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_WRITE_FOURCC
	movq	(%r12), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	callq	_WRITE_U32
	movq	(%r12), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	movq	%r13, %rdi
	callq	_WRITE_BYTES
	movq	%r13, %rdi
	callq	_AVI_END_CHUNK
	movq	%r13, %rdi
	callq	_STREAM_STATUS
	cmpq	(%rbx), %rax
	jne	LBB0_12
LBB0_9:
	movq	%r13, %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_vc_container_writer_extraio_enable
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_avi_write_super_index_chunk
	movq	%r13, %rdi
	callq	_STREAM_POSITION
	movq	%rax, %r15
	addq	$-8, %r15
LBB0_11:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_vc_container_writer_extraio_disable
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_avi_write_super_index_chunk
	cmpq	(%rbx), %rax
	jne	LBB0_12
## %bb.13:
	movq	%r13, %rdi
	callq	_AVI_END_CHUNK
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chunk ID"

L_.str.1:                               ## @.str.1
	.asciz	"LIST Size"

	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"Chunk Size"

	.no_dead_strip	_avi_write_stream_header_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avi_write_stream_header_list
_avi_write_stream_header_list:          ; @avi_write_stream_header_list
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldp	x9, x8, [x0]
	ldr	x21, [x8]
	ldr	x22, [x9, w1, uxtw #3]
	mov	w0, #76
	mov	w1, #73
	mov	w2, #83
	mov	w3, #84
	bl	_VC_FOURCC
	mov	x1, x0
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_WRITE_FOURCC
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x23
	bl	_WRITE_U32
	mov	w0, #115
	mov	w1, #116
	mov	w2, #114
	mov	w3, #108
	bl	_VC_FOURCC
	mov	x1, x0
	mov	x0, x19
	mov	x2, x24
	bl	_WRITE_FOURCC
	mov	x0, x19
	bl	_STREAM_STATUS
Lloh4:
	adrp	x24, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_avi_write_stream_header_chunk
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_vc_container_writer_extraio_enable
	cbz	w0, LBB0_4
; %bb.3:
	mov	x23, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_avi_write_stream_format_chunk
	mov	x0, x19
	bl	_STREAM_POSITION
	sub	x23, x0, #8
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_vc_container_writer_extraio_disable
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_avi_write_stream_format_chunk
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.6:
	ldr	x8, [x22]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_9
; %bb.7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	w0, #115
	mov	w1, #116
	mov	w2, #114
	mov	w3, #100
	bl	_VC_FOURCC
	mov	x1, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_WRITE_FOURCC
	ldr	x8, [x22]
	ldr	x1, [x8]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_WRITE_U32
	ldr	x8, [x22]
	ldp	x2, x1, [x8]
	mov	x0, x19
	bl	_WRITE_BYTES
	mov	x0, x19
	bl	_AVI_END_CHUNK
	mov	x0, x19
	bl	_STREAM_STATUS
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_13
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	bl	_vc_container_writer_extraio_enable
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_avi_write_super_index_chunk
	mov	x0, x19
	bl	_STREAM_POSITION
	sub	x23, x0, #8
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_vc_container_writer_extraio_disable
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_avi_write_super_index_chunk
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_AVI_END_CHUNK
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_STREAM_STATUS
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chunk ID"

l_.str.1:                               ; @.str.1
	.asciz	"LIST Size"

	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"Chunk Size"

	.no_dead_strip	_avi_write_stream_header_list
.subsections_via_symbols
