	.file	"650696.c"
	.intel_syntax noprefix
	.text
	.globl	ran1
	.type	ran1, @function
ran1:
.LFB0:
	.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 -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jle	.L2
	mov	rax, QWORD PTR iy.1[rip]
	test	rax, rax
	jne	.L3
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	js	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 1
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L5:
	mov	DWORD PTR -16[rbp], 39
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	movabs	rdx, 4730756183288445817
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 15
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, rax, -127773
	add	rax, rdx
	imul	rdx, rax, 16807
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, rax, -2836
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jns	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 2147483647[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L7:
	cmp	DWORD PTR -16[rbp], 31
	jg	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, iv.0[rip]
	mov	QWORD PTR [rcx+rdx], rax
.L8:
	sub	DWORD PTR -16[rbp], 1
.L6:
	cmp	DWORD PTR -16[rbp], 0
	jns	.L9
	mov	rax, QWORD PTR iv.0[rip]
	mov	QWORD PTR iy.1[rip], rax
.L3:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	movabs	rdx, 4730756183288445817
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 15
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, rax, -127773
	add	rax, rdx
	imul	rdx, rax, 16807
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, rax, -2836
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jns	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 2147483647[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L10:
	mov	rax, QWORD PTR iy.1[rip]
	lea	rdx, 67108863[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 26
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, iv.0[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR iy.1[rip], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, iv.0[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR iy.1[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -12[rbp]
	comisd	xmm0, QWORD PTR .LC1[rip]
	jbe	.L15
	movss	xmm0, DWORD PTR .LC2[rip]
	jmp	.L13
.L15:
	movss	xmm0, DWORD PTR -12[rbp]
.L13:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ran1, .-ran1
	.local	iy.1
	.comm	iy.1,8,8
	.local	iv.0
	.comm	iv.0,256,32
	.section	.rodata
	.align 8
.LC0:
	.long	2097152
	.long	1040187392
	.align 8
.LC1:
	.long	-1080863911
	.long	1072693247
	.align 4
.LC2:
	.long	1065353214
	.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	"650696.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.global	__aeabi_f2d
	.global	__aeabi_dcmpgt
	.align	2
	.global	ran1
	.syntax unified
	.arm
	.fpu softvfp
	.type	ran1, %function
ran1:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L2
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L4
	ldr	r3, [fp, #-24]
	mov	r2, #1
	str	r2, [r3]
	b	.L5
.L4:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	rsb	r2, r3, #0
	ldr	r3, [fp, #-24]
	str	r2, [r3]
.L5:
	mov	r3, #39
	str	r3, [fp, #-16]
	b	.L6
.L9:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, .L16+4
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #16
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r1, .L16+8
	mul	r3, r1, r3
	add	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #2
	add	r2, r2, r1
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r1
	lsl	r2, r3, #3
	sub	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r1, .L16+12
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L7
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	sub	r2, r3, #-2147483647
	ldr	r3, [fp, #-24]
	str	r2, [r3]
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #31
	bgt	.L8
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r1, .L16+16
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
.L8:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L6:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L9
	ldr	r3, .L16+16
	ldr	r3, [r3]
	ldr	r2, .L16
	str	r3, [r2]
.L3:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, .L16+4
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #16
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r1, .L16+8
	mul	r3, r1, r3
	add	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #2
	add	r2, r2, r1
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r1
	lsl	r2, r3, #3
	sub	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r1, .L16+12
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L10
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	sub	r2, r3, #-2147483647
	ldr	r3, [fp, #-24]
	str	r2, [r3]
.L10:
	ldr	r3, .L16
	ldr	r3, [r3]
	sub	r2, r3, #-67108863
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #26
	str	r3, [fp, #-16]
	ldr	r2, .L16+16
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L16
	str	r3, [r2]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r1, .L16+16
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #2097152
	mov	r3, #1040187392
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L16+20
	ldr	r3, .L16+24
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L16+28
	b	.L13
.L15:
	ldr	r3, [fp, #-8]	@ float
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	iy.4199
	.word	-2092037281
	.word	-127773
	.word	-2836
	.word	iv.4200
	.word	-1080863911
	.word	1072693247
	.word	1065353214
	.size	ran1, .-ran1
	.local	iy.4199
	.comm	iy.4199,4,4
	.local	iv.4200
	.comm	iv.4200,128,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
