	.file	"173576766.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"%% enter first, last, inc:"
.LC2:
	.string	"%d%d%d"
.LC3:
	.string	"%% %d %d %d \n"
.LC4:
	.string	"No transpose"
.LC6:
	.string	"It appears all is well"
	.align 8
.LC7:
	.string	"At least one test is suspicious"
	.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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -84[rbp], 1
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -72[rbp], xmm0
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -88[rbp]
	lea	rdx, -92[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, DWORD PTR -88[rbp]
	cdq
	idiv	esi
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	imul	eax, edx
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, DWORD PTR -88[rbp]
	cdq
	idiv	esi
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	imul	eax, edx
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -96[rbp]
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR -88[rbp]
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -96[rbp]
.L3:
	mov	DWORD PTR -96[rbp], eax
	mov	ecx, DWORD PTR -88[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -76[rbp], 1
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -80[rbp], eax
	jmp	.L4
.L10:
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -100[rbp], eax
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -104[rbp]
	imul	eax, edx
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	ecx, DWORD PTR -100[rbp]
	mov	esi, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	edi, eax
	call	RandomMatrix@PLT
	mov	ecx, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	esi, 1
	mov	edi, eax
	call	RandomMatrix@PLT
	mov	ecx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	edi, eax
	call	RandomMatrix@PLT
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	r8, -100[rbp]
	mov	rdi, QWORD PTR -56[rbp]
	lea	rcx, -72[rbp]
	lea	rdx, -104[rbp]
	lea	rax, -108[rbp]
	sub	rsp, 8
	lea	rsi, -84[rbp]
	push	rsi
	push	QWORD PTR -24[rbp]
	lea	rsi, -72[rbp]
	push	rsi
	lea	rsi, -84[rbp]
	push	rsi
	push	QWORD PTR -48[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	call	dgemv_@PLT
	add	rsp, 48
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	ecx, DWORD PTR -100[rbp]
	mov	esi, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	rdi, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	push	1
	push	QWORD PTR -40[rbp]
	mov	r9d, 1
	mov	r8, rdi
	mov	edi, eax
	call	MyGemv@PLT
	add	rsp, 16
	mov	edi, DWORD PTR -108[rbp]
	mov	ecx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	r9d, edi
	mov	r8, rsi
	mov	esi, 1
	mov	edi, eax
	call	MaxAbsDiff@PLT
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	movsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -64[rbp]
	jbe	.L16
	movsd	xmm0, QWORD PTR -16[rbp]
	jmp	.L7
.L16:
	movsd	xmm0, QWORD PTR -64[rbp]
.L7:
	movsd	QWORD PTR -64[rbp], xmm0
	movsd	xmm0, QWORD PTR -64[rbp]
	comisd	xmm0, QWORD PTR .LC5[rip]
	jbe	.L8
	mov	DWORD PTR -76[rbp], 0
.L8:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -88[rbp]
	sub	DWORD PTR -80[rbp], eax
.L4:
	mov	eax, DWORD PTR -96[rbp]
	cmp	DWORD PTR -80[rbp], eax
	jge	.L10
	cmp	DWORD PTR -76[rbp], 0
	je	.L11
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L12
.L11:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L12:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC5:
	.long	-500134854
	.long	1044740494
	.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	"173576766.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%% enter first, last, inc:\000"
	.align	2
.LC1:
	.ascii	"%d%d%d\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"%% %d %d %d \012\000"
	.align	2
.LC3:
	.ascii	"No transpose\000"
	.global	__aeabi_dcmpgt
	.align	2
.LC4:
	.ascii	"It appears all is well\000"
	.align	2
.LC5:
	.ascii	"At least one test is suspicious\000"
	.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 = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-68]
	mov	r2, #0
	ldr	r3, .L17+4
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r0, .L17+8
	bl	printf
	sub	r3, fp, #72
	sub	r2, fp, #76
	sub	r1, fp, #80
	ldr	r0, .L17+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-72]
	mul	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-72]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-72]
	mul	r3, r2, r3
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-72]
	b	.L3
.L2:
	ldr	r3, [fp, #-80]
.L3:
	str	r3, [fp, #-80]
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-72]
	ldr	r0, .L17+16
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-64]
	b	.L4
.L10:
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-88]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-92]
	ldr	r1, [fp, #-88]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-56]
	bl	RandomMatrix
	ldr	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-52]
	mov	r1, #1
	bl	RandomMatrix
	ldr	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-44]
	mov	r1, #1
	bl	RandomMatrix
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	memcpy
	sub	r0, fp, #36
	sub	r2, fp, #88
	sub	r1, fp, #92
	sub	r3, fp, #68
	str	r3, [sp, #24]
	ldr	r3, [fp, #-40]
	str	r3, [sp, #20]
	sub	r3, fp, #36
	str	r3, [sp, #16]
	sub	r3, fp, #68
	str	r3, [sp, #12]
	ldr	r3, [fp, #-52]
	str	r3, [sp, #8]
	sub	r3, fp, #84
	str	r3, [sp, #4]
	ldr	r3, [fp, #-56]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L17+20
	bl	dgemv_
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	memcpy
	ldr	r0, [fp, #-92]
	ldr	r1, [fp, #-88]
	ldr	r2, [fp, #-84]
	mov	r3, #1
	str	r3, [sp, #12]
	ldr	r3, [fp, #-48]
	str	r3, [sp, #8]
	mov	r3, #1
	str	r3, [sp, #4]
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-56]
	bl	MyGemv
	ldr	r0, [fp, #-92]
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-92]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-40]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-48]
	mov	r1, #1
	bl	MaxAbsDiff
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	b	.L7
.L16:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
.L7:
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, .L17+24
	ldr	r3, .L17+28
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	mov	r3, #0
	str	r3, [fp, #-60]
.L8:
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r0, [fp, #-44]
	bl	free
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-64]
	sub	r3, r2, r3
	str	r3, [fp, #-64]
.L4:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	bge	.L10
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L17+32
	bl	puts
	b	.L12
.L11:
	ldr	r0, .L17+36
	bl	puts
.L12:
	mov	r0, #0
	bl	exit
.L18:
	.align	2
.L17:
	.word	.LC6
	.word	1072693248
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	-500134854
	.word	1044740494
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
