	.file	"623197.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC1:
	.ascii	"%d e"
	.string	"xperiments complete, %d coins tossed per experiment, each coin tossed %d times, average fraction heads of first coin = %f, of randomly selected coin (average index %f) = %f, and of min coin with fewest head in current experiment = %f (expected value = %f)\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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4112[rbp], 0
	mov	DWORD PTR -4100[rbp], 1
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -4096[rbp], 0
	mov	QWORD PTR -4088[rbp], 0
	mov	QWORD PTR -4080[rbp], 0
	mov	QWORD PTR -4072[rbp], 0
	mov	QWORD PTR -4064[rbp], 0
	mov	DWORD PTR -4124[rbp], 0
	jmp	.L2
.L9:
	lea	rax, -4016[rbp]
	mov	edx, 4000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 274877907
	shr	rdx, 32
	sar	edx, 6
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -4092[rbp], edx
	mov	edx, DWORD PTR -4092[rbp]
	imul	edx, edx, 1000
	sub	eax, edx
	mov	DWORD PTR -4092[rbp], eax
	mov	DWORD PTR -4104[rbp], 0
	mov	DWORD PTR -4120[rbp], 0
	jmp	.L3
.L8:
	mov	DWORD PTR -4116[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -4112[rbp]
	mov	edx, 2147483647
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	test	eax, eax
	jne	.L5
	call	rand@PLT
	mov	DWORD PTR -4108[rbp], eax
	mov	DWORD PTR -4112[rbp], 0
.L5:
	mov	eax, DWORD PTR -4120[rbp]
	mov	esi, DWORD PTR -4016[rbp+rax*4]
	mov	eax, DWORD PTR -4112[rbp]
	mov	edx, DWORD PTR -4108[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, DWORD PTR -4100[rbp]
	lea	edx, [rsi+rax]
	mov	eax, DWORD PTR -4120[rbp]
	mov	DWORD PTR -4016[rbp+rax*4], edx
	add	DWORD PTR -4112[rbp], 1
	add	DWORD PTR -4116[rbp], 1
.L4:
	cmp	DWORD PTR -4116[rbp], 9
	jbe	.L6
	mov	eax, DWORD PTR -4120[rbp]
	mov	edx, DWORD PTR -4016[rbp+rax*4]
	mov	eax, DWORD PTR -4104[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	cmp	edx, eax
	jge	.L7
	mov	eax, DWORD PTR -4120[rbp]
	mov	DWORD PTR -4104[rbp], eax
.L7:
	add	DWORD PTR -4120[rbp], 1
.L3:
	cmp	DWORD PTR -4120[rbp], 999
	jbe	.L8
	mov	eax, DWORD PTR -4096[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	cdqe
	add	QWORD PTR -4088[rbp], rax
	mov	eax, DWORD PTR -4092[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	cdqe
	add	QWORD PTR -4080[rbp], rax
	mov	eax, DWORD PTR -4104[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	cdqe
	add	QWORD PTR -4072[rbp], rax
	mov	eax, DWORD PTR -4092[rbp]
	cdqe
	add	QWORD PTR -4064[rbp], rax
	add	DWORD PTR -4124[rbp], 1
.L2:
	cmp	DWORD PTR -4124[rbp], 99999
	jbe	.L9
	mov	QWORD PTR -4056[rbp], 1000000
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -4088[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -4056[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -4048[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -4080[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -4056[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -4040[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -4072[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -4056[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -4032[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -4064[rbp]
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -4024[rbp], xmm0
	mov	eax, 0
	call	compute_expected_fraction_heads_min
	movq	rdx, xmm0
	movsd	xmm2, QWORD PTR -4032[rbp]
	movsd	xmm1, QWORD PTR -4040[rbp]
	movsd	xmm0, QWORD PTR -4024[rbp]
	mov	rax, QWORD PTR -4048[rbp]
	movq	xmm4, rdx
	movapd	xmm3, xmm2
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	ecx, 10
	mov	edx, 1000
	mov	esi, 100000
	lea	rdi, .LC1[rip]
	mov	eax, 5
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	compute_expected_fraction_heads_min
	.type	compute_expected_fraction_heads_min, @function
compute_expected_fraction_heads_min:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8380[rbp], 0
	jmp	.L13
.L14:
	add	DWORD PTR -8380[rbp], 1
.L13:
	cmp	DWORD PTR -8380[rbp], 10
	jle	.L14
	mov	DWORD PTR -8352[rbp], 1
	mov	DWORD PTR -8380[rbp], 1
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -8380[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -8352[rbp+rax*4]
	imul	eax, DWORD PTR -8380[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	mov	DWORD PTR -8352[rbp+rax*4], edx
	add	DWORD PTR -8380[rbp], 1
.L15:
	cmp	DWORD PTR -8380[rbp], 10
	jle	.L16
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR -8360[rbp], xmm0
	mov	DWORD PTR -8380[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -8312[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mulsd	xmm0, QWORD PTR -8360[rbp]
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	mov	edx, DWORD PTR -8352[rbp+rax*4]
	mov	eax, 10
	sub	eax, DWORD PTR -8380[rbp]
	cdqe
	mov	eax, DWORD PTR -8352[rbp+rax*4]
	imul	eax, edx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	divsd	xmm0, xmm1
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	movsd	QWORD PTR -8304[rbp+rax*8], xmm0
	add	DWORD PTR -8380[rbp], 1
.L17:
	cmp	DWORD PTR -8380[rbp], 10
	jle	.L18
	mov	DWORD PTR -8380[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8208[rbp+rax*8], xmm0
	mov	eax, DWORD PTR -8380[rbp]
	add	eax, 1
	mov	DWORD PTR -8376[rbp], eax
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	movsd	xmm1, QWORD PTR -8208[rbp+rax*8]
	mov	eax, DWORD PTR -8376[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -8304[rbp+rax*8]
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	movsd	QWORD PTR -8208[rbp+rax*8], xmm0
	add	DWORD PTR -8376[rbp], 1
.L20:
	cmp	DWORD PTR -8376[rbp], 10
	jle	.L21
	add	DWORD PTR -8380[rbp], 1
.L19:
	cmp	DWORD PTR -8380[rbp], 10
	jle	.L22
	mov	DWORD PTR -8372[rbp], 1
	jmp	.L23
.L24:
	add	DWORD PTR -8372[rbp], 1
.L23:
	cmp	DWORD PTR -8372[rbp], 1000
	jle	.L24
	mov	DWORD PTR -8372[rbp], 1
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -8372[rbp]
	mov	esi, eax
	mov	edi, 1000
	call	compute_combinations
	movq	rax, xmm0
	mov	edx, DWORD PTR -8372[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -8016[rbp+rdx*8], rax
	add	DWORD PTR -8372[rbp], 1
.L25:
	cmp	DWORD PTR -8372[rbp], 1000
	jle	.L26
	mov	DWORD PTR -8380[rbp], 0
	jmp	.L27
.L30:
	mov	DWORD PTR -8372[rbp], 1
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8112[rbp+rax*8], xmm0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -8372[rbp]
	cdqe
	movsd	xmm2, QWORD PTR -8016[rbp+rax*8]
	movsd	QWORD PTR -8392[rbp], xmm2
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -8372[rbp]
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	mov	rax, QWORD PTR -8304[rbp+rax*8]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	mulsd	xmm0, QWORD PTR -8392[rbp]
	movsd	QWORD PTR -8392[rbp], xmm0
	mov	eax, 1000
	sub	eax, DWORD PTR -8372[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	mov	rax, QWORD PTR -8208[rbp+rax*8]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm1, QWORD PTR -8392[rbp]
	mulsd	xmm1, xmm0
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -8112[rbp+rax*8]
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	movsd	QWORD PTR -8112[rbp+rax*8], xmm0
	add	DWORD PTR -8372[rbp], 1
.L28:
	cmp	DWORD PTR -8372[rbp], 1000
	jle	.L29
	add	DWORD PTR -8380[rbp], 1
.L27:
	cmp	DWORD PTR -8380[rbp], 10
	jle	.L30
	mov	DWORD PTR -8380[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8368[rbp], xmm0
	jmp	.L31
.L32:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -8380[rbp]
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -8112[rbp+rax*8]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -8368[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8368[rbp], xmm0
	add	DWORD PTR -8380[rbp], 1
.L31:
	cmp	DWORD PTR -8380[rbp], 10
	jle	.L32
	movsd	xmm0, QWORD PTR -8368[rbp]
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compute_expected_fraction_heads_min, .-compute_expected_fraction_heads_min
	.globl	compute_combinations
	.type	compute_combinations, @function
compute_combinations:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -8[rbp], 0
	jne	.L36
	movsd	xmm0, QWORD PTR .LC5[rip]
	jmp	.L37
.L36:
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -4[rbp]
	movsd	QWORD PTR -16[rbp], xmm2
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	compute_combinations
	mulsd	xmm0, QWORD PTR -16[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -8[rbp]
	divsd	xmm0, xmm1
.L37:
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compute_combinations, .-compute_combinations
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1090021888
	.align 8
.LC2:
	.long	0
	.long	1062207488
	.align 8
.LC4:
	.long	0
	.long	1076101120
	.align 8
.LC5:
	.long	0
	.long	1072693248
	.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	"623197.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d experiments complete, %d coins tossed per experi"
	.ascii	"ment, each coin tossed %d times, average fraction h"
	.ascii	"eads of first coin = %f, of randomly selected coin "
	.ascii	"(average index %f) = %f, and of min coin with fewes"
	.ascii	"t head in current experiment = %f (expected value ="
	.ascii	" %f)\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4096
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #4096
	sub	sp, sp, #40
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	sub	r2, fp, #4096
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-4068]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-4064]
	mov	r3, #0
	str	r3, [fp, #-4084]
	mov	r3, #0
	str	r3, [fp, #-4080]
	mov	r3, #0
	str	r3, [fp, #-4076]
	mov	r3, #0
	str	r3, [fp, #-4072]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	b	.L2
.L9:
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	bl	rand
	mov	r2, r0
	ldr	r3, .L12+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #6
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	sub	r3, r2, r3
	str	r3, [fp, #-4056]
	mov	r3, #0
	str	r3, [fp, #-4088]
	mov	r3, #0
	sub	r2, fp, #4096
	sub	r2, r2, #8
	str	r3, [r2]
	b	.L3
.L8:
	mov	r3, #0
	sub	r2, fp, #4096
	sub	r2, r2, #4
	str	r3, [r2]
	b	.L4
.L6:
	mvn	r2, #-2147483648
	sub	r3, fp, #4096
	ldr	r3, [r3]
	asr	r3, r2, r3
	cmp	r3, #0
	bne	.L5
	bl	rand
	str	r0, [fp, #-4092]
	mov	r3, #0
	sub	r2, fp, #4096
	str	r3, [r2]
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-4004]
	ldr	r1, [fp, #-4092]
	sub	r3, fp, #4096
	ldr	r3, [r3]
	asr	r1, r1, r3
	ldr	r3, [fp, #-4068]
	and	r3, r3, r1
	add	r2, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-4004]
	sub	r3, fp, #4096
	ldr	r3, [r3]
	add	r3, r3, #1
	sub	r2, fp, #4096
	str	r3, [r2]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #4
	str	r3, [r2]
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #9
	bls	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-4004]
	ldr	r3, [fp, #-4088]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-4004]
	cmp	r2, r3
	bge	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #8
	ldr	r3, [r3]
	str	r3, [fp, #-4088]
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #8
	ldr	r3, [r3]
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #8
	str	r3, [r2]
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #1000
	bcc	.L8
	ldr	r3, [fp, #-4064]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	ldr	r2, [fp, #-4084]
	add	r3, r2, r3
	str	r3, [fp, #-4084]
	ldr	r3, [fp, #-4056]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	ldr	r2, [fp, #-4080]
	add	r3, r2, r3
	str	r3, [fp, #-4080]
	ldr	r3, [fp, #-4088]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	ldr	r2, [fp, #-4076]
	add	r3, r2, r3
	str	r3, [fp, #-4076]
	ldr	r2, [fp, #-4072]
	ldr	r3, [fp, #-4056]
	add	r3, r2, r3
	str	r3, [fp, #-4072]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [r2]
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3]
	ldr	r2, .L12+8
	cmp	r3, r2
	bcc	.L9
	ldr	r3, .L12+12
	str	r3, [fp, #-4060]
	ldr	r0, [fp, #-4084]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-4060]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-4052]
	str	r3, [fp, #-4048]
	ldr	r0, [fp, #-4080]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-4060]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-4044]
	str	r3, [fp, #-4040]
	ldr	r0, [fp, #-4076]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-4060]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-4036]
	str	r3, [fp, #-4032]
	ldr	r0, [fp, #-4072]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L12+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-4028]
	str	r3, [fp, #-4024]
	bl	compute_expected_fraction_heads_min
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #32]
	str	r3, [sp, #36]
	ldr	r2, [fp, #-4036]
	ldr	r3, [fp, #-4032]
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	ldr	r2, [fp, #-4044]
	ldr	r3, [fp, #-4040]
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	ldr	r2, [fp, #-4028]
	ldr	r3, [fp, #-4024]
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r2, [fp, #-4052]
	ldr	r3, [fp, #-4048]
	stm	sp, {r2-r3}
	mov	r3, #10
	mov	r2, #1000
	ldr	r1, .L12+8
	ldr	r0, .L12+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	274877907
	.word	100000
	.word	1000000
	.word	1090021888
	.word	.LC0
	.size	main, .-main
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	compute_expected_fraction_heads_min
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_expected_fraction_heads_min, %function
compute_expected_fraction_heads_min:
	@ args = 0, pretend = 0, frame = 8360
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8320
	sub	sp, sp, #40
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-164]
	b	.L15
.L16:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	add	r3, r3, #1
	str	r3, [r2, #-164]
.L15:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	cmp	r3, #10
	ble	.L16
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-164]
	b	.L17
.L18:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	sub	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #20
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-132]
	sub	r2, fp, #8192
	sub	r2, r2, #20
	ldr	r2, [r2, #-164]
	mul	r2, r3, r2
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	add	r3, r3, #1
	str	r3, [r2, #-164]
.L17:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	cmp	r3, #10
	ble	.L18
	sub	r3, fp, #8320
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L37+4
	stm	r1, {r2-r3}
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-164]
	b	.L19
.L20:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-92]
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #8320
	sub	r3, r3, #20
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	rsb	r3, r3, #10
	sub	r1, fp, #8192
	sub	r1, r1, #20
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-132]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #8192
	sub	r1, r1, #20
	mov	r0, r1
	sub	r1, fp, #8192
	sub	r1, r1, #20
	ldr	r1, [r1, #-164]
	lsl	r1, r1, #3
	add	r1, r0, r1
	sub	r1, r1, #88
	stm	r1, {r2-r3}
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	add	r3, r3, #1
	str	r3, [r2, #-164]
.L19:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	cmp	r3, #10
	ble	.L20
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-164]
	b	.L21
.L24:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	add	r3, r3, #1
	str	r3, [r2, #-160]
	b	.L22
.L23:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-160]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #88
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #8192
	sub	r1, r1, #20
	mov	r0, r1
	sub	r1, fp, #8192
	sub	r1, r1, #20
	ldr	r1, [r1, #-164]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-160]
	add	r3, r3, #1
	str	r3, [r2, #-160]
.L22:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-160]
	cmp	r3, #10
	ble	.L23
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	add	r3, r3, #1
	str	r3, [r2, #-164]
.L21:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	cmp	r3, #10
	ble	.L24
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-156]
	b	.L25
.L26:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-156]
	add	r3, r3, #1
	str	r3, [r2, #-156]
.L25:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-156]
	cmp	r3, #1000
	ble	.L26
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-156]
	b	.L27
.L28:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r1, [r3, #-156]
	mov	r0, #1000
	bl	compute_combinations
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #4096
	sub	r1, r1, #20
	mov	r0, r1
	sub	r1, fp, #8192
	sub	r1, r1, #20
	ldr	r1, [r1, #-156]
	lsl	r1, r1, #3
	add	r1, r0, r1
	sub	r1, r1, #3920
	stm	r1, {r2-r3}
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-156]
	add	r3, r3, #1
	str	r3, [r2, #-156]
.L27:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-156]
	cmp	r3, #1000
	ble	.L28
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-164]
	b	.L29
.L32:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-156]
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #4000
	sub	r3, r3, #8
	mov	r0, #0
	mov	r1, #0
	stm	r3, {r0-r1}
	b	.L30
.L31:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-156]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #3920
	ldmia	r3, {r4-r5}
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #88
	ldmia	r3, {r6-r7}
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r0, [r3, #-156]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-156]
	rsb	r3, r3, #1000
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #4000
	sub	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #4000
	sub	r3, r3, #8
	stm	r3, {r0-r1}
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-156]
	add	r3, r3, #1
	str	r3, [r2, #-156]
.L30:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-156]
	cmp	r3, #1000
	ble	.L31
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	add	r3, r3, #1
	str	r3, [r2, #-164]
.L29:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	cmp	r3, #10
	ble	.L32
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-164]
	sub	r3, fp, #8320
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	b	.L33
.L34:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r0, [r3, #-164]
	bl	__aeabi_i2d
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #4000
	sub	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #8320
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r4, r3
	sub	r3, fp, #8320
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmdb	ip, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stmdb	r4, {r2-r3}
	sub	r3, fp, #8192
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	add	r3, r3, #1
	str	r3, [r2, #-164]
.L33:
	sub	r3, fp, #8192
	sub	r3, r3, #20
	ldr	r3, [r3, #-164]
	cmp	r3, #10
	ble	.L34
	sub	r3, fp, #8320
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L37+8
	ldmdb	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L37
	ldr	r0, [r1]
	ldr	r1, [fp, #-24]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC2
	.word	1062207488
	.word	1076101120
	.size	compute_expected_fraction_heads_min, .-compute_expected_fraction_heads_min
	.align	2
	.global	compute_combinations
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_combinations, %function
compute_combinations:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L40
	mov	r2, #0
	ldr	r3, .L42
	b	.L41
.L40:
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	compute_combinations
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
.L41:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L43:
	.align	2
.L42:
	.word	1072693248
	.size	compute_combinations, .-compute_combinations
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
