	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function search
_search:                                ## @search
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	16(%rbp), %r12
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	subq	%r9, %r12
	cmpq	$2, %r12
	jae	LBB0_2
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	subq	%rbx, %r12
	cmpq	$2, %r12
	jb	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shrq	%r12
	addq	%rbx, %r12
	movq	(%r15,%r12,8), %rax
	leaq	(,%rax,4), %r14
	addq	%r13, %r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	subq	%rax, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_MIN
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_memcmp
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	subq	%rbx, %r12
	cmpq	$2, %r12
	jae	LBB0_2
LBB0_6:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	(%r15,%rbx,8), %rax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	subq	%rax, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_matchlen
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	subq	%rax, %r15
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_matchlen
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, %rcx
	cmovaq	%rbx, %r14
	cmovaq	%rcx, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%r14,8), %rcx
	movq	24(%rbp), %rdx
	movq	%rcx, (%rdx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function search
_search:                                ; @search
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x22, x0
	sub	x8, x6, x5
	cmp	x8, #2
	b.lo	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x28, x21, x8, lsr #1
	ldr	x8, [x22, x28, lsl #3]
	add	x27, x26, x8, lsl #2
	sub	x0, x25, x8
	mov	x1, x23
	bl	_MIN
	mov	x2, x0
	mov	x0, x27
	mov	x1, x24
	bl	_memcmp
	cmp	x0, #0
	csel	x21, x28, x21, lt
	csel	x20, x20, x28, lt
	sub	x8, x20, x21
	cmp	x8, #2
	b.hs	LBB0_1
LBB0_2:
	ldr	x8, [x22, x21, lsl #3]
	add	x0, x26, x8, lsl #2
	sub	x1, x25, x8
	mov	x2, x24
	mov	x3, x23
	bl	_matchlen
	mov	x27, x0
	ldr	x8, [x22, x20, lsl #3]
	add	x0, x26, x8, lsl #2
	sub	x1, x25, x8
	mov	x2, x24
	mov	x3, x23
	bl	_matchlen
	cmp	x27, x0
	csel	x8, x21, x20, hi
	csel	x0, x27, x0, hi
	ldr	x8, [x22, x8, lsl #3]
	str	x8, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_search
.subsections_via_symbols
