	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_lmu_common_convert_ramp_to_index
_ti_lmu_common_convert_ramp_to_index:   ## @ti_lmu_common_convert_ramp_to_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_ramp_table@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ecx
	movq	(%r14), %rdx
	xorl	%eax, %eax
	cmpl	%ebx, (%rdx)
	jae	LBB0_11
## %bb.1:
	movslq	%ecx, %rsi
	cmpl	%ebx, -4(%rdx,%rsi,4)
	jae	LBB0_3
## %bb.2:
	decl	%ecx
	movl	%ecx, %eax
	jmp	LBB0_11
LBB0_3:
	cmpl	$2, %ecx
	jl	LBB0_11
## %bb.4:
	movl	%ecx, %r8d
	movl	$1, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rcx, %r8
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rcx,4), %edi
	cmpl	%ebx, %edi
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-4(%rdx,%rcx,4), %esi
	cmpl	%ebx, %esi
	jae	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	subl	%ebx, %edi
	jbe	LBB0_9
## %bb.8:
	subl	%esi, %ebx
	leal	-1(%rcx), %eax
	cmpl	%edi, %ebx
	cmovael	%ecx, %eax
	jmp	LBB0_11
LBB0_10:
	movl	%ecx, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ramp_table,8,3                 ## @ramp_table
	.no_dead_strip	_ti_lmu_common_convert_ramp_to_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_lmu_common_convert_ramp_to_index
_ti_lmu_common_convert_ramp_to_index:   ; @ti_lmu_common_convert_ramp_to_index
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _ramp_table@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ramp_table@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	ldr	x9, [x20]
	ldr	w10, [x9]
	cmp	w10, w19
	b.hs	LBB0_7
; %bb.1:
	mov	x8, x0
	sub	w0, w0, #1
	ldr	w10, [x9, w0, sxtw #2]
	cmp	w10, w19
	b.lo	LBB0_8
; %bb.2:
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.3:
	mov	x10, #0
	mov	w8, w8
	sub	x8, x8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x9, x10, lsl #2
	ldr	w12, [x11, #4]
	subs	w11, w12, w19
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w13, [x9, x10, lsl #2]
	cmp	w13, w19
	ccmp	w12, w19, #0, lo
	b.hi	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_4
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	add	w0, w10, #1
	b	LBB0_8
LBB0_10:
	sub	w8, w19, w13
	cmp	w8, w11
	cinc	w0, w10, hs
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ramp_table,8,3                 ; @ramp_table
	.no_dead_strip	_ti_lmu_common_convert_ramp_to_index
.subsections_via_symbols
