	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bch_ptr_status
_bch_ptr_status:                        ## @bch_ptr_status
	.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
	pushq	%rax
	.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, %r15
	movq	%rsi, %rdi
	callq	_KEY_PTRS
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	%r12, %rdi
	callq	_KEY_PTRS
	cmpl	%eax, %ebx
	jae	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_ptr_available
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_PTR_CACHE
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_PTR_BUCKET_NR
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_PTR_OFFSET
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bucket_remainder
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_KEY_SIZE
	addq	%r15, %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpq	(%r15), %rax
	ja	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r13), %r14
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	8(%r13), %r14
	jae	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_ptr_stale
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	movq	_ZERO_KEY@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_bkey_cmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	%r12, %rdi
	callq	_KEY_PTRS
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	%r12, %rdi
	callq	_KEY_SIZE
	testq	%rax, %rax
	leaq	L_.str.6(%rip), %rcx
	leaq	L_.str.7(%rip), %rax
	cmoveq	%rcx, %rax
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.5(%rip), %rax
	jmp	LBB0_17
LBB0_4:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_17
LBB0_6:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_17
LBB0_8:
	leaq	L_.str.2(%rip), %rax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad, length too big"

L_.str.1:                               ## @.str.1
	.asciz	"bad, short offset"

L_.str.2:                               ## @.str.2
	.asciz	"bad, offset past end of device"

L_.str.3:                               ## @.str.3
	.asciz	"stale"

	.comm	_ZERO_KEY,4,2                   ## @ZERO_KEY
L_.str.4:                               ## @.str.4
	.asciz	"bad, null key"

L_.str.5:                               ## @.str.5
	.asciz	"bad, no pointers"

L_.str.6:                               ## @.str.6
	.asciz	"zeroed key"

L_.str.7:                               ## @.str.7
	.space	1

	.no_dead_strip	_bch_ptr_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bch_ptr_status
_bch_ptr_status:                        ; @bch_ptr_status
	.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	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_KEY_PTRS
	cbz	w0, LBB0_9
; %bb.1:
	mov	w22, #0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x26, l_.str.1@PAGE
Lloh3:
	add	x26, x26, l_.str.1@PAGEOFF
Lloh4:
	adrp	x27, l_.str.2@PAGE
Lloh5:
	add	x27, x27, l_.str.2@PAGEOFF
Lloh6:
	adrp	x28, l_.str.3@PAGE
Lloh7:
	add	x28, x28, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	mov	x0, x19
	bl	_KEY_PTRS
	cmp	w22, w0
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_ptr_available
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_PTR_CACHE
	mov	x23, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_PTR_BUCKET_NR
	mov	x24, x0
	mov	x0, x19
	mov	x1, x22
	bl	_PTR_OFFSET
	mov	x1, x0
	mov	x0, x21
	bl	_bucket_remainder
	mov	x25, x0
	mov	x0, x19
	bl	_KEY_SIZE
	ldr	x8, [x21]
	add	x9, x0, x25
	cmp	x9, x8
	b.hi	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	cmp	x24, x8
	b.lo	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23, #8]
	cmp	x24, x8
	b.hs	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_ptr_stale
	cbz	x0, LBB0_2
; %bb.8:
	mov	x20, x28
	b	LBB0_16
LBB0_9:
Lloh8:
	adrp	x1, _ZERO_KEY@GOTPAGE
Lloh9:
	ldr	x1, [x1, _ZERO_KEY@GOTPAGEOFF]
	mov	x0, x19
	bl	_bkey_cmp
	cbz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_KEY_PTRS
	cbz	w0, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_KEY_SIZE
Lloh10:
	adrp	x8, l_.str.7@PAGE
Lloh11:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh12:
	adrp	x9, l_.str.6@PAGE
Lloh13:
	add	x9, x9, l_.str.6@PAGEOFF
	cmp	x0, #0
	csel	x20, x9, x8, eq
	b	LBB0_16
LBB0_12:
Lloh14:
	adrp	x20, l_.str.4@PAGE
Lloh15:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_13:
Lloh16:
	adrp	x20, l_.str.5@PAGE
Lloh17:
	add	x20, x20, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_14:
	mov	x20, x26
	b	LBB0_16
LBB0_15:
	mov	x20, x27
LBB0_16:
	mov	x0, x20
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad, length too big"

l_.str.1:                               ; @.str.1
	.asciz	"bad, short offset"

l_.str.2:                               ; @.str.2
	.asciz	"bad, offset past end of device"

l_.str.3:                               ; @.str.3
	.asciz	"stale"

	.comm	_ZERO_KEY,4,2                   ; @ZERO_KEY
l_.str.4:                               ; @.str.4
	.asciz	"bad, null key"

l_.str.5:                               ; @.str.5
	.asciz	"bad, no pointers"

l_.str.6:                               ; @.str.6
	.asciz	"zeroed key"

l_.str.7:                               ; @.str.7
	.space	1

	.no_dead_strip	_bch_ptr_status
.subsections_via_symbols
