	.file	"506329.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	" World!"
	.align 8
.LC1:
	.string	"String '%s' is %d characters long.\n"
.LC2:
	.string	" How are you?"
	.align 8
.LC3:
	.string	"String '%s' is %d characters long.\n\n"
.LC4:
	.string	"Hallo Welt!"
.LC5:
	.string	"Strings are equal."
.LC6:
	.string	"Strings are NOT equal."
.LC7:
	.string	"String s2 is prefix of s1."
	.align 8
.LC8:
	.string	"Exclamation mark is at index %ld and text afterwards is '%s'\n"
	.align 8
.LC9:
	.string	"Exclamation mark not found in string '%s'.\n"
.LC10:
	.string	"Welt"
	.align 8
.LC11:
	.string	"Sub-string '%s' is at index %ld and text afterwards is '%s'\n"
	.align 8
.LC12:
	.string	"Sub-string '%s' not found in string '%s'.\n"
.LC13:
	.string	",."
.LC14:
	.string	"Token: %s\n"
.LC15:
	.string	" "
	.align 8
.LC16:
	.string	"\nOriginal string was changed to: "
.LC17:
	.string	"\\0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 478560413000
	mov	edx, 0
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	DWORD PTR -128[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -160[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, 19
	sub	rdx, rax
	lea	rax, -144[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncat@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -144[rbp]
	mov	DWORD PTR [rax], 1819042120
	mov	WORD PTR 4[rax], 111
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	movabs	rax, 7302340983737049416
	movabs	rdx, 2334387804783604844
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	DWORD PTR -128[rbp], 1952998759
	mov	BYTE PTR -125[rbp], 0
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, .LC4[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	rdx, QWORD PTR -160[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L3:
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -160[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L4
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L5:
	mov	edi, 10
	call	putchar@PLT
	lea	rax, -144[rbp]
	mov	esi, 33
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -160[rbp], rax
	cmp	QWORD PTR -160[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -160[rbp]
	lea	rdx, 1[rax]
	lea	rcx, -144[rbp]
	mov	rax, QWORD PTR -160[rbp]
	sub	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L6:
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -144[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L7:
	mov	edi, 10
	call	putchar@PLT
	lea	rax, .LC10[rip]
	mov	QWORD PTR -152[rbp], rax
	mov	rdx, QWORD PTR -152[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -160[rbp], rax
	cmp	QWORD PTR -160[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -160[rbp]
	lea	rcx, [rax+rdx]
	lea	rsi, -144[rbp]
	mov	rax, QWORD PTR -160[rbp]
	sub	rax, rsi
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L8:
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -144[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L9:
	mov	edi, 10
	call	putchar@PLT
	movabs	rax, 8100041059028070220
	movabs	rdx, 8028914711526208883
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	movabs	rax, 7881616507232526450
	movabs	rdx, 8317708033332114533
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	movabs	rax, 2338060299337491301
	movabs	rdx, 7594040293371503713
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	movabs	rax, 3347416337317128046
	movabs	rdx, 2336630899979144736
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, 2338609986581654626
	movabs	rdx, 8462299384186168694
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movabs	rax, 8439852492504921458
	movabs	rdx, 2338324109180695660
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -16[rbp], 1835103601
	mov	WORD PTR -12[rbp], 46
	lea	rax, .LC13[rip]
	mov	QWORD PTR -176[rbp], rax
	mov	rdx, QWORD PTR -176[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	DWORD PTR -180[rbp], 1
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -168[rbp], rax
	add	DWORD PTR -180[rbp], 1
	cmp	DWORD PTR -180[rbp], 2
	jne	.L10
	lea	rax, .LC15[rip]
	mov	QWORD PTR -176[rbp], rax
.L10:
	cmp	QWORD PTR -168[rbp], 0
	jne	.L11
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -180[rbp], 0
	jmp	.L12
.L15:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	mov	BYTE PTR -181[rbp], al
	cmp	BYTE PTR -181[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	jmp	.L14
.L13:
	movsx	eax, BYTE PTR -181[rbp]
	mov	edi, eax
	call	putchar@PLT
.L14:
	add	DWORD PTR -180[rbp], 1
.L12:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, 101
	jbe	.L15
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"506329.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	" World!\000"
	.align	2
.LC2:
	.ascii	"String '%s' is %d characters long.\012\000"
	.align	2
.LC3:
	.ascii	" How are you?\000"
	.align	2
.LC4:
	.ascii	"Hallo\000"
	.align	2
.LC5:
	.ascii	"Hallo Welt! Wie geht es dir?\000"
	.align	2
.LC6:
	.ascii	"String '%s' is %d characters long.\012\012\000"
	.align	2
.LC7:
	.ascii	"Hallo Welt!\000"
	.align	2
.LC8:
	.ascii	"Strings are equal.\000"
	.align	2
.LC9:
	.ascii	"Strings are NOT equal.\000"
	.align	2
.LC10:
	.ascii	"String s2 is prefix of s1.\000"
	.align	2
.LC11:
	.ascii	"Exclamation mark is at index %ld and text afterward"
	.ascii	"s is '%s'\012\000"
	.align	2
.LC12:
	.ascii	"Exclamation mark not found in string '%s'.\012\000"
	.align	2
.LC13:
	.ascii	"Welt\000"
	.align	2
.LC14:
	.ascii	"Sub-string '%s' is at index %ld and text afterwards"
	.ascii	" is '%s'\012\000"
	.align	2
.LC15:
	.ascii	"Sub-string '%s' not found in string '%s'.\012\000"
	.align	2
.LC17:
	.ascii	",.\000"
	.align	2
.LC18:
	.ascii	"Token: %s\012\000"
	.align	2
.LC19:
	.ascii	" \000"
	.align	2
.LC20:
	.ascii	"\012Original string was changed to: \000"
	.align	2
.LC21:
	.ascii	"\\0\000"
	.align	2
.LC0:
	.ascii	"Hello\000"
	.space	14
	.align	2
.LC16:
	.ascii	"Lorem ipsum dolor sit amet, consectetur adipiscing "
	.ascii	"elit. Nullam blandit velit purus, a ultrices quam.\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #156
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L18+4
	sub	r3, fp, #140
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	sub	r3, fp, #134
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	strh	r2, [r3, #2]	@ movhi
	strh	r2, [r3, #4]	@ movhi
	strh	r2, [r3, #6]	@ movhi
	strh	r2, [r3, #8]	@ movhi
	strh	r2, [r3, #10]	@ movhi
	strh	r2, [r3, #12]	@ movhi
	ldr	r3, .L18+8
	str	r3, [fp, #-148]
	sub	r3, fp, #140
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	sub	r3, fp, #140
	ldr	r1, [fp, #-148]
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #140
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	sub	r3, fp, #140
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	rsb	r2, r3, #19
	sub	r3, fp, #140
	ldr	r1, .L18+16
	mov	r0, r3
	bl	strncat
	sub	r3, fp, #140
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	sub	r3, fp, #140
	ldr	r2, .L18+20
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	sub	r3, fp, #140
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	ldr	r3, .L18+24
	sub	ip, fp, #140
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #0
	strb	r3, [fp, #-121]
	sub	r3, fp, #140
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	sub	r3, fp, #140
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-148]
	ldr	r0, [fp, #-148]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-148]
	ldr	r0, .L18+28
	bl	printf
	ldr	r0, [fp, #-148]
	bl	free
	ldr	r3, .L18+32
	str	r3, [fp, #-148]
	sub	r3, fp, #140
	ldr	r1, [fp, #-148]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L18+36
	bl	puts
	b	.L3
.L2:
	ldr	r0, .L18+40
	bl	puts
.L3:
	ldr	r0, [fp, #-148]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #140
	ldr	r1, [fp, #-148]
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L18+44
	bl	puts
	b	.L5
.L4:
	ldr	r0, .L18+40
	bl	puts
.L5:
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #140
	mov	r1, #33
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L6
	sub	r3, fp, #140
	ldr	r2, [fp, #-148]
	sub	r1, r2, r3
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r0, .L18+48
	bl	printf
	b	.L7
.L6:
	ldr	r3, .L18+52
	ldr	r3, [r3]
	sub	r2, fp, #140
	ldr	r1, .L18+56
	mov	r0, r3
	bl	fprintf
.L7:
	mov	r0, #10
	bl	putchar
	ldr	r3, .L18+60
	str	r3, [fp, #-144]
	sub	r3, fp, #140
	ldr	r1, [fp, #-144]
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #140
	ldr	r2, [fp, #-148]
	sub	r4, r2, r3
	ldr	r0, [fp, #-144]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-148]
	add	r3, r3, r2
	mov	r2, r4
	ldr	r1, [fp, #-144]
	ldr	r0, .L18+64
	bl	printf
	b	.L9
.L8:
	ldr	r3, .L18+52
	ldr	r0, [r3]
	sub	r3, fp, #140
	ldr	r2, [fp, #-144]
	ldr	r1, .L18+68
	bl	fprintf
.L9:
	mov	r0, #10
	bl	putchar
	ldr	r2, .L18+72
	sub	r3, fp, #120
	mov	r1, r2
	mov	r2, #102
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L18+76
	str	r3, [fp, #-160]
	sub	r3, fp, #120
	ldr	r1, [fp, #-160]
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-156]
	mov	r3, #1
	str	r3, [fp, #-152]
	b	.L10
.L11:
	ldr	r1, [fp, #-156]
	ldr	r0, .L18+80
	bl	printf
	ldr	r1, [fp, #-160]
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #2
	bne	.L10
	ldr	r3, .L18+84
	str	r3, [fp, #-160]
.L10:
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L18+88
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L12
.L15:
	sub	r2, fp, #120
	ldr	r3, [fp, #-152]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-161]
	ldrb	r3, [fp, #-161]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L18+92
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L18+96
	bl	fwrite
	b	.L14
.L13:
	ldrb	r3, [fp, #-161]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L14:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L12:
	ldr	r3, [fp, #-152]
	cmp	r3, #101
	bls	.L15
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC22
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	stderr
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	stdout
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
