	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edit_file_features
_edit_file_features:                    ## @edit_file_features
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %r8
	callq	_get_file_features
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	callq	_convert_to_feature_val
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	-24(%rbp), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_lseek
	leaq	L_.str.1(%rip), %r14
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:
	leaq	-20(%rbp), %rsi
	movl	%ebx, %edi
	movl	$4, %edx
	callq	_write
	movq	%rax, %rcx
	movl	$1, %eax
	cmpq	$3, %rcx
	jle	LBB0_5
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %r14
LBB0_5:
	movq	%r14, %rdi
	callq	_warnx
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NT_FREEBSD_FEATURE_CTL note not found"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.1:                               ## @.str.1
	.asciz	"error writing feature value"

	.no_dead_strip	_edit_file_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edit_file_features
_edit_file_features:                    ; @edit_file_features
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x3
	mov	x19, x2
	add	x3, sp, #12
	add	x4, sp, #8
	bl	_get_file_features
	cbz	w0, LBB0_5
; %bb.1:
	add	x1, sp, #12
	mov	x0, x20
	bl	_convert_to_feature_val
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w1, [sp, #8]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_write
	cmp	x0, #3
	b.gt	LBB0_8
LBB0_4:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	bl	_warnx
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	mov	w0, #1
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NT_FREEBSD_FEATURE_CTL note not found"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.1:                               ; @.str.1
	.asciz	"error writing feature value"

	.no_dead_strip	_edit_file_features
.subsections_via_symbols
