	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_btree_node_get             ## -- Begin function bch_btree_node_get
	.p2align	4, 0x90
_bch_btree_node_get:                    ## @bch_btree_node_get
	.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
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r15d
	movq	%rdx, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	shrl	$31, %edi
	callq	_BUG_ON
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mca_find
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rax, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_rw_lock
	movq	%rbx, %rsi
	addq	$36, %rsi
	movq	%r14, %rdi
	callq	_PTR_HASH
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_PTR_HASH
	cmpq	%rax, %r12
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_rw_unlock
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_mca_alloc
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_mutex_unlock
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_23
## %bb.6:
	movq	%rbx, %rdi
	callq	_bch_btree_node_read
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.7:
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_downgrade_write
	jmp	LBB0_11
LBB0_10:
	xorl	%edi, %edi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rbx)
	setne	%dil
	callq	_BUG_ON
LBB0_11:
	movq	%rbx, %rdi
	callq	_btree_node_io_error
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_rw_unlock
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_14:
	xorl	%edi, %edi
	cmpl	$0, 32(%rbx)
	sete	%dil
	callq	_BUG_ON
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movl	$1, 4(%rbx)
	movl	8(%rbx), %eax
	xorl	%r14d, %r14d
	testl	%eax, %eax
	js	LBB0_20
## %bb.15:
	movq	16(%rbx), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_20
## %bb.16:
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %r14
	movl	4(%rcx,%r15), %edi
	callq	_prefetch
	movq	16(%rbx), %rax
	movl	(%rax,%r15), %edi
	callq	_prefetch
	movslq	8(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	16(%rbx), %rcx
	cmpq	$0, 24(%rcx,%r15)
	leaq	16(%r15), %r15
	leaq	1(%r14), %rdx
	jne	LBB0_18
LBB0_19:
	incl	%r14d
LBB0_20:
	cmpl	%eax, %r14d
	jg	LBB0_23
## %bb.21:
	movl	%r14d, %r15d
	decl	%r14d
	shlq	$4, %r15
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movl	(%rax,%r15), %edi
	callq	_prefetch
	incl	%r14d
	addq	$16, %r15
	cmpl	%r14d, 8(%rbx)
	jg	LBB0_22
LBB0_23:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_btree_node_get             ; -- Begin function bch_btree_node_get
	.p2align	2
_bch_btree_node_get:                    ; @bch_btree_node_get
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	lsr	w0, w3, #31
	bl	_BUG_ON
Lloh0:
	adrp	x28, _current@GOTPAGE
Lloh1:
	ldr	x28, [x28, _current@GOTPAGEOFF]
Lloh2:
	adrp	x27, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x27, [x27, _EAGAIN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	_mca_find
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_rw_lock
	add	x1, x19, #36
	mov	x0, x25
	bl	_PTR_HASH
	mov	x26, x0
	mov	x0, x25
	mov	x1, x23
	bl	_PTR_HASH
	cmp	x26, x0
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_rw_unlock
	b	LBB0_1
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x28]
	ldr	x8, [x8]
	cbnz	x8, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	bl	_mutex_lock
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	_mca_alloc
	mov	x19, x0
	mov	x0, x25
	bl	_mutex_unlock
	cbz	x19, LBB0_1
; %bb.6:
	mov	x0, x19
	bl	_IS_ERR
	cbnz	x0, LBB0_22
; %bb.7:
	mov	x0, x19
	bl	_bch_btree_node_read
	cbnz	w21, LBB0_10
; %bb.8:
	add	x0, x19, #40
	bl	_downgrade_write
	b	LBB0_10
LBB0_9:
	ldr	w8, [x19]
	cmp	w8, w22
	cset	w0, ne
	bl	_BUG_ON
LBB0_10:
	mov	x0, x19
	bl	_btree_node_io_error
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x21
	mov	x1, x19
	bl	_rw_unlock
Lloh4:
	adrp	x27, _EIO@GOTPAGE
Lloh5:
	ldr	x27, [x27, _EIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x27]
	neg	w0, w8
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_13:
	ldr	w8, [x19, #32]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	str	x20, [x19, #24]
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w8, [x19, #8]
	tbnz	w8, #31, LBB0_19
; %bb.14:
	ldr	x9, [x19, #16]
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_19
; %bb.15:
	mov	x20, #0
	mov	x10, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x21, x10
	add	x8, x9, x20
	ldr	w0, [x8, #4]
	bl	_prefetch
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x20]
	bl	_prefetch
	ldrsw	x8, [x19, #8]
	cmp	x21, x8
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x19, #16]
	add	x10, x9, x20
	ldr	x11, [x10, #24]
	add	x20, x20, #16
	add	x10, x21, #1
	cbnz	x11, LBB0_16
LBB0_18:
	add	w9, w21, #1
	cmp	w9, w8
	b.le	LBB0_20
	b	LBB0_22
LBB0_19:
	mov	w9, #0
	cmp	w9, w8
	b.gt	LBB0_22
LBB0_20:
	mov	w8, w9
	sub	w20, w9, #1
	lsl	x21, x8, #4
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x21]
	bl	_prefetch
	ldr	w8, [x19, #8]
	add	w20, w20, #1
	add	x21, x21, #16
	cmp	w8, w20
	b.gt	LBB0_21
LBB0_22:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
