	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplaceString                  ## -- Begin function ReplaceString
	.p2align	4, 0x90
_ReplaceString:                         ## @ReplaceString
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movb	(%rdi), %cl
	testb	%cl, %cl
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rax), %edx
	testb	%dl, %dl
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	%dl, %cl
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%rdi,%rax), %ecx
	incq	%rax
	testb	%cl, %cl
	jne	LBB0_3
## %bb.10:
	movl	%eax, %ecx
	jmp	LBB0_11
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %ecx
	cmpb	$0, (%rdi,%rcx)
	je	LBB0_11
## %bb.6:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	leaq	(%rdi,%rax), %rbx
	incq	%rbx
	movq	_charCount@GOTPCREL(%rip), %r12
	movq	_countPointer@GOTPCREL(%rip), %r13
	movq	_KC_BSPC@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%r13), %rcx
	decl	(%rax,%rcx,4)
	movl	(%r14), %edi
	callq	_register_code
	movl	(%r14), %edi
	callq	_unregister_code
	cmpb	$0, (%rbx)
	leaq	1(%rbx), %rbx
	jne	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_11:
	addq	%rcx, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printString                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_charCount,8,3                  ## @charCount
	.comm	_countPointer,8,3               ## @countPointer
	.comm	_KC_BSPC,4,2                    ## @KC_BSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplaceString                  ; -- Begin function ReplaceString
	.p2align	2
_ReplaceString:                         ; @ReplaceString
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	ldrb	w10, [x0]
	cbz	w10, LBB0_5
; %bb.1:
	mov	x8, #0
	add	x9, x0, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x19, x8]
	cmp	w11, #0
	ccmp	w10, w11, #0, ne
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x8, #1
	ldrb	w10, [x9, x8]
	mov	x8, x11
	cbnz	w10, LBB0_2
; %bb.4:
	and	x20, x11, #0xffffffff
	b	LBB0_9
LBB0_5:
	mov	x20, #0
	b	LBB0_9
LBB0_6:
	and	x20, x8, #0xffffffff
	ldrb	w9, [x0, x20]
	cbz	w9, LBB0_9
; %bb.7:
	add	x8, x0, w8, uxtw
	add	x21, x8, #1
Lloh0:
	adrp	x22, _charCount@GOTPAGE
Lloh1:
	ldr	x22, [x22, _charCount@GOTPAGEOFF]
Lloh2:
	adrp	x23, _countPointer@GOTPAGE
Lloh3:
	ldr	x23, [x23, _countPointer@GOTPAGEOFF]
Lloh4:
	adrp	x24, _KC_BSPC@GOTPAGE
Lloh5:
	ldr	x24, [x24, _KC_BSPC@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	sub	w10, w10, #1
	str	w10, [x8, x9]
	ldr	w0, [x24]
	bl	_register_code
	ldr	w0, [x24]
	bl	_unregister_code
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_8
LBB0_9:
	add	x0, x19, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_printString
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_charCount,8,3                  ; @charCount
	.comm	_countPointer,8,3               ; @countPointer
	.comm	_KC_BSPC,4,2                    ; @KC_BSPC
.subsections_via_symbols
