	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdb_findnext                   ## -- Begin function cdb_findnext
	.p2align	4, 0x90
_cdb_findnext:                          ## @cdb_findnext
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, -64(%rbp)
	movl	$-1, %r14d
	cmpl	$-1, (%rdi)
	je	LBB0_22
## %bb.1:
	movl	%ecx, %r15d
	movq	%rdi, %rbx
	movl	$0, 4(%rdi)
	movl	8(%rdi), %eax
	movl	$0, %ecx
	testl	%eax, %eax
	je	LBB0_2
## %bb.9:
	cmpl	%ecx, %eax
	jge	LBB0_21
LBB0_10:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	incl	%r15d
	leaq	32(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r13
	leaq	-64(%rbp), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	8(%rbx), %eax
	cmpl	4(%rbx), %eax
	jge	LBB0_21
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_cdb_read
	testl	%eax, %eax
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-52(%rbp), %rdi
	leaq	-60(%rbp), %rsi
	callq	_ut32_unpack
	cmpl	$0, -60(%rbp)
	je	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	8(%rbx)
	movl	24(%rbx), %eax
	addl	$8, %eax
	movl	4(%rbx), %ecx
	movl	12(%rbx), %edx
	leal	(%rdx,%rcx,8), %ecx
	cmpl	%ecx, %eax
	cmovel	%edx, %eax
	movl	%eax, 24(%rbx)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ut32_unpack
	movl	-64(%rbp), %eax
	cmpl	20(%rbx), %eax
	jne	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-60(%rbp), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_cdb_getkvlen
	testl	%eax, %eax
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	%r15d, %eax
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_KVLSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	-60(%rbp), %ecx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_match
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$1, %eax
	jne	LBB0_20
## %bb.19:
	addl	-60(%rbp), %r15d
	movq	_KVLSZ@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movl	%r15d, 28(%rbx)
	movl	$1, %r14d
	jmp	LBB0_22
LBB0_2:
	movl	%esi, %r12d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leal	1(%r12), %r13d
	xorl	%eax, %eax
	testb	%r13b, %r13b
	setne	%al
	leal	4(,%rax,4), %edx
	movzbl	%r12b, %ecx
	shll	$2, %ecx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cdb_read
	testl	%eax, %eax
	je	LBB0_22
## %bb.3:
	leaq	12(%rbx), %rsi
	leaq	-56(%rbp), %rdi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	_ut32_unpack
	testb	%r13b, %r13b
	je	LBB0_5
## %bb.4:
	leaq	-52(%rbp), %rdi
	leaq	-60(%rbp), %rsi
	callq	_ut32_unpack
	movl	-60(%rbp), %eax
	jmp	LBB0_6
LBB0_5:
	movl	16(%rbx), %eax
	movl	%eax, -60(%rbp)
LBB0_6:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %esi
	subl	%esi, %eax
	jl	LBB0_22
## %bb.7:
	movl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 4(%rbx)
	cmpl	$8, %eax
	jb	LBB0_21
## %bb.8:
	movl	%r12d, 20(%rbx)
	sarl	$8, %r12d
	movl	%r12d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	leal	(,%rdx,8), %eax
	movl	%eax, -64(%rbp)
	leal	(%rsi,%rdx,8), %eax
	movl	%eax, 24(%rbx)
	movl	8(%rbx), %eax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%ecx, %eax
	jl	LBB0_10
LBB0_21:
	xorl	%r14d, %r14d
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_KVLSZ,4,2                      ## @KVLSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdb_findnext                   ; -- Begin function cdb_findnext
	.p2align	2
_cdb_findnext:                          ; @cdb_findnext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	w1, [sp, #12]
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_19
; %bb.1:
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
	str	wzr, [x0, #4]
	ldr	w9, [x0, #8]
	cbz	w9, LBB0_14
; %bb.2:
	mov	w8, #0
	cmp	w9, w8
	b.ge	LBB0_22
LBB0_3:
	add	w21, w21, #1
	add	x8, sp, #16
	add	x22, x8, #4
	add	x23, x19, #32
Lloh3:
	adrp	x24, _KVLSZ@GOTPAGE
Lloh4:
	ldr	x24, [x24, _KVLSZ@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	w9, w8, [x19, #4]
	cmp	w8, w9
	b.ge	LBB0_22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x19, #24]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #8
	bl	_cdb_read
	cbz	w0, LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_ut32_unpack
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w9, w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	w8, [x19, #24]
	add	w8, w8, #8
	ldr	w10, [x19, #12]
	add	w9, w10, w9, lsl #3
	cmp	w8, w9
	csel	w8, w10, w8, eq
	str	w8, [x19, #24]
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_ut32_unpack
	ldr	w8, [sp, #12]
	ldr	w9, [x19, #20]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [sp, #8]
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x23
	bl	_cdb_getkvlen
	mov	x8, x0
	mov	w0, #-1
	cbz	w8, LBB0_23
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x24]
	add	w3, w9, w8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_match
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.13:
	ldr	w8, [sp, #8]
	ldr	w9, [x24]
	add	w8, w8, w21
	add	w8, w8, w9
	str	w8, [x19, #28]
	b	LBB0_23
LBB0_14:
	mov	x22, x1
	add	w8, w1, #1
	ands	w24, w8, #0xff
	mov	w8, #8
	mov	w9, #4
	csel	w2, w9, w8, eq
	ubfiz	w3, w1, #2, #8
	add	x1, sp, #16
	mov	x0, x19
	bl	_cdb_read
	cbz	w0, LBB0_19
; %bb.15:
	add	x23, x19, #12
	add	x25, sp, #16
	add	x0, sp, #16
	mov	x1, x23
	bl	_ut32_unpack
	cbz	w24, LBB0_17
; %bb.16:
	add	x0, x25, #4
	add	x1, sp, #8
	bl	_ut32_unpack
	ldr	w8, [sp, #8]
	b	LBB0_18
LBB0_17:
	ldr	w8, [x19, #16]
	str	w8, [sp, #8]
LBB0_18:
	ldr	w9, [x23]
	subs	w10, w8, w9
	b.ge	LBB0_20
LBB0_19:
	mov	w0, #-1
	b	LBB0_23
LBB0_20:
	asr	w8, w10, #3
	str	w8, [x19, #4]
	cmp	w10, #8
	b.lo	LBB0_22
; %bb.21:
	asr	w10, w22, #8
	sdiv	w11, w10, w8
	msub	w10, w11, w8, w10
	lsl	w10, w10, #3
	str	w10, [sp, #12]
	add	w9, w10, w9
	stp	w22, w9, [x19, #20]
	ldr	w9, [x19, #8]
	cmp	w9, w8
	b.lt	LBB0_3
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KVLSZ,4,2                      ; @KVLSZ
.subsections_via_symbols
