	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amfs_generic_lookup_child      ## -- Begin function amfs_generic_lookup_child
	.p2align	4, 0x90
_amfs_generic_lookup_child:             ## @amfs_generic_lookup_child
	.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, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_dlog
	movl	$0, (%r12)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_amfs_lookup_node
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	cmpl	$0, (%r12)
	jg	LBB0_7
## %bb.2:
	je	LBB0_8
LBB0_3:
	cmpl	$128, %r15d
	je	LBB0_7
## %bb.4:
	cmpl	$129, %r15d
	jne	LBB0_9
## %bb.5:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ereturn
	jmp	LBB0_7
LBB0_8:
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_FSRV_ISUP
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_3
LBB0_9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_amfs_lookup_loc
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, 8(%r14)
	jmp	LBB0_7
LBB0_11:
	movl	(%r12), %eax
	movq	16(%r14), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_free_map
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in amfs_generic_lookup_child"

	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amfs_generic_lookup_child      ; -- Begin function amfs_generic_lookup_child
	.p2align	2
_amfs_generic_lookup_child:             ; @amfs_generic_lookup_child
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dlog
	str	wzr, [x20]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_amfs_lookup_node
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_3
LBB0_2:
	mov	x0, x19
	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_3:
	cbz	w8, LBB0_7
LBB0_4:
	cmp	w21, #128
	b.eq	LBB0_2
; %bb.5:
	cmp	w21, #129
	b.ne	LBB0_8
; %bb.6:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_ereturn
	b	LBB0_2
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	bl	_FSRV_ISUP
	cbnz	x0, LBB0_2
	b	LBB0_4
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_amfs_lookup_loc
	cbz	x0, LBB0_10
; %bb.9:
	str	x0, [x19, #8]
	b	LBB0_2
LBB0_10:
	ldr	w8, [x20]
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	str	w8, [x9]
	str	w8, [x19]
	mov	x0, x19
	bl	_free_map
	mov	x19, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in amfs_generic_lookup_child"

	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
