	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function substsearch
_substsearch:                           ## @substsearch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rcx
	movq	(%rcx), %rax
	movslq	%edx, %r8
	cmpl	$0, (%rax,%r8,4)
	je	LBB0_6
## %bb.1:
	cmpl	%edx, 8(%rcx)
	jle	LBB0_6
## %bb.2:
	movq	_COLLATE_SUBST_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%esi, %ecx
	je	LBB0_6
## %bb.3:
	movq	(%rdi), %rax
	movq	(%rax,%r8,8), %r14
	notl	%ecx
	andl	%esi, %ecx
	movslq	%ecx, %rbx
	shlq	$4, %rbx
	xorl	%edi, %edi
	cmpl	%esi, (%r14,%rbx)
	sete	%dil
	callq	_assert
	movq	8(%r14,%rbx), %rax
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COLLATE_SUBST_PRIORITY,4,2     ## @COLLATE_SUBST_PRIORITY
	.no_dead_strip	_substsearch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function substsearch
_substsearch:                           ; @substsearch
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
	ldr	w9, [x9, w2, sxtw #2]
	cbz	w9, LBB0_4
; %bb.1:
	ldr	w8, [x8, #8]
	cmp	w8, w2
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _COLLATE_SUBST_PRIORITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COLLATE_SUBST_PRIORITY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_4
; %bb.3:
	sxtw	x9, w2
	ldr	x10, [x0]
	ldr	x9, [x10, x9, lsl #3]
	bic	w8, w1, w8
	add	x19, x9, w8, sxtw #4
	ldr	w8, [x19]
	cmp	w8, w1
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19, #8]
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COLLATE_SUBST_PRIORITY,4,2     ; @COLLATE_SUBST_PRIORITY
	.no_dead_strip	_substsearch
.subsections_via_symbols
