	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fileargs_limit
_fileargs_limit:                        ## @fileargs_limit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_ENOTCAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_6
LBB0_2:
	movq	%rsi, %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_dnvlist_get_number
	movq	_capflags@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_dnvlist_get_number
	movq	_allowed_operations@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_get_number
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	_capmode@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_dnvlist_get_binary
	movq	_caprightsp@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTCAPABLE,4,2                ## @ENOTCAPABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flags"

	.comm	_capflags,4,2                   ## @capflags
L_.str.1:                               ## @.str.1
	.asciz	"operations"

	.comm	_allowed_operations,4,2         ## @allowed_operations
	.comm	_O_CREAT,4,2                    ## @O_CREAT
L_.str.2:                               ## @.str.2
	.asciz	"mode"

	.comm	_capmode,8,3                    ## @capmode
L_.str.3:                               ## @.str.3
	.asciz	"cap_rights"

	.comm	_caprightsp,4,2                 ## @caprightsp
	.no_dead_strip	_fileargs_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fileargs_limit
_fileargs_limit:                        ; @fileargs_limit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOTCAPABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTCAPABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_2:
	mov	x19, x1
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_dnvlist_get_number
Lloh5:
	adrp	x20, _capflags@GOTPAGE
Lloh6:
	ldr	x20, [x20, _capflags@GOTPAGEOFF]
	str	w0, [x20]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_dnvlist_get_number
Lloh9:
	adrp	x8, _allowed_operations@GOTPAGE
Lloh10:
	ldr	x8, [x8, _allowed_operations@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nvlist_get_number
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
Lloh17:
	adrp	x8, _capmode@GOTPAGE
Lloh18:
	ldr	x8, [x8, _capmode@GOTPAGEOFF]
Lloh19:
	str	x0, [x8]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_dnvlist_get_binary
	mov	x8, x0
	mov	w0, #0
Lloh22:
	adrp	x9, _caprightsp@GOTPAGE
Lloh23:
	ldr	x9, [x9, _caprightsp@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTCAPABLE,4,2                ; @ENOTCAPABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flags"

	.comm	_capflags,4,2                   ; @capflags
l_.str.1:                               ; @.str.1
	.asciz	"operations"

	.comm	_allowed_operations,4,2         ; @allowed_operations
	.comm	_O_CREAT,4,2                    ; @O_CREAT
l_.str.2:                               ; @.str.2
	.asciz	"mode"

	.comm	_capmode,8,3                    ; @capmode
l_.str.3:                               ; @.str.3
	.asciz	"cap_rights"

	.comm	_caprightsp,4,2                 ; @caprightsp
	.no_dead_strip	_fileargs_limit
.subsections_via_symbols
