	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_among_b                   ## -- Begin function find_among_b
	.p2align	4, 0x90
_find_among_b:                          ## @find_among_b
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdi), %rcx
	movl	4(%rdi), %ebx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movl	%ecx, %r11d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	subl	%ebx, %r11d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx,4), %rax
	addq	$-4, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%r9d, %r9d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%esi, %esi
	cmovsl	%r13d, %edx
	cmovnsl	%edi, %r15d
	cmovsl	%edi, %r14d
	cmovnsl	%r13d, %r9d
	movl	%edx, %eax
	subl	%r9d, %eax
	cmpl	$1, %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jle	LBB0_10
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%edx, %r13d
	subl	%r9d, %r13d
	sarl	%r13d
	addl	%r9d, %r13d
	cmpl	%r14d, %r15d
	movl	%r14d, %edi
	cmovll	%r15d, %edi
	movslq	%r13d, %rax
	shlq	$5, %rax
	movl	(%rsi,%rax), %r10d
	movl	%edi, %ecx
	notl	%ecx
	addl	%r10d, %ecx
	js	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%rsi,%rax), %r12
	addq	$8, %r12
	movslq	%edi, %rax
	shlq	$2, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	subq	%rax, %rcx
	movl	%r10d, %eax
	subl	%edi, %eax
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%edi, %r11d
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	decl	%eax
	movl	(%rcx), %esi
	movq	(%r12), %rbx
	movl	%eax, %r8d
	subl	(%rbx,%r8,4), %esi
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	incl	%edi
	addq	$-4, %rcx
	testl	%eax, %eax
	jg	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r10d, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$-1, %esi
	movl	%r11d, %edi
	jmp	LBB0_9
LBB0_10:
	testl	%r9d, %r9d
	jg	LBB0_22
## %bb.11:
	cmpl	%r9d, %edx
	je	LBB0_22
## %bb.12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	subl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%r8d, %r8d
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	testl	%r8d, %r8d
	cmovsl	%r10d, %edx
	cmovnsl	%edi, %r15d
	cmovsl	%edi, %r14d
	cmovnsl	%r10d, %r9d
	movl	%edx, %eax
	subl	%r9d, %eax
	cmpl	$1, %eax
	jle	LBB0_22
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	%edx, %r10d
	subl	%r9d, %r10d
	sarl	%r10d
	addl	%r9d, %r10d
	cmpl	%r14d, %r15d
	movl	%r14d, %edi
	cmovll	%r15d, %edi
	movslq	%r10d, %rax
	shlq	$5, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%rax), %esi
	movl	%edi, %ecx
	notl	%ecx
	addl	%esi, %ecx
	js	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	%rax, %rbx
	addq	$8, %rbx
	movslq	%edi, %rax
	shlq	$2, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	subq	%rax, %rcx
	movl	%esi, %eax
	subl	%edi, %eax
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%edi, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	decl	%eax
	movl	(%rcx), %r8d
	movq	(%rbx), %r12
	movl	%eax, %r13d
	subl	(%r12,%r13,4), %r8d
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	incl	%edi
	addq	$-4, %rcx
	testl	%eax, %eax
	jg	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%esi, %edi
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	$-1, %r8d
	movl	%r11d, %edi
	jmp	LBB0_21
LBB0_22:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	28(%rsi,%rbx), %r9d
	testl	%r9d, %r9d
	js	LBB0_27
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movslq	%r9d, %rbx
	shlq	$5, %rbx
	movl	(%rsi,%rbx), %eax
	cmpl	%eax, %r15d
	jl	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	subl	%eax, %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	16(%rsi,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	leaq	(%rsi,%rbx), %r14
	movq	%r12, %rdi
	callq	*%rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	(%r14), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	subl	%ecx, %edx
	movl	%edx, (%r12)
	testl	%eax, %eax
	je	LBB0_26
LBB0_28:
	movl	24(%rsi,%rbx), %eax
	jmp	LBB0_29
LBB0_27:
	xorl	%eax, %eax
LBB0_29:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_find_among_b                   ; -- Begin function find_among_b
	.p2align	2
_find_among_b:                          ; @find_among_b
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
	mov	w9, #0
	mov	w8, #0
	ldp	w22, w11, [x0]
                                        ; kill: def $w22 killed $w22 def $x22
	sxtw	x22, w22
	ldr	x12, [x0, #8]
	sub	w10, w22, w11
	add	x13, x12, x22, lsl #2
	sub	x13, x13, #4
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w3, #0
	csel	w2, w14, w2, lt
	csel	w21, w21, w15, lt
	csel	w9, w15, w9, lt
	csel	w8, w8, w14, lt
	sub	w14, w2, w8
	cmp	w14, #1
	b.le	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	sub	w14, w2, w8
	add	w16, w8, w14, asr #1
	cmp	w21, w9
	csel	w15, w21, w9, lt
	sxtw	x14, w16
	sbfiz	x16, x16, #5, #32
	ldr	w16, [x19, x16]
	mvn	w17, w15
	cmn	w16, w17
	b.mi	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x17, x19, x14, lsl #5
	add	x17, x17, #8
	sub	x0, x13, w15, sxtw #2
	sub	w1, w16, w15
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w10, w15
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	sub	w1, w1, #1
	ldr	w3, [x0]
	ldr	x4, [x17]
	ldr	w4, [x4, w1, uxtw #2]
	subs	w3, w3, w4
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w15, w15, #1
	sub	x0, x0, #4
	cmp	w1, #0
	b.gt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #0
	mov	x15, x16
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #-1
	mov	x15, x10
	b	LBB0_2
LBB0_10:
	cmp	w8, #0
	b.gt	LBB0_23
; %bb.11:
	cmp	w2, w8
	b.eq	LBB0_23
; %bb.12:
	add	x12, x12, x22, lsl #2
	sub	x12, x12, #4
	sub	w11, w22, w11
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w1, #0
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	w1, #0
	csel	w2, w13, w2, lt
	csel	w21, w21, w14, lt
	csel	w9, w14, w9, lt
	csel	w8, w8, w13, lt
	sub	w13, w2, w8
	cmp	w13, #1
	b.le	LBB0_23
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	sub	w13, w2, w8
	add	w15, w8, w13, asr #1
	cmp	w21, w9
	csel	w14, w21, w9, lt
	sxtw	x13, w15
	sbfiz	x15, x15, #5, #32
	ldr	w15, [x19, x15]
	mvn	w16, w14
	cmn	w15, w16
	b.mi	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x16, x19, x13, lsl #5
	add	x16, x16, #8
	sub	x17, x12, w14, sxtw #2
	sub	w0, w15, w14
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w11, w14
	b.eq	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	sub	w0, w0, #1
	ldr	w1, [x17]
	ldr	x3, [x16]
	ldr	w3, [x3, w0, uxtw #2]
	subs	w1, w1, w3
	b.ne	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=2
	add	w14, w14, #1
	sub	x17, x17, #4
	cmp	w0, #0
	b.gt	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w1, #0
	mov	x14, x15
	b	LBB0_14
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w1, #-1
	mov	x14, x10
	b	LBB0_14
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x24, #28]
	tbnz	w8, #31, LBB0_27
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	sxtw	x23, w8
	add	x24, x19, x23, lsl #5
	ldr	w8, [x24]
	cmp	w21, w8
	b.lt	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	sub	w8, w22, w8
	str	w8, [x20]
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x20
	blr	x8
	ldr	w8, [x24]
	sub	w8, w22, w8
	str	w8, [x20]
	cbz	w0, LBB0_22
LBB0_26:
	add	x8, x19, x23, lsl #5
	ldr	w0, [x8, #24]
	b	LBB0_28
LBB0_27:
	mov	w0, #0
LBB0_28:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
