	.file	"extr_kstring_bench2.c_BoyerMoore.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BoyerMoore
	.type	BoyerMoore, @function
BoyerMoore:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 1048
	.cfi_def_cfa_offset 1072
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1032[rsp], rax
	xor	eax, eax
	test	ecx, ecx
	je	.L2
	mov	rbx, rdi
	mov	ebp, esi
	lea	r8, 1024[rsp]
	mov	rax, rsp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	DWORD PTR [rax], ecx
	add	rax, 4
	cmp	r8, rax
	jne	.L3
	lea	r10d, -1[rcx]
	mov	rsi, rdx
	mov	r11d, r10d
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	edi, BYTE PTR [rsi]
	add	rsi, 1
	mov	DWORD PTR [rsp+rdi*4], r11d
	sub	r11d, 1
	mov	r9, rdi
	cmp	r11d, -1
	jne	.L4
	lea	eax, 1[rbp]
	lea	esi, [r10+r10]
	mov	r8d, r10d
	sub	eax, esi
	add	r8, rbx
	test	eax, eax
	jle	.L2
	add	ecx, 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, edi
	add	r8, rax
	mov	eax, esi
	sub	eax, edi
	test	eax, eax
	jle	.L2
.L8:
	movzx	esi, BYTE PTR [r8]
	mov	edi, DWORD PTR [rsp+rsi*4]
	add	r8, rdi
	sub	eax, edi
	movzx	esi, BYTE PTR [r8]
	mov	edi, DWORD PTR [rsp+rsi*4]
	add	r8, rdi
	sub	eax, edi
	movzx	edi, BYTE PTR [r8]
	mov	esi, eax
	mov	rax, rdi
	mov	edi, DWORD PTR [rsp+rdi*4]
	cmp	r9b, al
	jne	.L23
	mov	eax, r10d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, eax
	sub	r8, 1
	movzx	ebx, BYTE PTR [rdx+rdi]
	cmp	BYTE PTR [r8], bl
	jne	.L24
.L5:
	mov	r11d, eax
	sub	eax, 1
	cmp	eax, -1
	jne	.L25
.L1:
	mov	rax, QWORD PTR 1032[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 1048
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r8
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	mov	eax, ecx
	sub	eax, r11d
	add	r8, rax
	lea	eax, -1[rsi]
	test	eax, eax
	jg	.L8
.L2:
	xor	r8d, r8d
	jmp	.L1
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	BoyerMoore, .-BoyerMoore
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_kstring_bench2.c_BoyerMoore.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BoyerMoore
	.syntax unified
	.arm
	.fpu softvfp
	.type	BoyerMoore, %function
BoyerMoore:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	subs	ip, r3, #0
	sub	sp, sp, #1024
	ldr	r3, .L28
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #1028]
	mov	r3,#0
	beq	.L2
	mov	r3, sp
	add	lr, sp, #1024
.L3:
	str	ip, [r3, #4]!
	cmp	lr, r3
	bne	.L3
	sub	r4, ip, #1
	mov	r3, r4
	mov	r5, r2
.L4:
	ldrb	lr, [r5], #1	@ zero_extendqisi2
	add	r6, sp, #1024
	add	r6, r6, #8
	add	r6, r6, lr, lsl #2
	str	r3, [r6, #-1028]
	subs	r3, r3, #1
	bcs	.L4
	add	r1, r1, #1
	sub	r3, r1, r4, lsl #1
	cmp	r3, #0
	add	r0, r0, r4
	bgt	.L9
	b	.L2
.L24:
	add	r0, r0, r3
	sub	r3, r1, r3
	cmp	r3, #0
	ble	.L2
.L9:
	ldrb	r1, [r0]	@ zero_extendqisi2
	add	r5, sp, #1024
	add	r5, r5, #8
	add	r1, r5, r1, lsl #2
	ldr	r1, [r1, #-1028]
	add	r6, sp, #1024
	ldrb	r5, [r0, r1]	@ zero_extendqisi2
	add	r6, r6, #8
	add	r5, r6, r5, lsl #2
	ldr	r6, [r5, #-1028]
	add	r0, r0, r1
	sub	r3, r3, r1
	ldrb	r5, [r0, r6]	@ zero_extendqisi2
	sub	r1, r3, r6
	add	r3, sp, #1024
	add	r3, r3, #8
	cmp	lr, r5
	add	r5, r3, r5, lsl #2
	ldr	r3, [r5, #-1028]
	add	r0, r0, r6
	bne	.L24
	mov	r3, r4
	add	r5, r2, r4
	b	.L8
.L26:
	ldrb	r7, [r0, #-1]	@ zero_extendqisi2
	ldrb	r6, [r5, #-1]!	@ zero_extendqisi2
	sub	r8, r0, #1
	cmp	r7, r6
	bne	.L25
	mov	r0, r8
.L8:
	mov	r9, r3
	subs	r3, r3, #1
	bcs	.L26
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #1028]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	add	sp, sp, #1024
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L25:
	sub	r3, r1, #1
	sub	r9, ip, r9
	cmp	r3, #0
	add	r0, r0, r9
	bgt	.L9
.L2:
	mov	r0, #0
	b	.L1
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC0
	.size	BoyerMoore, .-BoyerMoore
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
