	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_vnode_setlabel_extattr
_mac_vnode_setlabel_extattr:            ## @mac_vnode_setlabel_extattr
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ASSERT_VOP_LOCKED
	movq	_curthread@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_VOP_OPENEXTATTR
	movl	%eax, %r14d
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_3
## %bb.1:
	movq	_ea_warn_once@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_ea_warn_once@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_4
LBB0_3:
	testl	%r14d, %r14d
	jne	LBB0_7
LBB0_4:
	movq	_vnode_setlabel_extattr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %ecx
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %r8
	callq	_MAC_POLICY_CHECK
	movq	_NOCRED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	callq	_VOP_CLOSEEXTATTR
	jmp	LBB0_7
LBB0_6:
	movl	$1, %esi
	callq	_VOP_CLOSEEXTATTR
	xorl	%r14d, %r14d
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	cmovnel	%eax, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac_vnode_setlabel_extattr"

	.comm	_curthread,4,2                  ## @curthread
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ea_warn_once,4,2               ## @ea_warn_once
	.comm	_vnode_setlabel_extattr,4,2     ## @vnode_setlabel_extattr
	.comm	_NOCRED,4,2                     ## @NOCRED
L_str:                                  ## @str
	.asciz	"Warning: transactions not supported in EA write."

	.no_dead_strip	_mac_vnode_setlabel_extattr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_vnode_setlabel_extattr
_mac_vnode_setlabel_extattr:            ; @mac_vnode_setlabel_extattr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ASSERT_VOP_LOCKED
Lloh2:
	adrp	x24, _curthread@GOTPAGE
Lloh3:
	ldr	x24, [x24, _curthread@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x22
	bl	_VOP_OPENEXTATTR
	mov	x20, x0
Lloh4:
	adrp	x23, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EOPNOTSUPP@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x25, _ea_warn_once@GOTPAGE
Lloh7:
	ldr	x25, [x25, _ea_warn_once@GOTPAGEOFF]
	ldr	w8, [x25]
	cbnz	w8, LBB0_4
; %bb.2:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w8, #1
	str	w8, [x25]
	b	LBB0_4
LBB0_3:
	cbnz	w20, LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _vnode_setlabel_extattr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _vnode_setlabel_extattr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w3, [x19]
	mov	x1, x22
	mov	x2, x19
	mov	x4, x21
	bl	_MAC_POLICY_CHECK
Lloh13:
	adrp	x8, _NOCRED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NOCRED@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w3, [x24]
	mov	x0, x19
	cbz	w20, LBB0_6
; %bb.5:
	mov	w1, #0
	bl	_VOP_CLOSEEXTATTR
	b	LBB0_7
LBB0_6:
	mov	w1, #1
	bl	_VOP_CLOSEEXTATTR
	ldr	w8, [x23]
	cmp	w0, w8
	csel	w20, wzr, w0, eq
LBB0_7:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac_vnode_setlabel_extattr"

	.comm	_curthread,4,2                  ; @curthread
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ea_warn_once,4,2               ; @ea_warn_once
	.comm	_vnode_setlabel_extattr,4,2     ; @vnode_setlabel_extattr
	.comm	_NOCRED,4,2                     ; @NOCRED
l_str:                                  ; @str
	.asciz	"Warning: transactions not supported in EA write."

	.no_dead_strip	_mac_vnode_setlabel_extattr
.subsections_via_symbols
