	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_inode_getsecurity
_selinux_inode_getsecurity:             ## @selinux_inode_getsecurity
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %rax
	movq	$0, -48(%rbp)
	movq	(%rdi), %rbx
	movq	_XATTR_SELINUX_SUFFIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_current_cred
	movq	_CAP_MAC_ADMIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_SECURITY_CAP_NOAUDIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_selinux_capable
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	callq	_security_sid_to_context
	jmp	LBB0_5
LBB0_3:
	callq	_security_sid_to_context_force
LBB0_5:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	-36(%rbp), %ebx
	movq	-48(%rbp), %rdi
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	movq	%rdi, (%r14)
	jmp	LBB0_9
LBB0_8:
	callq	_kfree
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XATTR_SELINUX_SUFFIX,4,2       ## @XATTR_SELINUX_SUFFIX
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_current,4,2                    ## @current
	.comm	_CAP_MAC_ADMIN,4,2              ## @CAP_MAC_ADMIN
	.comm	_SECURITY_CAP_NOAUDIT,4,2       ## @SECURITY_CAP_NOAUDIT
	.no_dead_strip	_selinux_inode_getsecurity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_inode_getsecurity
_selinux_inode_getsecurity:             ; @selinux_inode_getsecurity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x19, x2
	mov	x8, x1
	str	xzr, [sp]
	ldr	x22, [x0]
Lloh0:
	adrp	x9, _XATTR_SELINUX_SUFFIX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XATTR_SELINUX_SUFFIX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_2:
Lloh6:
	adrp	x8, _current@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	bl	_current_cred
	mov	x1, x0
Lloh9:
	adrp	x8, _CAP_MAC_ADMIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAP_MAC_ADMIN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _SECURITY_CAP_NOAUDIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SECURITY_CAP_NOAUDIT@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_selinux_capable
	mov	x8, x0
	ldr	w0, [x22]
	mov	x1, sp
	add	x2, sp, #12
	cbz	w8, LBB0_4
; %bb.3:
	bl	_security_sid_to_context
	mov	x21, x0
	cbnz	w0, LBB0_8
	b	LBB0_5
LBB0_4:
	bl	_security_sid_to_context_force
	mov	x21, x0
	cbnz	w0, LBB0_8
LBB0_5:
	ldr	w21, [sp, #12]
	ldr	x0, [sp]
	cbz	w20, LBB0_7
; %bb.6:
	str	x0, [x19]
	b	LBB0_8
LBB0_7:
	bl	_kfree
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_XATTR_SELINUX_SUFFIX,4,2       ; @XATTR_SELINUX_SUFFIX
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_current,4,2                    ; @current
	.comm	_CAP_MAC_ADMIN,4,2              ; @CAP_MAC_ADMIN
	.comm	_SECURITY_CAP_NOAUDIT,4,2       ; @SECURITY_CAP_NOAUDIT
	.no_dead_strip	_selinux_inode_getsecurity
.subsections_via_symbols
