	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_replace                   ## -- Begin function file_replace
	.p2align	4, 0x90
_file_replace:                          ## @file_replace
	.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	%rdx, %r14
	movq	%rdi, %r15
	movq	_REG_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	callq	_file_regcomp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	-44(%rbp), %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_file_regerror
LBB0_8:
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	(%r15), %rsi
	leaq	-44(%rbp), %rdi
	leaq	-64(%rbp), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_file_regexec
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r12
	leaq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	-64(%rbp), %rcx
	movb	$0, (%rax,%rcx)
	movq	-56(%rbp), %rax
	leaq	L_.str.1(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	(%r15), %rax
	movq	%rax, %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_file_printf
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movq	(%r15), %rsi
	leaq	-44(%rbp), %rdi
	movl	$1, %edx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_file_regexec
	testq	%rax, %rax
	je	LBB0_4
LBB0_9:
	leaq	-44(%rbp), %rdi
	callq	_file_regfree
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_EXTENDED,4,2               ## @REG_EXTENDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

L_.str.1:                               ## @.str.1
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_replace                   ; -- Begin function file_replace
	.p2align	2
_file_replace:                          ; @file_replace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_EXTENDED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_EXTENDED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #28
	bl	_file_regcomp
	cbz	w0, LBB0_3
; %bb.1:
	mov	x1, x0
	add	x0, sp, #28
	mov	x2, x19
	bl	_file_regerror
LBB0_2:
	mov	w21, #-1
	b	LBB0_10
LBB0_3:
	ldr	x1, [x19]
	add	x0, sp, #28
	add	x3, sp, #8
	mov	w2, #1
	mov	w4, #0
	bl	_file_regexec
	mov	w21, #0
	cbnz	x0, LBB0_10
; %bb.4:
	mov	w21, #0
Lloh3:
	adrp	x23, l_.str.1@PAGE
Lloh4:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	strb	wzr, [x8, x9]
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19]
	add	x3, x9, x8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x3, x23
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_file_printf
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	ldr	x1, [x19]
	add	x0, sp, #28
	add	x3, sp, #8
	mov	w2, #1
	mov	w4, #0
	bl	_file_regexec
	cbz	x0, LBB0_5
LBB0_10:
	add	x0, sp, #28
	bl	_file_regfree
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_EXTENDED,4,2               ; @REG_EXTENDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

l_.str.1:                               ; @.str.1
	.space	1

.subsections_via_symbols
