	.file	"244482.c"
	.intel_syntax noprefix
	.text
	.globl	lock
	.data
	.align 8
	.type	lock, @object
	.size	lock, 8
lock:
	.quad	536870913
	.globl	processors
	.bss
	.align 4
	.type	processors, @object
	.size	processors, 4
processors:
	.zero	4
	.globl	read_matrix
	.align 4
	.type	read_matrix, @object
	.size	read_matrix, 4
read_matrix:
	.zero	4
	.globl	finish
	.align 4
	.type	finish, @object
	.size	finish, 4
finish:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 8000000
a:
	.zero	8000000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 8000000
b:
	.zero	8000000
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 8000000
c:
	.zero	8000000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	nop
.L2:
	mov	rax, QWORD PTR lock[rip]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR processors[rip]
	add	eax, 1
	mov	DWORD PTR processors[rip], eax
	mov	eax, DWORD PTR processors[rip]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR read_matrix[rip]
	test	eax, eax
	jne	.L3
	mov	DWORD PTR read_matrix[rip], 1
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, a[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -24[rbp], 1
.L4:
	mov	edx, DWORD PTR n[rip]
	mov	eax, DWORD PTR n[rip]
	imul	eax, edx
	cmp	DWORD PTR -24[rbp], eax
	jl	.L5
	mov	DWORD PTR -24[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, b[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -24[rbp], 1
.L6:
	mov	edx, DWORD PTR n[rip]
	mov	eax, DWORD PTR n[rip]
	imul	eax, edx
	cmp	DWORD PTR -24[rbp], eax
	jl	.L7
.L3:
	mov	rax, QWORD PTR lock[rip]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR n[rip]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	imul	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR n[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L8
.L13:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR n[rip]
	imul	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, c[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR n[rip]
	imul	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, c[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR n[rip]
	imul	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, a[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR n[rip]
	imul	eax, DWORD PTR -16[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, ecx
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, b[rip]
	mov	rax, QWORD PTR [rcx+rax]
	imul	rdx, rax
	mov	eax, DWORD PTR n[rip]
	imul	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, ecx
	lea	rcx, [rsi+rdx]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, c[rip]
	mov	QWORD PTR [rdx+rax], rcx
	add	DWORD PTR -16[rbp], 1
.L10:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L11
	add	DWORD PTR -20[rbp], 1
.L9:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L12
	add	DWORD PTR -24[rbp], 1
.L8:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L13
	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	"244482.c"
	.text
	.global	lock
	.data
	.align	2
	.type	lock, %object
	.size	lock, 4
lock:
	.word	536870913
	.global	processors
	.bss
	.align	2
	.type	processors, %object
	.size	processors, 4
processors:
	.space	4
	.global	read_matrix
	.align	2
	.type	read_matrix, %object
	.size	read_matrix, 4
read_matrix:
	.space	4
	.global	finish
	.align	2
	.type	finish, %object
	.size	finish, 4
finish:
	.space	4
	.comm	n,4,4
	.comm	a,4000000,4
	.comm	b,4000000,4
	.comm	c,4000000,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%ld\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	nop
.L2:
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L15+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15+4
	str	r3, [r2]
	ldr	r3, .L15+4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L15+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r1, .L15+12
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L4
.L5:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, .L15+20
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L15+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L4:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	ldr	r2, .L15+12
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L5
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L6
.L7:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, .L15+28
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L15+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L6:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	ldr	r2, .L15+12
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L7
.L3:
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, .L15+12
	ldr	r3, [r3]
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, .L15+12
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	b	.L8
.L13:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L9
.L12:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, .L15+32
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L10
.L11:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, .L15+32
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L15+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, .L15+20
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L15+12
	ldr	r2, [r2]
	ldr	r0, [fp, #-20]
	mul	r0, r2, r0
	ldr	r2, [fp, #-24]
	add	r2, r0, r2
	ldr	r0, .L15+28
	ldr	r2, [r0, r2, lsl #2]
	mul	r2, r3, r2
	ldr	r3, .L15+12
	ldr	r3, [r3]
	ldr	r0, [fp, #-28]
	mul	r0, r3, r0
	ldr	r3, [fp, #-24]
	add	r3, r0, r3
	add	r2, r1, r2
	ldr	r1, .L15+32
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L10:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L9:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L8:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L13
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	lock
	.word	processors
	.word	read_matrix
	.word	n
	.word	.LC0
	.word	a
	.word	.LC1
	.word	b
	.word	c
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
