	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BoyerMoore                     ## -- Begin function BoyerMoore
	.p2align	4, 0x90
_BoyerMoore:                            ## @BoyerMoore
	.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	$1040, %rsp                     ## imm = 0x410
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.1:
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	%xmm0, -1072(%rbp)
	movdqa	%xmm0, -1056(%rbp)
	movdqa	%xmm0, -1040(%rbp)
	movdqa	%xmm0, -1024(%rbp)
	movdqa	%xmm0, -1008(%rbp)
	movdqa	%xmm0, -992(%rbp)
	movdqa	%xmm0, -976(%rbp)
	movdqa	%xmm0, -960(%rbp)
	movdqa	%xmm0, -944(%rbp)
	movdqa	%xmm0, -928(%rbp)
	movdqa	%xmm0, -912(%rbp)
	movdqa	%xmm0, -896(%rbp)
	movdqa	%xmm0, -880(%rbp)
	movdqa	%xmm0, -864(%rbp)
	movdqa	%xmm0, -848(%rbp)
	movdqa	%xmm0, -832(%rbp)
	movdqa	%xmm0, -816(%rbp)
	movdqa	%xmm0, -800(%rbp)
	movdqa	%xmm0, -784(%rbp)
	movdqa	%xmm0, -768(%rbp)
	movdqa	%xmm0, -752(%rbp)
	movdqa	%xmm0, -736(%rbp)
	movdqa	%xmm0, -720(%rbp)
	movdqa	%xmm0, -704(%rbp)
	movdqa	%xmm0, -688(%rbp)
	movdqa	%xmm0, -672(%rbp)
	movdqa	%xmm0, -656(%rbp)
	movdqa	%xmm0, -640(%rbp)
	movdqa	%xmm0, -624(%rbp)
	movdqa	%xmm0, -608(%rbp)
	movdqa	%xmm0, -592(%rbp)
	movdqa	%xmm0, -576(%rbp)
	movdqa	%xmm0, -560(%rbp)
	movdqa	%xmm0, -544(%rbp)
	movdqa	%xmm0, -528(%rbp)
	movdqa	%xmm0, -512(%rbp)
	movdqa	%xmm0, -496(%rbp)
	movdqa	%xmm0, -480(%rbp)
	movdqa	%xmm0, -464(%rbp)
	movdqa	%xmm0, -448(%rbp)
	movdqa	%xmm0, -432(%rbp)
	movdqa	%xmm0, -416(%rbp)
	movdqa	%xmm0, -400(%rbp)
	movdqa	%xmm0, -384(%rbp)
	movdqa	%xmm0, -368(%rbp)
	movdqa	%xmm0, -352(%rbp)
	movdqa	%xmm0, -336(%rbp)
	movdqa	%xmm0, -320(%rbp)
	movdqa	%xmm0, -304(%rbp)
	movdqa	%xmm0, -288(%rbp)
	movdqa	%xmm0, -272(%rbp)
	movdqa	%xmm0, -256(%rbp)
	movdqa	%xmm0, -240(%rbp)
	movdqa	%xmm0, -224(%rbp)
	movdqa	%xmm0, -208(%rbp)
	movdqa	%xmm0, -192(%rbp)
	movdqa	%xmm0, -176(%rbp)
	movdqa	%xmm0, -160(%rbp)
	movdqa	%xmm0, -144(%rbp)
	movdqa	%xmm0, -128(%rbp)
	movdqa	%xmm0, -112(%rbp)
	movdqa	%xmm0, -96(%rbp)
	movdqa	%xmm0, -80(%rbp)
	movdqa	%xmm0, -64(%rbp)
	leal	-1(%rcx), %r9d
	movl	%ecx, %ebx
	andl	$3, %ebx
	je	LBB0_17
## %bb.2:
	movl	%r9d, %eax
	movq	%rdx, %r10
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r10), %r8d
	incq	%r10
	movl	%eax, -1072(%rbp,%r8,4)
	decl	%eax
	decl	%ebx
	jne	LBB0_3
## %bb.4:
	cmpl	$3, %r9d
	jb	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r10), %ebx
	movl	%eax, -1072(%rbp,%rbx,4)
	leal	-1(%rax), %r8d
	movzbl	1(%r10), %ebx
	movl	%r8d, -1072(%rbp,%rbx,4)
	movzbl	2(%r10), %r8d
	leal	-2(%rax), %ebx
	movl	%ebx, -1072(%rbp,%r8,4)
	movzbl	3(%r10), %r8d
	addl	$-3, %eax
	movl	%eax, -1072(%rbp,%r8,4)
	addq	$4, %r10
	subl	$1, %eax
	jae	LBB0_5
LBB0_6:
	addl	%ecx, %ecx
	subl	%ecx, %esi
	addl	$3, %esi
	testl	%esi, %esi
	jle	LBB0_18
## %bb.7:
	movl	%r9d, %r14d
	addq	%r14, %rdi
	leaq	(%r14,%rdx), %r9
	decq	%r9
	negq	%r14
	xorl	%eax, %eax
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movzbl	(%rdi), %ecx
	movl	-1072(%rbp,%rcx,4), %r10d
	leaq	(%rdi,%r10), %r15
	movzbl	(%rdi,%r10), %ecx
	movl	-1072(%rbp,%rcx,4), %r11d
	subl	%r11d, %esi
	subl	%r10d, %esi
	movzbl	(%r11,%r15), %ecx
	addq	%r11, %r15
	cmpb	%r8b, %cl
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rcx, %r14
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movzbl	-1(%r15,%rcx), %r12d
	leaq	-1(%rcx), %rdx
	incl	%ebx
	cmpb	(%r9,%rcx), %r12b
	movq	%rdx, %rcx
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%r10, %r11
	addq	%r11, %rdi
	movl	%ebx, %ecx
	addq	%rdi, %rcx
	addq	%rdx, %rcx
	decl	%esi
	movq	%rcx, %rdi
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-1072(%rbp,%rcx,4), %ecx
	addq	%rcx, %r15
	subl	%ecx, %esi
	movq	%r15, %rdi
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%esi, %esi
	jg	LBB0_8
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_16:
	addq	%r10, %r11
	addq	%r11, %rdi
	addq	%rcx, %rdi
	movq	%rdi, %rax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
                                        ## implicit-def: $r8b
	movl	%r9d, %eax
	movq	%rdx, %r10
	cmpl	$3, %r9d
	jae	LBB0_5
	jmp	LBB0_6
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BoyerMoore                     ; -- Begin function BoyerMoore
	.p2align	2
_BoyerMoore:                            ; @BoyerMoore
	.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
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	cbz	w3, LBB0_15
; %bb.1:
	dup.4s	v0, w3
	stp	q0, q0, [sp]
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #96]
	stp	q0, q0, [sp, #128]
	stp	q0, q0, [sp, #160]
	stp	q0, q0, [sp, #192]
	stp	q0, q0, [sp, #224]
	stp	q0, q0, [sp, #256]
	stp	q0, q0, [sp, #288]
	stp	q0, q0, [sp, #320]
	stp	q0, q0, [sp, #352]
	stp	q0, q0, [sp, #384]
	stp	q0, q0, [sp, #416]
	stp	q0, q0, [sp, #448]
	stp	q0, q0, [sp, #480]
	stp	q0, q0, [sp, #512]
	stp	q0, q0, [sp, #544]
	stp	q0, q0, [sp, #576]
	stp	q0, q0, [sp, #608]
	stp	q0, q0, [sp, #640]
	stp	q0, q0, [sp, #672]
	stp	q0, q0, [sp, #704]
	stp	q0, q0, [sp, #736]
	stp	q0, q0, [sp, #768]
	stp	q0, q0, [sp, #800]
	stp	q0, q0, [sp, #832]
	stp	q0, q0, [sp, #864]
	stp	q0, q0, [sp, #896]
	stp	q0, q0, [sp, #928]
	stp	q0, q0, [sp, #960]
	sub	w9, w3, #1
	mov	x10, x9
	mov	x11, x2
	stp	q0, q0, [sp, #992]
	cmp	w9, #3
	b.lo	LBB0_5
; %bb.2:
	add	x12, x9, #1
	and	x13, x12, #0x1fffffffc
	sub	w10, w9, w13
	add	x11, x2, x13
	sub	w14, w3, #2
	add	x15, x2, #3
	mov	x16, sp
	mov	x17, x13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w14, #1
	sub	w4, w14, #1
	sub	w5, w14, #2
	ldurb	w6, [x15, #-3]
	ldurb	w7, [x15, #-2]
	ldurb	w19, [x15, #-1]
	str	w8, [x16, x6, lsl #2]
	str	w14, [x16, x7, lsl #2]
	str	w4, [x16, x19, lsl #2]
	ldrb	w8, [x15], #4
	str	w5, [x16, w8, uxtw #2]
	sub	w14, w14, #4
	subs	x17, x17, #4
	b.ne	LBB0_3
; %bb.4:
	cmp	x12, x13
	b.eq	LBB0_7
LBB0_5:
	mov	x12, sp
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x11], #1
	str	w10, [x12, w8, uxtw #2]
	sub	w10, w10, #1
	cmn	w10, #1
	b.ne	LBB0_6
LBB0_7:
	add	w10, w3, w3
	sub	w10, w1, w10
	add	w13, w10, #3
	cmp	w13, #1
	b.lt	LBB0_15
; %bb.8:
	add	x11, x0, x9
	neg	x10, x9
	add	x9, x9, x2
	sub	x9, x9, #1
	mov	x12, sp
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w14, [x12, x17, lsl #2]
	add	x11, x16, x14
	sub	w13, w13, w14
	cmp	w13, #0
	b.le	LBB0_15
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldrb	w14, [x11]
	ldr	w14, [x12, x14, lsl #2]
	add	x16, x11, x14
	ldrb	w15, [x16]
	ldr	w15, [x12, x15, lsl #2]
	add	x16, x16, x15
	add	w17, w14, w15
	sub	w13, w13, w17
	ldrb	w17, [x16]
	cmp	w17, w8
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x17, #0
	mov	w0, #1
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x10, x17
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x1, x16, x17
	ldurb	w1, [x1, #-1]
	ldrb	w2, [x9, x17]
	sub	x17, x17, #1
	add	w0, w0, #1
	cmp	w1, w2
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x14, x15, x14
	add	x11, x11, x14
	add	x11, x11, w0, uxtw
	add	x11, x11, x17
	sub	w13, w13, #1
	cmp	w13, #0
	b.gt	LBB0_10
LBB0_15:
	mov	x0, #0
	b	LBB0_17
LBB0_16:
	add	x8, x11, x10
	add	x9, x15, x14
	add	x0, x8, x9
LBB0_17:
	ldur	x8, [x29, #-24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
