	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_bset_fix_invalidated_key   ## -- Begin function bch_bset_fix_invalidated_key
	.p2align	4, 0x90
_bch_bset_fix_invalidated_key:          ## @bch_bset_fix_invalidated_key
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	callq	_bset_tree_last
	cmpq	%rax, %r12
	ja	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rdi
	callq	_bset_bkey_last
	cmpq	%r14, %rax
	ja	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$16, %r12
	movq	%r15, %rdi
	jmp	LBB0_1
LBB0_4:
	xorl	%eax, %eax
	callq	_BUG
LBB0_5:
	cmpl	$0, (%r12)
	je	LBB0_19
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bset_written
	testl	%eax, %eax
	je	LBB0_19
## %bb.7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_bkey_to_cacheline
	movl	%eax, %r15d
	movq	8(%r12), %rax
	cmpq	%r14, (%rax)
	je	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	callq	_bkey_next
	movq	%rax, %rbx
	movq	8(%r12), %rdi
	callq	_bset_bkey_last
	cmpq	%rax, %rbx
	je	LBB0_10
## %bb.11:
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_inorder_to_tree
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	%eax, %ebx
	cmpl	(%r12), %eax
	jae	LBB0_15
## %bb.13:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_tree_to_bkey
	cmpq	%r14, %rax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_8:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_make_bfloat
	addl	%ebx, %ebx
	cmpl	(%r12), %ebx
	jb	LBB0_14
LBB0_15:
	incl	%r15d
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_inorder_to_tree
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	movl	%eax, %ebx
	cmpl	(%r12), %eax
	jae	LBB0_19
## %bb.17:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_tree_to_prev_bkey
	cmpq	%r14, %rax
	jne	LBB0_19
	jmp	LBB0_18
LBB0_10:
	movl	(%r14), %eax
	movl	%eax, 4(%r12)
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_make_bfloat
	addl	%ebx, %ebx
	incl	%ebx
	cmpl	(%r12), %ebx
	jb	LBB0_18
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_bset_fix_invalidated_key   ; -- Begin function bch_bset_fix_invalidated_key
	.p2align	2
_bch_bset_fix_invalidated_key:          ; @bch_bset_fix_invalidated_key
	.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, x1
	mov	x21, x0
	ldr	x19, [x0]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_bset_tree_last
	cmp	x19, x0
	b.hi	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19, #8]
	bl	_bset_bkey_last
	cmp	x0, x20
	b.hi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x19, x19, #16
	mov	x0, x21
	b	LBB0_1
LBB0_4:
	bl	_BUG
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_19
; %bb.6:
	mov	x0, x21
	mov	x1, x19
	bl	_bset_written
	cbz	w0, LBB0_19
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_bkey_to_cacheline
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_12
; %bb.8:
	mov	x0, x20
	bl	_bkey_next
	mov	x22, x0
	ldr	x0, [x19, #8]
	bl	_bset_bkey_last
	cmp	x22, x0
	b.eq	LBB0_17
; %bb.9:
	mov	x0, x21
	mov	x1, x19
	bl	_inorder_to_tree
	cbz	w0, LBB0_14
; %bb.10:
	mov	x22, x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.hs	LBB0_14
; %bb.11:
	mov	x0, x19
	mov	x1, x22
	bl	_tree_to_bkey
	cmp	x0, x20
	b.ne	LBB0_14
	b	LBB0_13
LBB0_12:
	mov	w22, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_make_bfloat
	lsl	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.lo	LBB0_13
LBB0_14:
	add	w0, w21, #1
	mov	x1, x19
	bl	_inorder_to_tree
	cbz	w0, LBB0_19
; %bb.15:
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.hs	LBB0_19
; %bb.16:
	mov	x0, x19
	mov	x1, x21
	bl	_tree_to_prev_bkey
	cmp	x0, x20
	b.ne	LBB0_19
	b	LBB0_18
LBB0_17:
	ldr	w8, [x20]
	str	w8, [x19, #4]
	mov	w21, #1
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_make_bfloat
	mov	w8, #1
	bfi	w8, w21, #1, #31
	ldr	w9, [x19]
	mov	x21, x8
	cmp	w8, w9
	b.lo	LBB0_18
LBB0_19:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
