	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fakefs_readlink
_fakefs_readlink:                       ## @fakefs_readlink
	.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
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_db_begin
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_path_read_stat
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	-48(%rbp), %edi
	callq	_S_ISLNK
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_realfs@GOTPCREL(%rip), %rax
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	*(%rax)
	movq	%rax, %rbx
	movq	__EINVAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_file_readlink
	movq	%rax, %rbx
LBB0_4:
	movq	%r13, %rdi
	callq	_db_commit
	jmp	LBB0_8
LBB0_5:
	movq	%r13, %rdi
	callq	_db_rollback
	movq	__ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	%r13, %rdi
	callq	_db_rollback
	movq	__EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rbx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__ENOENT,8,3                    ## @_ENOENT
	.comm	__EINVAL,8,3                    ## @_EINVAL
	.comm	_realfs,8,3                     ## @realfs
	.no_dead_strip	_fakefs_readlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fakefs_readlink
_fakefs_readlink:                       ; @fakefs_readlink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_db_begin
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x22
	mov	x3, #0
	bl	_path_read_stat
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_S_ISLNK
	cbz	w0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _realfs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _realfs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	blr	x8
	mov	x23, x0
Lloh3:
	adrp	x8, __EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_file_readlink
	mov	x23, x0
LBB0_4:
	mov	x0, x19
	bl	_db_commit
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_db_rollback
Lloh6:
	adrp	x8, __ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, __ENOENT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_db_rollback
Lloh8:
	adrp	x8, __EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	x23, [x8]
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	__ENOENT,8,3                    ; @_ENOENT
	.comm	__EINVAL,8,3                    ; @_EINVAL
	.comm	_realfs,8,3                     ; @realfs
	.no_dead_strip	_fakefs_readlink
.subsections_via_symbols
