	.file	"25137131.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"found the string '%s' in '%s' at position: %ld; result: %s\n"
	.align 8
.LC1:
	.string	"the string '%s' was not found in '%s'\n"
	.text
	.globl	find_str
	.type	find_str, @function
find_str:
.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	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	rsi, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L2:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	find_str, .-find_str
	.section	.rodata
.LC2:
	.string	"GoldenGlobalView"
.LC3:
	.string	"lob"
.LC4:
	.string	"first occurrence %d\n"
.LC5:
	.string	"NotFound!"
.LC6:
	.string	"one two three"
.LC7:
	.string	"two"
.LC8:
	.string	""
.LC9:
	.string	"nine"
.LC10:
	.string	"n"
.LC11:
	.string	"simple"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -72[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR -72[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L6:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L7:
	lea	rax, .LC6[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	find_str
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	find_str
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	find_str
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	find_str
	movabs	rax, 2338328219631577172
	movabs	rdx, 7308339910538371169
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	movabs	rax, 29113321772053280
	mov	QWORD PTR -16[rbp], rax
	lea	rax, -32[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 1886216563
	mov	WORD PTR 4[rax], 25964
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"25137131.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"found the string '%s' in '%s' at position: %ld; res"
	.ascii	"ult: %s\012\000"
	.align	2
.LC1:
	.ascii	"the string '%s' was not found in '%s'\012\000"
	.text
	.align	2
	.global	find_str
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_str, %function
find_str:
	@ args = 0, pretend = 0, frame = 16
	@ 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]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strstr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L5
	bl	printf
	b	.L4
.L2:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L5+4
	bl	printf
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.size	find_str, .-find_str
	.section	.rodata
	.align	2
.LC2:
	.ascii	"GoldenGlobalView\000"
	.align	2
.LC3:
	.ascii	"lob\000"
	.align	2
.LC4:
	.ascii	"first occurrence %d\012\000"
	.align	2
.LC5:
	.ascii	"NotFound!\000"
	.align	2
.LC6:
	.ascii	"one two three\000"
	.align	2
.LC7:
	.ascii	"two\000"
	.align	2
.LC8:
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"nine\000"
	.align	2
.LC10:
	.ascii	"n\000"
	.align	2
.LC12:
	.ascii	"simple\000"
	.align	2
.LC13:
	.ascii	"sample\000"
	.align	2
.LC11:
	.ascii	"This is a simple string\000"
	.align	2
.LC14:
	.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, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L12+4
	str	r3, [fp, #-52]
	ldr	r3, .L12+8
	str	r3, [fp, #-48]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-52]
	bl	strstr
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L8
	ldr	r0, [fp, #-44]
	bl	puts
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L12+12
	bl	printf
	b	.L9
.L8:
	ldr	r0, .L12+16
	bl	puts
.L9:
	ldr	r3, .L12+20
	str	r3, [fp, #-40]
	ldr	r1, .L12+24
	ldr	r0, [fp, #-40]
	bl	find_str
	ldr	r1, .L12+28
	ldr	r0, [fp, #-40]
	bl	find_str
	ldr	r1, .L12+32
	ldr	r0, [fp, #-40]
	bl	find_str
	ldr	r1, .L12+36
	ldr	r0, [fp, #-40]
	bl	find_str
	ldr	r3, .L12+40
	sub	ip, fp, #32
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, fp, #32
	ldr	r1, .L12+44
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r2, .L12+48
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #32
	mov	r0, r3
	bl	puts
	ldr	r0, [fp, #-36]
	bl	puts
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC14
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
