	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function internal_find
_internal_find:                         ## @internal_find
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -40(%rbp)
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rdi), %esi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.2:
	movq	24(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.7:
	movl	%edx, %r12d
	cmpl	$0, 16(%r15)
	jne	LBB0_11
## %bb.8:
	cmpl	$2, %esi
	jl	LBB0_10
## %bb.9:
	movq	8(%r15), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$8, %edx
	callq	_qsort
LBB0_10:
	movl	$1, 16(%r15)
LBB0_11:
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.12:
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	movq	24(%r15), %r8
	leaq	-40(%rbp), %rdi
	movl	$8, %ecx
	movl	%r12d, %r9d
	callq	_OBJ_bsearch_ex_
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	subq	8(%r15), %rax
	shrq	$3, %rax
LBB0_14:
	movl	%eax, %r14d
	jmp	LBB0_15
LBB0_3:
	testl	%esi, %esi
	jle	LBB0_15
## %bb.4:
	movq	8(%r15), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rcx,%rax,8)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_5
LBB0_15:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_internal_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function internal_find
_internal_find:                         ; @internal_find
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	str	x1, [sp, #8]
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x0]
	cbz	w1, LBB0_14
; %bb.2:
	ldr	x3, [x19, #24]
	cbz	x3, LBB0_5
; %bb.3:
	mov	x21, x2
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
; %bb.4:
	cbnz	x20, LBB0_12
	b	LBB0_14
LBB0_5:
	cmp	w1, #1
	b.lt	LBB0_14
; %bb.6:
	mov	x0, #0
	ldr	x8, [x19, #8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, x0, lsl #3]
	cmp	x9, x20
	b.eq	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x0, #1
	cmp	x1, x0
	b.ne	LBB0_7
	b	LBB0_14
LBB0_9:
	cmp	w1, #2
	b.lt	LBB0_11
; %bb.10:
	ldr	x0, [x19, #8]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #8
	bl	_qsort
LBB0_11:
	mov	w8, #1
	str	w8, [x19, #16]
	cbz	x20, LBB0_14
LBB0_12:
	ldr	x1, [x19, #8]
	ldr	w2, [x19]
	ldr	x4, [x19, #24]
	add	x0, sp, #8
	mov	w3, #8
	mov	x5, x21
	bl	_OBJ_bsearch_ex_
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19, #8]
	sub	x8, x0, x8
	lsr	x0, x8, #3
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	add	sp, sp, #64
	ret
LBB0_16:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_15
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_internal_find
.subsections_via_symbols
