	.file	"92327095.c"
	.intel_syntax noprefix
	.text
	.globl	cpu_matrix_mult
	.type	cpu_matrix_mult, @function
cpu_matrix_mult:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L7:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L3
.L6:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, xmm2
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L5
	add	DWORD PTR -12[rbp], 1
.L3:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L6
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L7
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cpu_matrix_mult, .-cpu_matrix_mult
	.section	.rodata
.LC2:
	.string	"Time elapsed on CPU: %f ms.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -52[rbp], 2048
	mov	edi, 3333
	call	srand@PLT
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	imul	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	imul	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	imul	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -76[rbp], 0
	jmp	.L9
.L12:
	mov	DWORD PTR -72[rbp], 0
	jmp	.L10
.L11:
	call	rand@PLT
	cdq
	shr	edx, 22
	add	eax, edx
	and	eax, 1023
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -76[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, ecx
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -72[rbp], 1
.L10:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L11
	add	DWORD PTR -76[rbp], 1
.L9:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L12
	mov	DWORD PTR -68[rbp], 0
	jmp	.L13
.L16:
	mov	DWORD PTR -64[rbp], 0
	jmp	.L14
.L15:
	call	rand@PLT
	cdq
	shr	edx, 22
	add	eax, edx
	and	eax, 1023
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, ecx
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -64[rbp], 1
.L14:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L15
	add	DWORD PTR -68[rbp], 1
.L13:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L16
	mov	DWORD PTR -60[rbp], 0
	jmp	.L17
.L20:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -56[rbp], 1
.L18:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L19
	add	DWORD PTR -60[rbp], 1
.L17:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L20
	call	clock@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	ecx, DWORD PTR -52[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	cpu_matrix_mult
	call	clock@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@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	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1093567616
	.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	"92327095.c"
	.text
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.align	2
	.global	cpu_matrix_mult
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpu_matrix_mult, %function
cpu_matrix_mult:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L7:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L3
.L6:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L4
.L5:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r5, [r3]	@ float
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L3:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L7
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	cpu_matrix_mult, .-cpu_matrix_mult
	.global	__aeabi_i2f
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Time elapsed on CPU: %f ms.\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	mov	r3, #2048
	str	r3, [fp, #-44]
	ldr	r0, .L22
	bl	srand
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L9
.L12:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L10
.L11:
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	lsl	r3, r3, #22
	lsr	r3, r3, #22
	lsl	r2, r2, #22
	lsr	r2, r2, #22
	rsbpl	r3, r2, #0
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-44]
	mul	r1, r2, r1
	ldr	r2, [fp, #-64]
	add	r2, r1, r2
	lsl	r2, r2, #2
	ldr	r1, [fp, #-40]
	add	r4, r1, r2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L10:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L9:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L13
.L16:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L14
.L15:
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	lsl	r3, r3, #22
	lsr	r3, r3, #22
	lsl	r2, r2, #22
	lsr	r2, r2, #22
	rsbpl	r3, r2, #0
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-44]
	mul	r1, r2, r1
	ldr	r2, [fp, #-56]
	add	r2, r1, r2
	lsl	r2, r2, #2
	ldr	r1, [fp, #-36]
	add	r4, r1, r2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L14:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L15
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L13:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L16
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L17
.L20:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L18
.L19:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L18:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L19
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L17:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L20
	bl	clock
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	cpu_matrix_mult
	bl	clock
	str	r0, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L22+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L22+8
	bl	printf
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	3333
	.word	1093567616
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
