	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_file
_open_file:                             ## @open_file
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_FREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	xorl	%eax, %eax
	callq	_pwd_ensure_dirs
	movq	_LOOKUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UIO_SYSSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_NDINIT
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vn_open
	movl	%eax, %r14d
	movq	_NDF_ONLY_PNBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NDFREE
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FREAD,4,2                      ## @FREAD
	.comm	_LOOKUP,4,2                     ## @LOOKUP
	.comm	_UIO_SYSSPACE,4,2               ## @UIO_SYSSPACE
	.comm	_curthread,4,2                  ## @curthread
	.comm	_NDF_ONLY_PNBUF,4,2             ## @NDF_ONLY_PNBUF
	.no_dead_strip	_open_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_file
_open_file:                             ; @open_file
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FREAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	bl	_pwd_ensure_dirs
Lloh3:
	adrp	x8, _LOOKUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOOKUP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _UIO_SYSSPACE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UIO_SYSSPACE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _curthread@GOTPAGE
Lloh10:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x4, x20
	bl	_NDINIT
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	bl	_vn_open
	mov	x20, x0
Lloh12:
	adrp	x8, _NDF_ONLY_PNBUF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NDF_ONLY_PNBUF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NDFREE
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FREAD,4,2                      ; @FREAD
	.comm	_LOOKUP,4,2                     ; @LOOKUP
	.comm	_UIO_SYSSPACE,4,2               ; @UIO_SYSSPACE
	.comm	_curthread,4,2                  ; @curthread
	.comm	_NDF_ONLY_PNBUF,4,2             ; @NDF_ONLY_PNBUF
	.no_dead_strip	_open_file
.subsections_via_symbols
