	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_init_output_file
_check_init_output_file:                ## @check_init_output_file
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	_output_streams@GOTPCREL(%rip), %rdx
	movslq	(%r15), %rcx
	shlq	$3, %rcx
	addq	(%rdx), %rcx
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	cmpl	$0, 20(%rsi)
	je	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_3
LBB0_4:
	movq	_int_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	leaq	16(%r15), %rsi
	callq	_avformat_write_header
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	$1, 4(%r15)
	movq	8(%r15), %rdi
	movl	4(%rdi), %edx
	movl	%r14d, %esi
	movl	$1, %ecx
	callq	_av_dump_format
	movq	_sdp_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_want_sdp@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_print_sdp
LBB0_8:
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.9:
	xorl	%r12d, %r12d
	movq	_output_streams@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	(%r13), %rax
	movslq	(%r15), %rcx
	movslq	%r12d, %rdx
	addq	%rcx, %rdx
	movq	(%rax,%rdx,8), %rbx
	movl	(%rbx), %edi
	callq	_av_fifo_size
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_read
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_write_packet
LBB0_13:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	callq	_av_fifo_size
	testq	%rax, %rax
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%r12d
	movq	8(%r15), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_10
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_5:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_av_err2str
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_av_log
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_output_streams,8,3             ## @output_streams
	.comm	_int_cb,4,2                     ## @int_cb
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not write header for output file #%d (incorrect codec parameters ?): %s\n"

	.comm	_sdp_filename,8,3               ## @sdp_filename
	.comm	_want_sdp,8,3                   ## @want_sdp
	.no_dead_strip	_check_init_output_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_init_output_file
_check_init_output_file:                ; @check_init_output_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _output_streams@GOTPAGE
Lloh1:
	ldr	x9, [x9, _output_streams@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldrsw	x10, [x19]
	add	x9, x9, x10, lsl #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	w10, [x10, #20]
	cbz	w10, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
Lloh3:
	adrp	x8, _int_cb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _int_cb@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	add	x1, x19, #16
	bl	_avformat_write_header
	tbnz	w0, #31, LBB0_15
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	x0, [x19, #8]
	ldr	w2, [x0, #4]
	mov	x1, x20
	mov	w3, #1
	bl	_av_dump_format
Lloh6:
	adrp	x8, _sdp_filename@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sdp_filename@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _want_sdp@GOTPAGE
Lloh10:
	ldr	x9, [x9, _want_sdp@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbz	x8, LBB0_7
; %bb.6:
	bl	_print_sdp
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.8:
	mov	w21, #0
Lloh12:
	adrp	x22, _output_streams@GOTPAGE
Lloh13:
	ldr	x22, [x22, _output_streams@GOTPAGEOFF]
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x22]
	ldr	w9, [x19]
	add	w9, w9, w21
	ldr	x20, [x8, w9, sxtw #3]
	ldr	w0, [x20]
	bl	_av_fifo_size
	cbnz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	str	w8, [x20, #16]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	w0, [x20]
	add	x1, sp, #12
	mov	w2, #4
	mov	x3, #0
	bl	_av_fifo_generic_read
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	mov	w3, #1
	bl	_write_packet
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x20]
	bl	_av_fifo_size
	cbnz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w21, w21, #1
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w21, w8
	b.lt	LBB0_9
LBB0_14:
	mov	w21, #0
	b	LBB0_16
LBB0_15:
	mov	x21, x0
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	bl	_av_err2str
	mov	x4, x0
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x1, x19
	mov	x3, x20
	bl	_av_log
LBB0_16:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_output_streams,8,3             ; @output_streams
	.comm	_int_cb,4,2                     ; @int_cb
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not write header for output file #%d (incorrect codec parameters ?): %s\n"

	.comm	_sdp_filename,8,3               ; @sdp_filename
	.comm	_want_sdp,8,3                   ; @want_sdp
	.no_dead_strip	_check_init_output_file
.subsections_via_symbols
