	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RemoveDirWithSubItems
_RemoveDirWithSubItems:                 ## @RemoveDirWithSubItems
	.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	%rdi, %r15
	callq	_wcslen
	movq	%rax, %r14
	leaq	(%r15,%rax,4), %r12
	leaq	l_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_wcscpy
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_FindFirstFileW
	movq	%rax, %rbx
	movl	$0, (%r15,%r14,4)
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_1
LBB0_15:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	%rax, %r14
	jmp	LBB0_16
LBB0_1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	l_.str.1(%rip), %r12
	leaq	-64(%rbp), %r13
	jmp	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_SetFileAttributesW
	movq	%r15, %rdi
	callq	_DeleteFileW
	testq	%rax, %rax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_FindNextFileW
	testl	%eax, %eax
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi
	movq	%r12, %rsi
	callq	_wcscmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi
	leaq	l_.str.2(%rip), %rsi
	callq	_wcscmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wcscpy
	movq	_FILE_ATTRIBUTE_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -56(%rbp)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_WSTRING_PATH_SEPARATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wcscat
	movq	%r15, %rdi
	callq	_RemoveDirWithSubItems
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_10
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_GetLastError
	jmp	LBB0_8
LBB0_11:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	%rax, %r14
	movq	_ERROR_NO_MORE_FILES@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	%rbx, %rdi
	callq	_FindClose
	cmpq	%r12, %r14
	je	LBB0_13
## %bb.12:
	testq	%r14, %r14
	jne	LBB0_16
LBB0_13:
	movq	%r15, %rdi
	callq	_RemoveDirectoryW
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	%rbx, %rdi
	callq	_FindClose
LBB0_16:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	42                              ## 0x2a
	.long	0                               ## 0x0

	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	46                              ## 0x2e
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.2
l_.str.2:
	.long	46                              ## 0x2e
	.long	46                              ## 0x2e
	.long	0                               ## 0x0

	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ## @FILE_ATTRIBUTE_DIRECTORY
	.comm	_WSTRING_PATH_SEPARATOR,4,2     ## @WSTRING_PATH_SEPARATOR
	.comm	_ERROR_NO_MORE_FILES,8,3        ## @ERROR_NO_MORE_FILES
	.no_dead_strip	_RemoveDirWithSubItems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RemoveDirWithSubItems
_RemoveDirWithSubItems:                 ; @RemoveDirWithSubItems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	bl	_wcslen
	add	x20, x19, x0, lsl #2
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wcscpy
	mov	x1, sp
	mov	x0, x19
	bl	_FindFirstFileW
	str	wzr, [x20]
Lloh2:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
	bl	_GetLastError
	mov	x24, x0
	b	LBB0_14
LBB0_2:
	mov	x21, x0
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh7:
	adrp	x25, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGE
Lloh8:
	ldr	x25, [x25, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGEOFF]
Lloh9:
	adrp	x26, _WSTRING_PATH_SEPARATOR@GOTPAGE
Lloh10:
	ldr	x26, [x26, _WSTRING_PATH_SEPARATOR@GOTPAGEOFF]
Lloh11:
	adrp	x23, l_.str.2@PAGE
Lloh12:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_SetFileAttributesW
	mov	x0, x19
	bl	_DeleteFileW
	cbz	x0, LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, sp
	mov	x0, x21
	bl	_FindNextFileW
	cbz	w0, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp]
	mov	x1, x22
	bl	_wcscmp
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp]
	mov	x1, x23
	bl	_wcscmp
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp]
	mov	x0, x20
	bl	_wcscpy
	ldr	w8, [sp, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	bl	_wcscat
	mov	x0, x19
	bl	_RemoveDirWithSubItems
	mov	x24, x0
	cbz	x0, LBB0_4
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_GetLastError
	mov	x24, x0
	cbz	x0, LBB0_4
LBB0_10:
	str	wzr, [x20]
	mov	x0, x21
	bl	_FindClose
	b	LBB0_14
LBB0_11:
	bl	_GetLastError
	mov	x24, x0
Lloh13:
	adrp	x8, _ERROR_NO_MORE_FILES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR_NO_MORE_FILES@GOTPAGEOFF]
Lloh15:
	ldr	x22, [x8]
	str	wzr, [x20]
	mov	x0, x21
	bl	_FindClose
	cmp	x24, x22
	ccmp	x24, #0, #4, ne
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_RemoveDirectoryW
	cbz	w0, LBB0_1
; %bb.13:
	mov	x24, #0
LBB0_14:
	mov	x0, x24
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	42                              ; 0x2a
	.long	0                               ; 0x0

	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	46                              ; 0x2e
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.2
l_.str.2:
	.long	46                              ; 0x2e
	.long	46                              ; 0x2e
	.long	0                               ; 0x0

	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ; @FILE_ATTRIBUTE_DIRECTORY
	.comm	_WSTRING_PATH_SEPARATOR,4,2     ; @WSTRING_PATH_SEPARATOR
	.comm	_ERROR_NO_MORE_FILES,8,3        ; @ERROR_NO_MORE_FILES
	.no_dead_strip	_RemoveDirWithSubItems
.subsections_via_symbols
