	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_btree_keys_stats           ## -- Begin function bch_btree_keys_stats
	.p2align	4, 0x90
_bch_btree_keys_stats:                  ## @bch_btree_keys_stats
	.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	%rsi, %r12
	xorl	%ebx, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	16(%r12)
	addq	%r13, 8(%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	cmpl	(%rdi), %ebx
	ja	LBB0_14
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	8(%rdi), %rax
	movl	%ebx, %ebx
	leaq	(%rbx,%rbx,2), %r14
	leaq	(%rax,%r14,8), %r15
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rax,%r14,8), %rax
	movslq	(%rax), %r13
	shlq	$2, %r13
	movq	%r15, %rsi
	callq	_bset_written
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	28(%r12)
	addq	%r13, (%r12)
	movslq	(%r15), %r8
	movl	24(%r12), %ecx
	addl	%r8d, %ecx
	decl	%ecx
	movl	%ecx, 24(%r12)
	cmpq	$2, %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jb	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r8d, %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax,%r14,8), %rcx
	decq	%r8
	movl	$1, %edx
	cmpl	$2, %esi
	jne	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %r8b
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$127, (%rcx,%rdx,4)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	20(%r12)
	jmp	LBB0_13
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r8, %rsi
	andq	$-2, %rsi
	negq	%rsi
	movl	$1, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	leaq	(%rsi,%rdx), %rax
	addq	$2, %rax
	addq	$2, %rdx
	cmpq	$1, %rax
	je	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$127, (%rcx,%rdx,4)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	incl	20(%r12)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$127, 4(%rcx,%rdx,4)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	incl	20(%r12)
	jmp	LBB0_9
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_btree_keys_stats           ; -- Begin function bch_btree_keys_stats
	.p2align	2
_bch_btree_keys_stats:                  ; @bch_btree_keys_stats
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	mov	w8, #0
	mov	w22, #24
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	str	x8, [x19, #8]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w23, #1
	ldr	w9, [x20]
	cmp	w8, w9
	b.hi	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x24, [x20, #8]
	mov	w23, w8
	umaddl	x21, w8, w22, x24
	ldr	x8, [x21, #16]
	ldrsw	x8, [x8]
	lsl	x25, x8, #2
	mov	x0, x20
	mov	x1, x21
	bl	_bset_written
	cbz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	add	x8, x8, x25
	str	x8, [x19]
	ldrsw	x8, [x21]
	sub	w9, w8, #1
	ldr	d0, [x19, #24]
	movi.2s	v1, #1
	mov.s	v1[0], w9
	add.2s	v0, v1, v0
	str	d0, [x19, #24]
	cmp	w8, #2
	b.lo	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x9, x23, x22, x24
	ldr	x9, [x9, #8]
	sub	x8, x8, #1
	add	x9, x9, #4
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x9, x9, #4
	subs	x8, x8, #1
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x9]
	cmp	w10, #127
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w10, [x19, #20]
	add	w10, w10, #1
	str	w10, [x19, #20]
	b	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
