	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_fte_locked
_lookup_fte_locked:                     ## @lookup_fte_locked
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_FS_LOCK_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	callq	_nested_down_write_ref_node
	jmp	LBB0_3
LBB0_2:
	callq	_nested_down_read_ref_node
LBB0_3:
	leaq	4(%r15), %rdi
	movq	_rhash_fte@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_rhashtable_lookup_fast
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tree_get_node
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$0, (%rbx)
	je	LBB0_9
## %bb.6:
	movq	_FS_LOCK_CHILD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nested_down_write_ref_node
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tree_put_node
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r15, %rdi
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.12:
	xorl	%esi, %esi
	callq	_up_write_ref_node
	jmp	LBB0_14
LBB0_13:
	callq	_up_read_ref_node
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FS_LOCK_PARENT,4,2             ## @FS_LOCK_PARENT
	.comm	_rhash_fte,4,2                  ## @rhash_fte
	.comm	_FS_LOCK_CHILD,4,2              ## @FS_LOCK_CHILD
	.no_dead_strip	_lookup_fte_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_fte_locked
_lookup_fte_locked:                     ; @lookup_fte_locked
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FS_LOCK_PARENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FS_LOCK_PARENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cbz	w2, LBB0_2
; %bb.1:
	bl	_nested_down_write_ref_node
	b	LBB0_3
LBB0_2:
	bl	_nested_down_read_ref_node
LBB0_3:
	add	x0, x19, #4
Lloh3:
	adrp	x8, _rhash_fte@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rhash_fte@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_rhashtable_lookup_fast
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_tree_get_node
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x21]
	cbz	w8, LBB0_10
; %bb.6:
Lloh6:
	adrp	x8, _FS_LOCK_CHILD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FS_LOCK_CHILD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_nested_down_write_ref_node
	mov	x0, x19
	cbnz	w20, LBB0_9
	b	LBB0_11
LBB0_7:
	mov	x21, #0
LBB0_8:
	mov	x0, x19
	cbz	w20, LBB0_11
LBB0_9:
	mov	w1, #0
	bl	_up_write_ref_node
	b	LBB0_12
LBB0_10:
	mov	x0, x21
	mov	w1, #0
	bl	_tree_put_node
	mov	x21, #0
	mov	x0, x19
	cbnz	w20, LBB0_9
LBB0_11:
	bl	_up_read_ref_node
LBB0_12:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FS_LOCK_PARENT,4,2             ; @FS_LOCK_PARENT
	.comm	_rhash_fte,4,2                  ; @rhash_fte
	.comm	_FS_LOCK_CHILD,4,2              ; @FS_LOCK_CHILD
	.no_dead_strip	_lookup_fte_locked
.subsections_via_symbols
