	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_revindex_position         ## -- Begin function find_revindex_position
	.p2align	4, 0x90
_find_revindex_position:                ## @find_revindex_position
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	incl	%ecx
	movq	8(%rdi), %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edx
	subl	%edi, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	addl	%edi, %eax
	movq	(%r8,%rax,8), %rdx
	cmpq	%rsi, %rdx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rax), %r9d
	cmpq	%rsi, %rdx
	cmovlel	%r9d, %edi
	cmovgl	%eax, %ecx
	cmpl	%ecx, %edi
	jl	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_error
	movl	$-1, %eax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad offset for revindex"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_revindex_position         ; -- Begin function find_revindex_position
	.p2align	2
_find_revindex_position:                ; @find_revindex_position
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w8, #0
	ldr	w9, [x0]
	add	w9, w9, #1
	ldr	x10, [x0, #8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w9, w8
	cmp	w11, #0
	cinc	w11, w11, lt
	add	w0, w8, w11, asr #1
	ldr	x11, [x10, w0, uxtw #3]
	cmp	x11, x1
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	csinc	w8, w8, w0, gt
	csel	w9, w0, w9, gt
	cmp	w8, w9
	b.lt	LBB0_1
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad offset for revindex"

.subsections_via_symbols
