	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_table_lookup
_stv090x_table_lookup:                  ## @stv090x_table_lookup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movl	(%rdi), %r10d
	movslq	%esi, %rax
	movl	(%rdi,%rax,8), %r8d
	cmpl	%edx, %r10d
	jle	LBB0_4
## %bb.1:
	cmpl	%edx, %r8d
	jle	LBB0_5
## %bb.2:
	cmpl	%r8d, %r10d
	jl	LBB0_18
LBB0_15:
	movl	4(%rdi,%rax,8), %eax
	popq	%rbp
	retq
LBB0_4:
	cmpl	%edx, %r8d
	jle	LBB0_14
LBB0_5:
	xorl	%r9d, %r9d
	cmpl	$2, %esi
	jl	LBB0_17
## %bb.6:
	xorl	%r9d, %r9d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r9d
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movl	%esi, %eax
	subl	%r9d, %eax
	movslq	%r9d, %rcx
	movl	(%rdi,%rcx,8), %r10d
	cmpl	$1, %eax
	jle	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%r9), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movslq	%eax, %rcx
	movl	(%rdi,%rcx,8), %ecx
	cmpl	%edx, %r10d
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%edx, %ecx
	jg	LBB0_7
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%edx, %ecx
	jle	LBB0_7
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %esi
	jmp	LBB0_8
LBB0_14:
	cmpl	%r8d, %r10d
	jl	LBB0_15
LBB0_18:
	movl	4(%rdi), %eax
	popq	%rbp
	retq
LBB0_16:
	movslq	%esi, %rax
	movl	(%rdi,%rax,8), %r8d
LBB0_17:
	movslq	%r9d, %rcx
	subl	%r10d, %edx
	movslq	%esi, %rax
	movl	4(%rdi,%rax,8), %eax
	movl	4(%rdi,%rcx,8), %ecx
	subl	%ecx, %eax
	imull	%edx, %eax
	subl	%r10d, %r8d
	cltd
	idivl	%r8d
	addl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stv090x_table_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_table_lookup
_stv090x_table_lookup:                  ; @stv090x_table_lookup
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	w8, [x0]
	sxtw	x9, w1
	sbfiz	x10, x1, #3, #32
	ldr	w10, [x0, x10]
	cmp	w8, w2
	b.le	LBB0_4
; %bb.1:
	cmp	w10, w2
	b.le	LBB0_5
; %bb.2:
	cmp	w8, w10
	b.lt	LBB0_14
LBB0_3:
	add	x8, x0, x9, lsl #3
	ldr	w0, [x8, #4]
	ret
LBB0_4:
	cmp	w10, w2
	b.le	LBB0_13
LBB0_5:
	cmp	w1, #2
	b.lt	LBB0_15
; %bb.6:
	mov	w9, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x9, x10
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	sub	w10, w1, w9
	sbfiz	x8, x9, #3, #32
	ldr	w8, [x0, x8]
	cmp	w10, #1
	b.le	LBB0_16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	w10, w1, w9
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	sbfiz	x11, x10, #3, #32
	ldr	w11, [x0, x11]
	cmp	w8, w2
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w11, w2
	b.gt	LBB0_7
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w11, w2
	b.le	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x10
	b	LBB0_8
LBB0_13:
	cmp	w8, w10
	b.lt	LBB0_3
LBB0_14:
	ldr	w0, [x0, #4]
	ret
LBB0_15:
	mov	w9, #0
	b	LBB0_17
LBB0_16:
	mov	x10, x1
	sbfiz	x10, x10, #3, #32
	ldr	w10, [x0, x10]
LBB0_17:
	sub	w11, w2, w8
	add	x12, x0, w1, sxtw #3
	ldr	w12, [x12, #4]
	add	x9, x0, w9, sxtw #3
	ldr	w9, [x9, #4]
	sub	w12, w12, w9
	mul	w11, w12, w11
	sub	w8, w10, w8
	sdiv	w8, w11, w8
	add	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stv090x_table_lookup
.subsections_via_symbols
