	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_filename
_parse_filename:                        ## @parse_filename
	.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, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_av_strdup
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_av_stristr
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r14
	leaq	1(%rax), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_av_stristr
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_av_stristr
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movb	$0, (%r14)
	testq	%r12, %r12
	je	LBB0_9
## %bb.7:
	movq	%rax, %r13
	subl	%ebx, %r13d
	incl	%r13d
	movl	%r13d, %edi
	callq	_av_malloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_av_strlcpy
LBB0_9:
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_av_asprintf
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_13
LBB0_11:
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_14
## %bb.12:
	movq	-48(%rbp), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_av_asprintf
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_14
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	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,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"."

L_.str.2:                               ## @.str.2
	.asciz	"%s_$RepresentationID$.hdr"

L_.str.3:                               ## @.str.3
	.asciz	"%s_$RepresentationID$_$Number$.chk"

	.no_dead_strip	_parse_filename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_filename
_parse_filename:                        ; @parse_filename
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_av_strdup
	str	x0, [sp, #8]
	cbz	x0, LBB0_13
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_av_stristr
	cbz	x0, LBB0_14
; %bb.2:
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x0
	add	x22, x0, #1
	mov	x0, x22
	mov	x1, x23
	bl	_av_stristr
	cbnz	x0, LBB0_3
; %bb.4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_av_stristr
	cbz	x0, LBB0_14
; %bb.5:
	strb	wzr, [x24]
	cbz	x21, LBB0_8
; %bb.6:
	sub	w8, w0, w22
	add	w23, w8, #1
	mov	x0, x23
	bl	_av_malloc
	str	x0, [x21]
	cbz	x0, LBB0_13
; %bb.7:
	mov	x1, x22
	mov	x2, x23
	bl	_av_strlcpy
LBB0_8:
	cbz	x20, LBB0_10
; %bb.9:
	ldr	x1, [sp, #8]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_av_asprintf
	str	x0, [x20]
	cbz	x0, LBB0_13
LBB0_10:
	cbz	x19, LBB0_15
; %bb.11:
	ldr	x1, [sp, #8]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_av_asprintf
	str	x0, [x19]
	cbz	x0, LBB0_13
; %bb.12:
	mov	w19, #0
	b	LBB0_15
LBB0_13:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	b	LBB0_15
LBB0_14:
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
LBB0_15:
	add	x0, sp, #8
	bl	_av_freep
	mov	x0, x19
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"."

l_.str.2:                               ; @.str.2
	.asciz	"%s_$RepresentationID$.hdr"

l_.str.3:                               ; @.str.3
	.asciz	"%s_$RepresentationID$_$Number$.chk"

	.no_dead_strip	_parse_filename
.subsections_via_symbols
