	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function may_rename
_may_rename:                            ## @may_rename
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_current_sid
	movl	%eax, %r12d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r15
	movq	(%r14), %rax
	movq	8(%rax), %rbx
	movl	(%rax), %edi
	callq	_S_ISDIR
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_COMMON_AUDIT_DATA_INIT
	movq	%r14, -48(%rbp)
	movl	4(%r15), %esi
	movl	%r12d, %r15d
	movq	_SECCLASS_DIR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_DIR__REMOVE_NAME@GOTPCREL(%rip), %rax
	movq	_DIR__SEARCH@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	orl	(%rax), %ecx
	movl	%r15d, %edi
	movq	%r13, %r8
	callq	_avc_has_perm
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	_FILE__RENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movl	%r15d, %edi
	callq	_avc_has_perm
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_5
## %bb.3:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	_DIR__REPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movl	%r15d, %edi
	callq	_avc_has_perm
	testl	%eax, %eax
	jne	LBB0_14
LBB0_5:
	movq	_DIR__ADD_NAME@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	orl	(%rax), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, -48(%rbp)
	xorl	%eax, %eax
	cmpq	$0, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_DIR__REMOVE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	orl	%eax, %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movl	(%r12), %edx
	leaq	-48(%rbp), %r8
	movl	%r15d, %edi
	callq	_avc_has_perm
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	8(%rax), %rbx
	movl	(%rax), %edi
	callq	_S_ISDIR
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:
	movq	_FILE__UNLINK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_DIR__RMDIR@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movl	%r15d, %edi
	callq	_avc_has_perm
	testl	%eax, %eax
	jne	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FS,4,2                         ## @FS
	.comm	_SECCLASS_DIR,4,2               ## @SECCLASS_DIR
	.comm	_DIR__REMOVE_NAME,4,2           ## @DIR__REMOVE_NAME
	.comm	_DIR__SEARCH,4,2                ## @DIR__SEARCH
	.comm	_FILE__RENAME,4,2               ## @FILE__RENAME
	.comm	_DIR__REPARENT,4,2              ## @DIR__REPARENT
	.comm	_DIR__ADD_NAME,4,2              ## @DIR__ADD_NAME
	.comm	_DIR__RMDIR,4,2                 ## @DIR__RMDIR
	.comm	_FILE__UNLINK,4,2               ## @FILE__UNLINK
	.no_dead_strip	_may_rename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function may_rename
_may_rename:                            ; @may_rename
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	bl	_current_sid
	mov	x19, x0
	ldr	x26, [x22]
	ldr	x8, [x24]
	ldr	x27, [x8, #8]
	ldr	w0, [x8]
	bl	_S_ISDIR
	mov	x23, x0
	ldr	x25, [x21]
Lloh0:
	adrp	x8, _FS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_COMMON_AUDIT_DATA_INIT
	str	x24, [sp, #8]
	ldr	w1, [x26, #4]
Lloh3:
	adrp	x24, _SECCLASS_DIR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SECCLASS_DIR@GOTPAGEOFF]
Lloh5:
	adrp	x26, _DIR__REMOVE_NAME@GOTPAGE
Lloh6:
	ldr	x26, [x26, _DIR__REMOVE_NAME@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	w8, [x26]
Lloh7:
	adrp	x28, _DIR__SEARCH@GOTPAGE
Lloh8:
	ldr	x28, [x28, _DIR__SEARCH@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w3, w9, w8
	add	x4, sp, #8
	mov	x0, x19
	bl	_avc_has_perm
	cbnz	w0, LBB0_9
; %bb.1:
	ldp	w2, w1, [x27]
Lloh9:
	adrp	x8, _FILE__RENAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILE__RENAME@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	bl	_avc_has_perm
	cbnz	w0, LBB0_9
; %bb.2:
	cmp	x21, x22
	b.eq	LBB0_5
; %bb.3:
	cbz	w23, LBB0_5
; %bb.4:
	ldp	w2, w1, [x27]
Lloh12:
	adrp	x8, _DIR__REPARENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DIR__REPARENT@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	bl	_avc_has_perm
	cbnz	w0, LBB0_9
LBB0_5:
	str	x20, [sp, #8]
Lloh15:
	adrp	x8, _DIR__ADD_NAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DIR__ADD_NAME@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w8, w9, w8
	ldr	x9, [x20]
	ldr	w10, [x26]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w3, w8, w9
	ldr	w1, [x25, #4]
	ldr	w2, [x24]
	add	x4, sp, #8
	mov	x0, x19
	bl	_avc_has_perm
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x20, [x8, #8]
	ldr	w0, [x8]
	bl	_S_ISDIR
Lloh18:
	adrp	x8, _DIR__RMDIR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DIR__RMDIR@GOTPAGEOFF]
	ldp	w2, w1, [x20]
Lloh20:
	adrp	x9, _FILE__UNLINK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FILE__UNLINK@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	bl	_avc_has_perm
	cbnz	w0, LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FS,4,2                         ; @FS
	.comm	_SECCLASS_DIR,4,2               ; @SECCLASS_DIR
	.comm	_DIR__REMOVE_NAME,4,2           ; @DIR__REMOVE_NAME
	.comm	_DIR__SEARCH,4,2                ; @DIR__SEARCH
	.comm	_FILE__RENAME,4,2               ; @FILE__RENAME
	.comm	_DIR__REPARENT,4,2              ; @DIR__REPARENT
	.comm	_DIR__ADD_NAME,4,2              ; @DIR__ADD_NAME
	.comm	_DIR__RMDIR,4,2                 ; @DIR__RMDIR
	.comm	_FILE__UNLINK,4,2               ; @FILE__UNLINK
	.no_dead_strip	_may_rename
.subsections_via_symbols
