	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_17
LBB0_7:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r13
	leaq	-64(%rbp), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rbx), %eax
	cmpl	4(%rbx), %eax
	jge	LBB0_17
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_cdb_read
	movl	$-1, %r15d
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	-52(%rbp), %rdi
	leaq	-60(%rbp), %rsi
	callq	_uint32_unpack
	cmpl	$0, -60(%rbp)
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	(%rbx)
	movl	16(%rbx), %eax
	addl	$8, %eax
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	leal	(%rdx,%rcx,8), %ecx
	cmpl	%ecx, %eax
	cmovel	%edx, %eax
	movl	%eax, 16(%rbx)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_uint32_unpack
	movl	-64(%rbp), %eax
	cmpl	12(%rbx), %eax
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-60(%rbp), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_cdb_read
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_uint32_unpack
	cmpl	%r14d, -64(%rbp)
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-60(%rbp), %ecx
	addl	$8, %ecx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_cdb_match
	movl	%eax, %r15d
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$1, %r15d
	jne	LBB0_16
## %bb.15:
	leaq	20(%rbx), %rsi
	leaq	-52(%rbp), %rdi
	callq	_uint32_unpack
	movl	-60(%rbp), %eax
	addl	%r14d, %eax
	addl	$8, %eax
	movl	%eax, 24(%rbx)
	movl	$1, %r15d
	jmp	LBB0_18
LBB0_2:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_cdb_hash
	movl	%eax, %r15d
	movzbl	%r15b, %ecx
	shll	$3, %ecx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_cdb_read
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	leaq	-52(%rbp), %rdi
	leaq	4(%rbx), %rsi
	callq	_uint32_unpack
	cmpl	$0, 4(%rbx)
	je	LBB0_17
## %bb.5:
	leaq	8(%rbx), %rsi
	leaq	-56(%rbp), %rdi
	callq	_uint32_unpack
	movl	%r15d, 12(%rbx)
	sarl	$8, %r15d
	movl	4(%rbx), %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	shll	$3, %edx
	movl	%edx, -64(%rbp)
	addl	8(%rbx), %edx
	movl	%edx, 16(%rbx)
	movl	(%rbx), %eax
	cmpl	%ecx, %eax
	jl	LBB0_7
LBB0_17:
	xorl	%r15d, %r15d
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$-1, %r15d
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.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, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w9, [x0]
	cbz	w9, LBB0_12
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w9, w8
	b.ge	LBB0_15
LBB0_2:
	add	x8, sp, #16
	add	x22, x8, #4
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w9, [x19]
	cmp	w8, w9
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x19, #16]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #8
	bl	_cdb_read
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #12
	mov	x0, x22
	bl	_uint32_unpack
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w9, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w8, [x19, #16]
	add	w8, w8, #8
	ldr	w10, [x19, #8]
	add	w9, w10, w9, lsl #3
	cmp	w8, w9
	csel	w8, w10, w8, eq
	str	w8, [x19, #16]
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_uint32_unpack
	ldr	w8, [sp, #8]
	ldr	w9, [x19, #12]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [sp, #12]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #8
	bl	_cdb_read
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_uint32_unpack
	ldr	w8, [sp, #8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	add	w3, w8, #8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_cdb_match
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.11:
	add	x1, x19, #20
	mov	x0, x22
	bl	_uint32_unpack
	ldr	w8, [sp, #12]
	add	w8, w20, w8
	add	w8, w8, #8
	str	w8, [x19, #24]
	mov	w0, #1
	b	LBB0_16
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	bl	_cdb_hash
	mov	x22, x0
	ubfiz	w3, w0, #3, #8
	add	x23, sp, #16
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #8
	bl	_cdb_read
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.13:
	add	x0, x23, #4
	add	x1, x19, #4
	bl	_uint32_unpack
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_15
; %bb.14:
	add	x1, x19, #8
	add	x0, sp, #16
	bl	_uint32_unpack
	asr	w10, w22, #8
	ldp	w9, w8, [x19]
	sdiv	w11, w10, w8
	msub	w10, w11, w8, w10
	lsl	w10, w10, #3
	str	w10, [sp, #8]
	ldr	w11, [x19, #8]
	add	w10, w11, w10
	stp	w22, w10, [x19, #12]
	cmp	w9, w8
	b.lt	LBB0_2
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	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
	add	sp, sp, #96
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
