	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_short_array                 ## -- Begin function in_short_array
	.p2align	4, 0x90
_in_short_array:                        ## @in_short_array
	.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 $edx killed $edx def $rdx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	movl	$-1, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %ecx
	subl	%eax, %ecx
	cmpl	$1, %ecx
	jle	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%rax), %r8d
	sarl	%r8d
	movslq	%r8d, %rcx
	movswl	(%rsi,%rcx,2), %ecx
	cmpl	%edi, %ecx
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %edx
	jmp	LBB0_5
LBB0_6:
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	%eax, %ecx
	movswl	(%rsi,%rcx,2), %ecx
	cmpl	%edi, %ecx
	je	LBB0_9
LBB0_8:
	movl	$-1, %eax
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_short_array                 ; -- Begin function in_short_array
	.p2align	2
_in_short_array:                        ; @in_short_array
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x8, x0
	mov	w0, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w2, w0
	asr	w9, w9, #1
	ldrsh	w10, [x1, w9, sxtw #1]
	cmp	w10, w8
	csel	w0, w0, w9, gt
	csel	w2, w9, w2, gt
	sub	w9, w2, w0
	cmp	w9, #1
	b.gt	LBB0_2
; %bb.3:
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldrsh	w9, [x1, w0, uxtw #1]
	cmp	w9, w8
	b.eq	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
