	.file	"1170867.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/1170867.c"
.LC1:
	.string	"shift > 0"
	.text
	.globl	strstr
	.type	strstr, @function
strstr:
.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, 1088
	mov	QWORD PTR -1080[rbp], rdi
	mov	QWORD PTR -1088[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1088[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1060[rbp], eax
	mov	rax, QWORD PTR -1080[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1056[rbp], eax
	mov	DWORD PTR -1068[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -1068[rbp]
	cdqe
	mov	edx, DWORD PTR -1060[rbp]
	mov	DWORD PTR -1040[rbp+rax*4], edx
	add	DWORD PTR -1068[rbp], 1
.L2:
	cmp	DWORD PTR -1068[rbp], 254
	jle	.L3
	mov	DWORD PTR -1068[rbp], 0
	jmp	.L4
.L5:
	mov	ecx, DWORD PTR -1068[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -1068[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	edx, 1
	cdqe
	mov	DWORD PTR -1040[rbp+rax*4], edx
	add	DWORD PTR -1068[rbp], 1
.L4:
	mov	eax, DWORD PTR -1060[rbp]
	sub	eax, 1
	cmp	DWORD PTR -1068[rbp], eax
	jl	.L5
	mov	eax, DWORD PTR -1056[rbp]
	mov	edx, DWORD PTR -1060[rbp]
	sub	rax, rdx
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -1080[rbp]
	add	rax, rdx
	mov	QWORD PTR -1048[rbp], rax
	jmp	.L6
.L13:
	mov	eax, DWORD PTR -1060[rbp]
	sub	eax, 1
	mov	DWORD PTR -1064[rbp], eax
	jmp	.L7
.L9:
	sub	DWORD PTR -1064[rbp], 1
.L7:
	cmp	DWORD PTR -1064[rbp], 0
	js	.L8
	mov	eax, DWORD PTR -1064[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -1064[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -1080[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L9
.L8:
	cmp	DWORD PTR -1064[rbp], 0
	js	.L18
	mov	eax, DWORD PTR -1060[rbp]
	sub	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -1080[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	mov	DWORD PTR -1052[rbp], eax
	cmp	DWORD PTR -1052[rbp], 0
	jne	.L12
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 77
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L12:
	mov	eax, DWORD PTR -1052[rbp]
	add	QWORD PTR -1080[rbp], rax
.L6:
	mov	rax, QWORD PTR -1080[rbp]
	cmp	rax, QWORD PTR -1048[rbp]
	jb	.L13
	jmp	.L11
.L18:
	nop
.L11:
	mov	rax, QWORD PTR -1080[rbp]
	cmp	rax, QWORD PTR -1048[rbp]
	jnb	.L14
	mov	rax, QWORD PTR -1080[rbp]
	jmp	.L16
.L14:
	mov	eax, 0
.L16:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	strstr, .-strstr
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 7
__PRETTY_FUNCTION__.0:
	.string	"strstr"
	.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	"1170867.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/1170867.c\000"
	.align	2
.LC1:
	.ascii	"shift > 0\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	strstr
	.syntax unified
	.arm
	.fpu softvfp
	.type	strstr, %function
strstr:
	@ 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, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-1060]
	bl	strlen
	str	r0, [fp, #-1044]
	ldr	r0, [fp, #-1056]
	bl	strlen
	str	r0, [fp, #-1040]
	mov	r3, #0
	str	r3, [fp, #-1052]
	b	.L2
.L3:
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-1044]
	str	r2, [r3, #-1024]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	str	r3, [fp, #-1052]
.L2:
	ldr	r3, [fp, #-1052]
	cmp	r3, #254
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-1052]
	b	.L4
.L5:
	ldr	r3, [fp, #-1052]
	ldr	r2, [fp, #-1044]
	sub	r3, r2, r3
	ldr	r2, [fp, #-1052]
	ldr	r1, [fp, #-1060]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	mov	r1, r2
	sub	r2, r3, #1
	lsl	r3, r1, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1024]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	str	r3, [fp, #-1052]
.L4:
	ldr	r3, [fp, #-1044]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-1052]
	cmp	r3, r2
	blt	.L5
	ldr	r2, [fp, #-1040]
	ldr	r3, [fp, #-1044]
	sub	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	str	r3, [fp, #-1036]
	b	.L6
.L13:
	ldr	r3, [fp, #-1044]
	sub	r3, r3, #1
	str	r3, [fp, #-1048]
	b	.L7
.L9:
	ldr	r3, [fp, #-1048]
	sub	r3, r3, #1
	str	r3, [fp, #-1048]
.L7:
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	blt	.L8
	ldr	r3, [fp, #-1048]
	ldr	r2, [fp, #-1060]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-1048]
	ldr	r1, [fp, #-1056]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L9
.L8:
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	blt	.L18
	ldr	r3, [fp, #-1044]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1024]
	str	r3, [fp, #-1032]
	ldr	r3, [fp, #-1032]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L19+4
	mov	r2, #77
	ldr	r1, .L19+8
	ldr	r0, .L19+12
	bl	__assert_fail
.L12:
	ldr	r2, [fp, #-1056]
	ldr	r3, [fp, #-1032]
	add	r3, r2, r3
	str	r3, [fp, #-1056]
.L6:
	ldr	r2, [fp, #-1056]
	ldr	r3, [fp, #-1036]
	cmp	r2, r3
	bcc	.L13
	b	.L11
.L18:
	nop
.L11:
	ldr	r2, [fp, #-1056]
	ldr	r3, [fp, #-1036]
	cmp	r2, r3
	bcs	.L14
	ldr	r3, [fp, #-1056]
	b	.L16
.L14:
	mov	r3, #0
.L16:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	__PRETTY_FUNCTION__.4410
	.word	.LC0
	.word	.LC1
	.size	strstr, .-strstr
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4410, %object
	.size	__PRETTY_FUNCTION__.4410, 7
__PRETTY_FUNCTION__.4410:
	.ascii	"strstr\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
