	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_get_frame_filename2         ## -- Begin function av_get_frame_filename2
	.p2align	4, 0x90
_av_get_frame_filename2:                ## @av_get_frame_filename2
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -96(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	(%rdx), %r12b
	testb	%r12b, %r12b
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	shrl	$31, %ecx
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
	decl	%esi
	movslq	%esi, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, %r13
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	(%rbx), %r12b
	testb	%r12b, %r12b
	je	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	incq	%rbx
	cmpb	$37, %r12b
	je	LBB0_4
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movb	(%rbx), %r12b
	incq	%rbx
	movsbl	%r12b, %r14d
	movl	%r14d, %edi
	callq	_av_isdigit
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movsbl	(%rbx), %edi
	callq	_av_isdigit
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%r15,%r15,4), %eax
	leaq	1(%rcx), %rbx
	movsbl	(%rcx), %edx
	leal	(%rdx,%rax,2), %r15d
	addl	$-48, %r15d
	movsbl	1(%rcx), %edi
	callq	_av_isdigit
	movq	%rbx, %rcx
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$37, %r14d
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$100, %r14d
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-96(%rbp), %eax                 ## 4-byte Reload
	movq	_AV_FRAME_FILENAME_FLAGS_MULTIPLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	-88(%rbp), %r15d                ## 4-byte Folded Reload
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	movl	$20, %esi
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %ecx
	movl	-92(%rbp), %r8d                 ## 4-byte Reload
	callq	_snprintf
	movq	%r12, %rdi
	callq	_strlen
	movq	%r13, %rcx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	subq	%r14, %rcx
	movslq	%eax, %r15
	addq	%r15, %rcx
	cmpq	-112(%rbp), %rcx                ## 8-byte Folded Reload
	jg	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	addq	%r15, %r13
	movl	$1, -84(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-104(%rbp), %r14                ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rax
	subq	%r14, %rax
	cmpq	-112(%rbp), %rax                ## 8-byte Folded Reload
	jge	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	%r12b, (%r13)
	incq	%r13
	jmp	LBB0_17
LBB0_1:
	movq	%r14, %r13
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_20
LBB0_19:
	movl	$-1, %eax
LBB0_20:
	movb	$0, (%r13)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_FRAME_FILENAME_FLAGS_MULTIPLE,4,2 ## @AV_FRAME_FILENAME_FLAGS_MULTIPLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%0*d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_get_frame_filename2         ; -- Begin function av_get_frame_filename2
	.p2align	2
_av_get_frame_filename2:                ; @av_get_frame_filename2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldrb	w8, [x2]
	cbz	w8, LBB0_19
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	w24, #0
	lsr	w9, w3, #31
	str	w9, [sp]                        ; 4-byte Folded Spill
	sub	w9, w1, #1
	sxtw	x27, w9
	mov	w28, #10
	mov	x23, x19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x22]
	cbz	w8, LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	add	x22, x22, #1
	and	w9, w8, #0xff
	cmp	w9, #37
	b.eq	LBB0_5
	b	LBB0_14
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldrsb	w25, [x22], #1
	mov	x0, x25
	bl	_av_isdigit
	cbz	x0, LBB0_8
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	ldrsb	w0, [x22]
	bl	_av_isdigit
	mov	w26, #0
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x8, x22
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsb	w0, [x22, #1]!
	ldrsb	w8, [x8]
	madd	w8, w26, w28, w8
	sub	w26, w8, #48
	bl	_av_isdigit
	mov	x8, x22
	cbnz	x0, LBB0_7
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, #37
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, #100
	b.ne	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh3:
	adrp	x8, _AV_FRAME_FILENAME_FLAGS_MULTIPLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_FRAME_FILENAME_FLAGS_MULTIPLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w20
	cmp	w8, #0
	ccmp	w24, #0, #4, eq
	b.ne	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	add	w3, w26, w8
	add	x0, sp, #4
	mov	w1, #20
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x4, x21
	bl	_snprintf
	add	x0, sp, #4
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x25, w0
	sub	x8, x23, x19
	add	x8, x8, x25
	cmp	x8, x27
	b.gt	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #4
	mov	x0, x23
	mov	x2, x25
	bl	_memcpy
	add	x23, x23, x25
	mov	w24, #1
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w8, w25, #0xff
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x9, x23, x19
	cmp	x9, x27
	b.ge	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	strb	w8, [x23], #1
	b	LBB0_2
LBB0_16:
	cbz	w24, LBB0_18
; %bb.17:
	mov	w0, #0
	b	LBB0_20
LBB0_18:
	mov	x19, x23
LBB0_19:
	mov	w0, #-1
	mov	x23, x19
LBB0_20:
	strb	wzr, [x23]
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_FRAME_FILENAME_FLAGS_MULTIPLE,4,2 ; @AV_FRAME_FILENAME_FLAGS_MULTIPLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%0*d"

.subsections_via_symbols
