	.file	"242330266.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Loop 1: Single line while with i++:"
.LC1:
	.string	"i = %d.\n"
	.align 8
.LC2:
	.string	"\nLoop 2, Single line while with i += 1:"
.LC3:
	.string	"\nLoop 3, multi-line while:"
	.align 8
.LC4:
	.string	"Code blocks {} let us explicitly control execution."
.LC5:
	.string	"\nLoop 4, do-while:"
	.align 8
.LC6:
	.string	"\ni currently is %d. This is important for the following examples.\n"
.LC7:
	.string	"\nLoop 5, for loop:"
.LC8:
	.string	"\nHOW DID i GET BACK TO %d!?\n"
	.align 8
.LC9:
	.string	"\nLoop 6, for loop using existing instantiation and initialization of i:"
.LC10:
	.string	"i currently is %d.\n"
	.align 8
.LC11:
	.string	"\nLoop 7, for loop using internal defined step:"
	.align 8
.LC12:
	.string	"Finally, i ends the program at %d.\n"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	cmp	DWORD PTR -8[rbp], 4
	jle	.L3
	mov	DWORD PTR -8[rbp], 0
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L4
.L5:
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	cmp	DWORD PTR -8[rbp], 4
	jle	.L5
	mov	DWORD PTR -8[rbp], 0
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L6:
	cmp	DWORD PTR -8[rbp], 4
	jle	.L7
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L8:
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -8[rbp], 4
	jle	.L8
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L9:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L10
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -8[rbp], 1
.L11:
	cmp	DWORD PTR -8[rbp], 0
	jg	.L12
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR -8[rbp], 10
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -8[rbp], eax
.L13:
	cmp	DWORD PTR -8[rbp], 0
	jg	.L14
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	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	"242330266.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Loop 1: Single line while with i++:\000"
	.align	2
.LC1:
	.ascii	"i = %d.\012\000"
	.align	2
.LC2:
	.ascii	"\012Loop 2, Single line while with i += 1:\000"
	.align	2
.LC3:
	.ascii	"\012Loop 3, multi-line while:\000"
	.align	2
.LC4:
	.ascii	"Code blocks {} let us explicitly control execution."
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"\012Loop 4, do-while:\000"
	.align	2
.LC6:
	.ascii	"\012i currently is %d. This is important for the fo"
	.ascii	"llowing examples.\012\000"
	.align	2
.LC7:
	.ascii	"\012Loop 5, for loop:\000"
	.align	2
.LC8:
	.ascii	"\012HOW DID i GET BACK TO %d!?\012\000"
	.align	2
.LC9:
	.ascii	"\012Loop 6, for loop using existing instantiation a"
	.ascii	"nd initialization of i:\000"
	.align	2
.LC10:
	.ascii	"i currently is %d.\012\000"
	.align	2
.LC11:
	.ascii	"\012Loop 7, for loop using internal defined step:\000"
	.align	2
.LC12:
	.ascii	"Finally, i ends the program at %d.\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L16
	bl	puts
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L16+4
	bl	printf
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L16+8
	bl	puts
	b	.L4
.L5:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L16+4
	bl	printf
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L16+12
	bl	puts
	ldr	r0, .L16+16
	bl	puts
	b	.L6
.L7:
	ldr	r1, [fp, #-12]
	ldr	r0, .L16+4
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L7
	ldr	r0, .L16+20
	bl	puts
.L8:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L16+4
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L8
	ldr	r1, [fp, #-12]
	ldr	r0, .L16+24
	bl	printf
	ldr	r0, .L16+28
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L9
.L10:
	ldr	r1, [fp, #-8]
	ldr	r0, .L16+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L10
	ldr	r1, [fp, #-12]
	ldr	r0, .L16+32
	bl	printf
	ldr	r0, .L16+36
	bl	puts
	b	.L11
.L12:
	ldr	r1, [fp, #-12]
	ldr	r0, .L16+4
	bl	printf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L12
	ldr	r1, [fp, #-12]
	ldr	r0, .L16+40
	bl	printf
	ldr	r0, .L16+44
	bl	puts
	mov	r3, #10
	str	r3, [fp, #-12]
	b	.L13
.L14:
	ldr	r1, [fp, #-12]
	ldr	r0, .L16+4
	bl	printf
	ldr	r3, [fp, #-12]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L14
	ldr	r1, [fp, #-12]
	ldr	r0, .L16+48
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.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	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
