	.file	"850476.c"
	.intel_syntax noprefix
	.text
	.local	palette
	.comm	palette,524288,32
	.local	pal_size
	.comm	pal_size,4,4
	.local	m_a
	.comm	m_a,80000,32
	.local	m_b
	.comm	m_b,80000,32
	.section	.rodata
.LC0:
	.string	"%x"
.LC1:
	.string	"r"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	cmp	DWORD PTR -36[rbp], 2
	jle	.L2
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -28[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 1
	je	.L3
	mov	DWORD PTR -24[rbp], 1
.L3:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L4
	mov	DWORD PTR -24[rbp], 1
.L4:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	load_palette
	mov	DWORD PTR pal_size[rip], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR pal_size[rip]
	test	eax, eax
	je	.L6
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	print_nearest
	jmp	.L5
.L6:
	mov	DWORD PTR -24[rbp], 1
	jmp	.L5
.L2:
	mov	DWORD PTR -24[rbp], 1
.L5:
	mov	eax, DWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"%u=%x"
	.text
	.type	load_palette, @function
load_palette:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -160[rbp], 0
	mov	rdx, QWORD PTR -168[rbp]
	lea	rax, -144[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -152[rbp], rax
	jmp	.L10
.L14:
	movzx	eax, BYTE PTR -144[rbp]
	cmp	al, 35
	jne	.L11
	mov	rdx, QWORD PTR -168[rbp]
	lea	rax, -144[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -152[rbp], rax
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -160[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, palette[rip]
	add	rax, rdx
	lea	rcx, 4[rax]
	mov	eax, DWORD PTR -160[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, palette[rip]
	add	rdx, rax
	lea	rax, -144[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 2
	je	.L12
	mov	DWORD PTR -160[rbp], 0
	jmp	.L13
.L12:
	add	DWORD PTR -160[rbp], 1
	mov	rdx, QWORD PTR -168[rbp]
	lea	rax, -144[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -152[rbp], rax
.L10:
	cmp	DWORD PTR -160[rbp], 524287
	ja	.L13
	cmp	QWORD PTR -152[rbp], 0
	jne	.L14
.L13:
	mov	eax, DWORD PTR -160[rbp]
	mov	DWORD PTR pal_size[rip], eax
	mov	eax, DWORD PTR -160[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	load_palette, .-load_palette
	.section	.rodata
.LC14:
	.string	"%u #%x\n"
	.text
	.type	print_nearest, @function
print_nearest:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	DWORD PTR -292[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsd	xmm0, QWORD PTR .LC3[rip]
	movsd	QWORD PTR -160[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	movsd	QWORD PTR -152[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC5[rip]
	movsd	QWORD PTR -144[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC6[rip]
	movsd	QWORD PTR -136[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	movsd	QWORD PTR -128[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC8[rip]
	movsd	QWORD PTR -120[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC9[rip]
	movsd	QWORD PTR -112[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC10[rip]
	movsd	QWORD PTR -104[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC11[rip]
	movsd	QWORD PTR -96[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -224[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -216[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -208[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -192[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -184[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -176[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC13[rip]
	movsd	QWORD PTR -264[rbp], xmm0
	mov	DWORD PTR -276[rbp], 0
	mov	DWORD PTR -280[rbp], 0
	jmp	.L18
.L41:
	mov	eax, DWORD PTR -292[rbp]
	shr	eax, 16
	movzx	eax, al
	mov	eax, eax
	test	rax, rax
	js	.L19
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L20
.L19:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L20:
	movsd	QWORD PTR -224[rbp], xmm0
	mov	eax, DWORD PTR -292[rbp]
	shr	eax, 8
	movzx	eax, al
	mov	eax, eax
	test	rax, rax
	js	.L21
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L22
.L21:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L22:
	movsd	QWORD PTR -216[rbp], xmm0
	mov	eax, DWORD PTR -292[rbp]
	movzx	eax, al
	mov	eax, eax
	test	rax, rax
	js	.L23
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L24
.L23:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L24:
	movsd	QWORD PTR -208[rbp], xmm0
	mov	eax, DWORD PTR -280[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, palette[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	shr	eax, 16
	movzx	eax, al
	mov	eax, eax
	test	rax, rax
	js	.L25
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L26
.L25:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L26:
	movsd	QWORD PTR -192[rbp], xmm0
	mov	eax, DWORD PTR -280[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, palette[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	shr	eax, 8
	movzx	eax, al
	mov	eax, eax
	test	rax, rax
	js	.L27
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L28
.L27:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L28:
	movsd	QWORD PTR -184[rbp], xmm0
	mov	eax, DWORD PTR -280[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, palette[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	movzx	eax, al
	mov	eax, eax
	test	rax, rax
	js	.L29
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L30
.L29:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L30:
	movsd	QWORD PTR -176[rbp], xmm0
	mov	DWORD PTR -272[rbp], 0
	jmp	.L31
.L34:
	mov	DWORD PTR -268[rbp], 0
	jmp	.L32
.L33:
	mov	ecx, DWORD PTR -268[rbp]
	mov	edx, DWORD PTR -272[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movsd	xmm0, QWORD PTR -160[rbp+rax*8]
	mov	ecx, DWORD PTR -268[rbp]
	mov	edx, DWORD PTR -272[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movsd	QWORD PTR -80[rbp+rax*8], xmm0
	add	DWORD PTR -268[rbp], 1
.L32:
	cmp	DWORD PTR -268[rbp], 2
	jbe	.L33
	add	DWORD PTR -272[rbp], 1
.L31:
	cmp	DWORD PTR -272[rbp], 2
	jbe	.L34
	lea	rdx, -224[rbp]
	lea	rax, -80[rbp]
	mov	r9, rdx
	mov	r8, rax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 3
	mov	edi, 3
	call	multiply_varm
	movsd	xmm0, QWORD PTR -80[rbp]
	movsd	QWORD PTR -224[rbp], xmm0
	movsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -216[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -208[rbp], xmm0
	mov	DWORD PTR -272[rbp], 0
	jmp	.L35
.L38:
	mov	DWORD PTR -268[rbp], 0
	jmp	.L36
.L37:
	mov	ecx, DWORD PTR -268[rbp]
	mov	edx, DWORD PTR -272[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movsd	xmm0, QWORD PTR -160[rbp+rax*8]
	mov	ecx, DWORD PTR -268[rbp]
	mov	edx, DWORD PTR -272[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movsd	QWORD PTR -80[rbp+rax*8], xmm0
	add	DWORD PTR -268[rbp], 1
.L36:
	cmp	DWORD PTR -268[rbp], 2
	jbe	.L37
	add	DWORD PTR -272[rbp], 1
.L35:
	cmp	DWORD PTR -272[rbp], 2
	jbe	.L38
	lea	rdx, -192[rbp]
	lea	rax, -80[rbp]
	mov	r9, rdx
	mov	r8, rax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 3
	mov	edi, 3
	call	multiply_varm
	movsd	xmm0, QWORD PTR -80[rbp]
	movsd	QWORD PTR -192[rbp], xmm0
	movsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -184[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -176[rbp], xmm0
	movsd	xmm0, QWORD PTR -224[rbp]
	movsd	xmm1, QWORD PTR -192[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -256[rbp], xmm0
	movsd	xmm0, QWORD PTR -216[rbp]
	movsd	xmm1, QWORD PTR -184[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -248[rbp], xmm0
	movsd	xmm0, QWORD PTR -208[rbp]
	movsd	xmm1, QWORD PTR -176[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -240[rbp], xmm0
	movsd	xmm0, QWORD PTR -256[rbp]
	movapd	xmm1, xmm0
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -248[rbp]
	mulsd	xmm0, xmm0
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -240[rbp]
	mulsd	xmm0, xmm0
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	mov	QWORD PTR -232[rbp], rax
	movsd	xmm0, QWORD PTR -264[rbp]
	comisd	xmm0, QWORD PTR -232[rbp]
	jbe	.L39
	movsd	xmm0, QWORD PTR -232[rbp]
	movsd	QWORD PTR -264[rbp], xmm0
	mov	eax, DWORD PTR -280[rbp]
	mov	DWORD PTR -276[rbp], eax
.L39:
	add	DWORD PTR -280[rbp], 1
.L18:
	mov	eax, DWORD PTR pal_size[rip]
	cmp	DWORD PTR -280[rbp], eax
	jb	.L41
	mov	eax, DWORD PTR -276[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, palette[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -276[rbp]
	lea	rcx, 0[0+rax*8]
	lea	rax, palette[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	print_nearest, .-print_nearest
	.section	.rodata
	.align 8
.LC15:
	.string	"Size of a matrix is too big, max size is: %d\n"
	.align 8
.LC16:
	.string	"Number of destination matrix columns should be the same as a number of source matrix rows: columns=%lu, rows=%lu\n"
	.text
	.type	multiply_varm, @function
multiply_varm:
.LFB3:
	.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	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -88[rbp], r8
	mov	QWORD PTR -96[rbp], r9
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -56[rbp], 100
	ja	.L45
	cmp	QWORD PTR -64[rbp], 100
	ja	.L45
	cmp	QWORD PTR -72[rbp], 100
	ja	.L45
	cmp	QWORD PTR -80[rbp], 100
	jbe	.L46
.L45:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 100
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	QWORD PTR -40[rbp], 0
	jmp	.L47
.L50:
	mov	QWORD PTR -32[rbp], 0
	jmp	.L48
.L49:
	mov	rax, QWORD PTR -64[rbp]
	imul	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	add	QWORD PTR -32[rbp], 1
.L48:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jb	.L49
	add	QWORD PTR -40[rbp], 1
.L47:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jb	.L50
	jmp	.L44
.L46:
	mov	rax, QWORD PTR -64[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	je	.L52
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	QWORD PTR -40[rbp], 0
	jmp	.L53
.L56:
	mov	QWORD PTR -32[rbp], 0
	jmp	.L54
.L55:
	mov	rax, QWORD PTR -64[rbp]
	imul	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	add	QWORD PTR -32[rbp], 1
.L54:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jb	.L55
	add	QWORD PTR -40[rbp], 1
.L53:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jb	.L56
	jmp	.L44
.L52:
	mov	QWORD PTR -40[rbp], 0
	jmp	.L57
.L60:
	mov	QWORD PTR -32[rbp], 0
	jmp	.L58
.L59:
	mov	rax, QWORD PTR -64[rbp]
	imul	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -32[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, m_a[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	mov	rax, QWORD PTR -64[rbp]
	imul	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	add	QWORD PTR -32[rbp], 1
.L58:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jb	.L59
	add	QWORD PTR -40[rbp], 1
.L57:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jb	.L60
	mov	QWORD PTR -40[rbp], 0
	jmp	.L61
.L64:
	mov	QWORD PTR -32[rbp], 0
	jmp	.L62
.L63:
	mov	rax, QWORD PTR -80[rbp]
	imul	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -32[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, m_b[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	add	QWORD PTR -32[rbp], 1
.L62:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -80[rbp]
	jb	.L63
	add	QWORD PTR -40[rbp], 1
.L61:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jb	.L64
	mov	QWORD PTR -40[rbp], 0
	jmp	.L65
.L70:
	mov	QWORD PTR -32[rbp], 0
	jmp	.L66
.L69:
	mov	QWORD PTR -24[rbp], 0
	jmp	.L67
.L68:
	mov	rax, QWORD PTR -64[rbp]
	imul	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, m_a[rip]
	movsd	xmm2, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -32[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, m_b[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mulsd	xmm0, xmm2
	mov	rax, QWORD PTR -64[rbp]
	imul	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	QWORD PTR -24[rbp], 1
.L67:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jb	.L68
	add	QWORD PTR -32[rbp], 1
.L66:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -80[rbp]
	jb	.L69
	add	QWORD PTR -40[rbp], 1
.L65:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jb	.L70
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	multiply_varm, .-multiply_varm
	.section	.rodata
	.align 8
.LC3:
	.long	-446676599
	.long	1070801616
	.align 8
.LC4:
	.long	962072674
	.long	1071827124
	.align 8
.LC5:
	.long	-1614907703
	.long	1069362970
	.align 8
.LC6:
	.long	-450799767
	.long	-1077750489
	.align 8
.LC7:
	.long	-1488463866
	.long	-1076724562
	.align 8
.LC8:
	.long	-1958505087
	.long	1071376236
	.align 8
.LC9:
	.long	2061584302
	.long	1071885844
	.align 8
.LC10:
	.long	1324911511
	.long	-1075807540
	.align 8
.LC11:
	.long	1598415029
	.long	-1078355391
	.align 8
.LC13:
	.long	-1
	.long	2146435071
	.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	"850476.c"
	.text
	.local	palette
	.comm	palette,524288,4
	.local	pal_size
	.comm	pal_size,4,4
	.local	m_a
	.comm	m_a,80000,8
	.local	m_b
	.comm	m_b,80000,8
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%x\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.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]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	ble	.L2
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, .L9+4
	mov	r0, r3
	bl	__isoc99_sscanf
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L3
	mov	r3, #1
	str	r3, [fp, #-20]
.L3:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L9+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	mov	r3, #1
	str	r3, [fp, #-20]
.L4:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L5
	ldr	r0, [fp, #-16]
	bl	load_palette
	mov	r3, r0
	ldr	r2, .L9+12
	str	r3, [r2]
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r3, .L9+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	print_nearest
	b	.L5
.L6:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L5
.L2:
	mov	r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r3, [fp, #-20]
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	pal_size
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%u=%x\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_palette, %function
load_palette:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-144]
	sub	r3, fp, #136
	ldr	r2, [fp, #-152]
	mov	r1, #128
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-148]
	b	.L12
.L16:
	ldrb	r3, [fp, #-136]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L13
	sub	r3, fp, #136
	ldr	r2, [fp, #-152]
	mov	r1, #128
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-148]
	b	.L12
.L13:
	ldr	r3, [fp, #-144]
	lsl	r3, r3, #3
	ldr	r2, .L19+4
	add	r2, r3, r2
	ldr	r3, [fp, #-144]
	lsl	r3, r3, #3
	ldr	r1, .L19+4
	add	r3, r3, r1
	add	r3, r3, #4
	sub	r0, fp, #136
	ldr	r1, .L19+8
	bl	__isoc99_sscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #2
	beq	.L14
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L15
.L14:
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
	sub	r3, fp, #136
	ldr	r2, [fp, #-152]
	mov	r1, #128
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-148]
.L12:
	ldr	r3, [fp, #-144]
	cmp	r3, #524288
	bcs	.L15
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bne	.L16
.L15:
	ldr	r2, .L19+12
	ldr	r3, [fp, #-144]
	str	r3, [r2]
	ldr	r3, [fp, #-144]
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC5
	.word	palette
	.word	.LC4
	.word	pal_size
	.size	load_palette, .-load_palette
	.global	__aeabi_ui2d
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_dcmplt
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%u #%x\012\000"
	.align	3
.LC0:
	.word	3848290697
	.word	1070801616
	.word	962072674
	.word	1071827124
	.word	2680059593
	.word	1069362970
	.word	3844167529
	.word	-1077750489
	.word	2806503430
	.word	-1076724562
	.word	2336462209
	.word	1071376236
	.word	2061584302
	.word	1071885844
	.word	1324911511
	.word	-1075807540
	.word	1598415029
	.word	-1078355391
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_nearest, %function
print_nearest:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #288
	str	r0, [fp, #-272]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L36+4
	sub	r3, fp, #164
	mov	r1, r2
	mov	r2, #72
	mov	r0, r3
	bl	memcpy
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-212]
	str	r3, [fp, #-208]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-204]
	str	r3, [fp, #-200]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-196]
	str	r3, [fp, #-192]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-188]
	str	r3, [fp, #-184]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-180]
	str	r3, [fp, #-176]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-172]
	str	r3, [fp, #-168]
	mvn	r2, #0
	ldr	r3, .L36+8
	str	r2, [fp, #-252]
	str	r3, [fp, #-248]
	mov	r3, #0
	str	r3, [fp, #-264]
	mov	r3, #0
	str	r3, [fp, #-268]
	b	.L22
.L33:
	ldr	r3, [fp, #-272]
	lsr	r3, r3, #16
	and	r3, r3, #255
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-212]
	str	r3, [fp, #-208]
	ldr	r3, [fp, #-272]
	lsr	r3, r3, #8
	and	r3, r3, #255
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-204]
	str	r3, [fp, #-200]
	ldr	r3, [fp, #-272]
	and	r3, r3, #255
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-196]
	str	r3, [fp, #-192]
	ldr	r2, .L36+12
	ldr	r3, [fp, #-268]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	lsr	r3, r3, #16
	and	r3, r3, #255
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-188]
	str	r3, [fp, #-184]
	ldr	r2, .L36+12
	ldr	r3, [fp, #-268]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	lsr	r3, r3, #8
	and	r3, r3, #255
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-180]
	str	r3, [fp, #-176]
	ldr	r2, .L36+12
	ldr	r3, [fp, #-268]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	and	r3, r3, #255
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-172]
	str	r3, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L23
.L26:
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L24
.L25:
	ldr	r2, [fp, #-260]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-256]
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #152
	ldmia	r3, {r0-r1}
	ldr	r2, [fp, #-260]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-256]
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #80
	stm	r3, {r0-r1}
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L24:
	ldr	r3, [fp, #-256]
	cmp	r3, #2
	bls	.L25
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-260]
.L23:
	ldr	r3, [fp, #-260]
	cmp	r3, #2
	bls	.L26
	sub	r3, fp, #212
	str	r3, [sp, #20]
	sub	r3, fp, #92
	str	r3, [sp, #16]
	mov	r2, #1
	mov	r3, #0
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	mov	r2, #3
	mov	r3, #0
	stm	sp, {r2-r3}
	mov	r2, #3
	mov	r3, #0
	mov	r0, #3
	mov	r1, #0
	bl	multiply_varm
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-212]
	str	r3, [fp, #-208]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-204]
	str	r3, [fp, #-200]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-196]
	str	r3, [fp, #-192]
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L27
.L30:
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L28
.L29:
	ldr	r2, [fp, #-260]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-256]
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #152
	ldmia	r3, {r0-r1}
	ldr	r2, [fp, #-260]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-256]
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #80
	stm	r3, {r0-r1}
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L28:
	ldr	r3, [fp, #-256]
	cmp	r3, #2
	bls	.L29
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-260]
.L27:
	ldr	r3, [fp, #-260]
	cmp	r3, #2
	bls	.L30
	sub	r3, fp, #188
	str	r3, [sp, #20]
	sub	r3, fp, #92
	str	r3, [sp, #16]
	mov	r2, #1
	mov	r3, #0
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	mov	r2, #3
	mov	r3, #0
	stm	sp, {r2-r3}
	mov	r2, #3
	mov	r3, #0
	mov	r0, #3
	mov	r1, #0
	bl	multiply_varm
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-188]
	str	r3, [fp, #-184]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-180]
	str	r3, [fp, #-176]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-172]
	str	r3, [fp, #-168]
	sub	r1, fp, #212
	ldmia	r1, {r0-r1}
	sub	r3, fp, #188
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-244]
	str	r3, [fp, #-240]
	sub	r1, fp, #204
	ldmia	r1, {r0-r1}
	sub	r3, fp, #180
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-236]
	str	r3, [fp, #-232]
	sub	r1, fp, #196
	ldmia	r1, {r0-r1}
	sub	r3, fp, #172
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-228]
	str	r3, [fp, #-224]
	sub	r3, fp, #244
	ldmia	r3, {r2-r3}
	sub	r1, fp, #244
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #236
	ldmia	r3, {r2-r3}
	sub	r1, fp, #236
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #228
	ldmia	r3, {r2-r3}
	sub	r1, fp, #228
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	str	r0, [fp, #-220]
	str	r1, [fp, #-216]
	sub	r3, fp, #252
	ldmia	r3, {r2-r3}
	sub	r1, fp, #220
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	sub	r3, fp, #220
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-252]
	str	r3, [fp, #-248]
	ldr	r3, [fp, #-268]
	str	r3, [fp, #-264]
.L31:
	ldr	r3, [fp, #-268]
	add	r3, r3, #1
	str	r3, [fp, #-268]
.L22:
	ldr	r3, .L36+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-268]
	cmp	r2, r3
	bcc	.L33
	ldr	r2, .L36+12
	ldr	r3, [fp, #-264]
	ldr	r1, [r2, r3, lsl #3]
	ldr	r2, .L36+12
	ldr	r3, [fp, #-264]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L36+20
	bl	printf
	nop
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC7
	.word	.LC0
	.word	2146435071
	.word	palette
	.word	pal_size
	.word	.LC6
	.size	print_nearest, .-print_nearest
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Size of a matrix is too big, max size is: %d\012\000"
	.align	2
.LC9:
	.ascii	"Number of destination matrix columns should be the "
	.ascii	"same as a number of source matrix rows: columns=%ll"
	.ascii	"u, rows=%llu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	multiply_varm, %function
multiply_varm:
	@ args = 24, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #120
	str	r0, [fp, #-68]
	str	r1, [fp, #-64]
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #20]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #24]
	str	r3, [fp, #-56]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #100
	bhi	.L39
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #100
	bhi	.L39
	ldmib	fp, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #100
	bhi	.L39
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #100
	bls	.L40
.L39:
	ldr	r3, .L65
	ldr	r3, [r3]
	mov	r2, #100
	ldr	r1, .L65+4
	mov	r0, r3
	bl	fprintf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L41
.L44:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L42
.L43:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-52]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-60]
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
.L42:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L43
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-52]
	str	r7, [fp, #-48]
.L41:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L44
	b	.L38
.L40:
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	ldmib	fp, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	beq	.L46
	ldr	r3, .L65
	ldr	r0, [r3]
	ldmib	fp, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	ldr	r1, .L65+8
	bl	fprintf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L47
.L50:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L48
.L49:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-52]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-60]
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-44]
	str	r9, [fp, #-40]
.L48:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L49
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-84]
	adc	r3, r3, #0
	str	r3, [fp, #-80]
	sub	r4, fp, #84
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
.L47:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L50
	b	.L38
.L46:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L51
.L54:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L52
.L53:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-52]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	lsl	r2, r3, #3
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	ldmia	r3, {r0-r1}
	ldr	ip, .L65+12
	ldr	r3, [fp, #-52]
	mov	r2, r3
	lsl	r2, r2, #2
	add	r2, r2, r3
	lsl	r3, r2, #2
	add	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, ip, r3
	stm	r3, {r0-r1}
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-52]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	lsl	r2, r3, #3
	ldr	r3, [fp, #-60]
	add	r1, r3, r2
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-92]
	adc	r3, r3, #0
	str	r3, [fp, #-88]
	sub	r4, fp, #92
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-44]
	str	r4, [fp, #-40]
.L52:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L53
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-100]
	adc	r3, r3, #0
	str	r3, [fp, #-96]
	sub	r4, fp, #100
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
.L51:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L54
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L55
.L58:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L56
.L57:
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #-52]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	ip, .L65+16
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	stm	r3, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-108]
	adc	r3, r3, #0
	str	r3, [fp, #-104]
	sub	r4, fp, #108
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-44]
	str	r4, [fp, #-40]
.L56:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L57
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-116]
	adc	r3, r3, #0
	str	r3, [fp, #-112]
	sub	r4, fp, #116
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
.L55:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	ldmib	fp, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L58
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L59
.L64:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L60
.L63:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L61
.L62:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-52]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r1, .L65+12
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r0-r1}
	ldr	ip, .L65+16
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-52]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-60]
	add	r6, r2, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r6, {r2-r3}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-124]
	adc	r3, r3, #0
	str	r3, [fp, #-120]
	sub	r4, fp, #124
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-36]
	str	r4, [fp, #-32]
.L61:
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L62
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-132]
	adc	r3, r3, #0
	str	r3, [fp, #-128]
	sub	r4, fp, #132
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-44]
	str	r4, [fp, #-40]
.L60:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L63
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-140]
	adc	r3, r3, #0
	str	r3, [fp, #-136]
	sub	r4, fp, #140
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
.L59:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L64
.L38:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L66:
	.align	2
.L65:
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	m_a
	.word	m_b
	.size	multiply_varm, .-multiply_varm
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
