	.file	"860060.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Offset %d -> arr[%d][%d][%d][%d]\n"
	.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
	sub	rsp, 1968
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1956[rbp], 0
	jmp	.L2
.L9:
	mov	DWORD PTR -1952[rbp], 0
	jmp	.L3
.L8:
	mov	DWORD PTR -1948[rbp], 0
	jmp	.L4
.L7:
	mov	DWORD PTR -1944[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -1944[rbp]
	movsx	rdi, eax
	mov	eax, DWORD PTR -1952[rbp]
	cdqe
	mov	edx, DWORD PTR -1948[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -1956[rbp]
	movsx	rsi, edx
	mov	rdx, rax
	sal	rdx, 2
	add	rdx, rax
	lea	rax, 0[0+rdx*4]
	mov	rdx, rax
	mov	rax, rsi
	sal	rax, 4
	sub	rax, rsi
	sal	rax, 2
	add	rdx, rax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rdx
	add	rax, rdi
	sal	rax, 4
	add	rax, rbp
	lea	rdx, -1936[rax]
	mov	eax, DWORD PTR -1956[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -1944[rbp]
	movsx	rdi, eax
	mov	eax, DWORD PTR -1952[rbp]
	cdqe
	mov	edx, DWORD PTR -1948[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -1956[rbp]
	movsx	rsi, edx
	mov	rdx, rax
	sal	rdx, 2
	add	rdx, rax
	lea	rax, 0[0+rdx*4]
	mov	rdx, rax
	mov	rax, rsi
	sal	rax, 4
	sub	rax, rsi
	sal	rax, 2
	add	rdx, rax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rdx
	add	rax, rdi
	sal	rax, 4
	add	rax, rbp
	lea	rdx, -1932[rax]
	mov	eax, DWORD PTR -1952[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -1944[rbp]
	movsx	rdi, eax
	mov	eax, DWORD PTR -1952[rbp]
	cdqe
	mov	edx, DWORD PTR -1948[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -1956[rbp]
	movsx	rsi, edx
	mov	rdx, rax
	sal	rdx, 2
	add	rdx, rax
	lea	rax, 0[0+rdx*4]
	mov	rdx, rax
	mov	rax, rsi
	sal	rax, 4
	sub	rax, rsi
	sal	rax, 2
	add	rdx, rax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rdx
	add	rax, rdi
	sal	rax, 4
	add	rax, rbp
	lea	rdx, -1928[rax]
	mov	eax, DWORD PTR -1948[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -1944[rbp]
	movsx	rdi, eax
	mov	eax, DWORD PTR -1952[rbp]
	cdqe
	mov	edx, DWORD PTR -1948[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -1956[rbp]
	movsx	rsi, edx
	mov	rdx, rax
	sal	rdx, 2
	add	rdx, rax
	lea	rax, 0[0+rdx*4]
	mov	rdx, rax
	mov	rax, rsi
	sal	rax, 4
	sub	rax, rsi
	sal	rax, 2
	add	rdx, rax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rdx
	add	rax, rdi
	sal	rax, 4
	add	rax, rbp
	lea	rdx, -1924[rax]
	mov	eax, DWORD PTR -1944[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -1944[rbp], 1
.L5:
	cmp	DWORD PTR -1944[rbp], 4
	jle	.L6
	add	DWORD PTR -1948[rbp], 1
.L4:
	cmp	DWORD PTR -1948[rbp], 3
	jle	.L7
	add	DWORD PTR -1952[rbp], 1
.L3:
	cmp	DWORD PTR -1952[rbp], 2
	jle	.L8
	add	DWORD PTR -1956[rbp], 1
.L2:
	cmp	DWORD PTR -1956[rbp], 1
	jle	.L9
	mov	DWORD PTR -1940[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -1940[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, -1936[rbp]
	add	rax, rdx
	mov	edi, DWORD PTR 12[rax]
	mov	eax, DWORD PTR -1940[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, -1936[rbp]
	add	rax, rdx
	mov	esi, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -1940[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, -1936[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -1940[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, -1936[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -1940[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	add	DWORD PTR -1940[rbp], 1
.L10:
	cmp	DWORD PTR -1940[rbp], 119
	jle	.L11
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"860060.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Offset %d -> arr[%d][%d][%d][%d]\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1944
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1952
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1948]
	b	.L2
.L9:
	mov	r3, #0
	str	r3, [fp, #-1944]
	b	.L3
.L8:
	mov	r3, #0
	str	r3, [fp, #-1940]
	b	.L4
.L7:
	mov	r3, #0
	str	r3, [fp, #-1936]
	b	.L5
.L6:
	ldr	r3, [fp, #-1940]
	ldr	r1, [fp, #-1944]
	ldr	r0, [fp, #-1948]
	mov	r2, r3
	lsl	r2, r2, #2
	add	r2, r2, r3
	mov	r3, r0
	lsl	r3, r3, #4
	sub	r3, r3, r0
	lsl	r3, r3, #2
	add	r2, r2, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-1936]
	add	r3, r2, r3
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-1948]
	str	r2, [r3, #-1924]
	ldr	r3, [fp, #-1940]
	ldr	r1, [fp, #-1944]
	ldr	r0, [fp, #-1948]
	mov	r2, r3
	lsl	r2, r2, #2
	add	r2, r2, r3
	mov	r3, r0
	lsl	r3, r3, #4
	sub	r3, r3, r0
	lsl	r3, r3, #2
	add	r2, r2, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-1936]
	add	r3, r2, r3
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-1944]
	str	r2, [r3, #-1920]
	ldr	r3, [fp, #-1940]
	ldr	r1, [fp, #-1944]
	ldr	r0, [fp, #-1948]
	mov	r2, r3
	lsl	r2, r2, #2
	add	r2, r2, r3
	mov	r3, r0
	lsl	r3, r3, #4
	sub	r3, r3, r0
	lsl	r3, r3, #2
	add	r2, r2, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-1936]
	add	r3, r2, r3
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-1940]
	str	r2, [r3, #-1916]
	ldr	r3, [fp, #-1940]
	ldr	r1, [fp, #-1944]
	ldr	r0, [fp, #-1948]
	mov	r2, r3
	lsl	r2, r2, #2
	add	r2, r2, r3
	mov	r3, r0
	lsl	r3, r3, #4
	sub	r3, r3, r0
	lsl	r3, r3, #2
	add	r2, r2, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-1936]
	add	r3, r2, r3
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-1936]
	str	r2, [r3, #-1912]
	ldr	r3, [fp, #-1936]
	add	r3, r3, #1
	str	r3, [fp, #-1936]
.L5:
	ldr	r3, [fp, #-1936]
	cmp	r3, #4
	ble	.L6
	ldr	r3, [fp, #-1940]
	add	r3, r3, #1
	str	r3, [fp, #-1940]
.L4:
	ldr	r3, [fp, #-1940]
	cmp	r3, #3
	ble	.L7
	ldr	r3, [fp, #-1944]
	add	r3, r3, #1
	str	r3, [fp, #-1944]
.L3:
	ldr	r3, [fp, #-1944]
	cmp	r3, #2
	ble	.L8
	ldr	r3, [fp, #-1948]
	add	r3, r3, #1
	str	r3, [fp, #-1948]
.L2:
	ldr	r3, [fp, #-1948]
	cmp	r3, #1
	ble	.L9
	mov	r3, #0
	str	r3, [fp, #-1932]
	b	.L10
.L11:
	ldr	r3, [fp, #-1932]
	lsl	r2, r3, #4
	sub	r3, fp, #1920
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r0, [r3]
	ldr	r3, [fp, #-1932]
	lsl	r2, r3, #4
	sub	r3, fp, #1920
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	ip, [r3, #4]
	ldr	r3, [fp, #-1932]
	lsl	r2, r3, #4
	sub	r3, fp, #1920
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-1932]
	lsl	r1, r3, #4
	sub	r3, fp, #1920
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r1
	ldr	r3, [r3, #12]
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r1, [fp, #-1932]
	ldr	r0, .L14+4
	bl	printf
	bl	getchar
	ldr	r3, [fp, #-1932]
	add	r3, r3, #1
	str	r3, [fp, #-1932]
.L10:
	ldr	r3, [fp, #-1932]
	cmp	r3, #119
	ble	.L11
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
