	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmpeg_init_muxer_pre
_ffmpeg_init_muxer_pre:                 ## @ffmpeg_init_muxer_pre
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_avformat_alloc_context
	movq	_ctx@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	(%rax), %rdi
	movl	16(%r14), %esi
	movl	$8, %edx
	callq	_av_strlcpy
	movq	8(%r14), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	jmp	LBB0_3
LBB0_2:
	movq	(%r15), %rax
	movq	(%rax), %rsi
	xorl	%edi, %edi
LBB0_3:
	xorl	%edx, %edx
	callq	_av_guess_format
	movq	(%r15), %rdi
	movq	%rax, 16(%rdi)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	(%rdi), %rsi
	addq	$8, %rdi
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_open
	movq	(%r15), %rdi
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	%rdi, (%r14)
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_5:
	callq	_av_free
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx,8,3                        ## @ctx
	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
	.no_dead_strip	_ffmpeg_init_muxer_pre
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmpeg_init_muxer_pre
_ffmpeg_init_muxer_pre:                 ; @ffmpeg_init_muxer_pre
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_avformat_alloc_context
Lloh0:
	adrp	x20, _ctx@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ctx@GOTPAGEOFF]
	str	x0, [x20]
	ldr	x0, [x0]
	ldr	w1, [x19, #16]
	mov	w2, #8
	bl	_av_strlcpy
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x1, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20]
	ldr	x1, [x8]
	mov	x0, #0
LBB0_3:
	mov	x2, #0
	bl	_av_guess_format
	ldr	x8, [x20]
	str	x0, [x8, #16]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x1, [x8], #8
Lloh2:
	adrp	x9, _AVIO_FLAG_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_avio_open
	mov	x8, x0
	ldr	x0, [x20]
	tbnz	x8, #63, LBB0_6
; %bb.5:
	str	x0, [x19]
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	bl	_av_free
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx,8,3                        ; @ctx
	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
	.no_dead_strip	_ffmpeg_init_muxer_pre
.subsections_via_symbols
