	.file	"1032325.c"
	.intel_syntax noprefix
	.text
	.local	table
	.comm	table,2048,32
	.local	len
	.comm	len,8,8
	.local	findme
	.comm	findme,8,8
	.globl	init_search
	.type	init_search, @function
init_search:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR len[rip], rax
	mov	QWORD PTR -8[rbp], 0
	jmp	.L2
.L3:
	mov	rax, QWORD PTR len[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rcx, 0[0+rdx*8]
	lea	rdx, table[rip]
	mov	QWORD PTR [rcx+rdx], rax
	add	QWORD PTR -8[rbp], 1
.L2:
	cmp	QWORD PTR -8[rbp], 255
	jbe	.L3
	mov	QWORD PTR -8[rbp], 0
	jmp	.L4
.L5:
	mov	rax, QWORD PTR len[rip]
	sub	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	lea	rcx, -1[rdx]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, table[rip]
	mov	QWORD PTR [rdx+rax], rcx
	add	QWORD PTR -8[rbp], 1
.L4:
	mov	rax, QWORD PTR len[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L5
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR findme[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	init_search, .-init_search
	.globl	strsearch
	.type	strsearch, @function
strsearch:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR len[rip]
	lea	rbx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -32[rbp], rax
	jmp	.L7
.L10:
	add	rbx, r12
.L8:
	cmp	rbx, QWORD PTR -32[rbp]
	jnb	.L9
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rbx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, table[rip]
	mov	r12, QWORD PTR [rdx+rax]
	test	r12, r12
	jne	.L10
.L9:
	test	r12, r12
	jne	.L7
	mov	rdx, QWORD PTR len[rip]
	mov	rcx, QWORD PTR len[rip]
	mov	rax, rbx
	sub	rax, rcx
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR findme[rip]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L12
.L11:
	add	rbx, 1
.L7:
	cmp	rbx, QWORD PTR -32[rbp]
	jb	.L8
	mov	eax, 0
.L12:
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	strsearch, .-strsearch
	.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	"1032325.c"
	.text
	.local	table
	.comm	table,1024,4
	.local	len
	.comm	len,4,4
	.local	findme
	.comm	findme,4,4
	.align	2
	.global	init_search
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_search, %function
init_search:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	ldr	r2, .L6
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r1, .L6+4
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	bls	.L3
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	mov	r1, r2
	sub	r3, r3, #1
	ldr	r2, .L6+4
	str	r3, [r2, r1, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L5
	ldr	r2, .L6+8
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	len
	.word	table
	.word	findme
	.size	init_search, .-init_search
	.align	2
	.global	strsearch
	.syntax unified
	.arm
	.fpu softvfp
	.type	strsearch, %function
strsearch:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	ldr	r3, .L16
	ldr	r3, [r3]
	sub	r4, r3, #1
	ldr	r0, [fp, #-24]
	bl	strlen
	str	r0, [fp, #-20]
	b	.L9
.L12:
	add	r4, r4, r5
.L10:
	ldr	r3, [fp, #-20]
	cmp	r4, r3
	bcs	.L11
	ldr	r3, [fp, #-24]
	add	r3, r3, r4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L16+4
	ldr	r5, [r3, r2, lsl #2]
	cmp	r5, #0
	bne	.L12
.L11:
	cmp	r5, #0
	bne	.L9
	ldr	r3, .L16+8
	ldr	r0, [r3]
	ldr	r3, .L16
	ldr	r3, [r3]
	sub	r3, r4, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-16]
	b	.L14
.L13:
	add	r4, r4, #1
.L9:
	ldr	r3, [fp, #-20]
	cmp	r4, r3
	bcc	.L10
	mov	r3, #0
.L14:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L17:
	.align	2
.L16:
	.word	len
	.word	table
	.word	findme
	.size	strsearch, .-strsearch
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
