	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rec_delete_file
_rec_delete_file:                       ## @rec_delete_file
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	(%rbx), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_unlink
	testq	%rax, %rax
	je	LBB0_18
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_vkprintf
	movl	$-5, %eax
	jmp	LBB0_19
LBB0_3:
	movl	(%rbx), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_getdir
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:
	addl	$2, %r15d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_strlen
	addl	%r15d, %eax
	cmpl	%eax, (%r12)
	jl	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rbx), %rcx
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_sprintf
	leaq	8(%rbx), %rsi
	movq	%r13, %rdi
	callq	_rec_delete_file
	testl	%eax, %eax
	js	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_10
## %bb.14:
	movq	-56(%rbp), %rdi
	jmp	LBB0_15
LBB0_17:
	movq	%r14, %rdi
	callq	_unlink
	movq	%rax, %rcx
	movl	$-4, %eax
	testq	%rcx, %rcx
	jne	LBB0_19
	jmp	LBB0_18
LBB0_5:
	movl	$-2, %eax
	jmp	LBB0_19
LBB0_7:
	xorl	%edi, %edi
LBB0_15:
	callq	_free_filelist
	movq	%r14, %rdi
	callq	_rmdir
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_vkprintf
	movl	$-7, %eax
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$-6, %eax
	jmp	LBB0_19
LBB0_13:
	movl	$-3, %eax
	jmp	LBB0_19
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unlink (%s) failed. %m\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

L_.str.2:                               ## @.str.2
	.asciz	"rmdir (%s) failed. %m\n"

	.no_dead_strip	_rec_delete_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rec_delete_file
_rec_delete_file:                       ; @rec_delete_file
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PATH_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w0, [x1]
	bl	_S_ISLNK
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_unlink
	cbz	x0, LBB0_17
; %bb.2:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_vkprintf
	mov	w0, #-5
	b	LBB0_18
LBB0_3:
	ldr	w0, [x21]
	bl	_S_ISDIR
	cbz	x0, LBB0_11
; %bb.4:
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	sub	x1, x29, #80
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_getdir
	tbnz	w0, #31, LBB0_13
; %bb.5:
	ldur	x24, [x29, #-80]
	cbz	x24, LBB0_14
; %bb.6:
	add	w25, w21, #2
Lloh9:
	adrp	x21, l_.str.1@PAGE
Lloh10:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	bl	_strlen
	ldr	w8, [x23]
	add	w9, w25, w0
	cmp	w8, w9
	b.lt	LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x24
	ldr	x3, [x22], #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_sprintf
	mov	x0, x20
	mov	x1, x22
	bl	_rec_delete_file
	tbnz	w0, #31, LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x24, [x24, #16]
	cbnz	x24, LBB0_7
; %bb.10:
	ldur	x0, [x29, #-80]
	b	LBB0_15
LBB0_11:
	mov	x0, x19
	bl	_unlink
	cbz	x0, LBB0_17
; %bb.12:
	mov	w0, #-4
	b	LBB0_18
LBB0_13:
	mov	w0, #-2
	b	LBB0_18
LBB0_14:
	mov	x0, #0
LBB0_15:
	bl	_free_filelist
	mov	x0, x19
	bl	_rmdir
	cbz	x0, LBB0_17
; %bb.16:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_vkprintf
	mov	w0, #-7
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.19:
	sub	sp, x29, #64
	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
LBB0_20:
	mov	w0, #-6
	b	LBB0_18
LBB0_21:
	mov	w0, #-3
	b	LBB0_18
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unlink (%s) failed. %m\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

l_.str.2:                               ; @.str.2
	.asciz	"rmdir (%s) failed. %m\n"

	.no_dead_strip	_rec_delete_file
.subsections_via_symbols
