	.file	"853012.c"
	.intel_syntax noprefix
	.text
	.globl	matrix
	.bss
	.align 32
	.type	matrix, @object
	.size	matrix, 1049600
matrix:
	.zero	1049600
	.text
	.globl	gerarMatrix
	.type	gerarMatrix, @function
gerarMatrix:
.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, 32
	mov	edx, edi
	mov	eax, esi
	mov	WORD PTR -20[rbp], dx
	mov	WORD PTR -24[rbp], ax
	cmp	WORD PTR -20[rbp], 0
	jne	.L2
	mov	BYTE PTR matrix[rip], 48
	jmp	.L31
.L2:
	movsx	edx, WORD PTR -24[rbp]
	movzx	eax, WORD PTR -20[rbp]
	sub	eax, 1
	cwde
	mov	esi, edx
	mov	edi, eax
	call	gerarMatrix
	movsx	eax, WORD PTR -20[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	eax, xmm0
	mov	WORD PTR -4[rbp], ax
	movsx	eax, WORD PTR -20[rbp]
	sub	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	eax, xmm0
	mov	WORD PTR -2[rbp], ax
	cmp	WORD PTR -24[rbp], 0
	jne	.L4
	mov	WORD PTR -8[rbp], 0
	jmp	.L5
.L10:
	movzx	eax, WORD PTR -8[rbp]
	cmp	ax, WORD PTR -2[rbp]
	jge	.L6
	movsx	rdx, WORD PTR -2[rbp]
	movsx	eax, WORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 10
	add	rax, rcx
	lea	rcx, matrix[rip]
	add	rcx, rax
	movsx	eax, WORD PTR -8[rbp]
	movsx	esi, WORD PTR -2[rbp]
	movsx	rdi, esi
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 10
	add	rax, rsi
	lea	rsi, [rdi+rax]
	lea	rax, matrix[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -4[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L7
.L6:
	movsx	rdx, WORD PTR -4[rbp]
	movsx	eax, WORD PTR -8[rbp]
	movsx	ecx, WORD PTR -2[rbp]
	sub	eax, ecx
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 10
	add	rax, rcx
	lea	rcx, matrix[rip]
	add	rcx, rax
	movsx	eax, WORD PTR -8[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 10
	add	rax, rsi
	lea	rsi, matrix[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	movzx	eax, WORD PTR -2[rbp]
	mov	WORD PTR -6[rbp], ax
	jmp	.L8
.L9:
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -6[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -6[rbp]
	xor	ecx, 1
	movsx	rsi, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], cl
	movzx	eax, WORD PTR -6[rbp]
	add	eax, 1
	mov	WORD PTR -6[rbp], ax
.L8:
	movzx	eax, WORD PTR -6[rbp]
	cmp	ax, WORD PTR -4[rbp]
	jl	.L9
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -4[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L7:
	movzx	eax, WORD PTR -8[rbp]
	add	eax, 1
	mov	WORD PTR -8[rbp], ax
.L5:
	movzx	eax, WORD PTR -8[rbp]
	cmp	ax, WORD PTR -4[rbp]
	jl	.L10
	jmp	.L31
.L4:
	cmp	WORD PTR -24[rbp], 1
	jne	.L11
	mov	WORD PTR -8[rbp], 0
	jmp	.L12
.L17:
	movzx	eax, WORD PTR -8[rbp]
	cmp	ax, WORD PTR -2[rbp]
	jge	.L13
	movsx	rdx, WORD PTR -2[rbp]
	movsx	eax, WORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 10
	add	rax, rcx
	lea	rcx, matrix[rip]
	add	rcx, rax
	movsx	eax, WORD PTR -8[rbp]
	movsx	esi, WORD PTR -2[rbp]
	movsx	rdi, esi
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 10
	add	rax, rsi
	lea	rsi, [rdi+rax]
	lea	rax, matrix[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	movzx	eax, WORD PTR -2[rbp]
	mov	WORD PTR -6[rbp], ax
	jmp	.L14
.L15:
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -6[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -6[rbp]
	xor	ecx, 1
	movsx	rsi, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], cl
	movzx	eax, WORD PTR -6[rbp]
	add	eax, 1
	mov	WORD PTR -6[rbp], ax
.L14:
	movzx	eax, WORD PTR -6[rbp]
	cmp	ax, WORD PTR -4[rbp]
	jl	.L15
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -4[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L16
.L13:
	movsx	rdx, WORD PTR -2[rbp]
	movsx	eax, WORD PTR -8[rbp]
	movsx	ecx, WORD PTR -2[rbp]
	sub	eax, ecx
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 10
	add	rax, rcx
	lea	rcx, matrix[rip]
	add	rcx, rax
	movsx	eax, WORD PTR -8[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 10
	add	rax, rsi
	lea	rsi, matrix[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	movsx	rdx, WORD PTR -2[rbp]
	movsx	eax, WORD PTR -8[rbp]
	movsx	ecx, WORD PTR -2[rbp]
	sub	eax, ecx
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 10
	add	rax, rcx
	lea	rcx, matrix[rip]
	add	rcx, rax
	movsx	eax, WORD PTR -8[rbp]
	movsx	esi, WORD PTR -2[rbp]
	movsx	rdi, esi
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 10
	add	rax, rsi
	lea	rsi, [rdi+rax]
	lea	rax, matrix[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -4[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L16:
	movzx	eax, WORD PTR -8[rbp]
	add	eax, 1
	mov	WORD PTR -8[rbp], ax
.L12:
	movzx	eax, WORD PTR -8[rbp]
	cmp	ax, WORD PTR -4[rbp]
	jl	.L17
	jmp	.L31
.L11:
	cmp	WORD PTR -24[rbp], 2
	jne	.L18
	mov	WORD PTR -8[rbp], 0
	jmp	.L19
.L24:
	movzx	eax, WORD PTR -8[rbp]
	cmp	ax, WORD PTR -2[rbp]
	jge	.L20
	movsx	rdx, WORD PTR -2[rbp]
	movsx	eax, WORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 10
	add	rax, rcx
	lea	rcx, matrix[rip]
	add	rcx, rax
	movsx	eax, WORD PTR -8[rbp]
	movsx	esi, WORD PTR -2[rbp]
	movsx	rdi, esi
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 10
	add	rax, rsi
	lea	rsi, [rdi+rax]
	lea	rax, matrix[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	WORD PTR -6[rbp], 0
	jmp	.L21
.L22:
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -6[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -6[rbp]
	xor	ecx, 1
	movsx	rsi, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], cl
	movzx	eax, WORD PTR -6[rbp]
	add	eax, 1
	mov	WORD PTR -6[rbp], ax
.L21:
	movzx	eax, WORD PTR -6[rbp]
	cmp	ax, WORD PTR -2[rbp]
	jl	.L22
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -4[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L23
.L20:
	movsx	rdx, WORD PTR -2[rbp]
	movsx	eax, WORD PTR -8[rbp]
	movsx	esi, WORD PTR -2[rbp]
	sub	eax, esi
	mov	ecx, eax
	movsx	eax, WORD PTR -2[rbp]
	movsx	rsi, eax
	movsx	rcx, ecx
	mov	rax, rcx
	sal	rax, 10
	add	rax, rcx
	lea	rcx, [rsi+rax]
	lea	rax, matrix[rip]
	add	rcx, rax
	movsx	eax, WORD PTR -8[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 10
	add	rax, rsi
	lea	rsi, matrix[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	movsx	rdx, WORD PTR -2[rbp]
	movsx	eax, WORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 10
	add	rax, rcx
	lea	rcx, matrix[rip]
	add	rcx, rax
	movsx	eax, WORD PTR -8[rbp]
	movsx	esi, WORD PTR -2[rbp]
	movsx	rdi, esi
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 10
	add	rax, rsi
	lea	rsi, [rdi+rax]
	lea	rax, matrix[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -4[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L23:
	movzx	eax, WORD PTR -8[rbp]
	add	eax, 1
	mov	WORD PTR -8[rbp], ax
.L19:
	movzx	eax, WORD PTR -8[rbp]
	cmp	ax, WORD PTR -4[rbp]
	jl	.L24
	jmp	.L31
.L18:
	mov	WORD PTR -8[rbp], 0
	jmp	.L25
.L30:
	movzx	eax, WORD PTR -8[rbp]
	cmp	ax, WORD PTR -2[rbp]
	jge	.L26
	movsx	rdx, WORD PTR -2[rbp]
	movsx	eax, WORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 10
	add	rax, rcx
	lea	rcx, matrix[rip]
	add	rcx, rax
	movsx	eax, WORD PTR -8[rbp]
	movsx	esi, WORD PTR -2[rbp]
	movsx	rdi, esi
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 10
	add	rax, rsi
	lea	rsi, [rdi+rax]
	lea	rax, matrix[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L27
.L26:
	movsx	rdx, WORD PTR -4[rbp]
	movsx	eax, WORD PTR -8[rbp]
	movsx	ecx, WORD PTR -2[rbp]
	sub	eax, ecx
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 10
	add	rax, rcx
	lea	rcx, matrix[rip]
	add	rcx, rax
	movsx	eax, WORD PTR -8[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 10
	add	rax, rsi
	lea	rsi, matrix[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	WORD PTR -6[rbp], 0
	jmp	.L28
.L29:
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -6[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -6[rbp]
	xor	ecx, 1
	movsx	rsi, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rsi]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], cl
	movzx	eax, WORD PTR -6[rbp]
	add	eax, 1
	mov	WORD PTR -6[rbp], ax
.L28:
	movzx	eax, WORD PTR -6[rbp]
	cmp	ax, WORD PTR -2[rbp]
	jl	.L29
	movsx	eax, WORD PTR -8[rbp]
	movsx	edx, WORD PTR -4[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L27:
	movzx	eax, WORD PTR -8[rbp]
	add	eax, 1
	mov	WORD PTR -8[rbp], ax
.L25:
	movzx	eax, WORD PTR -8[rbp]
	cmp	ax, WORD PTR -4[rbp]
	jl	.L30
.L31:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gerarMatrix, .-gerarMatrix
	.section	.rodata
.LC1:
	.string	"%hd %hd"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L33
.L36:
	movzx	eax, WORD PTR -16[rbp]
	mov	edx, eax
	sar	dx, 15
	shr	dx, 14
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	WORD PTR -16[rbp], ax
	movzx	eax, WORD PTR -14[rbp]
	cwde
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	eax, xmm0
	mov	WORD PTR -10[rbp], ax
	movzx	eax, WORD PTR -16[rbp]
	movsx	edx, ax
	movzx	eax, WORD PTR -14[rbp]
	cwde
	mov	esi, edx
	mov	edi, eax
	call	gerarMatrix
	mov	WORD PTR -12[rbp], 0
	jmp	.L34
.L35:
	movsx	eax, WORD PTR -12[rbp]
	movsx	edx, WORD PTR -10[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, matrix[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	movsx	eax, WORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, matrix[rip]
	add	rax, rdx
	mov	rdi, rax
	call	puts@PLT
	movzx	eax, WORD PTR -12[rbp]
	add	eax, 1
	mov	WORD PTR -12[rbp], ax
.L34:
	movzx	eax, WORD PTR -12[rbp]
	cmp	ax, WORD PTR -10[rbp]
	jl	.L35
.L33:
	lea	rdx, -16[rbp]
	lea	rax, -14[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L36
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1073741824
	.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	"853012.c"
	.text
	.comm	matrix,1049600,4
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.align	2
	.global	gerarMatrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	gerarMatrix, %function
gerarMatrix:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	mov	r2, r1
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-16]	@ movhi
	ldrsh	r3, [fp, #-14]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L32
	mov	r2, #48
	strb	r2, [r3]
	b	.L31
.L2:
	ldrh	r3, [fp, #-14]
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	ldrsh	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	gerarMatrix
	ldrsh	r3, [fp, #-14]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	strh	r3, [fp, #-8]	@ movhi
	ldrsh	r3, [fp, #-14]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrsh	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	b	.L5
.L10:
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-6]
	cmp	r2, r3
	bge	.L6
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-6]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r2, .L32
	add	r0, r3, r2
	ldrsh	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r3, r3, r2
	ldrsh	r2, [fp, #-6]
	mov	r1, r3
	bl	memcpy
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-8]
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #0
	strb	r2, [r3]
	b	.L7
.L6:
	ldrsh	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r0, r3, r2
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-6]
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r3, r3, r2
	ldrsh	r2, [fp, #-8]
	mov	r1, r3
	bl	memcpy
	ldrh	r3, [fp, #-6]	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	b	.L8
.L9:
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-10]
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-10]
	eor	r3, r3, #1
	and	ip, r3, #255
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, ip
	strb	r2, [r3]
	ldrsh	r3, [fp, #-10]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
.L8:
	ldrsh	r2, [fp, #-10]
	ldrsh	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L9
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-8]
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #0
	strb	r2, [r3]
.L7:
	ldrsh	r3, [fp, #-12]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
.L5:
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L10
	b	.L31
.L4:
	ldrsh	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L11
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	b	.L12
.L17:
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-6]
	cmp	r2, r3
	bge	.L13
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-6]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r2, .L32
	add	r0, r3, r2
	ldrsh	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r3, r3, r2
	ldrsh	r2, [fp, #-6]
	mov	r1, r3
	bl	memcpy
	ldrh	r3, [fp, #-6]	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	b	.L14
.L15:
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-10]
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-10]
	eor	r3, r3, #1
	and	ip, r3, #255
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, ip
	strb	r2, [r3]
	ldrsh	r3, [fp, #-10]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
.L14:
	ldrsh	r2, [fp, #-10]
	ldrsh	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L15
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-8]
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #0
	strb	r2, [r3]
	b	.L16
.L13:
	ldrsh	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r0, r3, r2
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-6]
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r3, r3, r2
	ldrsh	r2, [fp, #-6]
	mov	r1, r3
	bl	memcpy
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-6]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r2, .L32
	add	r0, r3, r2
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-6]
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r3, r3, r2
	ldrsh	r2, [fp, #-6]
	mov	r1, r3
	bl	memcpy
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-8]
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #0
	strb	r2, [r3]
.L16:
	ldrsh	r3, [fp, #-12]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
.L12:
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L17
	b	.L31
.L11:
	ldrsh	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L18
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	b	.L19
.L24:
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-6]
	cmp	r2, r3
	bge	.L20
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-6]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r2, .L32
	add	r0, r3, r2
	ldrsh	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r3, r3, r2
	ldrsh	r2, [fp, #-6]
	mov	r1, r3
	bl	memcpy
	mov	r3, #0
	strh	r3, [fp, #-10]	@ movhi
	b	.L21
.L22:
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-10]
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-10]
	eor	r3, r3, #1
	and	ip, r3, #255
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, ip
	strb	r2, [r3]
	ldrsh	r3, [fp, #-10]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
.L21:
	ldrsh	r2, [fp, #-10]
	ldrsh	r3, [fp, #-6]
	cmp	r2, r3
	blt	.L22
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-8]
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #0
	strb	r2, [r3]
	b	.L23
.L20:
	ldrsh	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r0, r3, r2
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-6]
	sub	r2, r2, r3
	ldrsh	r1, [fp, #-6]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r2, .L32
	add	r3, r3, r2
	ldrsh	r2, [fp, #-6]
	mov	r1, r3
	bl	memcpy
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-6]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r2, .L32
	add	r0, r3, r2
	ldrsh	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r3, r3, r2
	ldrsh	r2, [fp, #-6]
	mov	r1, r3
	bl	memcpy
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-8]
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #0
	strb	r2, [r3]
.L23:
	ldrsh	r3, [fp, #-12]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
.L19:
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L24
	b	.L31
.L18:
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	b	.L25
.L30:
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-6]
	cmp	r2, r3
	bge	.L26
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-6]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r2, .L32
	add	r0, r3, r2
	ldrsh	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r3, r3, r2
	ldrsh	r2, [fp, #-6]
	mov	r1, r3
	bl	memcpy
	b	.L27
.L26:
	ldrsh	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r0, r3, r2
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-6]
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L32
	add	r3, r3, r2
	ldrsh	r2, [fp, #-8]
	mov	r1, r3
	bl	memcpy
	mov	r3, #0
	strh	r3, [fp, #-10]	@ movhi
	b	.L28
.L29:
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-10]
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-10]
	eor	r3, r3, #1
	and	ip, r3, #255
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, ip
	strb	r2, [r3]
	ldrsh	r3, [fp, #-10]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
.L28:
	ldrsh	r2, [fp, #-10]
	ldrsh	r3, [fp, #-6]
	cmp	r2, r3
	blt	.L29
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-8]
	ldr	r0, .L32
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #0
	strb	r2, [r3]
.L27:
	ldrsh	r3, [fp, #-12]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
.L25:
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L30
.L31:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	matrix
	.size	gerarMatrix, .-gerarMatrix
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%hd %hd\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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L35
.L38:
	ldrsh	r3, [fp, #-16]
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	ldrsh	r3, [fp, #-14]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	strh	r3, [fp, #-10]	@ movhi
	ldrsh	r3, [fp, #-14]
	ldrsh	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	gerarMatrix
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	b	.L36
.L37:
	ldrsh	r2, [fp, #-12]
	ldrsh	r1, [fp, #-10]
	ldr	r0, .L41+4
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #0
	strb	r2, [r3]
	ldrsh	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L41+4
	add	r3, r3, r2
	mov	r0, r3
	bl	puts
	ldrsh	r3, [fp, #-12]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
.L36:
	ldrsh	r2, [fp, #-12]
	ldrsh	r3, [fp, #-10]
	cmp	r2, r3
	blt	.L37
.L35:
	sub	r2, fp, #16
	sub	r3, fp, #14
	mov	r1, r3
	ldr	r0, .L41+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L38
	mov	r3, #0
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC1
	.word	matrix
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
