	.file	"99815.c"
	.intel_syntax noprefix
	.text
	.globl	foo
	.type	foo, @function
foo:
.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, 48
	mov	DWORD PTR -40[rbp], 1
	mov	DWORD PTR -36[rbp], 30
	mov	DWORD PTR -32[rbp], 4
	mov	QWORD PTR -16[rbp], 4
	mov	QWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	add	DWORD PTR -44[rbp], eax
.L2:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L3
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	add	DWORD PTR -44[rbp], eax
.L4:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L5
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	mov	edi, eax
	call	bar@PLT
	add	DWORD PTR -44[rbp], eax
.L6:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L7
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L8
.L9:
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	sub	eax, 1
	mov	DWORD PTR -44[rbp], eax
.L8:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L9
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	add	DWORD PTR -44[rbp], eax
.L10:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L11
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	mov	edi, eax
	call	bar@PLT
	add	DWORD PTR -44[rbp], eax
.L12:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L13
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L14
.L15:
	add	DWORD PTR -44[rbp], 1
.L14:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L15
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L16
.L17:
	add	DWORD PTR -44[rbp], 1
.L16:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jge	.L17
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L18
.L19:
	mov	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -44[rbp], eax
.L18:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L19
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	add	DWORD PTR -44[rbp], eax
.L20:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L21
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	mov	DWORD PTR -44[rbp], eax
.L22:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L23
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	mov	DWORD PTR -44[rbp], eax
.L24:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L25
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -44[rbp], eax
.L26:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L27
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L28
.L29:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	mov	DWORD PTR -44[rbp], eax
.L28:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L29
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L30
.L31:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	mov	DWORD PTR -44[rbp], eax
.L30:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L31
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	eax, edx
	mov	DWORD PTR -44[rbp], eax
.L32:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L33
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -44[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	sub	eax, edx
	mov	DWORD PTR -44[rbp], eax
.L34:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jge	.L35
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L36
.L37:
	mov	eax, DWORD PTR -44[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	eax, edx
	mov	DWORD PTR -44[rbp], eax
.L36:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jge	.L37
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -44[rbp], eax
	jmp	.L38
.L39:
	mov	eax, DWORD PTR -44[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -44[rbp], eax
.L38:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jge	.L39
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	foo, .-foo
	.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	"99815.c"
	.text
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	mov	r3, #1
	str	r3, [fp, #-40]
	mov	r3, #30
	str	r3, [fp, #-36]
	mov	r3, #4
	str	r3, [fp, #-32]
	mov	r3, #4
	str	r3, [fp, #-28]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L2
.L3:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L2:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L3
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L4
.L5:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L4:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L6
.L7:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	mov	r0, r3
	bl	bar
	mov	r2, r0
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [fp, #-44]
.L6:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L7
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L8
.L9:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-44]
.L8:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L9
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L10
.L11:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L10:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L11
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L12
.L13:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	mov	r0, r3
	bl	bar
	mov	r2, r0
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [fp, #-44]
.L12:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L13
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-44]
	b	.L14
.L15:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L14:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L15
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L16
.L17:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L16:
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bge	.L17
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L18
.L19:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L18:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L19
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L20
.L21:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L20:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L21
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L22
.L23:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L22:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L23
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L24
.L25:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L24:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L25
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L26
.L27:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L26:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L27
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L28
.L29:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L28:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L29
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L30
.L31:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L30:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L31
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-44]
	b	.L32
.L33:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L32:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L33
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-44]
	b	.L34
.L35:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-44]
.L34:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bge	.L35
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-44]
	b	.L36
.L37:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-44]
.L36:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bge	.L37
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-44]
	b	.L38
.L39:
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-44]
.L38:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bge	.L39
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	foo, .-foo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
