	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rm_file
_rm_file:                               ## @rm_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	addq	$8, %rbx
	leaq	-48(%rbp), %r14
	movq	_Wflag@GOTPCREL(%rip), %r12
	movq	_eval@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_warn
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%r13)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %r15
	addq	$8, %rbx
	testq	%r15, %r15
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_lstat
	movq	(%r12), %rcx
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_S_IWUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_S_IFWHT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, -48(%rbp)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.34:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_dflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_fflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	callq	_S_ISWHT
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_check
	testl	%eax, %eax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_uid@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	callq	_S_ISWHT
	testq	%rax, %rax
	je	LBB0_21
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	callq	_S_ISWHT
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_undelete
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_30
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	callq	_S_ISDIR
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_rmdir
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_30
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi
	movq	_UF_IMMUTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_UF_APPEND@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%esi, %eax
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SF_IMMUTABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_SF_APPEND@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%esi, %ecx
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	notl	%eax
	andl	%eax, %esi
	movq	%r15, %rdi
	callq	_lchflags
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_24
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_unlink
	testl	%eax, %eax
	je	LBB0_30
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_fflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_vflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	callq	_printf
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_info@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.33:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_info@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	callq	_printf
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Wflag,8,3                      ## @Wflag
	.comm	_S_IFWHT,4,2                    ## @S_IFWHT
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_fflag,4,2                      ## @fflag
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_eval,4,2                       ## @eval
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s"

	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_dflag,4,2                      ## @dflag
L_.str.2:                               ## @.str.2
	.asciz	"%s: is a directory"

	.comm	_uid,4,2                        ## @uid
	.comm	_UF_APPEND,4,2                  ## @UF_APPEND
	.comm	_UF_IMMUTABLE,4,2               ## @UF_IMMUTABLE
	.comm	_SF_APPEND,4,2                  ## @SF_APPEND
	.comm	_SF_IMMUTABLE,4,2               ## @SF_IMMUTABLE
	.comm	_vflag,8,3                      ## @vflag
L_.str.3:                               ## @.str.3
	.asciz	"%s\n"

	.comm	_info,8,3                       ## @info
	.no_dead_strip	_rm_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rm_file
_rm_file:                               ; @rm_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x22, [x0]
	cbz	x22, LBB0_33
; %bb.1:
Lloh0:
	adrp	x24, _Wflag@GOTPAGE
Lloh1:
	ldr	x24, [x24, _Wflag@GOTPAGEOFF]
Lloh2:
	adrp	x26, _eval@GOTPAGE
Lloh3:
	ldr	x26, [x26, _eval@GOTPAGEOFF]
	add	x27, x0, #8
Lloh4:
	adrp	x28, _dflag@GOTPAGE
Lloh5:
	ldr	x28, [x28, _dflag@GOTPAGEOFF]
	mov	w20, #1
Lloh6:
	adrp	x25, _fflag@GOTPAGE
Lloh7:
	ldr	x25, [x25, _fflag@GOTPAGEOFF]
Lloh8:
	adrp	x19, _S_IFWHT@GOTPAGE
Lloh9:
	ldr	x19, [x19, _S_IFWHT@GOTPAGEOFF]
Lloh10:
	adrp	x23, _S_IWUSR@GOTPAGE
Lloh11:
	ldr	x23, [x23, _S_IWUSR@GOTPAGEOFF]
Lloh12:
	adrp	x21, _S_IRUSR@GOTPAGE
Lloh13:
	ldr	x21, [x21, _S_IRUSR@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_warn
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w20, [x26]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x22, [x27], #8
	cbz	x22, LBB0_33
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_lstat
	ldr	x8, [x24]
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x8, LBB0_27
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w0, w8, w9
	str	w0, [sp, #8]
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh16:
	adrp	x8, _EEXIST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #8]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_S_ISDIR
	ldr	w8, [x28]
	cmp	x0, #0
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	cbnz	w8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #8]
	bl	_S_ISWHT
	cbnz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x22
	bl	_check
	cbz	w0, LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh21:
	adrp	x8, _uid@GOTPAGE
Lloh22:
	ldr	x8, [x8, _uid@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cbnz	w8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #8]
	bl	_S_ISWHT
	cbz	x0, LBB0_23
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #8]
	bl	_S_ISWHT
	cbz	x0, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_undelete
	cbnz	w0, LBB0_27
	b	LBB0_29
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x22
	bl	_warnx
	b	LBB0_3
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_rmdir
	cbnz	w0, LBB0_27
	b	LBB0_29
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
Lloh26:
	adrp	x9, _UF_APPEND@GOTPAGE
Lloh27:
	ldr	x9, [x9, _UF_APPEND@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _UF_IMMUTABLE@GOTPAGE
Lloh30:
	ldr	x10, [x10, _UF_IMMUTABLE@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh32:
	adrp	x10, _SF_APPEND@GOTPAGE
Lloh33:
	ldr	x10, [x10, _SF_APPEND@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
Lloh35:
	adrp	x11, _SF_IMMUTABLE@GOTPAGE
Lloh36:
	ldr	x11, [x11, _SF_IMMUTABLE@GOTPAGEOFF]
Lloh37:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w8
	b.ne	LBB0_17
; %bb.25:                               ;   in Loop: Header=BB0_5 Depth=1
	bic	w1, w8, w9
	mov	x0, x22
	bl	_lchflags
	cbnz	w0, LBB0_27
	b	LBB0_17
LBB0_26:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_unlink
	cbz	w0, LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	cbz	w8, LBB0_2
; %bb.28:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh38:
	adrp	x8, _errno@GOTPAGE
Lloh39:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
Lloh41:
	adrp	x9, _ENOENT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
	b	LBB0_4
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh44:
	adrp	x8, _vflag@GOTPAGE
Lloh45:
	ldr	x8, [x8, _vflag@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	cbz	x8, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh47:
	adrp	x0, l_.str.3@PAGE
Lloh48:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_printf
LBB0_31:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh49:
	adrp	x8, _info@GOTPAGE
Lloh50:
	ldr	x8, [x8, _info@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.32:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh52:
	adrp	x8, _info@GOTPAGE
Lloh53:
	ldr	x8, [x8, _info@GOTPAGEOFF]
Lloh54:
	str	xzr, [x8]
Lloh55:
	adrp	x0, l_.str.3@PAGE
Lloh56:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_printf
	b	LBB0_4
LBB0_33:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotStr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_Wflag,8,3                      ; @Wflag
	.comm	_S_IFWHT,4,2                    ; @S_IFWHT
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_fflag,4,2                      ; @fflag
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_eval,4,2                       ; @eval
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s"

	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_dflag,4,2                      ; @dflag
l_.str.2:                               ; @.str.2
	.asciz	"%s: is a directory"

	.comm	_uid,4,2                        ; @uid
	.comm	_UF_APPEND,4,2                  ; @UF_APPEND
	.comm	_UF_IMMUTABLE,4,2               ; @UF_IMMUTABLE
	.comm	_SF_APPEND,4,2                  ; @SF_APPEND
	.comm	_SF_IMMUTABLE,4,2               ; @SF_IMMUTABLE
	.comm	_vflag,8,3                      ; @vflag
l_.str.3:                               ; @.str.3
	.asciz	"%s\n"

	.comm	_info,8,3                       ; @info
	.no_dead_strip	_rm_file
.subsections_via_symbols
