	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_ref_delta
_find_ref_delta:                        ## @find_ref_delta
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_nr_ref_deltas@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	%ebx, %r13d
	cmpl	%r13d, %r12d
	jle	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %eax
	subl	%r13d, %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	addl	%r13d, %ebx
	movq	_ref_deltas@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$8, %rsi
	movq	_objects@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rcx), %rax
	movl	(%rdx,%rax,4), %ecx
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_compare_ref_delta_bases
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	jns	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r12d
	cmpl	%r13d, %r12d
	jg	LBB0_3
LBB0_8:
	notl	%r13d
	movl	%r13d, %ebx
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nr_ref_deltas,4,2              ## @nr_ref_deltas
	.comm	_ref_deltas,8,3                 ## @ref_deltas
	.comm	_objects,8,3                    ## @objects
	.no_dead_strip	_find_ref_delta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_ref_delta
_find_ref_delta:                        ; @find_ref_delta
	.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
Lloh0:
	adrp	x8, _nr_ref_deltas@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nr_ref_deltas@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w23, #0
Lloh3:
	adrp	x24, _ref_deltas@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ref_deltas@GOTPAGEOFF]
Lloh5:
	adrp	x25, _objects@GOTPAGE
Lloh6:
	ldr	x25, [x25, _objects@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w22, w23
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w21, w23, w8, asr #1
	ldr	x8, [x24]
	add	x1, x8, w21, sxtw #4
	ldr	x8, [x25]
	ldr	x9, [x1], #8
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x20
	mov	x2, x19
	bl	_compare_ref_delta_bases
	cbz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #0
	csel	w22, w21, w22, lt
	csinc	w23, w23, w21, lt
	cmp	w22, w23
	b.gt	LBB0_2
; %bb.4:
	mvn	w21, w23
	b	LBB0_6
LBB0_5:
	mov	w21, #-1
LBB0_6:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_nr_ref_deltas,4,2              ; @nr_ref_deltas
	.comm	_ref_deltas,8,3                 ; @ref_deltas
	.comm	_objects,8,3                    ; @objects
	.no_dead_strip	_find_ref_delta
.subsections_via_symbols
