	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_has_perm
_file_has_perm:                         ## @file_has_perm
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %rax
	movq	8(%rsi), %r15
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_cred_sid
	movq	%rax, %r13
	movq	_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_COMMON_AUDIT_DATA_INIT
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	(%r15), %rsi
	cmpq	%rsi, %r13
	je	LBB0_2
## %bb.1:
	movq	_SECCLASS_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FD__USE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%r13, %rdi
	callq	_avc_has_perm
	testl	%eax, %eax
	jne	LBB0_5
LBB0_2:
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_inode_has_perm
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addq	$24, %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_FD,4,2                ## @SECCLASS_FD
	.comm	_FD__USE,4,2                    ## @FD__USE
	.no_dead_strip	_file_has_perm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_has_perm
_file_has_perm:                         ; @file_has_perm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	ldp	x8, x24, [x1]
	ldr	x21, [x8]
	bl	_cred_sid
	mov	x22, x0
Lloh0:
	adrp	x8, _FS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_COMMON_AUDIT_DATA_INIT
	ldr	x8, [x23]
	str	x8, [sp, #8]
	ldr	x1, [x24]
	cmp	x22, x1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SECCLASS_FD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SECCLASS_FD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _FD__USE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FD__USE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x22
	bl	_avc_has_perm
	cbnz	w0, LBB0_5
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_inode_has_perm
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FS,4,2                         ; @FS
	.comm	_SECCLASS_FD,4,2                ; @SECCLASS_FD
	.comm	_FD__USE,4,2                    ; @FD__USE
	.no_dead_strip	_file_has_perm
.subsections_via_symbols
