	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_comp
_lookup_comp:                           ## @lookup_comp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %r8
	cmpl	%esi, (%r8)
	jbe	LBB0_1
## %bb.2:
	movslq	(%rdi), %r10
	cmpl	%esi, -4(%r8,%r10,4)
	jae	LBB0_5
## %bb.3:
	testl	%r10d, %r10d
	jle	LBB0_4
## %bb.6:
	xorl	%r9d, %r9d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%edi, %r10d
	cmpl	%r9d, %edi
	jle	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r10d, %eax
	subl	%r9d, %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	addl	%r9d, %edi
	movslq	%edi, %rax
	cmpl	%esi, (%r8,%rax,4)
	jbe	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%esi, 4(%r8,%rax,4)
	leal	1(%rax), %r9d
	cmovbel	%r9d, %r10d
	movl	%r10d, %edi
	jmp	LBB0_9
LBB0_1:
	movl	$0, (%rdx)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_5:
	decq	%r10
	movl	%r10d, (%rdx)
	movl	(%rdi), %eax
	decl	%eax
	jmp	LBB0_11
LBB0_4:
	movl	%r10d, %edi
LBB0_10:
	movl	%edi, (%rdx)
	movslq	%edi, %rax
	xorl	%edx, %edx
	cmpl	%esi, (%r8,%rax,4)
	setne	%dl
	subl	%edx, %eax
LBB0_11:
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lookup_comp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_comp
_lookup_comp:                           ; @lookup_comp
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	cmp	w9, w1
	b.ls	LBB0_7
; %bb.1:
	ldr	w9, [x0]
	sub	w10, w9, #1
	ldr	w11, [x8, w10, sxtw #2]
	cmp	w11, w1
	b.hs	LBB0_8
; %bb.2:
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w10, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x11
	cmp	w11, w10
	b.le	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w9, w10
	cmp	w11, #0
	cinc	w11, w11, lt
	add	w11, w10, w11, asr #1
	ldr	w12, [x8, w11, sxtw #2]
	cmp	w12, w1
	b.ls	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x10, w11
	add	x10, x10, #1
	ldr	w11, [x8, x10, lsl #2]
	cmp	w11, w1
	csel	w11, w9, w10, hi
	b	LBB0_4
LBB0_7:
	str	wzr, [x2]
	str	wzr, [x3]
	ret
LBB0_8:
	str	w10, [x2]
	ldr	w8, [x0]
	sub	w8, w8, #1
	str	w8, [x3]
	ret
LBB0_9:
	mov	x11, x9
LBB0_10:
	str	w11, [x2]
	ldr	w8, [x8, w11, sxtw #2]
	cmp	w8, w1
	cset	w8, ne
	sub	w8, w11, w8
	str	w8, [x3]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lookup_comp
.subsections_via_symbols
