	.file	"36075118.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"input.bin"
.LC2:
	.string	"Reading input.bin"
	.align 8
.LC3:
	.string	"input.bin not found, use sample data (beta1 testnet block 2)"
	.align 8
.LC4:
	.string	"(Warm up) Time: %u ms, solutions: %u\n"
.LC5:
	.string	"Running %d iterations...\n"
.LC6:
	.string	"Time: %u ms, solutions: %u\n"
	.align 8
.LC8:
	.string	"Average time: %d ms; %.3f Sol/s\n"
	.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
	sub	rsp, 256
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 178037248
	call	malloc@PLT
	mov	QWORD PTR -224[rbp], rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, 4095
	and	rax, -4096
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, 178033152
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -200[rbp], rax
	cmp	QWORD PTR -200[rbp], 0
	je	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -160[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 140
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -160[rbp]
	mov	edx, 140
	lea	rsi, testinput[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L3:
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	EhPrepare@PLT
	mov	DWORD PTR -244[rbp], 0
	lea	rax, -192[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	edx, DWORD PTR -244[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	EhSolver@PLT
	mov	DWORD PTR -232[rbp], eax
	lea	rax, -176[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -176[rbp]
	imul	edx, eax, 1000000000
	mov	rax, QWORD PTR -168[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -192[rbp]
	imul	ecx, eax, 1000000000
	mov	rax, QWORD PTR -184[rbp]
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	eax, eax
	imul	rax, rax, 1125899907
	shr	rax, 32
	shr	eax, 18
	mov	DWORD PTR -228[rbp], eax
	mov	edx, DWORD PTR -232[rbp]
	mov	eax, DWORD PTR -228[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 10
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -244[rbp], 58
	mov	DWORD PTR -248[rbp], 0
	mov	DWORD PTR -240[rbp], 0
	mov	DWORD PTR -236[rbp], 0
	jmp	.L4
.L5:
	lea	rax, -192[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	edx, DWORD PTR -244[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	EhSolver@PLT
	mov	DWORD PTR -232[rbp], eax
	lea	rax, -176[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	add	DWORD PTR -244[rbp], 1
	mov	rax, QWORD PTR -176[rbp]
	imul	edx, eax, 1000000000
	mov	rax, QWORD PTR -168[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -192[rbp]
	imul	ecx, eax, 1000000000
	mov	rax, QWORD PTR -184[rbp]
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	eax, eax
	imul	rax, rax, 1125899907
	shr	rax, 32
	shr	eax, 18
	mov	DWORD PTR -228[rbp], eax
	mov	eax, DWORD PTR -228[rbp]
	add	DWORD PTR -240[rbp], eax
	mov	eax, DWORD PTR -232[rbp]
	add	DWORD PTR -248[rbp], eax
	mov	edx, DWORD PTR -232[rbp]
	mov	eax, DWORD PTR -228[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -236[rbp], 1
.L4:
	cmp	DWORD PTR -236[rbp], 9
	jle	.L5
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -248[rbp]
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm1, xmm0
	mov	eax, DWORD PTR -240[rbp]
	test	rax, rax
	js	.L6
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L7
.L6:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L7:
	divsd	xmm1, xmm0
	movq	rax, xmm1
	mov	edx, DWORD PTR -240[rbp]
	mov	ecx, edx
	mov	edx, 3435973837
	imul	rdx, rcx
	shr	rdx, 32
	shr	edx, 3
	movq	xmm0, rax
	mov	esi, edx
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC7:
	.long	0
	.long	1083129856
	.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	"36075118.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"input.bin\000"
	.align	2
.LC2:
	.ascii	"Reading input.bin\000"
	.align	2
.LC3:
	.ascii	"input.bin not found, use sample data (beta1 testnet"
	.ascii	" block 2)\000"
	.align	2
.LC4:
	.ascii	"(Warm up) Time: %u ms, solutions: %u\012\000"
	.align	2
.LC5:
	.ascii	"Running %d iterations...\012\000"
	.align	2
.LC6:
	.ascii	"Time: %u ms, solutions: %u\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.align	2
.LC7:
	.ascii	"Average time: %d ms; %.3f Sol/s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r6, r7, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #212
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L8+4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-208]
	ldr	r3, [fp, #-208]
	add	r3, r3, #4080
	add	r3, r3, #15
	bic	r3, r3, #4080
	bic	r3, r3, #15
	str	r3, [fp, #-204]
	ldr	r2, [fp, #-204]
	ldr	r3, .L8+8
	add	r3, r2, r3
	str	r3, [fp, #-200]
	mov	r3, #0
	str	r3, [fp, #-196]
	ldr	r1, .L8+12
	ldr	r0, .L8+16
	bl	fopen
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L8+20
	bl	puts
	sub	r0, fp, #168
	ldr	r3, [fp, #-196]
	mov	r2, #1
	mov	r1, #140
	bl	fread
	ldr	r0, [fp, #-196]
	bl	fclose
	b	.L3
.L2:
	ldr	r0, .L8+24
	bl	puts
	sub	r3, fp, #168
	mov	r2, #140
	ldr	r1, .L8+28
	mov	r0, r3
	bl	memcpy
.L3:
	sub	r3, fp, #168
	mov	r1, r3
	ldr	r0, [fp, #-204]
	bl	EhPrepare
	mov	r3, #0
	str	r3, [fp, #-220]
	sub	r3, fp, #184
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	ldr	r1, [fp, #-220]
	ldr	r0, [fp, #-204]
	bl	EhSolver
	str	r0, [fp, #-192]
	sub	r3, fp, #176
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	ldr	r3, [fp, #-176]
	ldr	r2, .L8+32
	mul	r2, r3, r2
	ldr	r3, [fp, #-172]
	add	r2, r2, r3
	ldr	r3, [fp, #-184]
	ldr	r1, .L8+32
	mul	r1, r3, r1
	ldr	r3, [fp, #-180]
	add	r3, r1, r3
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L8+36
	umull	r1, r3, r2, r3
	lsr	r3, r3, #18
	str	r3, [fp, #-188]
	ldr	r2, [fp, #-192]
	ldr	r1, [fp, #-188]
	ldr	r0, .L8+40
	bl	printf
	mov	r1, #10
	ldr	r0, .L8+44
	bl	printf
	mov	r3, #58
	str	r3, [fp, #-220]
	mov	r3, #0
	str	r3, [fp, #-224]
	mov	r3, #0
	str	r3, [fp, #-216]
	mov	r3, #0
	str	r3, [fp, #-212]
	b	.L4
.L5:
	sub	r3, fp, #184
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	ldr	r1, [fp, #-220]
	ldr	r0, [fp, #-204]
	bl	EhSolver
	str	r0, [fp, #-192]
	sub	r3, fp, #176
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-176]
	ldr	r2, .L8+32
	mul	r2, r3, r2
	ldr	r3, [fp, #-172]
	add	r2, r2, r3
	ldr	r3, [fp, #-184]
	ldr	r1, .L8+32
	mul	r1, r3, r1
	ldr	r3, [fp, #-180]
	add	r3, r1, r3
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L8+36
	umull	r1, r3, r2, r3
	lsr	r3, r3, #18
	str	r3, [fp, #-188]
	ldr	r2, [fp, #-216]
	ldr	r3, [fp, #-188]
	add	r3, r2, r3
	str	r3, [fp, #-216]
	ldr	r2, [fp, #-224]
	ldr	r3, [fp, #-192]
	add	r3, r2, r3
	str	r3, [fp, #-224]
	ldr	r2, [fp, #-192]
	ldr	r1, [fp, #-188]
	ldr	r0, .L8+48
	bl	printf
	ldr	r3, [fp, #-212]
	add	r3, r3, #1
	str	r3, [fp, #-212]
.L4:
	ldr	r3, [fp, #-212]
	cmp	r3, #9
	ble	.L5
	ldr	r3, [fp, #-216]
	ldr	r2, .L8+52
	umull	r1, r3, r2, r3
	lsr	r4, r3, #3
	ldr	r0, [fp, #-224]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L8+56
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-216]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L8+60
	bl	printf
	ldr	r0, [fp, #-208]
	bl	free
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r6, r7, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC8
	.word	178037248
	.word	178033152
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	testinput
	.word	1000000000
	.word	1125899907
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	-858993459
	.word	1083129856
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
