	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fileargs_command_open
_fileargs_command_open:                 ## @fileargs_command_open
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_FA_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fileargs_allowed
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvlist_get_string
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_open_file
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movq	_allcached@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_nvlist_add_string
	jmp	LBB0_10
LBB0_1:
	movq	_ENOTCAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_6:
	movq	_lastname@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_nvlist_add_string
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_fileargs_add_cache
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_nvlist_move_descriptor
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTCAPABLE,4,2                ## @ENOTCAPABLE
	.comm	_FA_OPEN,4,2                    ## @FA_OPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

	.comm	_errno,4,2                      ## @errno
	.comm	_allcached,4,2                  ## @allcached
	.comm	_lastname,8,3                   ## @lastname
L_.str.1:                               ## @.str.1
	.asciz	"cmd"

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

L_.str.3:                               ## @.str.3
	.asciz	"open"

L_.str.4:                               ## @.str.4
	.asciz	"fd"

	.no_dead_strip	_fileargs_command_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fileargs_command_open
_fileargs_command_open:                 ; @fileargs_command_open
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FA_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FA_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_fileargs_allowed
	cbz	w0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_nvlist_get_string
	mov	x22, x0
	bl	_open_file
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x8, _allcached@GOTPAGE
Lloh6:
	ldr	x8, [x8, _allcached@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
LBB0_4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_nvlist_add_string
	b	LBB0_10
LBB0_5:
Lloh12:
	adrp	x8, _ENOTCAPABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTCAPABLE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_6:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_7:
Lloh18:
	adrp	x8, _lastname@GOTPAGE
Lloh19:
	ldr	x8, [x8, _lastname@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x22
	bl	_strcmp
	cbnz	x0, LBB0_4
LBB0_9:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nvlist_add_string
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_fileargs_add_cache
LBB0_10:
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_nvlist_move_descriptor
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTCAPABLE,4,2                ; @ENOTCAPABLE
	.comm	_FA_OPEN,4,2                    ; @FA_OPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

	.comm	_errno,4,2                      ; @errno
	.comm	_allcached,4,2                  ; @allcached
	.comm	_lastname,8,3                   ; @lastname
l_.str.1:                               ; @.str.1
	.asciz	"cmd"

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

l_.str.3:                               ; @.str.3
	.asciz	"open"

l_.str.4:                               ; @.str.4
	.asciz	"fd"

	.no_dead_strip	_fileargs_command_open
.subsections_via_symbols
