	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rm_path
_rm_path:                               ## @rm_path
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_strlen
	cltq
	leaq	(%rax,%rbx), %rcx
	decq	%rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	cmpq	%rbx, %rcx
	jbe	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%rax), %rcx
	cmpb	$47, (%rax)
	je	LBB0_1
LBB0_3:
	movb	$0, 1(%rax)
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	_vflag@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	decq	%rax
	cmpq	%rbx, %rax
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$47, (%rax)
	je	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, (%rcx)
	cmpq	%rbx, %rcx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_rmdir
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%r12)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_printf
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warn
	movl	$1, %r14d
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_vflag,8,3                      ## @vflag
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_rm_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rm_path
_rm_path:                               ; @rm_path
	.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	x19, x0
	bl	_strlen
	add	x8, x19, w0, sxtw
	sub	x9, x8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	cmp	x9, x19
	b.ls	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x9, x8
	ldrb	w10, [x9], #-1
	cmp	w10, #47
	b.eq	LBB0_1
LBB0_3:
	strb	wzr, [x8, #1]
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_14
; %bb.4:
Lloh0:
	adrp	x21, _vflag@GOTPAGE
Lloh1:
	ldr	x21, [x21, _vflag@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x0
	sub	x0, x0, #1
	cmp	x0, x19
	b.lo	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w9, [x0]
	cmp	w9, #47
	b.eq	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	wzr, [x8]
	cmp	x8, x19
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_rmdir
	tbnz	x0, #63, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_printf
	b	LBB0_5
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warn
	mov	w0, #1
LBB0_14:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_vflag,8,3                      ; @vflag
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_rm_path
.subsections_via_symbols
