	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function search_offset_index
_search_offset_index:                   ## @search_offset_index
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	xorl	%edi, %edi
	cmpq	%rsi, (%rax,%rcx,8)
	setg	%dil
	callq	_assert
	movq	8(%r14), %rax
	cmpq	%r15, %rax
	jle	LBB0_1
## %bb.2:
	movq	(%r14), %rcx
	cmpq	%r12, (%rcx,%r15,8)
	jle	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	movq	%r15, %rax
	cmpq	%rax, %rbx
	je	LBB0_7
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	cmpq	%rax, %rbx
	jne	LBB0_8
LBB0_7:
	movq	(%r14), %rcx
LBB0_13:
	xorl	%edi, %edi
	cmpq	%r12, -8(%rcx,%rbx,8)
	jg	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	cmpq	%r12, (%rcx,%rbx,8)
	setg	%dil
LBB0_15:
	decq	%rbx
	callq	_assert
	movq	%rbx, %r15
LBB0_16:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	%r12, 8(%rcx,%r15,8)
	jg	LBB0_16
## %bb.5:
	incq	%r15
	movq	%r15, %rbx
	cmpq	%rax, %rbx
	je	LBB0_7
LBB0_8:
	leaq	(%rax,%rbx), %rdx
	movq	(%r14), %rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rsi
	movq	%rsi, %rbx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rbx,%rax), %rdx
	cmpq	%rax, %rbx
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rsi
	shrq	$63, %rsi
	addq	%rdx, %rsi
	sarq	%rsi
	cmpq	%r12, (%rcx,%rsi,8)
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rsi, %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_search_offset_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function search_offset_index
_search_offset_index:                   ; @search_offset_index
	.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, x2
	mov	x19, x1
	mov	x21, x0
	ldp	x8, x9, [x0]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, x1
	cset	w0, gt
	bl	_assert
	ldr	x9, [x21, #8]
	cmp	x9, x20
	b.le	LBB0_3
; %bb.1:
	ldr	x10, [x21]
	ldr	x8, [x10, x20, lsl #3]
	cmp	x8, x19
	b.le	LBB0_4
; %bb.2:
	mov	x8, #0
	mov	x9, x20
	b	LBB0_5
LBB0_3:
	mov	x8, #0
	b	LBB0_5
LBB0_4:
	add	x8, x20, #1
	ldr	x10, [x10, x8, lsl #3]
	cmp	x10, x19
	b.gt	LBB0_13
LBB0_5:
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x10, [x21]
	b	LBB0_9
LBB0_7:
	add	x11, x9, x8
	ldr	x10, [x21]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x11, #0
	cinc	x11, x11, lt
	asr	x11, x11, #1
	ldr	x12, [x10, x11, lsl #3]
	cmp	x12, x19
	csel	x9, x11, x9, gt
	csinc	x8, x8, x11, gt
	add	x11, x8, x9
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_9:
	sub	x20, x8, #1
	ldr	x9, [x10, x20, lsl #3]
	cmp	x9, x19
	b.le	LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	ldr	x8, [x10, x8, lsl #3]
	cmp	x8, x19
	cset	w0, gt
LBB0_12:
	bl	_assert
LBB0_13:
	mov	x0, x20
	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
	.no_dead_strip	_search_offset_index
.subsections_via_symbols
