	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function realfs_open
_realfs_open:                           ## @realfs_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	%edx, %edi
	callq	_open_flags_real_from_fake
	movl	%eax, %r12d
	movl	(%rbx), %ebx
	movq	%r15, %rdi
	callq	_fix_path
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_openat
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	_realfs_fdops@GOTPCREL(%rip), %rdi
	callq	_fd_create
	movl	%ebx, (%rax)
	movq	$0, 8(%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	callq	_errno_map
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_realfs_fdops,4,2               ## @realfs_fdops
	.no_dead_strip	_realfs_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function realfs_open
_realfs_open:                           ; @realfs_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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_open_flags_real_from_fake
	mov	x22, x0
	ldr	w21, [x21]
	mov	x0, x20
	bl	_fix_path
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	mov	x3, x19
	bl	_openat
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x0, _realfs_fdops@GOTPAGE
Lloh1:
	ldr	x0, [x0, _realfs_fdops@GOTPAGEOFF]
	bl	_fd_create
	str	w19, [x0]
	str	xzr, [x0, #8]
	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
LBB0_2:
	bl	_errno_map
	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	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_realfs_fdops,4,2               ; @realfs_fdops
	.no_dead_strip	_realfs_open
.subsections_via_symbols
