	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RemoveFile
_RemoveFile:                            ## @RemoveFile
	.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	%rbx
	pushq	%rax
	movl	$262168, %eax                   ## imm = 0x40018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_BREAK_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CheckCtrlBreak
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.1:
	movq	_DEL_ATTRIBUTES@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_DEL_FORCE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
LBB0_3:
	movq	_FILE_ATTRIBUTE_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.4:
	movq	_FILE_ATTRIBUTE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SetFileAttributes
LBB0_5:
	movq	_DEL_WIPE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rand
                                        ## kill: def $eax killed $eax def $rax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-256, %ecx
	subl	%ecx, %eax
	movl	%eax, -262176(%rbp,%rbx,4)
	incq	%rbx
	cmpq	$65536, %rbx                    ## imm = 0x10000
	jne	LBB0_7
## %bb.8:
	movq	_GENERIC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_FILE_FLAG_WRITE_THROUGH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	$0, (%rsp)
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_CreateFile
	movq	%rax, %rbx
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_10
## %bb.9:
	leaq	-262176(%rbp), %rsi
	leaq	-262180(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_WriteFile
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movq	_szDeleteWipe@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_ConOutPrintf
	movq	%rbx, %rdi
	callq	_CloseHandle
LBB0_10:
	movl	%r14d, %edi
	callq	_DeleteFile
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$262168, %rsp                   ## imm = 0x40018
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BREAK_INPUT,4,2                ## @BREAK_INPUT
	.comm	_DEL_ATTRIBUTES,4,2             ## @DEL_ATTRIBUTES
	.comm	_DEL_FORCE,4,2                  ## @DEL_FORCE
	.comm	_FILE_ATTRIBUTE_READONLY,4,2    ## @FILE_ATTRIBUTE_READONLY
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
	.comm	_DEL_WIPE,4,2                   ## @DEL_WIPE
	.comm	_GENERIC_WRITE,4,2              ## @GENERIC_WRITE
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_FILE_FLAG_WRITE_THROUGH,4,2    ## @FILE_FLAG_WRITE_THROUGH
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_szDeleteWipe,4,2               ## @szDeleteWipe
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"100%% %s\n"

	.comm	_BufferSize,4,2                 ## @BufferSize
	.no_dead_strip	_RemoveFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RemoveFile
_RemoveFile:                            ; @RemoveFile
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w9, #16
	movk	w9, #4, lsl #16
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #64, lsl #12            ; =262144
	sub	sp, sp, #16
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh5:
	adrp	x8, _BREAK_INPUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BREAK_INPUT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_CheckCtrlBreak
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_12
LBB0_2:
Lloh8:
	adrp	x8, _DEL_ATTRIBUTES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEL_ATTRIBUTES@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _DEL_FORCE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DEL_FORCE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
LBB0_4:
	ldr	w8, [x21]
Lloh14:
	adrp	x9, _FILE_ATTRIBUTE_READONLY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FILE_ATTRIBUTE_READONLY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SetFileAttributes
LBB0_6:
Lloh20:
	adrp	x8, _DEL_WIPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DEL_WIPE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.7:
	mov	x20, #0
	add	x21, sp, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rand
	negs	w8, w0
	and	w8, w8, #0xff
	and	w9, w0, #0xff
	csneg	w8, w9, w8, mi
	str	w8, [x21, x20]
	add	x20, x20, #4
	cmp	x20, #64, lsl #12               ; =262144
	b.ne	LBB0_8
; %bb.9:
Lloh23:
	adrp	x8, _GENERIC_WRITE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GENERIC_WRITE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
Lloh29:
	adrp	x8, _FILE_FLAG_WRITE_THROUGH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FILE_FLAG_WRITE_THROUGH@GOTPAGEOFF]
Lloh31:
	ldr	w5, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_CreateFile
Lloh32:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:
	mov	x20, x0
	add	x1, sp, #8
	add	x3, sp, #4
	mov	x4, #0
	bl	_WriteFile
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
Lloh37:
	adrp	x8, _szDeleteWipe@GOTPAGE
Lloh38:
	ldr	x8, [x8, _szDeleteWipe@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_ConOutPrintf
	mov	x0, x20
	bl	_CloseHandle
LBB0_11:
	mov	x0, x19
	bl	_DeleteFile
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #64, lsl #12            ; =262144
	add	sp, sp, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_BREAK_INPUT,4,2                ; @BREAK_INPUT
	.comm	_DEL_ATTRIBUTES,4,2             ; @DEL_ATTRIBUTES
	.comm	_DEL_FORCE,4,2                  ; @DEL_FORCE
	.comm	_FILE_ATTRIBUTE_READONLY,4,2    ; @FILE_ATTRIBUTE_READONLY
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
	.comm	_DEL_WIPE,4,2                   ; @DEL_WIPE
	.comm	_GENERIC_WRITE,4,2              ; @GENERIC_WRITE
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_FILE_FLAG_WRITE_THROUGH,4,2    ; @FILE_FLAG_WRITE_THROUGH
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_szDeleteWipe,4,2               ; @szDeleteWipe
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"100%% %s\n"

	.comm	_BufferSize,4,2                 ; @BufferSize
	.no_dead_strip	_RemoveFile
.subsections_via_symbols
