	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_name
_format_name:                           ## @format_name
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	callq	_av_strdup
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_av_stristr
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$118, %edx
	testq	%r15, %r15
	je	LBB0_11
## %bb.3:
	movq	%r15, %rcx
	callq	_replace_str_data_in_filename
	testl	%eax, %eax
	jle	LBB0_12
LBB0_4:
	movq	%r13, %rdi
	callq	_avio_find_protocol_name
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_av_dirname
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_av_stristr
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	testq	%r15, %r15
	je	LBB0_15
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movq	(%r14), %rdi
	callq	_av_strdup
	movq	%rax, -48(%rbp)
	movq	%rax, %rdi
	callq	_av_dirname
	movq	%rax, %rdi
	callq	_ff_mkdir_p
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_14
	jmp	LBB0_15
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	%r13, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_11:
	movl	%r12d, %ecx
	callq	_replace_int_data_in_filename
	testl	%eax, %eax
	jg	LBB0_4
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rdi
LBB0_14:
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_15:
	leaq	-56(%rbp), %rdi
	callq	_av_freep
	leaq	-48(%rbp), %rdi
	callq	_av_freep
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%v"

	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"file"

	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
	.no_dead_strip	_format_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_name
_format_name:                           ; @format_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	str	xzr, [sp]
	bl	_av_strdup
	str	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_av_stristr
	cbz	x0, LBB0_11
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #118
	cbz	x21, LBB0_12
; %bb.3:
	mov	x3, x21
	bl	_replace_str_data_in_filename
	cmp	w0, #0
	b.le	LBB0_13
LBB0_4:
	mov	x0, x20
	bl	_avio_find_protocol_name
	mov	x22, x0
	mov	x0, x20
	bl	_av_dirname
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_av_stristr
	mov	w21, #0
	cbz	x0, LBB0_16
; %bb.5:
	cbz	x22, LBB0_16
; %bb.6:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	x0, [x19]
	bl	_av_strdup
	str	x0, [sp]
	bl	_av_dirname
	bl	_ff_mkdir_p
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
Lloh9:
	adrp	x8, _EEXIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
LBB0_9:
	mov	w21, #0
	b	LBB0_16
LBB0_10:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	mov	w21, #0
	str	x20, [x19]
	b	LBB0_17
LBB0_12:
	mov	x3, x22
	bl	_replace_int_data_in_filename
	cmp	w0, #0
	b.gt	LBB0_4
LBB0_13:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	x0, [x8]
LBB0_15:
	bl	_AVERROR
	mov	x21, x0
LBB0_16:
	add	x0, sp, #8
	bl	_av_freep
	mov	x0, sp
	bl	_av_freep
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%v"

	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"file"

	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
	.no_dead_strip	_format_name
.subsections_via_symbols
