	.file	"60023.c"
	.intel_syntax noprefix
	.text
	.globl	matmul
	.type	matmul, @function
matmul:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	DWORD PTR -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	mov	DWORD PTR -92[rbp], edx
	mov	QWORD PTR -104[rbp], rcx
	mov	QWORD PTR -112[rbp], r8
	mov	QWORD PTR -120[rbp], r9
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -56[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	mov	edx, DWORD PTR -88[rbp]
	movsx	rcx, edx
	sub	rcx, 1
	mov	QWORD PTR -48[rbp], rcx
	movsx	rcx, edx
	mov	r12, rcx
	mov	r13d, 0
	mov	ecx, DWORD PTR -92[rbp]
	movsx	rsi, ecx
	sub	rsi, 1
	mov	QWORD PTR -40[rbp], rsi
	movsx	rsi, ecx
	mov	r10, rsi
	mov	r11d, 0
	mov	DWORD PTR -60[rbp], 0
	jmp	.L2
.L7:
	mov	DWORD PTR -64[rbp], 0
	jmp	.L3
.L6:
	mov	DWORD PTR -68[rbp], 0
	jmp	.L4
.L5:
	mov	esi, DWORD PTR -60[rbp]
	movsx	rdi, esi
	movsx	rsi, edx
	imul	rsi, rdi
	lea	rdi, 0[0+rsi*8]
	mov	rsi, QWORD PTR -112[rbp]
	add	rdi, rsi
	mov	esi, DWORD PTR -68[rbp]
	movsx	rsi, esi
	movsd	xmm1, QWORD PTR [rdi+rsi*8]
	mov	esi, DWORD PTR -68[rbp]
	movsx	rdi, esi
	movsx	rsi, ecx
	imul	rsi, rdi
	lea	rdi, 0[0+rsi*8]
	mov	rsi, QWORD PTR -120[rbp]
	add	rdi, rsi
	mov	esi, DWORD PTR -64[rbp]
	movsx	rsi, esi
	movsd	xmm0, QWORD PTR [rdi+rsi*8]
	mulsd	xmm1, xmm0
	mov	esi, DWORD PTR -60[rbp]
	movsx	rdi, esi
	movsx	rsi, eax
	imul	rsi, rdi
	lea	rdi, 0[0+rsi*8]
	mov	rsi, QWORD PTR -104[rbp]
	add	rdi, rsi
	mov	esi, DWORD PTR -64[rbp]
	movsx	rsi, esi
	movsd	xmm0, QWORD PTR [rdi+rsi*8]
	mov	esi, DWORD PTR -60[rbp]
	movsx	rdi, esi
	movsx	rsi, eax
	imul	rsi, rdi
	lea	rdi, 0[0+rsi*8]
	mov	rsi, QWORD PTR -104[rbp]
	add	rdi, rsi
	addsd	xmm0, xmm1
	mov	esi, DWORD PTR -64[rbp]
	movsx	rsi, esi
	movsd	QWORD PTR [rdi+rsi*8], xmm0
	add	DWORD PTR -68[rbp], 1
.L4:
	mov	esi, DWORD PTR -68[rbp]
	cmp	esi, DWORD PTR -88[rbp]
	jl	.L5
	add	DWORD PTR -64[rbp], 1
.L3:
	mov	esi, DWORD PTR -64[rbp]
	cmp	esi, DWORD PTR -92[rbp]
	jl	.L6
	add	DWORD PTR -60[rbp], 1
.L2:
	mov	esi, DWORD PTR -60[rbp]
	cmp	esi, DWORD PTR -84[rbp]
	jl	.L7
	nop
	nop
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	matmul, .-matmul
	.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	"60023.c"
	.text
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
	.global	matmul
	.syntax unified
	.arm
	.fpu softvfp
	.type	matmul, %function
matmul:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #40
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r4, [fp, #-64]
	sub	r3, r4, #1
	str	r3, [fp, #-52]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	ldr	r5, [fp, #-60]
	sub	r3, r5, #1
	str	r3, [fp, #-36]
	mov	r3, r5
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	ldr	r6, [fp, #-64]
	sub	r3, r6, #1
	str	r3, [fp, #-32]
	mov	r3, r6
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L2
.L7:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L3
.L6:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L4
.L5:
	mov	r2, r5
	ldr	r3, [fp, #-40]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #4]
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, r6
	ldr	r3, [fp, #-48]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	mov	r2, r4
	ldr	r3, [fp, #-40]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-68]
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r0, r4
	ldr	r1, [fp, #-40]
	mul	r1, r0, r1
	lsl	r1, r1, #3
	ldr	r0, [fp, #-68]
	add	r7, r0, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-44]
	lsl	r1, r1, #3
	add	r1, r7, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L4:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L3:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L7
	nop
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	matmul, .-matmul
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
