	.file	"592665.c"
	.intel_syntax noprefix
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -8[rbp], eax
	cmovge	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.globl	computeArray
	.type	computeArray, @function
computeArray:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -4[rbp], 1
.L4:
	cmp	DWORD PTR -4[rbp], 255
	jle	.L5
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L7
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	computeArray, .-computeArray
	.section	.rodata
.LC0:
	.string	"--Pattern is found at: %d\n"
	.text
	.globl	boyer_moore_search
	.type	boyer_moore_search, @function
boyer_moore_search:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1048[rbp], eax
	mov	rax, QWORD PTR -1072[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1044[rbp], eax
	mov	DWORD PTR -1056[rbp], 0
	lea	rdx, -1040[rbp]
	mov	ecx, DWORD PTR -1044[rbp]
	mov	rax, QWORD PTR -1072[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	computeArray
	jmp	.L9
.L16:
	mov	eax, DWORD PTR -1044[rbp]
	sub	eax, 1
	mov	DWORD PTR -1052[rbp], eax
	jmp	.L10
.L12:
	sub	DWORD PTR -1052[rbp], 1
.L10:
	cmp	DWORD PTR -1052[rbp], 0
	js	.L11
	mov	eax, DWORD PTR -1052[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1072[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	ecx, DWORD PTR -1056[rbp]
	mov	eax, DWORD PTR -1052[rbp]
	add	eax, ecx
	movsx	rcx, eax
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L12
.L11:
	cmp	DWORD PTR -1052[rbp], 0
	jns	.L13
	mov	eax, DWORD PTR -1056[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -1056[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	add	eax, edx
	cmp	DWORD PTR -1048[rbp], eax
	jle	.L14
	mov	edx, DWORD PTR -1056[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	eax, DWORD PTR -1044[rbp]
	sub	eax, edx
	jmp	.L15
.L14:
	mov	eax, 1
.L15:
	add	DWORD PTR -1056[rbp], eax
	jmp	.L9
.L13:
	mov	edx, DWORD PTR -1056[rbp]
	mov	eax, DWORD PTR -1052[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	eax, DWORD PTR -1052[rbp]
	sub	eax, edx
	mov	esi, eax
	mov	edi, 1
	call	max
	add	DWORD PTR -1056[rbp], eax
.L9:
	mov	eax, DWORD PTR -1048[rbp]
	sub	eax, DWORD PTR -1044[rbp]
	cmp	DWORD PTR -1056[rbp], eax
	jle	.L16
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	boyer_moore_search, .-boyer_moore_search
	.section	.rodata
.LC1:
	.string	"String test: %s\n"
.LC2:
	.string	"Test1: search pattern %s\n"
.LC3:
	.string	"Test2: search pattern %s\n"
.LC4:
	.string	"Test3: search pattern %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 3616744823823941953
	movabs	rdx, 4774171031831135809
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movabs	rax, 4702675284040959558
	mov	QWORD PTR -32[rbp], rax
	mov	WORD PTR -24[rbp], 66
	mov	DWORD PTR -54[rbp], 1094926913
	mov	WORD PTR -50[rbp], 66
	mov	DWORD PTR -62[rbp], 4605510
	mov	DWORD PTR -58[rbp], 4342083
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -54[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -54[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	boyer_moore_search
	lea	rax, -62[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -62[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	boyer_moore_search
	lea	rax, -58[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -58[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	boyer_moore_search
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"592665.c"
	.text
	.align	2
	.global	max
	.syntax unified
	.arm
	.fpu softvfp
	.type	max, %function
max:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	max, .-max
	.align	2
	.global	computeArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	computeArray, %function
computeArray:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L7
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	computeArray, .-computeArray
	.section	.rodata
	.align	2
.LC0:
	.ascii	"--Pattern is found at: %d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	boyer_moore_search
	.syntax unified
	.arm
	.fpu softvfp
	.type	boyer_moore_search, %function
boyer_moore_search:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1056]
	str	r1, [fp, #-1060]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-1056]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1040]
	ldr	r0, [fp, #-1060]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1036]
	mov	r3, #0
	str	r3, [fp, #-1048]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1036]
	ldr	r0, [fp, #-1060]
	bl	computeArray
	b	.L9
.L16:
	ldr	r3, [fp, #-1036]
	sub	r3, r3, #1
	str	r3, [fp, #-1044]
	b	.L10
.L12:
	ldr	r3, [fp, #-1044]
	sub	r3, r3, #1
	str	r3, [fp, #-1044]
.L10:
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	blt	.L11
	ldr	r3, [fp, #-1044]
	ldr	r2, [fp, #-1060]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-1048]
	ldr	r3, [fp, #-1044]
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-1056]
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L12
.L11:
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bge	.L13
	ldr	r1, [fp, #-1048]
	ldr	r0, .L18+4
	bl	printf
	ldr	r2, [fp, #-1048]
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	ldr	r2, [fp, #-1040]
	cmp	r2, r3
	ble	.L14
	ldr	r2, [fp, #-1048]
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-1056]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1028]
	ldr	r2, [fp, #-1036]
	sub	r3, r2, r3
	b	.L15
.L14:
	mov	r3, #1
.L15:
	ldr	r2, [fp, #-1048]
	add	r3, r2, r3
	str	r3, [fp, #-1048]
	b	.L9
.L13:
	ldr	r2, [fp, #-1048]
	ldr	r3, [fp, #-1044]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-1056]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1028]
	ldr	r2, [fp, #-1044]
	sub	r3, r2, r3
	mov	r1, r3
	mov	r0, #1
	bl	max
	mov	r2, r0
	ldr	r3, [fp, #-1048]
	add	r3, r3, r2
	str	r3, [fp, #-1048]
.L9:
	ldr	r2, [fp, #-1040]
	ldr	r3, [fp, #-1036]
	sub	r3, r2, r3
	ldr	r2, [fp, #-1048]
	cmp	r2, r3
	ble	.L16
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	.LC0
	.size	boyer_moore_search, .-boyer_moore_search
	.section	.rodata
	.align	2
.LC4:
	.ascii	"String test: %s\012\000"
	.align	2
.LC5:
	.ascii	"Test1: search pattern %s\012\000"
	.align	2
.LC6:
	.ascii	"Test2: search pattern %s\012\000"
	.align	2
.LC7:
	.ascii	"Test3: search pattern %s\012\000"
	.align	2
.LC2:
	.ascii	"AABCAB12AFAABCABFFEGABCAB\000"
	.align	2
.LC3:
	.ascii	"ABCAB\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L23+4
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strh	r2, [ip]	@ movhi
	ldr	r2, .L23+8
	sub	r3, fp, #44
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	ldr	r3, .L23+12
	str	r3, [fp, #-52]
	ldr	r3, .L23+16
	str	r3, [fp, #-48]
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L23+20
	bl	printf
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L23+24
	bl	printf
	sub	r2, fp, #44
	sub	r3, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	boyer_moore_search
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L23+28
	bl	printf
	sub	r2, fp, #52
	sub	r3, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	boyer_moore_search
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L23+32
	bl	printf
	sub	r2, fp, #48
	sub	r3, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	boyer_moore_search
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC8
	.word	.LC2
	.word	.LC3
	.word	4605510
	.word	4342083
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
