	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fileargs_cinitnv               ## -- Begin function fileargs_cinitnv
	.p2align	4, 0x90
_fileargs_cinitnv:                      ## @fileargs_cinitnv
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	testq	%r12, %r12
	je	LBB0_8
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cap_service_open
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_nvlist_get_number
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_nvlist_get_number
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_cap_limit_set
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_fileargs_create
	testq	%rax, %rax
	jne	LBB0_7
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_cap_close
	movl	%ebx, (%r15)
	jmp	LBB0_6
LBB0_8:
	xorl	%edi, %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fileargs_create                ## TAILCALL
LBB0_2:
	movq	%r12, %rdi
	callq	_nvlist_destroy
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"system.fileargs"

L_.str.1:                               ## @.str.1
	.asciz	"flags"

L_.str.2:                               ## @.str.2
	.asciz	"operations"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fileargs_cinitnv               ; -- Begin function fileargs_cinitnv
	.p2align	2
_fileargs_cinitnv:                      ; @fileargs_cinitnv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cbz	x20, LBB0_5
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_cap_service_open
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_number
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_number
	mov	x0, x19
	mov	x1, x20
	bl	_cap_limit_set
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_fileargs_create
	cbnz	x0, LBB0_7
LBB0_4:
Lloh6:
	adrp	x20, _errno@GOTPAGE
Lloh7:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	x0, x19
	bl	_cap_close
	mov	x0, #0
	str	w21, [x20]
	b	LBB0_7
LBB0_5:
	mov	x0, #0
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_fileargs_create
LBB0_6:
	mov	x0, x20
	bl	_nvlist_destroy
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"system.fileargs"

l_.str.1:                               ; @.str.1
	.asciz	"flags"

l_.str.2:                               ; @.str.2
	.asciz	"operations"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
