	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fakefs_open
_fakefs_open:                           ## @fakefs_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_realfs@GOTPCREL(%rip), %rax
	movl	$438, %ecx                      ## imm = 0x1B6
	callq	*(%rax)
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_db_begin
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_path_get_inode
	movq	%rax, (%rbx)
	movq	_O_CREAT_@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_S_IFREG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	movl	%r12d, -64(%rbp)
	movq	_current@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	4(%rcx), %edx
	movl	%edx, -44(%rbp)
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movq	$0, -56(%rbp)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_path_create
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_path_get_inode
	movq	%rax, (%rbx)
LBB0_4:
	movq	%r14, %rdi
	callq	_db_commit
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.6:
	movq	_fakefs_fdops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_fd_close
	movq	__ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_7:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_realfs,8,3                     ## @realfs
	.comm	_O_CREAT_,4,2                   ## @O_CREAT_
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_current,8,3                    ## @current
	.comm	__ENOENT,4,2                    ## @_ENOENT
	.comm	_fakefs_fdops,4,2               ## @fakefs_fdops
	.no_dead_strip	_fakefs_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fakefs_open
_fakefs_open:                           ; @fakefs_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _realfs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _realfs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w3, #438
	blr	x8
	mov	x19, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_db_begin
	mov	x0, x20
	mov	x1, x21
	bl	_path_get_inode
	str	x0, [x19]
Lloh3:
	adrp	x8, _O_CREAT_@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_CREAT_@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _S_IFREG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_IFREG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w22
	str	w8, [sp, #8]
Lloh9:
	adrp	x8, _current@GOTPAGE
Lloh10:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	d0, [x8]
	str	d0, [sp, #24]
	str	xzr, [sp, #16]
	cbnz	x0, LBB0_4
; %bb.3:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_path_create
	mov	x0, x20
	mov	x1, x21
	bl	_path_get_inode
	str	x0, [x19]
LBB0_4:
	mov	x0, x20
	bl	_db_commit
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _fakefs_fdops@GOTPAGE
Lloh13:
	ldr	x8, [x8, _fakefs_fdops@GOTPAGEOFF]
	str	x8, [x19, #8]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_fd_close
Lloh14:
	adrp	x8, __ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, __ENOENT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_ERR_PTR
	mov	x19, x0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_realfs,8,3                     ; @realfs
	.comm	_O_CREAT_,4,2                   ; @O_CREAT_
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_current,8,3                    ; @current
	.comm	__ENOENT,4,2                    ; @_ENOENT
	.comm	_fakefs_fdops,4,2               ; @fakefs_fdops
	.no_dead_strip	_fakefs_open
.subsections_via_symbols
