	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_strireplace                 ## -- Begin function av_strireplace
	.p2align	4, 0x90
_av_strireplace:                        ## @av_strireplace
	.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	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	$0, -56(%rbp)
	movq	%rdx, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_AV_BPRINT_SIZE_UNLIMITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	movl	$1, %esi
	callq	_av_bprint_init
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_av_stristr
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdx
	subq	%rbx, %rdx
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_av_bprint_append_data
	movq	%r12, %rbx
	addq	%r15, %rbx
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_av_bprint_append_data
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_av_stristr
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_strlen
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_av_bprint_append_data
	movq	%r14, %rdi
	callq	_av_bprint_is_complete
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	-44(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_av_bprint_finalize
	movq	-56(%rbp), %rbx
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
LBB0_6:
	movq	%rbx, %rax
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_strireplace                 ; -- Begin function av_strireplace
	.p2align	2
_av_strireplace:                        ; @av_strireplace
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	mov	x0, x2
	bl	_strlen
	mov	x22, x0
	mov	x0, x21
	bl	_strlen
	mov	x23, x0
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, #1
	bl	_av_bprint_init
	mov	x0, x19
	mov	x1, x21
	bl	_av_stristr
	cbz	x0, LBB0_3
; %bb.1:
	mov	x24, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x2, x24, x19
	add	x0, sp, #4
	mov	x1, x19
	bl	_av_bprint_append_data
	add	x19, x24, x23
	add	x0, sp, #4
	mov	x1, x20
	mov	x2, x22
	bl	_av_bprint_append_data
	mov	x0, x19
	mov	x1, x21
	bl	_av_stristr
	mov	x24, x0
	cbnz	x0, LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #4
	mov	x1, x19
	bl	_av_bprint_append_data
	add	x0, sp, #4
	bl	_av_bprint_is_complete
	cbz	w0, LBB0_5
; %bb.4:
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_av_bprint_finalize
	ldr	x0, [sp, #8]
	b	LBB0_6
LBB0_5:
	add	x0, sp, #4
	mov	x1, #0
	bl	_av_bprint_finalize
	mov	x0, #0
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ; @AV_BPRINT_SIZE_UNLIMITED
.subsections_via_symbols
