	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replace                        ## -- Begin function replace
	.p2align	4, 0x90
_replace:                               ## @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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_GetPathCase
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_GetPathCase
	movl	(%r14), %edi
	callq	__totupper
	movl	%eax, (%r14)
	movl	(%r12), %edi
	callq	__totupper
	movl	%eax, (%r12)
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	callq	_CreateFile
	addq	$16, %rsp
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_STRING_COPY_ERROR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_ConOutResPrintf
	jmp	LBB0_34
LBB0_2:
	leaq	-152(%rbp), %rsi
	leaq	-136(%rbp), %rdx
	leaq	-104(%rbp), %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_GetFileTime
	movq	%r13, %rdi
	callq	_GetFileAttributes
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_IsExistingFile
	testq	%rax, %rax
	movq	%r15, %r13
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_12
## %bb.3:
	movq	_FILE_ATTRIBUTE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_SetFileAttributes
	movq	_REPLACE_UPDATE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.4:
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	callq	_CreateFile
	addq	$16, %rsp
	movq	%r13, %rsi
	movq	%rax, %r13
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_6
## %bb.5:
	movq	_STRING_COPY_ERROR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ConOutResPrintf
	jmp	LBB0_17
LBB0_6:
	movq	%rsi, %rbx
	leaq	-184(%rbp), %rsi
	leaq	-168(%rbp), %rdx
	leaq	-120(%rbp), %rcx
	movq	%r13, %rdi
	callq	_GetFileTime
	movq	-120(%rbp), %rax
	cmpq	%rax, -104(%rbp)
	jle	LBB0_7
LBB0_10:
	movq	%r13, %rdi
	callq	_CloseHandle
	movq	%rbx, %r13
LBB0_11:
	movq	%r13, %rdi
	callq	_DeleteFile
LBB0_12:
	movq	_REPLACE_CONFIRM@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_18
## %bb.13:
	movq	_REPLACE_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	jne	LBB0_14
## %bb.15:
	movq	_STRING_REPLACE_HELP10@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_STRING_REPLACE_HELP9@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_ConOutResPrintf
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_FilePromptYNA
	testl	%eax, %eax
	je	LBB0_17
LBB0_18:
	movq	_REPLACE_ADD@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	jne	LBB0_19
## %bb.20:
	movq	_STRING_REPLACE_HELP5@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_CloseHandle
	jmp	LBB0_34
LBB0_19:
	movq	_STRING_REPLACE_HELP11@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_ConOutResPrintf
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	__tcscmp
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	movq	_GENERIC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CREATE_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	callq	_CreateFile
	addq	$16, %rsp
	movq	%rax, %r14
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_25
## %bb.24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_CloseHandle
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STRING_REPLACE_ERROR7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ConOutResPaging
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_34
LBB0_22:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STRING_REPLACE_ERROR7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ConOutResPaging
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_CloseHandle
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_34
LBB0_25:
	movq	_BUFF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MEM_COMMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAGE_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_VirtualAlloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:
	movq	%rax, %r12
	movq	%r13, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_SetFileAttributes
	leaq	-152(%rbp), %rsi
	leaq	-136(%rbp), %rdx
	leaq	-104(%rbp), %rcx
	movq	%r14, %rdi
	callq	_SetFileTime
	leaq	-60(%rbp), %r15
	leaq	-76(%rbp), %rbx
	movq	_BREAK_INPUT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	_BUFF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_ReadFile
	movl	-60(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_33
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_WriteFile
	movl	-76(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	(%r13), %edi
	callq	_CheckCtrlBreak
	testq	%rax, %rax
	jne	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_28 Depth=1
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_28
LBB0_33:
	movq	_MEM_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_VirtualFree
	movq	%r14, %rdi
	callq	_CloseHandle
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_CloseHandle
	movl	$1, %ebx
	jmp	LBB0_34
LBB0_7:
	jne	LBB0_9
## %bb.8:
	movq	-96(%rbp), %rax
	cmpq	-112(%rbp), %rax
	jg	LBB0_10
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_CloseHandle
	movq	%r13, %rdi
	callq	_CloseHandle
	xorl	%ebx, %ebx
	jmp	LBB0_34
LBB0_26:
	movq	%r14, %rdi
	callq	_CloseHandle
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_CloseHandle
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STRING_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ConOutResPaging
	jmp	LBB0_34
LBB0_31:
	movq	_STRING_COPY_ERROR3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ConOutResPuts
	movq	_MEM_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_VirtualFree
	movq	%r14, %rdi
	callq	_CloseHandle
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_CloseHandle
	movq	_nErrorLevel@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_34:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_36
## %bb.35:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_STRING_COPY_ERROR1,4,2         ## @STRING_COPY_ERROR1
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
	.comm	_REPLACE_UPDATE,4,2             ## @REPLACE_UPDATE
	.comm	_REPLACE_CONFIRM,4,2            ## @REPLACE_CONFIRM
	.comm	_REPLACE_ADD,4,2                ## @REPLACE_ADD
	.comm	_STRING_REPLACE_HELP9,4,2       ## @STRING_REPLACE_HELP9
	.comm	_STRING_REPLACE_HELP10,4,2      ## @STRING_REPLACE_HELP10
	.comm	_STRING_REPLACE_HELP11,4,2      ## @STRING_REPLACE_HELP11
	.comm	_STRING_REPLACE_HELP5,4,2       ## @STRING_REPLACE_HELP5
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_STRING_REPLACE_ERROR7,4,2      ## @STRING_REPLACE_ERROR7
	.comm	_GENERIC_WRITE,4,2              ## @GENERIC_WRITE
	.comm	_CREATE_ALWAYS,4,2              ## @CREATE_ALWAYS
	.comm	_BUFF_SIZE,4,2                  ## @BUFF_SIZE
	.comm	_MEM_COMMIT,4,2                 ## @MEM_COMMIT
	.comm	_PAGE_READWRITE,4,2             ## @PAGE_READWRITE
	.comm	_STRING_ERROR_OUT_OF_MEMORY,4,2 ## @STRING_ERROR_OUT_OF_MEMORY
	.comm	_BREAK_INPUT,4,2                ## @BREAK_INPUT
	.comm	_STRING_COPY_ERROR3,4,2         ## @STRING_COPY_ERROR3
	.comm	_MEM_RELEASE,4,2                ## @MEM_RELEASE
	.comm	_nErrorLevel,4,2                ## @nErrorLevel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replace                        ; -- Begin function replace
	.p2align	2
_replace:                               ; @replace
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #128
	stur	x3, [x29, #-200]                ; 8-byte Folded Spill
	mov	x22, x2
	mov	x21, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x23, x9, x12
	mov	sp, x23
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x24, x8, x12
	mov	sp, x24
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	stur	w8, [x29, #-204]                ; 4-byte Folded Spill
	mov	x1, x24
	bl	_GetPathCase
	mov	x0, x21
	mov	x1, x23
	bl	_GetPathCase
	ldr	w0, [x24]
	bl	__totupper
	str	w0, [x24]
	ldr	w0, [x23]
	bl	__totupper
	str	w0, [x23]
Lloh13:
	adrp	x26, _GENERIC_READ@GOTPAGE
Lloh14:
	ldr	x26, [x26, _GENERIC_READ@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh15:
	adrp	x28, _FILE_SHARE_READ@GOTPAGE
Lloh16:
	ldr	x28, [x28, _FILE_SHARE_READ@GOTPAGEOFF]
	ldr	w2, [x28]
Lloh17:
	adrp	x27, _OPEN_EXISTING@GOTPAGE
Lloh18:
	ldr	x27, [x27, _OPEN_EXISTING@GOTPAGEOFF]
	ldr	w4, [x27]
	mov	x0, x25
	mov	x3, #0
	mov	w5, #0
	mov	x6, #0
	bl	_CreateFile
Lloh19:
	adrp	x20, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh20:
	ldr	x20, [x20, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh21:
	adrp	x8, _STRING_COPY_ERROR1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STRING_COPY_ERROR1@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_ConOutResPrintf
	mov	w0, #0
	b	LBB0_18
LBB0_2:
	mov	x19, x0
	sub	x1, x29, #112
	sub	x2, x29, #144
	sub	x3, x29, #176
	bl	_GetFileTime
	mov	x0, x25
	bl	_GetFileAttributes
	mov	x25, x0
	mov	x0, x21
	bl	_IsExistingFile
	cbz	x0, LBB0_9
; %bb.3:
Lloh24:
	adrp	x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_SetFileAttributes
Lloh27:
	adrp	x8, _REPLACE_UPDATE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _REPLACE_UPDATE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.4:
	ldr	w1, [x26]
	ldr	w2, [x28]
	ldr	w4, [x27]
	mov	x0, x21
	mov	x3, #0
	mov	w5, #0
	mov	x6, #0
	bl	_CreateFile
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
Lloh30:
	adrp	x8, _STRING_COPY_ERROR1@GOTPAGE
Lloh31:
	ldr	x8, [x8, _STRING_COPY_ERROR1@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_ConOutResPrintf
	b	LBB0_14
LBB0_6:
	mov	x26, x0
	sub	x1, x29, #128
	sub	x2, x29, #160
	sub	x3, x29, #192
	bl	_GetFileTime
	ldur	x8, [x29, #-176]
	ldur	x9, [x29, #-192]
	cmp	x8, x9
	b.le	LBB0_27
LBB0_7:
	mov	x0, x26
	bl	_CloseHandle
LBB0_8:
	mov	x0, x21
	bl	_DeleteFile
LBB0_9:
Lloh33:
	adrp	x8, _REPLACE_CONFIRM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _REPLACE_CONFIRM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x26, _REPLACE_ADD@GOTPAGE
Lloh37:
	ldr	x26, [x26, _REPLACE_ADD@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_11
; %bb.10:
Lloh38:
	adrp	x8, _STRING_REPLACE_HELP10@GOTPAGE
Lloh39:
	ldr	x8, [x8, _STRING_REPLACE_HELP10@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh40:
	adrp	x10, _STRING_REPLACE_HELP9@GOTPAGE
Lloh41:
	ldr	x10, [x10, _STRING_REPLACE_HELP9@GOTPAGEOFF]
	tst	w9, w22
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	mov	x1, x21
	bl	_ConOutResPrintf
	mov	w0, #0
	bl	_FilePromptYNA
	cbz	w0, LBB0_14
LBB0_11:
Lloh42:
	adrp	x8, _STRING_REPLACE_HELP5@GOTPAGE
Lloh43:
	ldr	x8, [x8, _STRING_REPLACE_HELP5@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh44:
	adrp	x10, _STRING_REPLACE_HELP11@GOTPAGE
Lloh45:
	ldr	x10, [x10, _STRING_REPLACE_HELP11@GOTPAGEOFF]
	tst	w9, w22
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	mov	x1, x21
	bl	_ConOutResPrintf
	mov	x0, x24
	mov	x1, x23
	bl	__tcscmp
	cbz	w0, LBB0_16
; %bb.12:
Lloh46:
	adrp	x8, _GENERIC_WRITE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _GENERIC_WRITE@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _CREATE_ALWAYS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CREATE_ALWAYS@GOTPAGEOFF]
Lloh51:
	ldr	w4, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	mov	w5, #0
	mov	x6, #0
	bl	_CreateFile
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.13:
	mov	x0, x19
	bl	_CloseHandle
Lloh52:
	adrp	x8, _TRUE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x8, _STRING_REPLACE_ERROR7@GOTPAGE
Lloh56:
	ldr	x8, [x8, _STRING_REPLACE_ERROR7@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	bl	_ConOutResPaging
	b	LBB0_17
LBB0_14:
	mov	x0, x19
LBB0_15:
	bl	_CloseHandle
	mov	w0, #0
	b	LBB0_18
LBB0_16:
Lloh58:
	adrp	x8, _TRUE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
Lloh61:
	adrp	x8, _STRING_REPLACE_ERROR7@GOTPAGE
Lloh62:
	ldr	x8, [x8, _STRING_REPLACE_ERROR7@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	bl	_ConOutResPaging
	mov	x0, x19
	bl	_CloseHandle
LBB0_17:
	mov	w0, #0
Lloh64:
	adrp	x8, _FALSE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	ldur	x9, [x29, #-200]                ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh67:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh68:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.19:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x22, x0
Lloh70:
	adrp	x23, _BUFF_SIZE@GOTPAGE
Lloh71:
	ldr	x23, [x23, _BUFF_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh72:
	adrp	x8, _MEM_COMMIT@GOTPAGE
Lloh73:
	ldr	x8, [x8, _MEM_COMMIT@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x8]
Lloh75:
	adrp	x8, _PAGE_READWRITE@GOTPAGE
Lloh76:
	ldr	x8, [x8, _PAGE_READWRITE@GOTPAGEOFF]
Lloh77:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_VirtualAlloc
	cbz	x0, LBB0_30
; %bb.21:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x25
	bl	_SetFileAttributes
	sub	x1, x29, #112
	sub	x2, x29, #144
	sub	x3, x29, #176
	mov	x0, x22
	bl	_SetFileTime
Lloh78:
	adrp	x21, _BREAK_INPUT@GOTPAGE
Lloh79:
	ldr	x21, [x21, _BREAK_INPUT@GOTPAGEOFF]
	ldur	w24, [x29, #-204]               ; 4-byte Folded Reload
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	sub	x3, x29, #92
	mov	x0, x19
	mov	x1, x20
	mov	x4, #0
	bl	_ReadFile
	ldur	w2, [x29, #-92]
	cbz	w2, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	sub	x3, x29, #96
	mov	x0, x22
	mov	x1, x20
	mov	x4, #0
	bl	_WriteFile
	ldp	w8, w9, [x29, #-96]
	cmp	w8, w9
	b.ne	LBB0_31
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w0, [x21]
	bl	_CheckCtrlBreak
	cbnz	x0, LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	cbz	w24, LBB0_22
LBB0_26:
Lloh80:
	adrp	x8, _MEM_RELEASE@GOTPAGE
Lloh81:
	ldr	x8, [x8, _MEM_RELEASE@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_VirtualFree
	mov	x0, x22
	bl	_CloseHandle
	mov	x0, x19
	bl	_CloseHandle
	mov	w0, #1
	b	LBB0_18
LBB0_27:
	b.ne	LBB0_29
; %bb.28:
	ldur	x8, [x29, #-168]
	ldur	x9, [x29, #-184]
	cmp	x8, x9
	b.gt	LBB0_7
LBB0_29:
	mov	x0, x19
	bl	_CloseHandle
	mov	x0, x26
	b	LBB0_15
LBB0_30:
	mov	x0, x22
	bl	_CloseHandle
	mov	x0, x19
	bl	_CloseHandle
Lloh83:
	adrp	x8, _TRUE@GOTPAGE
Lloh84:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh85:
	ldr	w0, [x8]
Lloh86:
	adrp	x8, _STRING_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh87:
	ldr	x8, [x8, _STRING_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
	bl	_ConOutResPaging
	mov	w0, #0
	b	LBB0_18
LBB0_31:
Lloh89:
	adrp	x8, _STRING_COPY_ERROR3@GOTPAGE
Lloh90:
	ldr	x8, [x8, _STRING_COPY_ERROR3@GOTPAGEOFF]
Lloh91:
	ldr	w0, [x8]
	bl	_ConOutResPuts
Lloh92:
	adrp	x8, _MEM_RELEASE@GOTPAGE
Lloh93:
	ldr	x8, [x8, _MEM_RELEASE@GOTPAGEOFF]
Lloh94:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_VirtualFree
	mov	x0, x22
	bl	_CloseHandle
	mov	x0, x19
	bl	_CloseHandle
	mov	w0, #0
Lloh95:
	adrp	x8, _nErrorLevel@GOTPAGE
Lloh96:
	ldr	x8, [x8, _nErrorLevel@GOTPAGEOFF]
	mov	w9, #1
Lloh97:
	str	w9, [x8]
	b	LBB0_18
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotStr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_STRING_COPY_ERROR1,4,2         ; @STRING_COPY_ERROR1
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
	.comm	_REPLACE_UPDATE,4,2             ; @REPLACE_UPDATE
	.comm	_REPLACE_CONFIRM,4,2            ; @REPLACE_CONFIRM
	.comm	_REPLACE_ADD,4,2                ; @REPLACE_ADD
	.comm	_STRING_REPLACE_HELP9,4,2       ; @STRING_REPLACE_HELP9
	.comm	_STRING_REPLACE_HELP10,4,2      ; @STRING_REPLACE_HELP10
	.comm	_STRING_REPLACE_HELP11,4,2      ; @STRING_REPLACE_HELP11
	.comm	_STRING_REPLACE_HELP5,4,2       ; @STRING_REPLACE_HELP5
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_STRING_REPLACE_ERROR7,4,2      ; @STRING_REPLACE_ERROR7
	.comm	_GENERIC_WRITE,4,2              ; @GENERIC_WRITE
	.comm	_CREATE_ALWAYS,4,2              ; @CREATE_ALWAYS
	.comm	_BUFF_SIZE,4,2                  ; @BUFF_SIZE
	.comm	_MEM_COMMIT,4,2                 ; @MEM_COMMIT
	.comm	_PAGE_READWRITE,4,2             ; @PAGE_READWRITE
	.comm	_STRING_ERROR_OUT_OF_MEMORY,4,2 ; @STRING_ERROR_OUT_OF_MEMORY
	.comm	_BREAK_INPUT,4,2                ; @BREAK_INPUT
	.comm	_STRING_COPY_ERROR3,4,2         ; @STRING_COPY_ERROR3
	.comm	_MEM_RELEASE,4,2                ; @MEM_RELEASE
	.comm	_nErrorLevel,4,2                ; @nErrorLevel
.subsections_via_symbols
