	.file	"651558.c"
	.intel_syntax noprefix
	.text
	.type	twobyte_memmem, @function
twobyte_memmem:
.LFB0:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	WORD PTR -2[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	WORD PTR -4[rbp], ax
	add	QWORD PTR -24[rbp], 2
	sub	QWORD PTR -32[rbp], 2
	jmp	.L2
.L5:
	movzx	eax, WORD PTR -4[rbp]
	cmp	ax, WORD PTR -2[rbp]
	jne	.L3
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 2
	jmp	.L4
.L3:
	sub	QWORD PTR -32[rbp], 1
	movzx	eax, WORD PTR -4[rbp]
	sal	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, ecx
	mov	WORD PTR -4[rbp], ax
.L2:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L5
	movzx	eax, WORD PTR -4[rbp]
	cmp	ax, WORD PTR -2[rbp]
	jne	.L6
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 2
	jmp	.L4
.L6:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	twobyte_memmem, .-twobyte_memmem
	.type	threebyte_memmem, @function
threebyte_memmem:
.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	eax, edx
	mov	DWORD PTR -8[rbp], eax
	add	QWORD PTR -24[rbp], 3
	sub	QWORD PTR -32[rbp], 3
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jne	.L10
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 3
	jmp	.L11
.L10:
	sub	QWORD PTR -32[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, DWORD PTR -8[rbp]
	sal	eax, 8
	mov	DWORD PTR -8[rbp], eax
.L9:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L12
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jne	.L13
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 3
	jmp	.L11
.L13:
	mov	eax, 0
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	threebyte_memmem, .-threebyte_memmem
	.type	fourbyte_memmem, @function
fourbyte_memmem:
.LFB2:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -8[rbp], eax
	add	QWORD PTR -24[rbp], 4
	sub	QWORD PTR -32[rbp], 4
	jmp	.L16
.L19:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jne	.L17
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 4
	jmp	.L18
.L17:
	sub	QWORD PTR -32[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	sal	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, ecx
	mov	DWORD PTR -8[rbp], eax
.L16:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L19
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jne	.L20
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 4
	jmp	.L18
.L20:
	mov	eax, 0
.L18:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	fourbyte_memmem, .-fourbyte_memmem
	.type	twoway_memmem, @function
twoway_memmem:
.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, 2208
	mov	QWORD PTR -2184[rbp], rdi
	mov	QWORD PTR -2192[rbp], rsi
	mov	QWORD PTR -2200[rbp], rdx
	mov	QWORD PTR -2208[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2096[rbp], 0
	mov	QWORD PTR -2088[rbp], 0
	mov	QWORD PTR -2080[rbp], 0
	mov	QWORD PTR -2072[rbp], 0
	mov	QWORD PTR -2168[rbp], 0
	jmp	.L23
.L24:
	mov	rdx, QWORD PTR -2200[rbp]
	mov	rax, QWORD PTR -2168[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	shr	al, 6
	movzx	eax, al
	mov	rdx, QWORD PTR -2096[rbp+rax*8]
	mov	rcx, QWORD PTR -2200[rbp]
	mov	rax, QWORD PTR -2168[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 63
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rcx, QWORD PTR -2200[rbp]
	mov	rax, QWORD PTR -2168[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	shr	al, 6
	movzx	eax, al
	or	rdx, rsi
	mov	QWORD PTR -2096[rbp+rax*8], rdx
	mov	rdx, QWORD PTR -2200[rbp]
	mov	rax, QWORD PTR -2168[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	rdx, QWORD PTR -2168[rbp]
	add	rdx, 1
	cdqe
	mov	QWORD PTR -2064[rbp+rax*8], rdx
	add	QWORD PTR -2168[rbp], 1
.L23:
	mov	rax, QWORD PTR -2168[rbp]
	cmp	rax, QWORD PTR -2208[rbp]
	jb	.L24
	mov	QWORD PTR -2160[rbp], -1
	mov	QWORD PTR -2152[rbp], 0
	mov	QWORD PTR -2136[rbp], 1
	mov	rax, QWORD PTR -2136[rbp]
	mov	QWORD PTR -2144[rbp], rax
	jmp	.L25
.L29:
	mov	rdx, QWORD PTR -2160[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -2200[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rcx, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -2200[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L26
	mov	rax, QWORD PTR -2144[rbp]
	cmp	rax, QWORD PTR -2136[rbp]
	jne	.L27
	mov	rax, QWORD PTR -2136[rbp]
	add	QWORD PTR -2152[rbp], rax
	mov	QWORD PTR -2144[rbp], 1
	jmp	.L25
.L27:
	add	QWORD PTR -2144[rbp], 1
	jmp	.L25
.L26:
	mov	rdx, QWORD PTR -2160[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -2200[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rcx, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -2200[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jbe	.L28
	mov	rax, QWORD PTR -2144[rbp]
	add	QWORD PTR -2152[rbp], rax
	mov	QWORD PTR -2144[rbp], 1
	mov	rax, QWORD PTR -2152[rbp]
	sub	rax, QWORD PTR -2160[rbp]
	mov	QWORD PTR -2136[rbp], rax
	jmp	.L25
.L28:
	mov	rax, QWORD PTR -2152[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -2152[rbp], rdx
	mov	QWORD PTR -2160[rbp], rax
	mov	QWORD PTR -2136[rbp], 1
	mov	rax, QWORD PTR -2136[rbp]
	mov	QWORD PTR -2144[rbp], rax
.L25:
	mov	rdx, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rax, rdx
	cmp	QWORD PTR -2208[rbp], rax
	ja	.L29
	mov	rax, QWORD PTR -2160[rbp]
	mov	QWORD PTR -2128[rbp], rax
	mov	rax, QWORD PTR -2136[rbp]
	mov	QWORD PTR -2104[rbp], rax
	mov	QWORD PTR -2160[rbp], -1
	mov	QWORD PTR -2152[rbp], 0
	mov	QWORD PTR -2136[rbp], 1
	mov	rax, QWORD PTR -2136[rbp]
	mov	QWORD PTR -2144[rbp], rax
	jmp	.L30
.L34:
	mov	rdx, QWORD PTR -2160[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -2200[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rcx, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -2200[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L31
	mov	rax, QWORD PTR -2144[rbp]
	cmp	rax, QWORD PTR -2136[rbp]
	jne	.L32
	mov	rax, QWORD PTR -2136[rbp]
	add	QWORD PTR -2152[rbp], rax
	mov	QWORD PTR -2144[rbp], 1
	jmp	.L30
.L32:
	add	QWORD PTR -2144[rbp], 1
	jmp	.L30
.L31:
	mov	rdx, QWORD PTR -2160[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -2200[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rcx, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -2200[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jnb	.L33
	mov	rax, QWORD PTR -2144[rbp]
	add	QWORD PTR -2152[rbp], rax
	mov	QWORD PTR -2144[rbp], 1
	mov	rax, QWORD PTR -2152[rbp]
	sub	rax, QWORD PTR -2160[rbp]
	mov	QWORD PTR -2136[rbp], rax
	jmp	.L30
.L33:
	mov	rax, QWORD PTR -2152[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -2152[rbp], rdx
	mov	QWORD PTR -2160[rbp], rax
	mov	QWORD PTR -2136[rbp], 1
	mov	rax, QWORD PTR -2136[rbp]
	mov	QWORD PTR -2144[rbp], rax
.L30:
	mov	rdx, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rax, rdx
	cmp	QWORD PTR -2208[rbp], rax
	ja	.L34
	mov	rax, QWORD PTR -2160[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -2128[rbp]
	add	rax, 1
	cmp	rdx, rax
	jbe	.L35
	mov	rax, QWORD PTR -2160[rbp]
	mov	QWORD PTR -2128[rbp], rax
	jmp	.L36
.L35:
	mov	rax, QWORD PTR -2104[rbp]
	mov	QWORD PTR -2136[rbp], rax
.L36:
	mov	rax, QWORD PTR -2128[rbp]
	lea	rdx, 1[rax]
	mov	rcx, QWORD PTR -2200[rbp]
	mov	rax, QWORD PTR -2136[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -2200[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L37
	mov	QWORD PTR -2112[rbp], 0
	mov	rax, QWORD PTR -2208[rbp]
	sub	rax, QWORD PTR -2128[rbp]
	sub	rax, 1
	cmp	QWORD PTR -2128[rbp], rax
	cmovnb	rax, QWORD PTR -2128[rbp]
	add	rax, 1
	mov	QWORD PTR -2136[rbp], rax
	jmp	.L38
.L37:
	mov	rax, QWORD PTR -2208[rbp]
	sub	rax, QWORD PTR -2136[rbp]
	mov	QWORD PTR -2112[rbp], rax
.L38:
	mov	QWORD PTR -2120[rbp], 0
.L53:
	mov	rax, QWORD PTR -2192[rbp]
	sub	rax, QWORD PTR -2184[rbp]
	cmp	QWORD PTR -2208[rbp], rax
	jbe	.L39
	mov	eax, 0
	jmp	.L54
.L39:
	mov	rax, QWORD PTR -2208[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -2184[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	shr	al, 6
	movzx	eax, al
	mov	rdx, QWORD PTR -2096[rbp+rax*8]
	mov	rax, QWORD PTR -2208[rbp]
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -2184[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 63
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	and	eax, 1
	test	rax, rax
	je	.L41
	mov	rax, QWORD PTR -2208[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -2184[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	rdx, QWORD PTR -2064[rbp+rax*8]
	mov	rax, QWORD PTR -2208[rbp]
	sub	rax, rdx
	mov	QWORD PTR -2144[rbp], rax
	cmp	QWORD PTR -2144[rbp], 0
	je	.L42
	cmp	QWORD PTR -2112[rbp], 0
	je	.L43
	cmp	QWORD PTR -2120[rbp], 0
	je	.L43
	mov	rax, QWORD PTR -2144[rbp]
	cmp	rax, QWORD PTR -2136[rbp]
	jnb	.L43
	mov	rax, QWORD PTR -2208[rbp]
	sub	rax, QWORD PTR -2136[rbp]
	mov	QWORD PTR -2144[rbp], rax
.L43:
	mov	rax, QWORD PTR -2144[rbp]
	add	QWORD PTR -2184[rbp], rax
	mov	QWORD PTR -2120[rbp], 0
	jmp	.L44
.L41:
	mov	rax, QWORD PTR -2208[rbp]
	add	QWORD PTR -2184[rbp], rax
	mov	QWORD PTR -2120[rbp], 0
	jmp	.L44
.L42:
	mov	rax, QWORD PTR -2128[rbp]
	add	rax, 1
	cmp	QWORD PTR -2120[rbp], rax
	cmovnb	rax, QWORD PTR -2120[rbp]
	mov	QWORD PTR -2144[rbp], rax
	jmp	.L45
.L47:
	add	QWORD PTR -2144[rbp], 1
.L45:
	mov	rax, QWORD PTR -2144[rbp]
	cmp	rax, QWORD PTR -2208[rbp]
	jnb	.L46
	mov	rdx, QWORD PTR -2200[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rcx, QWORD PTR -2184[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L47
.L46:
	mov	rax, QWORD PTR -2144[rbp]
	cmp	rax, QWORD PTR -2208[rbp]
	jnb	.L48
	mov	rax, QWORD PTR -2144[rbp]
	sub	rax, QWORD PTR -2128[rbp]
	add	QWORD PTR -2184[rbp], rax
	mov	QWORD PTR -2120[rbp], 0
	jmp	.L44
.L48:
	mov	rax, QWORD PTR -2128[rbp]
	add	rax, 1
	mov	QWORD PTR -2144[rbp], rax
	jmp	.L49
.L51:
	sub	QWORD PTR -2144[rbp], 1
.L49:
	mov	rax, QWORD PTR -2144[rbp]
	cmp	rax, QWORD PTR -2120[rbp]
	jbe	.L50
	mov	rax, QWORD PTR -2144[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -2200[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -2144[rbp]
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -2184[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L51
.L50:
	mov	rax, QWORD PTR -2144[rbp]
	cmp	rax, QWORD PTR -2120[rbp]
	ja	.L52
	mov	rax, QWORD PTR -2184[rbp]
	jmp	.L54
.L52:
	mov	rax, QWORD PTR -2136[rbp]
	add	QWORD PTR -2184[rbp], rax
	mov	rax, QWORD PTR -2112[rbp]
	mov	QWORD PTR -2120[rbp], rax
.L44:
	jmp	.L53
.L54:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	twoway_memmem, .-twoway_memmem
	.globl	memmem
	.type	memmem, @function
memmem:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L57
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L58
.L57:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jnb	.L59
	mov	eax, 0
	jmp	.L58
.L59:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	ecx, al
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	memchr@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L60
	cmp	QWORD PTR -48[rbp], 1
	jne	.L61
.L60:
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L58
.L61:
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -24[rbp]
	sub	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jnb	.L62
	mov	eax, 0
	jmp	.L58
.L62:
	cmp	QWORD PTR -48[rbp], 2
	jne	.L63
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	twobyte_memmem
	jmp	.L58
.L63:
	cmp	QWORD PTR -48[rbp], 3
	jne	.L64
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	threebyte_memmem
	jmp	.L58
.L64:
	cmp	QWORD PTR -48[rbp], 4
	jne	.L65
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	fourbyte_memmem
	jmp	.L58
.L65:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, [rdx+rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	twoway_memmem
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	memmem, .-memmem
	.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	"651558.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	twobyte_memmem, %function
twobyte_memmem:
	@ 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]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	str	r3, [fp, #-20]
	b	.L2
.L5:
	ldrh	r2, [fp, #-8]
	ldrh	r3, [fp, #-6]
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	b	.L4
.L3:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldrh	r3, [fp, #-8]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	str	r1, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L5
	ldrh	r2, [fp, #-8]
	ldrh	r3, [fp, #-6]
	cmp	r2, r3
	bne	.L6
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	b	.L4
.L6:
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	twobyte_memmem, .-twobyte_memmem
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	threebyte_memmem, %function
threebyte_memmem:
	@ 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]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	ldr	r2, [fp, #-24]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r2, r2, #16
	orr	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r2, r2, #2
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r2, r2, #8
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	ldr	r2, [fp, #-16]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r2, r2, #16
	orr	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, #2
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r2, r2, #8
	orr	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #3
	str	r3, [fp, #-20]
	b	.L9
.L12:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-16]
	sub	r3, r3, #3
	b	.L11
.L10:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	orr	r3, r2, r3
	lsl	r3, r3, #8
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L12
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-16]
	sub	r3, r3, #3
	b	.L11
.L13:
	mov	r3, #0
.L11:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	threebyte_memmem, .-threebyte_memmem
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fourbyte_memmem, %function
fourbyte_memmem:
	@ 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]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	ldr	r2, [fp, #-24]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r2, r2, #16
	orr	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r2, r2, #2
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r2, r2, #8
	orr	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r2, r2, #3
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	ldr	r2, [fp, #-16]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r2, r2, #16
	orr	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, #2
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r2, r2, #8
	orr	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, #3
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #4
	str	r3, [fp, #-20]
	b	.L16
.L19:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L17
	ldr	r3, [fp, #-16]
	sub	r3, r3, #4
	b	.L18
.L17:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #8
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	str	r1, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r2, r3
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L19
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L20
	ldr	r3, [fp, #-16]
	sub	r3, r3, #4
	b	.L18
.L20:
	mov	r3, #0
.L18:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	fourbyte_memmem, .-fourbyte_memmem
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	twoway_memmem, %function
twoway_memmem:
	@ args = 0, pretend = 0, frame = 1112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1104
	sub	sp, sp, #8
	str	r0, [fp, #-1104]
	str	r1, [fp, #-1108]
	str	r2, [fp, #-1112]
	str	r3, [fp, #-1116]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1100]
	b	.L23
.L24:
	ldr	r2, [fp, #-1112]
	ldr	r3, [fp, #-1100]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #5
	and	r3, r3, #255
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-1060]
	ldr	r1, [fp, #-1112]
	ldr	r3, [fp, #-1100]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #31
	mov	r1, #1
	lsl	r3, r1, r3
	ldr	r0, [fp, #-1112]
	ldr	r1, [fp, #-1100]
	add	r1, r0, r1
	ldrb	r1, [r1]	@ zero_extendqisi2
	lsr	r1, r1, #5
	and	r1, r1, #255
	orr	r2, r2, r3
	lsl	r3, r1, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1060]
	ldr	r2, [fp, #-1112]
	ldr	r3, [fp, #-1100]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-1100]
	add	r2, r3, #1
	lsl	r3, r1, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1028]
	ldr	r3, [fp, #-1100]
	add	r3, r3, #1
	str	r3, [fp, #-1100]
.L23:
	ldr	r2, [fp, #-1100]
	ldr	r3, [fp, #-1116]
	cmp	r2, r3
	bcc	.L24
	mvn	r3, #0
	str	r3, [fp, #-1096]
	mov	r3, #0
	str	r3, [fp, #-1092]
	mov	r3, #1
	str	r3, [fp, #-1084]
	ldr	r3, [fp, #-1084]
	str	r3, [fp, #-1088]
	b	.L25
.L29:
	ldr	r2, [fp, #-1096]
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	ldr	r2, [fp, #-1112]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-1092]
	ldr	r3, [fp, #-1088]
	add	r3, r1, r3
	ldr	r1, [fp, #-1112]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L26
	ldr	r2, [fp, #-1088]
	ldr	r3, [fp, #-1084]
	cmp	r2, r3
	bne	.L27
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1084]
	add	r3, r2, r3
	str	r3, [fp, #-1092]
	mov	r3, #1
	str	r3, [fp, #-1088]
	b	.L25
.L27:
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	str	r3, [fp, #-1088]
	b	.L25
.L26:
	ldr	r2, [fp, #-1096]
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	ldr	r2, [fp, #-1112]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-1092]
	ldr	r3, [fp, #-1088]
	add	r3, r1, r3
	ldr	r1, [fp, #-1112]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L28
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	str	r3, [fp, #-1092]
	mov	r3, #1
	str	r3, [fp, #-1088]
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1096]
	sub	r3, r2, r3
	str	r3, [fp, #-1084]
	b	.L25
.L28:
	ldr	r3, [fp, #-1092]
	add	r2, r3, #1
	str	r2, [fp, #-1092]
	str	r3, [fp, #-1096]
	mov	r3, #1
	str	r3, [fp, #-1084]
	ldr	r3, [fp, #-1084]
	str	r3, [fp, #-1088]
.L25:
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	ldr	r2, [fp, #-1116]
	cmp	r2, r3
	bhi	.L29
	ldr	r3, [fp, #-1096]
	str	r3, [fp, #-1080]
	ldr	r3, [fp, #-1084]
	str	r3, [fp, #-1068]
	mvn	r3, #0
	str	r3, [fp, #-1096]
	mov	r3, #0
	str	r3, [fp, #-1092]
	mov	r3, #1
	str	r3, [fp, #-1084]
	ldr	r3, [fp, #-1084]
	str	r3, [fp, #-1088]
	b	.L30
.L34:
	ldr	r2, [fp, #-1096]
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	ldr	r2, [fp, #-1112]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-1092]
	ldr	r3, [fp, #-1088]
	add	r3, r1, r3
	ldr	r1, [fp, #-1112]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L31
	ldr	r2, [fp, #-1088]
	ldr	r3, [fp, #-1084]
	cmp	r2, r3
	bne	.L32
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1084]
	add	r3, r2, r3
	str	r3, [fp, #-1092]
	mov	r3, #1
	str	r3, [fp, #-1088]
	b	.L30
.L32:
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	str	r3, [fp, #-1088]
	b	.L30
.L31:
	ldr	r2, [fp, #-1096]
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	ldr	r2, [fp, #-1112]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-1092]
	ldr	r3, [fp, #-1088]
	add	r3, r1, r3
	ldr	r1, [fp, #-1112]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L33
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	str	r3, [fp, #-1092]
	mov	r3, #1
	str	r3, [fp, #-1088]
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1096]
	sub	r3, r2, r3
	str	r3, [fp, #-1084]
	b	.L30
.L33:
	ldr	r3, [fp, #-1092]
	add	r2, r3, #1
	str	r2, [fp, #-1092]
	str	r3, [fp, #-1096]
	mov	r3, #1
	str	r3, [fp, #-1084]
	ldr	r3, [fp, #-1084]
	str	r3, [fp, #-1088]
.L30:
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	ldr	r2, [fp, #-1116]
	cmp	r2, r3
	bhi	.L34
	ldr	r3, [fp, #-1096]
	add	r2, r3, #1
	ldr	r3, [fp, #-1080]
	add	r3, r3, #1
	cmp	r2, r3
	bls	.L35
	ldr	r3, [fp, #-1096]
	str	r3, [fp, #-1080]
	b	.L36
.L35:
	ldr	r3, [fp, #-1068]
	str	r3, [fp, #-1084]
.L36:
	ldr	r2, [fp, #-1112]
	ldr	r3, [fp, #-1084]
	add	r1, r2, r3
	ldr	r3, [fp, #-1080]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-1112]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	mov	r3, #0
	str	r3, [fp, #-1072]
	ldr	r2, [fp, #-1116]
	ldr	r3, [fp, #-1080]
	sub	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-1080]
	cmp	r2, r3
	movcs	r3, r2
	movcc	r3, r3
	add	r3, r3, #1
	str	r3, [fp, #-1084]
	b	.L38
.L37:
	ldr	r2, [fp, #-1116]
	ldr	r3, [fp, #-1084]
	sub	r3, r2, r3
	str	r3, [fp, #-1072]
.L38:
	mov	r3, #0
	str	r3, [fp, #-1076]
.L53:
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-1116]
	cmp	r3, r2
	bls	.L39
	mov	r3, #0
	b	.L54
.L39:
	ldr	r3, [fp, #-1116]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1104]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #5
	and	r3, r3, #255
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-1060]
	ldr	r3, [fp, #-1116]
	sub	r3, r3, #1
	ldr	r1, [fp, #-1104]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #31
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-1116]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1104]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1028]
	ldr	r2, [fp, #-1116]
	sub	r3, r2, r3
	str	r3, [fp, #-1088]
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-1072]
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-1076]
	cmp	r3, #0
	beq	.L43
	ldr	r2, [fp, #-1088]
	ldr	r3, [fp, #-1084]
	cmp	r2, r3
	bcs	.L43
	ldr	r2, [fp, #-1116]
	ldr	r3, [fp, #-1084]
	sub	r3, r2, r3
	str	r3, [fp, #-1088]
.L43:
	ldr	r2, [fp, #-1104]
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	str	r3, [fp, #-1104]
	mov	r3, #0
	str	r3, [fp, #-1076]
	b	.L44
.L41:
	ldr	r2, [fp, #-1104]
	ldr	r3, [fp, #-1116]
	add	r3, r2, r3
	str	r3, [fp, #-1104]
	mov	r3, #0
	str	r3, [fp, #-1076]
	b	.L44
.L42:
	ldr	r3, [fp, #-1080]
	add	r3, r3, #1
	ldr	r2, [fp, #-1076]
	cmp	r2, r3
	movcs	r3, r2
	movcc	r3, r3
	str	r3, [fp, #-1088]
	b	.L45
.L47:
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	str	r3, [fp, #-1088]
.L45:
	ldr	r2, [fp, #-1088]
	ldr	r3, [fp, #-1116]
	cmp	r2, r3
	bcs	.L46
	ldr	r2, [fp, #-1112]
	ldr	r3, [fp, #-1088]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-1104]
	ldr	r3, [fp, #-1088]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L47
.L46:
	ldr	r2, [fp, #-1088]
	ldr	r3, [fp, #-1116]
	cmp	r2, r3
	bcs	.L48
	ldr	r2, [fp, #-1088]
	ldr	r3, [fp, #-1080]
	sub	r3, r2, r3
	ldr	r2, [fp, #-1104]
	add	r3, r2, r3
	str	r3, [fp, #-1104]
	mov	r3, #0
	str	r3, [fp, #-1076]
	b	.L44
.L48:
	ldr	r3, [fp, #-1080]
	add	r3, r3, #1
	str	r3, [fp, #-1088]
	b	.L49
.L51:
	ldr	r3, [fp, #-1088]
	sub	r3, r3, #1
	str	r3, [fp, #-1088]
.L49:
	ldr	r2, [fp, #-1088]
	ldr	r3, [fp, #-1076]
	cmp	r2, r3
	bls	.L50
	ldr	r3, [fp, #-1088]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1112]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-1088]
	sub	r3, r3, #1
	ldr	r1, [fp, #-1104]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L51
.L50:
	ldr	r2, [fp, #-1088]
	ldr	r3, [fp, #-1076]
	cmp	r2, r3
	bhi	.L52
	ldr	r3, [fp, #-1104]
	b	.L54
.L52:
	ldr	r2, [fp, #-1104]
	ldr	r3, [fp, #-1084]
	add	r3, r2, r3
	str	r3, [fp, #-1104]
	ldr	r3, [fp, #-1072]
	str	r3, [fp, #-1076]
.L44:
	b	.L53
.L54:
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC0
	.size	twoway_memmem, .-twoway_memmem
	.align	2
	.global	memmem
	.syntax unified
	.arm
	.fpu softvfp
	.type	memmem, %function
memmem:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-12]
	b	.L60
.L59:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcs	.L61
	mov	r3, #0
	b	.L60
.L61:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	memchr
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L63
.L62:
	ldr	r3, [fp, #-12]
	b	.L60
.L63:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	sub	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcs	.L64
	mov	r3, #0
	b	.L60
.L64:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	bne	.L65
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	twobyte_memmem
	mov	r3, r0
	b	.L60
.L65:
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bne	.L66
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	threebyte_memmem
	mov	r3, r0
	b	.L60
.L66:
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	bne	.L67
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	fourbyte_memmem
	mov	r3, r0
	b	.L60
.L67:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r1, r2, r3
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	twoway_memmem
	mov	r3, r0
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	memmem, .-memmem
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
