	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btree_ptr_bad_expensive
_btree_ptr_bad_expensive:               ## @btree_ptr_bad_expensive
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rdi
	callq	_mutex_trylock
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%r12, %rdi
	callq	_KEY_PTRS
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	xorl	%ebx, %ebx
	movq	_BTREE_PRIO@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movq	%r12, %rdi
	callq	_KEY_PTRS
	cmpl	%eax, %ebx
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_ptr_available
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_PTR_BUCKET
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_KEY_DIRTY
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_GC_MARK
	movq	_GC_MARK_METADATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
LBB0_10:
	movq	(%r14), %rdi
	callq	_mutex_unlock
	leaq	-128(%rbp), %rdi
	movl	$80, %esi
	movq	%r12, %rdx
	callq	_bch_extent_to_text
	movq	(%r14), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_PTR_BUCKET_NR
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	addq	$16, %rdi
	callq	_atomic_read
	movl	%eax, %ebx
	movq	(%r13), %r15
	movl	12(%r13), %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	8(%r13), %r12d
	movq	%r13, %rdi
	callq	_GC_MARK
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	leaq	-128(%rbp), %rdx
	movl	-132(%rbp), %ecx                ## 4-byte Reload
	movl	%ebx, %r8d
	movq	%r15, %r9
	pushq	%rax
	pushq	%r12
	pushq	-144(%rbp)                      ## 8-byte Folded Reload
	callq	_btree_bug
	addq	$32, %rsp
	movl	$1, %ecx
	jmp	LBB0_11
LBB0_9:
	movq	(%r14), %rdi
	callq	_mutex_unlock
	xorl	%ecx, %ecx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ecx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BTREE_PRIO,8,3                 ## @BTREE_PRIO
	.comm	_GC_MARK_METADATA,8,3           ## @GC_MARK_METADATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inconsistent btree pointer %s: bucket %zi pin %i prio %i gen %i last_gc %i mark %llu"

	.no_dead_strip	_btree_ptr_bad_expensive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btree_ptr_bad_expensive
_btree_ptr_bad_expensive:               ; @btree_ptr_bad_expensive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x0, [x0]
	bl	_mutex_trylock
	cbz	x0, LBB0_11
; %bb.1:
	mov	x0, x20
	bl	_KEY_PTRS
	cbz	w0, LBB0_10
; %bb.2:
	mov	w21, #0
Lloh3:
	adrp	x23, _BTREE_PRIO@GOTPAGE
Lloh4:
	ldr	x23, [x23, _BTREE_PRIO@GOTPAGEOFF]
Lloh5:
	adrp	x24, _GC_MARK_METADATA@GOTPAGE
Lloh6:
	ldr	x24, [x24, _GC_MARK_METADATA@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	mov	x0, x20
	bl	_KEY_PTRS
	cmp	w21, w0
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	mov	x1, x20
	mov	x2, x21
	bl	_ptr_available
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19]
	mov	x1, x20
	mov	x2, x21
	bl	_PTR_BUCKET
	mov	x22, x0
	mov	x0, x20
	bl	_KEY_DIRTY
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_GC_MARK
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_9:
	ldr	x0, [x19]
	bl	_mutex_unlock
	add	x0, sp, #8
	mov	w1, #80
	mov	x2, x20
	bl	_bch_extent_to_text
	ldr	x0, [x19]
	mov	x1, x20
	mov	x2, x21
	bl	_PTR_BUCKET_NR
	mov	x20, x0
	add	x0, x22, #16
	bl	_atomic_read
	mov	x21, x0
	ldr	x23, [x22]
	ldp	w25, w24, [x22, #8]
	mov	x0, x22
	bl	_GC_MARK
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x20
	mov	x4, x21
	mov	x5, x23
	mov	x6, x24
	mov	x7, x25
	bl	_btree_bug
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	ldr	x0, [x19]
	bl	_mutex_unlock
	mov	w0, #0
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BTREE_PRIO,8,3                 ; @BTREE_PRIO
	.comm	_GC_MARK_METADATA,8,3           ; @GC_MARK_METADATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inconsistent btree pointer %s: bucket %zi pin %i prio %i gen %i last_gc %i mark %llu"

	.no_dead_strip	_btree_ptr_bad_expensive
.subsections_via_symbols
