	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function which_dev
_which_dev:                             ## @which_dev
	.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), %ecx
	movq	8(%rdi), %rax
	cmpl	$1, %ecx
	jle	LBB0_1
## %bb.2:
	decl	%ecx
	movq	(%rax), %r8
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%edi
	movl	%edi, %edx
	cmpl	%edx, %ecx
	jle	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%rcx), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movslq	%edi, %rax
	cmpq	%rsi, (%r8,%rax,8)
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edi, %ecx
	cmpl	%edx, %ecx
	jg	LBB0_3
LBB0_7:
	movslq	%edx, %rcx
	jmp	LBB0_8
LBB0_1:
	movq	(%rax), %r8
	xorl	%ecx, %ecx
LBB0_8:
	leaq	(%r8,%rcx,8), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_which_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function which_dev
_which_dev:                             ; @which_dev
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	ldr	x8, [x0, #8]
	subs	w9, w9, #1
	b.le	LBB0_4
; %bb.1:
	mov	w10, #0
	ldr	x8, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w10, w9
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	ldr	x12, [x8, w11, sxtw #3]
	cmp	x12, x1
	csel	w9, w11, w9, gt
	csinc	w10, w10, w11, gt
	cmp	w9, w10
	b.gt	LBB0_2
; %bb.3:
	sxtw	x9, w10
	add	x0, x8, x9, lsl #3
	ret
LBB0_4:
	ldr	x8, [x8]
	add	x0, x8, xzr, lsl #3
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_which_dev
.subsections_via_symbols
