	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_among                     ## -- Begin function find_among
	.p2align	4, 0x90
_find_among:                            ## @find_among
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movslq	(%rdi), %rax
	movl	4(%rdi), %r9d
	movq	%rax, %r10
	shlq	$2, %r10
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	addq	8(%rdi), %r10
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	subl	%eax, %r9d
	xorl	%r13d, %r13d
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	cmovsl	%edi, %edx
	cmovnsl	%esi, %r13d
	cmovsl	%esi, %r8d
	cmovnsl	%edi, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	cmpl	$1, %ecx
	jle	LBB0_10
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%edx, %edi
	subl	%eax, %edi
	sarl	%edi
	addl	%eax, %edi
	cmpl	%r8d, %r13d
	movl	%r8d, %esi
	cmovll	%r13d, %esi
	movslq	%edi, %rcx
	shlq	$5, %rcx
	movl	(%r12,%rcx), %r11d
	cmpl	%r11d, %esi
	jge	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r11d, %rbx
	leaq	(%r12,%rcx), %r15
	addq	$8, %r15
	movslq	%esi, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%esi, %r9d
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r10,%rsi,4), %r14d
	movq	(%r15), %rcx
	subl	(%rcx,%rsi,4), %r14d
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	incq	%rsi
	cmpq	%rsi, %rbx
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r11d, %esi
	jmp	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$-1, %r14d
	movl	%r9d, %esi
	jmp	LBB0_9
LBB0_10:
	testl	%eax, %eax
	jg	LBB0_22
## %bb.11:
	cmpl	%eax, %edx
	je	LBB0_22
## %bb.12:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	subl	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%ebx, %ebx
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	testl	%ebx, %ebx
	cmovsl	%r15d, %edx
	cmovnsl	%esi, %r13d
	cmovsl	%esi, %r8d
	cmovnsl	%r15d, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	cmpl	$1, %ecx
	jle	LBB0_22
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	%edx, %r15d
	subl	%eax, %r15d
	sarl	%r15d
	addl	%eax, %r15d
	cmpl	%r8d, %r13d
	movl	%r8d, %esi
	cmovll	%r13d, %esi
	movslq	%r15d, %rdi
	shlq	$5, %rdi
	movl	(%r12,%rdi), %r11d
	cmpl	%r11d, %esi
	jge	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movslq	%r11d, %r14
	addq	%r12, %rdi
	addq	$8, %rdi
	movslq	%esi, %rsi
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%esi, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	(%r10,%rsi,4), %ebx
	movq	(%rdi), %rcx
	subl	(%rcx,%rsi,4), %ebx
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	incq	%rsi
	cmpq	%rsi, %r14
	jne	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r11d, %esi
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	$-1, %ebx
	movl	%r9d, %esi
	jmp	LBB0_21
LBB0_22:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	28(%r12,%rbx), %eax
	testl	%eax, %eax
	js	LBB0_27
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rbx
	shlq	$5, %rbx
	movl	(%r12,%rbx), %eax
	cmpl	%eax, %r13d
	jl	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	addl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	16(%r12,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	leaq	(%r12,%rbx), %r14
	movq	%r15, %rdi
	callq	*%rax
	movl	(%r14), %ecx
	addl	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, (%r15)
	testl	%eax, %eax
	je	LBB0_26
LBB0_28:
	movl	24(%r12,%rbx), %eax
	jmp	LBB0_29
LBB0_27:
	xorl	%eax, %eax
LBB0_29:
	addq	$24, %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                     ; -- Begin function find_among
	.p2align	2
_find_among:                            ; @find_among
	.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	x10, [x0, #8]
	add	x10, x10, x22, lsl #2
	sub	w11, w11, w22
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w17, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w17, #0
	csel	w2, w12, w2, lt
	csel	w21, w21, w13, lt
	csel	w9, w13, w9, lt
	csel	w8, w8, w12, lt
	sub	w12, w2, w8
	cmp	w12, #1
	b.le	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	sub	w12, w2, w8
	add	w14, w8, w12, asr #1
	cmp	w21, w9
	csel	w13, w21, w9, lt
	sxtw	x12, w14
	sbfiz	x14, x14, #5, #32
	ldr	w14, [x19, x14]
	cmp	w13, w14
	b.ge	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x15, w14
	add	x16, x19, x12, lsl #5
	add	x16, x16, #8
                                        ; kill: def $w13 killed $w13 killed $x13 def $x13
	sxtw	x13, w13
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w11, w13
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	lsl	x17, x13, #2
	ldr	w0, [x10, x17]
	ldr	x1, [x16]
	ldr	w17, [x1, x17]
	subs	w17, w0, w17
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x13, x13, #1
	cmp	x15, x13
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w17, #0
	mov	x13, x14
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w17, #-1
	mov	x13, x11
	b	LBB0_2
LBB0_10:
	cmp	w8, #0
	b.gt	LBB0_22
; %bb.11:
	cmp	w2, w8
	b.ne	LBB0_14
	b	LBB0_22
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w17, #0
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	w17, #0
	csel	w2, w12, w2, lt
	csel	w21, w21, w13, lt
	csel	w9, w13, w9, lt
	csel	w8, w8, w12, lt
	sub	w12, w2, w8
	cmp	w12, #1
	b.le	LBB0_22
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	sub	w12, w2, w8
	add	w14, w8, w12, asr #1
	cmp	w21, w9
	csel	w13, w21, w9, lt
	sxtw	x12, w14
	sbfiz	x14, x14, #5, #32
	ldr	w14, [x19, x14]
	cmp	w13, w14
	b.ge	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	sxtw	x15, w14
	add	x16, x19, x12, lsl #5
	add	x16, x16, #8
                                        ; kill: def $w13 killed $w13 killed $x13 def $x13
	sxtw	x13, w13
LBB0_16:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w11, w13
	b.eq	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	lsl	x17, x13, #2
	ldr	w0, [x10, x17]
	ldr	x1, [x16]
	ldr	w17, [x1, x17]
	subs	w17, w0, w17
	b.ne	LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	add	x13, x13, #1
	cmp	x15, x13
	b.ne	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w17, #0
	mov	x13, x14
	b	LBB0_13
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w17, #-1
	mov	x13, x11
	b	LBB0_13
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	w8, [x24, #28]
	tbnz	w8, #31, LBB0_26
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	sxtw	x23, w8
	add	x24, x19, x23, lsl #5
	ldr	w8, [x24]
	cmp	w21, w8
	b.lt	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	add	w8, w8, w22
	str	w8, [x20]
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x20
	blr	x8
	ldr	w8, [x24]
	add	w8, w8, w22
	str	w8, [x20]
	cbz	w0, LBB0_21
LBB0_25:
	add	x8, x19, x23, lsl #5
	ldr	w0, [x8, #24]
	b	LBB0_27
LBB0_26:
	mov	w0, #0
LBB0_27:
	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
