	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_inode_setxattr
_selinux_inode_setxattr:                ## @selinux_inode_setxattr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	movq	8(%rbx), %r15
	xorl	%eax, %eax
	callq	_current_sid
	movl	%eax, %r12d
	movq	_XATTR_NAME_SELINUX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.15:
	movq	%r13, %rdi
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_selinux_inode_setotherxattr    ## TAILCALL
LBB0_1:
	movq	%r15, %r14
	movq	(%rbx), %rax
	movq	(%rax), %r15
	movq	_SE_SBLABELSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	callq	_is_owner_or_cap
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_COMMON_AUDIT_DATA_INIT
	movq	%r13, -56(%rbp)
	movq	%r14, %r13
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	_FILE__RELABELFROM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	movq	%rbx, %r8
	callq	_avc_has_perm
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	leaq	-44(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_security_context_to_sid
	movl	%eax, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	jne	LBB0_10
## %bb.8:
	movq	_CAP_MAC_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	leaq	-44(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_security_context_to_sid_force
	movl	%eax, %ebx
LBB0_10:
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.11:
	movl	-44(%rbp), %esi
	movl	(%r13), %edx
	movq	_FILE__RELABELTO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r8
	movl	%r12d, %edi
	callq	_avc_has_perm
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movl	(%r13), %ecx
	movl	4(%r13), %edi
	movl	-44(%rbp), %esi
	movl	%r12d, %edx
	callq	_security_validate_transition
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movl	-44(%rbp), %edi
	movl	4(%r15), %esi
	movq	_SECCLASS_FILESYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FILESYSTEM__ASSOCIATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r8
	callq	_avc_has_perm
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XATTR_NAME_SELINUX,4,2         ## @XATTR_NAME_SELINUX
	.comm	_SE_SBLABELSUPP,4,2             ## @SE_SBLABELSUPP
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_FS,4,2                         ## @FS
	.comm	_FILE__RELABELFROM,4,2          ## @FILE__RELABELFROM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CAP_MAC_ADMIN,4,2              ## @CAP_MAC_ADMIN
	.comm	_FILE__RELABELTO,4,2            ## @FILE__RELABELTO
	.comm	_SECCLASS_FILESYSTEM,4,2        ## @SECCLASS_FILESYSTEM
	.comm	_FILESYSTEM__ASSOCIATE,4,2      ## @FILESYSTEM__ASSOCIATE
	.no_dead_strip	_selinux_inode_setxattr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_inode_setxattr
_selinux_inode_setxattr:                ; @selinux_inode_setxattr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x23, [x0]
	ldr	x25, [x23, #8]
	bl	_current_sid
	mov	x19, x0
Lloh0:
	adrp	x8, _XATTR_NAME_SELINUX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XATTR_NAME_SELINUX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_selinux_inode_setotherxattr
LBB0_2:
	ldr	x8, [x23]
	ldr	x24, [x8]
	ldr	w8, [x24]
Lloh3:
	adrp	x9, _SE_SBLABELSUPP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SE_SBLABELSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.3:
	mov	x0, x23
	bl	_is_owner_or_cap
	cbz	w0, LBB0_13
; %bb.4:
Lloh6:
	adrp	x8, _FS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_COMMON_AUDIT_DATA_INIT
	str	x22, [sp, #8]
	ldp	w2, w1, [x25]
Lloh9:
	adrp	x8, _FILE__RELABELFROM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILE__RELABELFROM@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	bl	_avc_has_perm
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.5:
	add	x2, sp, #4
	mov	x0, x21
	mov	x1, x20
	bl	_security_context_to_sid
	mov	x22, x0
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_8
; %bb.6:
Lloh15:
	adrp	x8, _CAP_MAC_ADMIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAP_MAC_ADMIN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_15
; %bb.7:
	add	x2, sp, #4
	mov	x0, x21
	mov	x1, x20
	bl	_security_context_to_sid_force
	mov	x22, x0
LBB0_8:
	cbnz	w22, LBB0_15
; %bb.9:
	ldr	w1, [sp, #4]
	ldr	w2, [x25]
Lloh18:
	adrp	x8, _FILE__RELABELTO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FILE__RELABELTO@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	bl	_avc_has_perm
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.10:
	ldr	w1, [sp, #4]
	ldp	w3, w0, [x25]
	mov	x2, x19
	bl	_security_validate_transition
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.11:
	ldr	w0, [sp, #4]
	ldr	w1, [x24, #4]
Lloh21:
	adrp	x8, _SECCLASS_FILESYSTEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SECCLASS_FILESYSTEM@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _FILESYSTEM__ASSOCIATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FILESYSTEM__ASSOCIATE@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	add	x4, sp, #8
	bl	_avc_has_perm
	mov	x22, x0
	b	LBB0_15
LBB0_12:
Lloh27:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh29:
	adrp	x8, _EPERM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_XATTR_NAME_SELINUX,4,2         ; @XATTR_NAME_SELINUX
	.comm	_SE_SBLABELSUPP,4,2             ; @SE_SBLABELSUPP
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_FS,4,2                         ; @FS
	.comm	_FILE__RELABELFROM,4,2          ; @FILE__RELABELFROM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CAP_MAC_ADMIN,4,2              ; @CAP_MAC_ADMIN
	.comm	_FILE__RELABELTO,4,2            ; @FILE__RELABELTO
	.comm	_SECCLASS_FILESYSTEM,4,2        ; @SECCLASS_FILESYSTEM
	.comm	_FILESYSTEM__ASSOCIATE,4,2      ; @FILESYSTEM__ASSOCIATE
	.no_dead_strip	_selinux_inode_setxattr
.subsections_via_symbols
