	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linemap_lookup                 ## -- Begin function linemap_lookup
	.p2align	4, 0x90
_linemap_lookup:                        ## @linemap_lookup
	.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), %r9d
	movq	8(%rdi), %r8
	xorl	%edx, %edx
	cmpq	%rsi, (%r8,%r9,8)
	jle	LBB0_2
## %bb.1:
	movl	%r9d, %ecx
	jmp	LBB0_4
LBB0_2:
	movl	4(%rdi), %ecx
	leaq	(%r8,%r9,8), %rax
	leal	1(%r9), %edx
	cmpl	%ecx, %edx
	je	LBB0_10
## %bb.3:
	movl	%r9d, %edx
	cmpq	%rsi, 8(%rax)
	jg	LBB0_10
LBB0_4:
	movl	%ecx, %eax
	subl	%edx, %eax
	cmpl	$2, %eax
	jae	LBB0_5
LBB0_9:
	movl	%edx, (%rdi)
	movl	%edx, %eax
	leaq	(%r8,%rax,8), %rax
LBB0_10:
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jbe	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rcx,%rdx), %eax
	shrl	%eax
	cmpq	%rsi, (%r8,%rax,8)
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linemap_lookup                 ; -- Begin function linemap_lookup
	.p2align	2
_linemap_lookup:                        ; @linemap_lookup
	.cfi_startproc
; %bb.0:
	ldr	w10, [x0]
	ldr	x9, [x0, #8]
	add	x8, x9, x10, lsl #3
	ldr	x11, [x8]
	cmp	x11, x1
	b.le	LBB0_2
; %bb.1:
	mov	w11, #0
	b	LBB0_4
LBB0_2:
	ldr	w12, [x0, #4]
	add	w11, w10, #1
	cmp	w11, w12
	b.eq	LBB0_7
; %bb.3:
	ldr	x13, [x8, #8]
	mov	x11, x10
	mov	x10, x12
	cmp	x13, x1
	b.gt	LBB0_7
LBB0_4:
	sub	w8, w10, w11
	cmp	w8, #2
	b.lo	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w10, w11
	lsr	w8, w8, #1
	ldr	x12, [x9, w8, uxtw #3]
	cmp	x12, x1
	csel	w11, w11, w8, gt
	csel	w10, w8, w10, gt
	sub	w8, w10, w11
	cmp	w8, #1
	b.hi	LBB0_5
LBB0_6:
	str	w11, [x0]
	add	x8, x9, w11, uxtw #3
LBB0_7:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
