	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function table_lookup
_table_lookup:                          ## @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
	movq	(%rdi), %r10
	cmpq	%rdx, %r10
	jge	LBB0_1
## %bb.2:
	movslq	%esi, %r8
	decq	%r8
	movq	%r8, %rax
	shlq	$4, %rax
	movq	(%rdi,%rax), %r9
	cmpq	%rdx, %r9
	jle	LBB0_15
## %bb.3:
	xorl	%r11d, %r11d
	cmpl	$3, %esi
	jl	LBB0_12
## %bb.4:
	decl	%esi
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%r11), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	cmpq	%rdx, %r10
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%eax, %rcx
	shlq	$4, %rcx
	cmpq	%rdx, (%rdi,%rcx)
	jge	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r11d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %esi
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, %ecx
	subl	%r11d, %ecx
	movslq	%r11d, %rax
	cmpl	$2, %ecx
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	shlq	$4, %rax
	movq	(%rdi,%rax), %r10
	jmp	LBB0_5
LBB0_1:
	movl	8(%rdi), %ecx
	jmp	LBB0_14
LBB0_15:
	movl	8(%rdi,%rax), %ecx
	jmp	LBB0_14
LBB0_11:
	movslq	%esi, %r8
	shlq	$4, %rax
	movq	(%rdi,%rax), %r10
	movq	%r8, %rax
	shlq	$4, %rax
	movq	(%rdi,%rax), %r9
LBB0_12:
	movslq	%r11d, %rax
	shlq	$4, %rax
	movl	8(%rdi,%rax), %ecx
	subl	%r10d, %r9d
	je	LBB0_14
## %bb.13:
	subl	%r10d, %edx
	shlq	$4, %r8
	movl	8(%rdi,%r8), %eax
	subl	%ecx, %eax
	imull	%edx, %eax
	cltd
	idivl	%r9d
	addl	%eax, %ecx
LBB0_14:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_table_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function table_lookup
_table_lookup:                          ; @table_lookup
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x10, [x0]
	cmp	x10, x2
	b.ge	LBB0_10
; %bb.1:
	sxtw	x8, w1
	sub	x9, x8, #1
	lsl	x8, x9, #4
	ldr	x11, [x0, x8]
	cmp	x11, x2
	b.le	LBB0_11
; %bb.2:
	cmp	w1, #3
	b.lt	LBB0_12
; %bb.3:
	mov	w8, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w9, w8
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	cmp	x10, x2
	b.gt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sbfiz	x10, x11, #4, #32
	ldr	x10, [x0, x10]
	cmp	x10, x2
	b.ge	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x11
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, x11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w10, w9, w8
	cmp	w10, #2
	b.lt	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	sbfiz	x10, x8, #4, #32
	ldr	x10, [x0, x10]
	b	LBB0_4
LBB0_10:
	ldr	w0, [x0, #8]
	ret
LBB0_11:
	add	x8, x0, x9, lsl #4
	ldr	w0, [x8, #8]
	ret
LBB0_12:
	mov	w8, #0
	b	LBB0_14
LBB0_13:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sbfiz	x11, x9, #4, #32
	sxtw	x9, w9
	mov	x10, x8
	sbfiz	x10, x10, #4, #32
	ldr	x10, [x0, x10]
	ldr	x11, [x0, x11]
LBB0_14:
	add	x8, x0, w8, sxtw #4
	ldr	w8, [x8, #8]
	subs	w11, w11, w10
	b.eq	LBB0_16
; %bb.15:
	sub	w10, w2, w10
	add	x9, x0, x9, lsl #4
	ldr	w9, [x9, #8]
	sub	w9, w9, w8
	mul	w9, w9, w10
	sdiv	w9, w9, w11
	add	w8, w9, w8
LBB0_16:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_table_lookup
.subsections_via_symbols
