	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replaceall                     ## -- Begin function replaceall
	.p2align	4, 0x90
_replaceall:                            ## @replaceall
	.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	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_strlen
	movl	%eax, %r13d
	testq	%r12, %r12
	je	LBB0_2
## %bb.4:
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %ebx
	testq	%r15, %r15
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_strlen
	cltq
	testl	%r13d, %r13d
	jne	LBB0_8
	jmp	LBB0_2
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_2
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.9:
	cmpl	%ebx, %r13d
	jb	LBB0_2
## %bb.10:
	movslq	%ebx, %rbx
	movq	%r14, %rcx
	cmpq	%rbx, %rax
	jbe	LBB0_14
## %bb.11:
	movslq	%r13d, %r13
	incq	%r13
	movq	%r13, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_14:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpb	$0, (%rcx)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_24
## %bb.15:
	leaq	1(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movb	(%r13), %al
	incq	%r13
	movb	%al, (%r14)
	incq	%r14
	cmpb	$0, (%r13)
	je	LBB0_24
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	testq	%r15, %r15
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movb	(%r15), %al
	testb	%al, %al
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movb	%al, (%r14)
	incq	%r14
	movzbl	(%rcx), %eax
	incq	%rcx
	testb	%al, %al
	jne	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	%rbx, %r13
	cmpb	$0, (%r13)
	jne	LBB0_16
LBB0_24:
	movb	$0, (%r14)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rbx, %rdi
	je	LBB0_26
## %bb.25:
	callq	_free
LBB0_26:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlen                         ## TAILCALL
LBB0_12:
	movl	$-1, %r13d
LBB0_2:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replaceall                     ; -- Begin function replaceall
	.p2align	2
_replaceall:                            ; @replaceall
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_strlen
	mov	x24, x0
	cbz	x21, LBB0_24
; %bb.2:
	mov	x0, x21
	bl	_strlen
	mov	x22, x0
	cbz	x20, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cbnz	w24, LBB0_6
	b	LBB0_24
LBB0_4:
	mov	w24, #0
	b	LBB0_24
LBB0_5:
	mov	x8, #0
	cbz	w24, LBB0_24
LBB0_6:
	sxtw	x22, w22
	cbz	w22, LBB0_24
; %bb.7:
	cmp	w24, w22
	b.lo	LBB0_24
; %bb.8:
	mov	x23, x19
	cmp	x8, x22
	b.ls	LBB0_11
; %bb.9:
	sxtw	x8, w24
	add	x24, x8, #1
	mov	x0, x24
	bl	_malloc
	cbz	x0, LBB0_23
; %bb.10:
	mov	x23, x0
	mov	x1, x19
	mov	x2, x24
	bl	_memcpy
LBB0_11:
	ldrb	w8, [x23]
	mov	x25, x19
	cbz	w8, LBB0_20
; %bb.12:
	add	x26, x20, #1
	mov	x25, x19
	mov	x24, x23
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w8, [x24], #1
	strb	w8, [x25], #1
	ldrb	w8, [x24]
	cbz	w8, LBB0_20
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	mov	x0, x24
	mov	x1, x21
	mov	x2, x22
	bl	_strncmp
	cbnz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cbz	x20, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x9, x26
LBB0_18:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	strb	w8, [x25], #1
	ldrb	w8, [x9], #1
	cbnz	w8, LBB0_18
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, x22
	ldrb	w8, [x24]
	cbnz	w8, LBB0_14
LBB0_20:
	strb	wzr, [x25]
	cmp	x23, x19
	b.eq	LBB0_22
; %bb.21:
	mov	x0, x23
	bl	_free
LBB0_22:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_strlen
LBB0_23:
	mov	w24, #-1
LBB0_24:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
.subsections_via_symbols
