	.file	"480188.c"
	.intel_syntax noprefix
	.text
	.globl	ran3
	.type	ran3, @function
ran3:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	js	.L2
	mov	eax, DWORD PTR iff.3[rip]
	test	eax, eax
	jne	.L3
.L2:
	mov	DWORD PTR iff.3[rip], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	cqo
	xor	rax, rdx
	sub	rax, rdx
	mov	edx, 161803398
	sub	rdx, rax
	mov	rax, rdx
	sar	rax, 63
	xor	rdx, rax
	mov	QWORD PTR -16[rbp], rdx
	sub	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	movabs	rdx, 1237940039285380275
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 26
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000000
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR ma.2[rip+440], rax
	mov	QWORD PTR -8[rbp], 1
	mov	DWORD PTR -28[rbp], 1
	jmp	.L4
.L6:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, 156180629
	shr	rdx, 32
	sar	edx
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -20[rbp], edx
	mov	edx, DWORD PTR -20[rbp]
	imul	edx, edx, 55
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, ma.2[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L5
	add	QWORD PTR -8[rbp], 1000000000
.L5:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ma.2[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -16[rbp], rax
	add	DWORD PTR -28[rbp], 1
.L4:
	cmp	DWORD PTR -28[rbp], 54
	jle	.L6
	mov	DWORD PTR -24[rbp], 1
	jmp	.L7
.L11:
	mov	DWORD PTR -28[rbp], 1
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ma.2[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 30[rax]
	movsx	rax, edx
	imul	rax, rax, 156180629
	shr	rax, 32
	sar	eax
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	imul	esi, eax, 55
	mov	eax, edx
	sub	eax, esi
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ma.2[rip]
	mov	rax, QWORD PTR [rdx+rax]
	sub	rcx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ma.2[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ma.2[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jns	.L9
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ma.2[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rcx, 1000000000[rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ma.2[rip]
	mov	QWORD PTR [rdx+rax], rcx
.L9:
	add	DWORD PTR -28[rbp], 1
.L8:
	cmp	DWORD PTR -28[rbp], 55
	jle	.L10
	add	DWORD PTR -24[rbp], 1
.L7:
	cmp	DWORD PTR -24[rbp], 4
	jle	.L11
	mov	DWORD PTR inext.1[rip], 0
	mov	DWORD PTR inextp.0[rip], 31
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], 1
.L3:
	mov	eax, DWORD PTR inext.1[rip]
	add	eax, 1
	mov	DWORD PTR inext.1[rip], eax
	mov	eax, DWORD PTR inext.1[rip]
	cmp	eax, 56
	jne	.L12
	mov	DWORD PTR inext.1[rip], 1
.L12:
	mov	eax, DWORD PTR inextp.0[rip]
	add	eax, 1
	mov	DWORD PTR inextp.0[rip], eax
	mov	eax, DWORD PTR inextp.0[rip]
	cmp	eax, 56
	jne	.L13
	mov	DWORD PTR inextp.0[rip], 1
.L13:
	mov	eax, DWORD PTR inext.1[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ma.2[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR inextp.0[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, ma.2[rip]
	mov	rdx, QWORD PTR [rcx+rdx]
	sub	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jns	.L14
	add	QWORD PTR -16[rbp], 1000000000
.L14:
	mov	eax, DWORD PTR inext.1[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, ma.2[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ran3, .-ran3
	.local	iff.3
	.comm	iff.3,4,4
	.local	ma.2
	.comm	ma.2,448,32
	.local	inext.1
	.comm	inext.1,4,4
	.local	inextp.0
	.comm	inextp.0,4,4
	.section	.rodata
	.align 8
.LC0:
	.long	-400107883
	.long	1041313291
	.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	"480188.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.align	2
	.global	ran3
	.syntax unified
	.arm
	.fpu softvfp
	.type	ran3, %function
ran3:
	@ 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]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L2
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L16
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, .L16+4
	sub	r3, r3, r2
	cmp	r3, #0
	rsblt	r3, r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, .L16+8
	smull	r1, r2, r3, r2
	asr	r1, r2, #28
	asr	r2, r3, #31
	sub	r2, r1, r2
	ldr	r1, .L16+12
	mul	r2, r1, r2
	sub	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r2, .L16+16
	ldr	r3, [fp, #-24]
	str	r3, [r2, #220]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L4
.L6:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	ldr	r3, .L16+20
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r1, .L16+16
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L5
	ldr	r2, [fp, #-20]
	ldr	r3, .L16+12
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L5:
	ldr	r2, .L16+16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #54
	ble	.L6
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L7
.L11:
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L8
.L10:
	ldr	r2, .L16+16
	ldr	r3, [fp, #-16]
	ldr	r0, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r1, r3, #30
	ldr	r3, .L16+20
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #1
	ldr	r2, .L16+16
	ldr	r3, [r2, r3, lsl #2]
	sub	r2, r0, r3
	ldr	r1, .L16+16
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L16+16
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bge	.L9
	ldr	r2, .L16+16
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L16+12
	add	r3, r2, r3
	ldr	r1, .L16+16
	ldr	r2, [fp, #-16]
	str	r3, [r1, r2, lsl #2]
.L9:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #55
	ble	.L10
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L11
	ldr	r3, .L16+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L16+28
	mov	r2, #31
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3]
.L3:
	ldr	r3, .L16+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+24
	str	r3, [r2]
	ldr	r3, .L16+24
	ldr	r3, [r3]
	cmp	r3, #56
	bne	.L12
	ldr	r3, .L16+24
	mov	r2, #1
	str	r2, [r3]
.L12:
	ldr	r3, .L16+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+28
	str	r3, [r2]
	ldr	r3, .L16+28
	ldr	r3, [r3]
	cmp	r3, #56
	bne	.L13
	ldr	r3, .L16+28
	mov	r2, #1
	str	r2, [r3]
.L13:
	ldr	r3, .L16+24
	ldr	r3, [r3]
	ldr	r2, .L16+16
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L16+28
	ldr	r3, [r3]
	ldr	r1, .L16+16
	ldr	r3, [r1, r3, lsl #2]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L14
	ldr	r2, [fp, #-24]
	ldr	r3, .L16+12
	add	r3, r2, r3
	str	r3, [fp, #-24]
.L14:
	ldr	r3, .L16+24
	ldr	r3, [r3]
	ldr	r1, .L16+16
	ldr	r2, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	ldr	r2, .L16+32
	ldr	r3, .L16+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	iff.4785
	.word	161803398
	.word	1152921505
	.word	1000000000
	.word	ma.4784
	.word	156180629
	.word	inext.4782
	.word	inextp.4783
	.word	-400107883
	.word	1041313291
	.size	ran3, .-ran3
	.local	iff.4785
	.comm	iff.4785,4,4
	.local	ma.4784
	.comm	ma.4784,224,4
	.local	inext.4782
	.comm	inext.4782,4,4
	.local	inextp.4783
	.comm	inextp.4783,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
