	.file	"48574480.c"
	.intel_syntax noprefix
	.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
	call	declareArray
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.string	"Please enter the dimension of the square: "
.LC1:
	.string	"%d"
.LC2:
	.string	"invalid input"
	.align 8
.LC3:
	.string	"Please enter the data for row %d: "
.LC4:
	.string	"%2d"
.LC5:
	.string	"Here is the square"
	.align 8
.LC6:
	.string	"\nTHE SQUARE IS A MAGIC SQUARE WITH A CONSTANT OF %d \n"
	.align 8
.LC7:
	.string	"\nThe Square is not a magic square "
	.text
	.globl	declareArray
	.type	declareArray, @function
declareArray:
.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, 944
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -940[rbp], 0
	mov	DWORD PTR -944[rbp], 0
	lea	rdx, -912[rbp]
	mov	eax, 0
	mov	ecx, 112
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	DWORD PTR -916[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -944[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	jne	.L4
	mov	eax, DWORD PTR -944[rbp]
	cmp	eax, 14
	jg	.L4
	mov	eax, DWORD PTR -944[rbp]
	test	eax, eax
	jg	.L5
.L4:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L36
.L5:
	mov	DWORD PTR -936[rbp], 0
	jmp	.L7
.L10:
	add	DWORD PTR -940[rbp], 1
	mov	eax, DWORD PTR -940[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -932[rbp], 0
	jmp	.L8
.L9:
	lea	rcx, -912[rbp]
	mov	eax, DWORD PTR -932[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -936[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -932[rbp], 1
.L8:
	mov	eax, DWORD PTR -944[rbp]
	cmp	DWORD PTR -932[rbp], eax
	jl	.L9
	add	DWORD PTR -936[rbp], 1
.L7:
	mov	eax, DWORD PTR -944[rbp]
	cmp	DWORD PTR -936[rbp], eax
	jl	.L10
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -936[rbp], 0
	jmp	.L11
.L14:
	mov	DWORD PTR -932[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -932[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -936[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -912[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -932[rbp], 1
.L12:
	mov	eax, DWORD PTR -944[rbp]
	cmp	DWORD PTR -932[rbp], eax
	jl	.L13
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -936[rbp], 1
.L11:
	mov	eax, DWORD PTR -944[rbp]
	cmp	DWORD PTR -936[rbp], eax
	jl	.L14
	mov	DWORD PTR -928[rbp], 0
	mov	DWORD PTR -936[rbp], 0
	jmp	.L15
.L19:
	mov	DWORD PTR -932[rbp], 0
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -936[rbp]
	cmp	eax, DWORD PTR -932[rbp]
	jne	.L17
	mov	eax, DWORD PTR -932[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -936[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -912[rbp+rax*4]
	add	DWORD PTR -928[rbp], eax
.L17:
	add	DWORD PTR -932[rbp], 1
.L16:
	mov	eax, DWORD PTR -944[rbp]
	cmp	DWORD PTR -932[rbp], eax
	jl	.L18
	add	DWORD PTR -936[rbp], 1
.L15:
	mov	eax, DWORD PTR -944[rbp]
	cmp	DWORD PTR -936[rbp], eax
	jl	.L19
	mov	DWORD PTR -936[rbp], 0
	jmp	.L20
.L26:
	mov	DWORD PTR -924[rbp], 0
	mov	DWORD PTR -932[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -932[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -936[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -912[rbp+rax*4]
	add	DWORD PTR -924[rbp], eax
	add	DWORD PTR -932[rbp], 1
.L21:
	mov	eax, DWORD PTR -944[rbp]
	cmp	DWORD PTR -932[rbp], eax
	jl	.L22
	mov	eax, DWORD PTR -928[rbp]
	cmp	eax, DWORD PTR -924[rbp]
	jne	.L23
	mov	DWORD PTR -916[rbp], 1
	jmp	.L38
.L23:
	mov	DWORD PTR -916[rbp], 0
	jmp	.L25
.L38:
	add	DWORD PTR -936[rbp], 1
.L20:
	mov	eax, DWORD PTR -944[rbp]
	cmp	DWORD PTR -936[rbp], eax
	jl	.L26
.L25:
	mov	DWORD PTR -936[rbp], 0
	jmp	.L27
.L33:
	mov	DWORD PTR -920[rbp], 0
	mov	DWORD PTR -932[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -936[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -932[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -912[rbp+rax*4]
	add	DWORD PTR -920[rbp], eax
	add	DWORD PTR -932[rbp], 1
.L28:
	mov	eax, DWORD PTR -944[rbp]
	cmp	DWORD PTR -932[rbp], eax
	jl	.L29
	mov	eax, DWORD PTR -928[rbp]
	cmp	eax, DWORD PTR -920[rbp]
	jne	.L30
	mov	DWORD PTR -916[rbp], 1
	jmp	.L39
.L30:
	mov	DWORD PTR -916[rbp], 0
	jmp	.L32
.L39:
	add	DWORD PTR -936[rbp], 1
.L27:
	mov	eax, DWORD PTR -944[rbp]
	cmp	DWORD PTR -936[rbp], eax
	jl	.L33
.L32:
	cmp	DWORD PTR -916[rbp], 1
	jne	.L34
	mov	eax, DWORD PTR -928[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L34:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L35:
	mov	eax, 0
.L36:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	declareArray, .-declareArray
	.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	"48574480.c"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	declareArray
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please enter the dimension of the square: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"invalid input\000"
	.align	2
.LC3:
	.ascii	"Please enter the data for row %d: \000"
	.align	2
.LC4:
	.ascii	"%2d\000"
	.align	2
.LC5:
	.ascii	"Here is the square\000"
	.align	2
.LC6:
	.ascii	"\012THE SQUARE IS A MAGIC SQUARE WITH A CONSTANT OF"
	.ascii	" %d \012\000"
	.align	2
.LC7:
	.ascii	"\012The Square is not a magic square \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	declareArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	declareArray, %function
declareArray:
	@ args = 0, pretend = 0, frame = 936
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #936
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-936]
	mov	r3, #0
	str	r3, [fp, #-940]
	sub	r3, fp, #908
	mov	r2, #900
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-912]
	ldr	r0, .L40+4
	bl	printf
	sub	r3, fp, #940
	mov	r1, r3
	ldr	r0, .L40+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L4
	ldr	r3, [fp, #-940]
	cmp	r3, #14
	bgt	.L4
	ldr	r3, [fp, #-940]
	cmp	r3, #0
	bgt	.L5
.L4:
	ldr	r0, .L40+12
	bl	puts
	mov	r3, #1
	b	.L36
.L5:
	mov	r3, #0
	str	r3, [fp, #-932]
	b	.L7
.L10:
	ldr	r3, [fp, #-936]
	add	r3, r3, #1
	str	r3, [fp, #-936]
	ldr	r1, [fp, #-936]
	ldr	r0, .L40+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-928]
	b	.L8
.L9:
	sub	r1, fp, #908
	ldr	r2, [fp, #-932]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	ldr	r2, [fp, #-928]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L40+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-928]
	add	r3, r3, #1
	str	r3, [fp, #-928]
.L8:
	ldr	r3, [fp, #-940]
	ldr	r2, [fp, #-928]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-932]
	add	r3, r3, #1
	str	r3, [fp, #-932]
.L7:
	ldr	r3, [fp, #-940]
	ldr	r2, [fp, #-932]
	cmp	r2, r3
	blt	.L10
	mov	r0, #10
	bl	putchar
	ldr	r0, .L40+24
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-932]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-928]
	b	.L12
.L13:
	ldr	r2, [fp, #-932]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	ldr	r2, [fp, #-928]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-904]
	mov	r1, r3
	ldr	r0, .L40+8
	bl	printf
	ldr	r3, [fp, #-928]
	add	r3, r3, #1
	str	r3, [fp, #-928]
.L12:
	ldr	r3, [fp, #-940]
	ldr	r2, [fp, #-928]
	cmp	r2, r3
	blt	.L13
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-932]
	add	r3, r3, #1
	str	r3, [fp, #-932]
.L11:
	ldr	r3, [fp, #-940]
	ldr	r2, [fp, #-932]
	cmp	r2, r3
	blt	.L14
	mov	r3, #0
	str	r3, [fp, #-924]
	mov	r3, #0
	str	r3, [fp, #-932]
	b	.L15
.L19:
	mov	r3, #0
	str	r3, [fp, #-928]
	b	.L16
.L18:
	ldr	r2, [fp, #-932]
	ldr	r3, [fp, #-928]
	cmp	r2, r3
	bne	.L17
	ldr	r2, [fp, #-932]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	ldr	r2, [fp, #-928]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-904]
	ldr	r2, [fp, #-924]
	add	r3, r2, r3
	str	r3, [fp, #-924]
.L17:
	ldr	r3, [fp, #-928]
	add	r3, r3, #1
	str	r3, [fp, #-928]
.L16:
	ldr	r3, [fp, #-940]
	ldr	r2, [fp, #-928]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-932]
	add	r3, r3, #1
	str	r3, [fp, #-932]
.L15:
	ldr	r3, [fp, #-940]
	ldr	r2, [fp, #-932]
	cmp	r2, r3
	blt	.L19
	mov	r3, #0
	str	r3, [fp, #-932]
	b	.L20
.L26:
	mov	r3, #0
	str	r3, [fp, #-920]
	mov	r3, #0
	str	r3, [fp, #-928]
	b	.L21
.L22:
	ldr	r2, [fp, #-932]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	ldr	r2, [fp, #-928]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-904]
	ldr	r2, [fp, #-920]
	add	r3, r2, r3
	str	r3, [fp, #-920]
	ldr	r3, [fp, #-928]
	add	r3, r3, #1
	str	r3, [fp, #-928]
.L21:
	ldr	r3, [fp, #-940]
	ldr	r2, [fp, #-928]
	cmp	r2, r3
	blt	.L22
	ldr	r2, [fp, #-924]
	ldr	r3, [fp, #-920]
	cmp	r2, r3
	bne	.L23
	mov	r3, #1
	str	r3, [fp, #-912]
	b	.L38
.L23:
	mov	r3, #0
	str	r3, [fp, #-912]
	b	.L25
.L38:
	ldr	r3, [fp, #-932]
	add	r3, r3, #1
	str	r3, [fp, #-932]
.L20:
	ldr	r3, [fp, #-940]
	ldr	r2, [fp, #-932]
	cmp	r2, r3
	blt	.L26
.L25:
	mov	r3, #0
	str	r3, [fp, #-932]
	b	.L27
.L33:
	mov	r3, #0
	str	r3, [fp, #-916]
	mov	r3, #0
	str	r3, [fp, #-928]
	b	.L28
.L29:
	ldr	r2, [fp, #-928]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	ldr	r2, [fp, #-932]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-904]
	ldr	r2, [fp, #-916]
	add	r3, r2, r3
	str	r3, [fp, #-916]
	ldr	r3, [fp, #-928]
	add	r3, r3, #1
	str	r3, [fp, #-928]
.L28:
	ldr	r3, [fp, #-940]
	ldr	r2, [fp, #-928]
	cmp	r2, r3
	blt	.L29
	ldr	r2, [fp, #-924]
	ldr	r3, [fp, #-916]
	cmp	r2, r3
	bne	.L30
	mov	r3, #1
	str	r3, [fp, #-912]
	b	.L39
.L30:
	mov	r3, #0
	str	r3, [fp, #-912]
	b	.L32
.L39:
	ldr	r3, [fp, #-932]
	add	r3, r3, #1
	str	r3, [fp, #-932]
.L27:
	ldr	r3, [fp, #-940]
	ldr	r2, [fp, #-932]
	cmp	r2, r3
	blt	.L33
.L32:
	ldr	r3, [fp, #-912]
	cmp	r3, #1
	bne	.L34
	ldr	r1, [fp, #-924]
	ldr	r0, .L40+28
	bl	printf
	b	.L35
.L34:
	ldr	r0, .L40+32
	bl	puts
.L35:
	mov	r3, #0
.L36:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	declareArray, .-declareArray
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
