	.file	"90191.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
	.align 8
.LC1:
	.string	"/mnt/c/data/stone_native_40k/res.bin"
.LC8:
	.string	"wb"
.LC9:
	.string	"img.bmp"
	.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
	push	rbx
	sub	rsp, 248
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	QWORD PTR -128[rbp], 0
	mov	DWORD PTR -196[rbp], 5000
	mov	DWORD PTR -192[rbp], 5000
	mov	DWORD PTR -188[rbp], 40000
	mov	eax, DWORD PTR -196[rbp]
	imul	eax, DWORD PTR -192[rbp]
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, 54
	mov	DWORD PTR -184[rbp], eax
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	sal	rax, 2
	mov	edx, DWORD PTR -240[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -120[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	sal	rax, 2
	mov	edx, DWORD PTR -240[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -112[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	sal	rax, 2
	mov	edx, DWORD PTR -240[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	add	DWORD PTR -240[rbp], 1
.L2:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L3
	mov	DWORD PTR -236[rbp], 0
	jmp	.L4
.L12:
	mov	DWORD PTR -232[rbp], 0
	jmp	.L5
.L11:
	mov	rdx, QWORD PTR -136[rbp]
	lea	rax, -244[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	edx, DWORD PTR -236[rbp]
	mov	eax, DWORD PTR -232[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -244[rbp]
	add	eax, edx
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jle	.L6
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jge	.L6
	mov	eax, DWORD PTR -196[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -196[rbp]
	movsd	xmm1, QWORD PTR .LC2[rip]
	mulsd	xmm2, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -236[rbp]
	mulsd	xmm1, xmm2
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, DWORD PTR -172[rbp]
	movapd	xmm2, xmm1
	divsd	xmm2, xmm3
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -196[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm2, xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -232[rbp]
	mulsd	xmm0, xmm2
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -172[rbp]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -168[rbp], eax
	mov	eax, DWORD PTR -196[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -196[rbp]
	movsd	xmm1, QWORD PTR .LC2[rip]
	mulsd	xmm2, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -236[rbp]
	mulsd	xmm1, xmm2
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -172[rbp]
	divsd	xmm1, xmm2
	subsd	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -196[rbp]
	movsd	xmm1, QWORD PTR .LC2[rip]
	mulsd	xmm2, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -232[rbp]
	mulsd	xmm1, xmm2
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, DWORD PTR -172[rbp]
	movapd	xmm2, xmm1
	divsd	xmm2, xmm3
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -196[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm2, xmm0
	mov	eax, DWORD PTR -244[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mulsd	xmm0, xmm2
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -172[rbp]
	divsd	xmm0, xmm2
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -164[rbp], eax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -172[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -188[rbp]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm2
	comisd	xmm0, xmm1
	jbe	.L42
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	jmp	.L6
.L42:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -172[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -188[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	mulsd	xmm0, xmm2
	comisd	xmm0, xmm1
	jbe	.L43
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	jmp	.L6
.L43:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L6:
	add	DWORD PTR -232[rbp], 1
.L5:
	mov	eax, DWORD PTR -232[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jl	.L11
	add	DWORD PTR -236[rbp], 1
.L4:
	mov	eax, DWORD PTR -236[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jl	.L12
	movsd	xmm0, QWORD PTR .LC6[rip]
	movsd	QWORD PTR -160[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC6[rip]
	movsd	QWORD PTR -152[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC6[rip]
	movsd	QWORD PTR -144[rbp], xmm0
	mov	DWORD PTR -228[rbp], 0
	jmp	.L13
.L22:
	mov	DWORD PTR -224[rbp], 0
	jmp	.L14
.L21:
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L15
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, eax
	movq	rax, xmm4
	movq	xmm0, rax
	call	log@PLT
	movsd	xmm1, QWORD PTR .LC6[rip]
	addsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR -160[rbp]
	jbe	.L15
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm5, xmm5
	cvtsi2sd	xmm5, eax
	movq	rax, xmm5
	movq	xmm0, rax
	call	log@PLT
	movsd	xmm1, QWORD PTR .LC6[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -160[rbp], xmm0
.L15:
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L17
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm6, xmm6
	cvtsi2sd	xmm6, eax
	movq	rax, xmm6
	movq	xmm0, rax
	call	log@PLT
	movsd	xmm1, QWORD PTR .LC6[rip]
	addsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR -152[rbp]
	jbe	.L17
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm7, xmm7
	cvtsi2sd	xmm7, eax
	movq	rax, xmm7
	movq	xmm0, rax
	call	log@PLT
	movsd	xmm1, QWORD PTR .LC6[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -152[rbp], xmm0
.L17:
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L19
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, eax
	movq	rax, xmm4
	movq	xmm0, rax
	call	log@PLT
	movsd	xmm1, QWORD PTR .LC6[rip]
	addsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR -144[rbp]
	jbe	.L19
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm5, xmm5
	cvtsi2sd	xmm5, eax
	movq	rax, xmm5
	movq	xmm0, rax
	call	log@PLT
	movsd	xmm1, QWORD PTR .LC6[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -144[rbp], xmm0
.L19:
	add	DWORD PTR -224[rbp], 1
.L14:
	mov	eax, DWORD PTR -224[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L21
	add	DWORD PTR -228[rbp], 1
.L13:
	mov	eax, DWORD PTR -228[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L22
	mov	eax, DWORD PTR -196[rbp]
	imul	eax, DWORD PTR -192[rbp]
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -128[rbp], rax
	mov	eax, DWORD PTR -196[rbp]
	imul	eax, DWORD PTR -192[rbp]
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -128[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -220[rbp], 0
	jmp	.L23
.L32:
	mov	DWORD PTR -216[rbp], 0
	jmp	.L24
.L31:
	mov	eax, DWORD PTR -220[rbp]
	mov	DWORD PTR -180[rbp], eax
	mov	eax, DWORD PTR -192[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -216[rbp]
	mov	DWORD PTR -176[rbp], eax
	mov	DWORD PTR -212[rbp], 0
	mov	DWORD PTR -208[rbp], 0
	mov	DWORD PTR -204[rbp], 0
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L25
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm6, xmm6
	cvtsi2sd	xmm6, eax
	movq	rax, xmm6
	movq	xmm0, rax
	call	log@PLT
	movsd	xmm1, QWORD PTR .LC6[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	divsd	xmm0, QWORD PTR -160[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -212[rbp], eax
.L25:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L26
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm7, xmm7
	cvtsi2sd	xmm7, eax
	movq	rax, xmm7
	movq	xmm0, rax
	call	log@PLT
	movsd	xmm1, QWORD PTR .LC6[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	divsd	xmm0, QWORD PTR -152[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -208[rbp], eax
.L26:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L27
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, eax
	movq	rax, xmm3
	movq	xmm0, rax
	call	log@PLT
	movsd	xmm1, QWORD PTR .LC6[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	divsd	xmm0, QWORD PTR -144[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -204[rbp], eax
.L27:
	cmp	DWORD PTR -212[rbp], 255
	jle	.L28
	mov	DWORD PTR -212[rbp], 255
.L28:
	cmp	DWORD PTR -208[rbp], 255
	jle	.L29
	mov	DWORD PTR -208[rbp], 255
.L29:
	cmp	DWORD PTR -204[rbp], 255
	jle	.L30
	mov	DWORD PTR -204[rbp], 255
.L30:
	mov	eax, DWORD PTR -176[rbp]
	imul	eax, DWORD PTR -196[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -180[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -212[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -176[rbp]
	imul	eax, DWORD PTR -196[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -180[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -176[rbp]
	imul	eax, DWORD PTR -196[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -180[rbp]
	add	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -204[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -216[rbp], 1
.L24:
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L31
	add	DWORD PTR -220[rbp], 1
.L23:
	mov	eax, DWORD PTR -220[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L32
	mov	QWORD PTR -78[rbp], 19778
	mov	DWORD PTR -70[rbp], 3538944
	mov	WORD PTR -66[rbp], 0
	mov	eax, 40
	movabs	rdx, 6755403736023040
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	WORD PTR -81[rbp], 0
	mov	BYTE PTR -79[rbp], 0
	mov	eax, DWORD PTR -184[rbp]
	mov	BYTE PTR -76[rbp], al
	mov	eax, DWORD PTR -184[rbp]
	sar	eax, 8
	mov	BYTE PTR -75[rbp], al
	mov	eax, DWORD PTR -184[rbp]
	sar	eax, 16
	mov	BYTE PTR -74[rbp], al
	mov	eax, DWORD PTR -184[rbp]
	sar	eax, 24
	mov	BYTE PTR -73[rbp], al
	mov	eax, DWORD PTR -196[rbp]
	mov	BYTE PTR -60[rbp], al
	mov	eax, DWORD PTR -196[rbp]
	sar	eax, 8
	mov	BYTE PTR -59[rbp], al
	mov	eax, DWORD PTR -196[rbp]
	sar	eax, 16
	mov	BYTE PTR -58[rbp], al
	mov	eax, DWORD PTR -196[rbp]
	sar	eax, 24
	mov	BYTE PTR -57[rbp], al
	mov	eax, DWORD PTR -192[rbp]
	mov	BYTE PTR -56[rbp], al
	mov	eax, DWORD PTR -192[rbp]
	sar	eax, 8
	mov	BYTE PTR -55[rbp], al
	mov	eax, DWORD PTR -192[rbp]
	sar	eax, 16
	mov	BYTE PTR -54[rbp], al
	mov	eax, DWORD PTR -192[rbp]
	sar	eax, 24
	mov	BYTE PTR -53[rbp], al
	lea	rsi, .LC8[rip]
	lea	rdi, .LC9[rip]
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	rdx, QWORD PTR -96[rbp]
	lea	rax, -78[rbp]
	mov	rcx, rdx
	mov	edx, 14
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -96[rbp]
	lea	rax, -64[rbp]
	mov	rcx, rdx
	mov	edx, 40
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -200[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -196[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -192[rbp]
	sub	eax, DWORD PTR -200[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -196[rbp]
	mov	ecx, eax
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	movsx	rcx, eax
	mov	rax, QWORD PTR -128[rbp]
	lea	rdi, [rcx+rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, rax
	mov	esi, 3
	call	fwrite@PLT
	mov	edx, DWORD PTR -196[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	edx, eax
	mov	eax, 4
	sub	eax, edx
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	movsx	rdx, eax
	mov	rcx, QWORD PTR -96[rbp]
	lea	rax, -81[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -200[rbp], 1
.L33:
	mov	eax, DWORD PTR -200[rbp]
	cmp	eax, DWORD PTR -192[rbp]
	jl	.L34
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	261134012
	.long	1072412282
	.align 8
.LC4:
	.long	-2047840407
	.long	1070945481
	.align 8
.LC5:
	.long	-2047840407
	.long	1071994057
	.align 8
.LC6:
	.long	0
	.long	1072693248
	.align 8
.LC7:
	.long	343597384
	.long	1081081774
	.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	"90191.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"/mnt/c/data/stone_native_40k/res.bin\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.global	__aeabi_dcmplt
	.align	2
.LC5:
	.ascii	"wb\000"
	.align	2
.LC6:
	.ascii	"img.bmp\000"
	.align	2
.LC2:
	.ascii	"BM\000\000\000\000\000\000\000\0006\000\000\000"
	.align	2
.LC3:
	.ascii	"(\000\000\000\000\000\000\000\000\000\000\000\001\000"
	.ascii	"\030\000\000"
	.space	23
	.align	2
.LC4:
	.ascii	"\000\000\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #200
	ldr	r3, .L44+72
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r1, .L44
	ldr	r0, .L44+4
	bl	fopen
	str	r0, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r3, .L44+8
	str	r3, [fp, #-160]
	ldr	r3, .L44+8
	str	r3, [fp, #-156]
	ldr	r3, .L44+12
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-160]
	ldr	r2, [fp, #-156]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, #54
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-136]
	mov	r3, #0
	str	r3, [fp, #-212]
	b	.L2
.L3:
	ldr	r3, [fp, #-156]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-156]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-156]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-136]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-136]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-212]
	add	r3, r3, #1
	str	r3, [fp, #-212]
.L2:
	ldr	r2, [fp, #-212]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	str	r3, [fp, #-208]
	b	.L4
.L12:
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L5
.L11:
	sub	r0, fp, #216
	ldr	r3, [fp, #-168]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r2, [fp, #-208]
	ldr	r3, [fp, #-204]
	add	r2, r2, r3
	ldr	r3, [fp, #-216]
	add	r3, r2, r3
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	ble	.L6
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	bge	.L6
	ldr	r3, [fp, #-160]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-160]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L44+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-208]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-120]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-160]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L44+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-204]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-120]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	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	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-160]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-160]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L44+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-208]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-120]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-160]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L44+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-204]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-120]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-160]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L44+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-216]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-120]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	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
	ldr	r2, .L44+20
	ldr	r3, .L44+24
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-112]
	ldr	r0, [fp, #-120]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-152]
	bl	__aeabi_i2d
	ldr	r2, .L44+28
	ldr	r3, .L44+32
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	b	.L6
.L42:
	ldr	r0, [fp, #-120]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-152]
	bl	__aeabi_i2d
	ldr	r2, .L44+28
	ldr	r3, .L44+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	b	.L6
.L43:
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-136]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L6:
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L5:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L4:
	ldr	r2, [fp, #-208]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	blt	.L12
	mov	r2, #0
	ldr	r3, .L44+40
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	mov	r2, #0
	ldr	r3, .L44+40
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	mov	r2, #0
	ldr	r3, .L44+40
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-200]
	b	.L13
.L22:
	mov	r3, #0
	str	r3, [fp, #-196]
	b	.L14
.L21:
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L15
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, #0
	ldr	r3, .L44+40
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #108
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, #0
	ldr	r3, .L44+40
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
.L15:
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L17
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, #0
	ldr	r3, .L44+40
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, #0
	ldr	r3, .L44+40
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
.L17:
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-136]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L19
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-136]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, #0
	ldr	r3, .L44+40
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-136]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, #0
	ldr	r3, .L44+40
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
.L19:
	ldr	r3, [fp, #-196]
	add	r3, r3, #1
	str	r3, [fp, #-196]
.L14:
	ldr	r2, [fp, #-196]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-200]
	add	r3, r3, #1
	str	r3, [fp, #-200]
.L13:
	ldr	r2, [fp, #-200]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-160]
	ldr	r2, [fp, #-156]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-160]
	ldr	r2, [fp, #-156]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-164]
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-192]
	b	.L23
.L32:
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L24
.L31:
	ldr	r3, [fp, #-192]
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-156]
	sub	r2, r3, #1
	ldr	r3, [fp, #-188]
	sub	r3, r2, r3
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-184]
	mov	r3, #0
	str	r3, [fp, #-180]
	mov	r3, #0
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L25
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, #0
	ldr	r3, .L44+40
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L44+44
	ldr	r3, .L44+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-184]
.L25:
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L26
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, #0
	ldr	r3, .L44+40
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L44+44
	ldr	r3, .L44+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-180]
.L26:
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-136]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L27
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-136]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, #0
	ldr	r3, .L44+40
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L44+44
	ldr	r3, .L44+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-176]
.L27:
	ldr	r3, [fp, #-184]
	cmp	r3, #255
	ble	.L28
	mov	r3, #255
	str	r3, [fp, #-184]
.L28:
	ldr	r3, [fp, #-180]
	cmp	r3, #255
	ble	.L29
	mov	r3, #255
	str	r3, [fp, #-180]
.L29:
	ldr	r3, [fp, #-176]
	cmp	r3, #255
	ble	.L30
	mov	r3, #255
	str	r3, [fp, #-176]
.L30:
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-160]
	mul	r2, r3, r2
	ldr	r3, [fp, #-128]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, #2
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	ldr	r2, [fp, #-184]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-160]
	mul	r2, r3, r2
	ldr	r3, [fp, #-128]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, #1
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	ldr	r2, [fp, #-180]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-160]
	mul	r2, r3, r2
	ldr	r3, [fp, #-128]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-164]
	add	r3, r3, r2
	ldr	r2, [fp, #-176]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L24:
	ldr	r2, [fp, #-188]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	blt	.L31
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
.L23:
	ldr	r2, [fp, #-192]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	blt	.L32
	ldr	r3, .L44+52
	sub	ip, fp, #80
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	ldr	r3, .L44+56
	sub	ip, fp, #64
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strb	r3, [ip]
	sub	r3, fp, #47
	mov	r2, #23
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r2, .L44+60
	sub	r3, fp, #84
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	ldr	r3, [fp, #-148]
	and	r3, r3, #255
	strb	r3, [fp, #-78]
	ldr	r3, [fp, #-148]
	asr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-77]
	ldr	r3, [fp, #-148]
	asr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-76]
	ldr	r3, [fp, #-148]
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-75]
	ldr	r3, [fp, #-160]
	and	r3, r3, #255
	strb	r3, [fp, #-60]
	ldr	r3, [fp, #-160]
	asr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-59]
	ldr	r3, [fp, #-160]
	asr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-58]
	ldr	r3, [fp, #-160]
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-57]
	ldr	r3, [fp, #-156]
	and	r3, r3, #255
	strb	r3, [fp, #-56]
	ldr	r3, [fp, #-156]
	asr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-55]
	ldr	r3, [fp, #-156]
	asr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-54]
	ldr	r3, [fp, #-156]
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-53]
	ldr	r1, .L44+64
	ldr	r0, .L44+68
	bl	fopen
	str	r0, [fp, #-132]
	sub	r0, fp, #80
	ldr	r3, [fp, #-132]
	mov	r2, #14
	mov	r1, #1
	bl	fwrite
	sub	r0, fp, #64
	ldr	r3, [fp, #-132]
	mov	r2, #40
	mov	r1, #1
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-172]
	b	.L33
.L45:
	.align	2
.L44:
	.word	.LC0
	.word	.LC1
	.word	5000
	.word	40000
	.word	1071644672
	.word	261134012
	.word	1072412282
	.word	-2047840407
	.word	1070945481
	.word	1071994057
	.word	1072693248
	.word	343597384
	.word	1081081774
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
.L34:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-172]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-160]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-164]
	add	r0, r3, r2
	ldr	r2, [fp, #-160]
	ldr	r3, [fp, #-132]
	mov	r1, #3
	bl	fwrite
	ldr	r2, [fp, #-160]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	rsb	r3, r3, #4
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	mov	r2, r3
	sub	r0, fp, #84
	ldr	r3, [fp, #-132]
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-172]
	add	r3, r3, #1
	str	r3, [fp, #-172]
.L33:
	ldr	r2, [fp, #-172]
	ldr	r3, [fp, #-156]
	cmp	r2, r3
	blt	.L34
	ldr	r0, [fp, #-164]
	bl	free
	ldr	r0, [fp, #-132]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L44+72
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
