	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function replace_str_data_in_filename
_replace_str_data_in_filename:          ## @replace_str_data_in_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_AV_BPRINT_SIZE_UNLIMITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r13
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %r14d
	testb	%al, %al
	je	LBB0_7
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_av_bprint_append_data
	movl	%r14d, %eax
	addq	%rax, %rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$37, %al
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	1(%rbx), %eax
	movl	$2, %r14d
	cmpb	$37, %al
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %r14d
	cmpb	%r12b, %al
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_av_bprintf
	addq	$2, %rbx
	incl	%r15d
	jmp	LBB0_1
LBB0_7:
	leaq	-44(%rbp), %rdi
	callq	_av_bprint_is_complete
	leaq	-44(%rbp), %rdi
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	leaq	-72(%rbp), %rsi
	callq	_av_bprint_finalize
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	js	LBB0_12
## %bb.10:
	movq	-72(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movl	%r15d, %eax
	jmp	LBB0_12
LBB0_8:
	xorl	%esi, %esi
	callq	_av_bprint_finalize
	movl	$-1, %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ## @AV_BPRINT_SIZE_UNLIMITED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.no_dead_strip	_replace_str_data_in_filename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function replace_str_data_in_filename
_replace_str_data_in_filename:          ; @replace_str_data_in_filename
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
	and	w25, w2, #0xff
Lloh0:
	adrp	x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #4
	mov	w1, #0
	bl	_av_bprint_init
	mov	w24, #0
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #2
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #4
	mov	x1, x21
	mov	x2, x23
	bl	_av_bprint_append_data
	add	x21, x21, w23, uxtw
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cmp	w8, #37
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w8, LBB0_7
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #1]
	cmp	w8, #37
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w25
	b.eq	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #1
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #4
	mov	x1, x22
	mov	x2, x20
	bl	_av_bprintf
	add	x21, x21, #2
	add	w24, w24, #1
	b	LBB0_3
LBB0_9:
	add	x0, sp, #4
	bl	_av_bprint_is_complete
	cbz	w0, LBB0_13
; %bb.10:
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_av_bprint_finalize
	mov	x8, x0
	mov	w0, #-1
	tbnz	x8, #63, LBB0_14
; %bb.11:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_14
; %bb.12:
	str	x8, [x19]
	mov	x0, x24
	b	LBB0_14
LBB0_13:
	add	x0, sp, #4
	mov	x1, #0
	bl	_av_bprint_finalize
	mov	w0, #-1
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ; @AV_BPRINT_SIZE_UNLIMITED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.no_dead_strip	_replace_str_data_in_filename
.subsections_via_symbols
