	.file	"546684.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"3x5 array"
.LC1:
	.string	"Sum of all elements = %d\n"
.LC2:
	.string	"2x6 array"
.LC3:
	.string	"3x10 VLA"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 168
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rbx
	xor	ebx, ebx
	mov	rcx, rsp
	mov	r15, rcx
	mov	DWORD PTR -200[rbp], 3
	mov	DWORD PTR -188[rbp], 10
	mov	DWORD PTR -160[rbp], 2
	mov	DWORD PTR -156[rbp], 4
	mov	DWORD PTR -152[rbp], 6
	mov	DWORD PTR -148[rbp], 8
	mov	DWORD PTR -144[rbp], 3
	mov	DWORD PTR -140[rbp], 5
	mov	DWORD PTR -136[rbp], 7
	mov	DWORD PTR -132[rbp], 9
	mov	DWORD PTR -128[rbp], 12
	mov	DWORD PTR -124[rbp], 10
	mov	DWORD PTR -120[rbp], 8
	mov	DWORD PTR -116[rbp], 6
	mov	DWORD PTR -112[rbp], 20
	mov	DWORD PTR -108[rbp], 30
	mov	DWORD PTR -104[rbp], 40
	mov	DWORD PTR -100[rbp], 50
	mov	DWORD PTR -96[rbp], 60
	mov	DWORD PTR -92[rbp], 70
	mov	DWORD PTR -88[rbp], 5
	mov	DWORD PTR -84[rbp], 6
	mov	DWORD PTR -80[rbp], 7
	mov	DWORD PTR -76[rbp], 8
	mov	DWORD PTR -72[rbp], 9
	mov	DWORD PTR -68[rbp], 10
	mov	ecx, DWORD PTR -188[rbp]
	mov	ebx, DWORD PTR -200[rbp]
	movsx	r12, ecx
	sub	r12, 1
	mov	QWORD PTR -184[rbp], r12
	movsx	r12, ecx
	mov	r13, r12
	mov	r14d, 0
	movsx	r12, ecx
	lea	r13, 0[0+r12*4]
	movsx	r12, ebx
	sub	r12, 1
	mov	QWORD PTR -176[rbp], r12
	movsx	r12, ecx
	mov	r10, r12
	mov	r11d, 0
	movsx	r12, ebx
	mov	rax, r12
	mov	edx, 0
	mov	r14, r11
	imul	r14, rax
	mov	r12, rdx
	imul	r12, r10
	add	r12, r14
	mul	r10
	lea	r10, [r12+rdx]
	mov	rdx, r10
	movsx	rax, ecx
	mov	r8, rax
	mov	r9d, 0
	movsx	rax, ebx
	mov	rsi, rax
	mov	edi, 0
	mov	rdx, r9
	imul	rdx, rsi
	mov	rax, rdi
	imul	rax, r8
	lea	r10, [rdx+rax]
	mov	rax, r8
	mul	rsi
	lea	rsi, [r10+rdx]
	mov	rdx, rsi
	movsx	rdx, ecx
	movsx	rax, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -168[rbp], rax
	mov	DWORD PTR -192[rbp], 0
	jmp	.L5
.L8:
	mov	DWORD PTR -196[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -192[rbp]
	imul	eax, DWORD PTR -196[rbp]
	mov	edx, eax
	mov	rsi, r13
	shr	rsi, 2
	mov	eax, DWORD PTR -196[rbp]
	lea	ecx, [rdx+rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, DWORD PTR -196[rbp]
	movsx	rdi, edx
	mov	edx, DWORD PTR -192[rbp]
	movsx	rdx, edx
	imul	rdx, rsi
	add	rdx, rdi
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -196[rbp], 1
.L6:
	mov	eax, DWORD PTR -196[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jl	.L7
	add	DWORD PTR -192[rbp], 1
.L5:
	mov	eax, DWORD PTR -192[rbp]
	cmp	eax, DWORD PTR -200[rbp]
	jl	.L8
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -160[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 3
	call	sum2d
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -112[rbp]
	mov	rdx, rax
	mov	esi, 6
	mov	edi, 2
	call	sum2d
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR -168[rbp]
	mov	ecx, DWORD PTR -188[rbp]
	mov	eax, DWORD PTR -200[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	sum2d
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, r15
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	sum2d
	.type	sum2d, @function
sum2d:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	QWORD PTR -64[rbp], rdx
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -24[rbp], rdx
	movsx	rdx, eax
	mov	rcx, rdx
	mov	ebx, 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L12
.L15:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L13
.L14:
	mov	edx, DWORD PTR -28[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	imul	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -64[rbp]
	add	rcx, rdx
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rcx+rdx*4]
	add	DWORD PTR -36[rbp], edx
	add	DWORD PTR -32[rbp], 1
.L13:
	mov	edx, DWORD PTR -32[rbp]
	cmp	edx, DWORD PTR -56[rbp]
	jl	.L14
	add	DWORD PTR -28[rbp], 1
.L12:
	mov	edx, DWORD PTR -28[rbp]
	cmp	edx, DWORD PTR -52[rbp]
	jl	.L15
	mov	eax, DWORD PTR -36[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sum2d, .-sum2d
	.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	"546684.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"3x5 array\000"
	.align	2
.LC3:
	.ascii	"Sum of all elements = %d\012\000"
	.align	2
.LC4:
	.ascii	"2x6 array\000"
	.align	2
.LC5:
	.ascii	"3x10 VLA\000"
	.align	2
.LC0:
	.word	2
	.word	4
	.word	6
	.word	8
	.word	3
	.word	5
	.word	7
	.word	9
	.word	12
	.word	10
	.word	8
	.word	6
	.align	2
.LC1:
	.word	20
	.word	30
	.word	40
	.word	50
	.word	60
	.word	70
	.word	5
	.word	6
	.word	7
	.word	8
	.word	9
	.word	10
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #132
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	mov	r3, #3
	str	r3, [fp, #-156]
	mov	r3, #10
	str	r3, [fp, #-144]
	ldr	r3, .L8+4
	sub	ip, fp, #128
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L8+8
	sub	ip, fp, #80
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	ip, [fp, #-144]
	ldr	lr, [fp, #-156]
	sub	r3, ip, #1
	str	r3, [fp, #-140]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r6, r3, #2
	sub	r3, lr, #1
	str	r3, [fp, #-136]
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r7, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r7, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r7, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r7, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r2, lr
	mul	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-132]
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L3
.L4:
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-152]
	mul	r1, r2, r3
	lsr	r2, r6, #2
	ldr	r3, [fp, #-152]
	add	r1, r1, r3
	ldr	r3, [fp, #-132]
	ldr	r0, [fp, #-148]
	mul	r0, r2, r0
	ldr	r2, [fp, #-152]
	add	r2, r0, r2
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L3:
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-144]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L2:
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-156]
	cmp	r2, r3
	blt	.L5
	ldr	r0, .L8+12
	bl	puts
	sub	r3, fp, #128
	mov	r2, r3
	mov	r1, #4
	mov	r0, #3
	bl	sum2d
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+16
	bl	printf
	ldr	r0, .L8+20
	bl	puts
	sub	r3, fp, #80
	mov	r2, r3
	mov	r1, #6
	mov	r0, #2
	bl	sum2d
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+16
	bl	printf
	ldr	r0, .L8+24
	bl	puts
	ldr	r2, [fp, #-132]
	ldr	r1, [fp, #-144]
	ldr	r0, [fp, #-156]
	bl	sum2d
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+16
	bl	printf
	mov	r3, #0
	mov	sp, r8
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.align	2
	.global	sum2d
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum2d, %function
sum2d:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	ip, [fp, #-28]
	sub	r3, ip, #1
	str	r3, [fp, #-8]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L12
.L13:
	mov	r2, ip
	ldr	r3, [fp, #-12]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-20]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sum2d, .-sum2d
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
