	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amfs_direct_readlink
_amfs_direct_readlink:                  ## @amfs_direct_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$0, -36(%rbp)
	movl	16(%rdi), %edi
	callq	_next_nonerror_node
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	cmpl	$0, (%rdi)
	jne	LBB0_3
## %bb.2:
	callq	_amfs_mkcacheref
LBB0_3:
	movq	(%r12), %rsi
	incq	%rsi
	movq	_VLOOK_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_amfs_generic_lookup_child
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpl	$0, -36(%rbp)
	jns	LBB0_6
## %bb.5:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_amfs_generic_mount_child
	movq	%rax, %rbx
LBB0_6:
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_new_ttl
LBB0_11:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_amd_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Finishing@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_ENOENT@GOTPCREL(%rip), %r15
LBB0_10:
	movl	(%r15), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_VLOOK_CREATE,4,2               ## @VLOOK_CREATE
	.comm	_amd_state,8,3                  ## @amd_state
	.comm	_Finishing,8,3                  ## @Finishing
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_amfs_direct_readlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amfs_direct_readlink
_amfs_direct_readlink:                  ; @amfs_direct_readlink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	str	wzr, [sp, #12]
	ldr	w0, [x0, #16]
	bl	_next_nonerror_node
	mov	x20, x0
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.2:
	bl	_amfs_mkcacheref
LBB0_3:
	ldr	x8, [x21]
	add	x1, x8, #1
Lloh0:
	adrp	x8, _VLOOK_CREATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLOOK_CREATE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_amfs_generic_lookup_child
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [sp, #12]
	tbz	w8, #31, LBB0_6
; %bb.5:
	add	x1, sp, #12
	mov	x0, x20
	bl	_amfs_generic_mount_child
	mov	x20, x0
LBB0_6:
	cbz	x20, LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_new_ttl
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
Lloh3:
	adrp	x8, _amd_state@GOTPAGE
Lloh4:
	ldr	x8, [x8, _amd_state@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _Finishing@GOTPAGE
Lloh7:
	ldr	x9, [x9, _Finishing@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ENOENT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x11, sp, #12
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VLOOK_CREATE,4,2               ; @VLOOK_CREATE
	.comm	_amd_state,8,3                  ; @amd_state
	.comm	_Finishing,8,3                  ; @Finishing
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_amfs_direct_readlink
.subsections_via_symbols
