	.file	"extr_datagen.c_RDG_genBlock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	RDG_genBlock, @function
RDG_genBlock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	comisd	xmm0, QWORD PTR .LC0[rip]
	jb	.L23
.L5:
	mov	rdi, rbx
	mov	r15d, 1
	call	RDG_rand@PLT
	mov	rdi, rbx
	and	eax, 3
	lea	ecx, 16[rax+rax]
	sal	r15, cl
	call	RDG_rand@PLT
	lea	rdi, 0[r13+r14*4]
	movsx	rcx, eax
	lea	rax, -1[r15]
	and	rax, rcx
	lea	rdx, [r15+rax]
	lea	rcx, [rdx+r14]
	cmp	rcx, rbp
	jbe	.L4
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdx, rbp
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 48
	sub	rdx, r14
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	esi, esi
	mov	QWORD PTR 8[rsp], rcx
	call	memset@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	rsi, r12
	mov	rdi, rbx
	lea	r15, -4[r13+rcx*4]
	call	RDG_genChar@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	DWORD PTR [r15], eax
	mov	r14, rcx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	test	rdx, rdx
	je	.L26
.L6:
	cmp	r14, rbp
	jnb	.L1
	mulsd	xmm0, QWORD PTR .LC1[rip]
	mov	QWORD PTR 24[rsp], 1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbx
	call	RDG_rand15Bits@PLT
	mov	rdi, rbx
	cmp	rax, QWORD PTR 8[rsp]
	jge	.L9
	call	RDG_randLength@PLT
	mov	rsi, rbp
	lea	rdi, 4[r14+rax]
	call	MIN@PLT
	mov	rdi, rbx
	mov	r15, rax
	call	RDG_rand@PLT
	mov	rdi, rbx
	mov	DWORD PTR 16[rsp], eax
	call	RDG_rand15Bits@PLT
	mov	edx, DWORD PTR 16[rsp]
	and	edx, 15
	cmp	edx, 2
	je	.L10
	lea	rdi, 1[rax]
	mov	rsi, r14
	call	MIN@PLT
	mov	QWORD PTR 24[rsp], rax
.L10:
	cmp	r15, r14
	jbe	.L11
	mov	rcx, QWORD PTR 24[rsp]
	lea	rax, 0[r13+r14*4]
	lea	rsi, 0[r13+r15*4]
	neg	rcx
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, DWORD PTR [rax+rcx*4]
	add	rax, 4
	mov	DWORD PTR -4[rax], edx
	cmp	rax, rsi
	jne	.L12
	mov	r14, r15
.L11:
	cmp	r14, rbp
	jb	.L14
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	call	RDG_randLength@PLT
	mov	rsi, rbp
	lea	rdi, [rax+r14]
	call	MIN@PLT
	mov	QWORD PTR 16[rsp], rax
	cmp	rax, r14
	jbe	.L11
	lea	r15, 0[r13+r14*4]
	lea	r14, 0[r13+rax*4]
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, r12
	mov	rdi, rbx
	add	r15, 4
	call	RDG_genChar@PLT
	mov	DWORD PTR -4[r15], eax
	cmp	r15, r14
	jne	.L13
	mov	r14, QWORD PTR 16[rsp]
	jmp	.L11
.L26:
	mov	rsi, rcx
	mov	rdi, r8
	movsd	QWORD PTR 8[rsp], xmm0
	mov	r14d, 1
	call	RDG_genChar@PLT
	movsd	xmm0, QWORD PTR 8[rsp]
	mov	DWORD PTR 0[r13], eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	RDG_genBlock, .-RDG_genBlock
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC1:
	.long	0
	.long	1088421888
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_datagen.c_RDG_genBlock.c"
	.text
	.global	__aeabi_dcmpge
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	RDG_genBlock, %function
RDG_genBlock:
	@ args = 16, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	add	r9, sp, #48
	ldmia	r9, {r8-r9}
	mov	r7, r0
	mov	r6, r1
	mov	r4, r2
	mov	r0, r8
	mov	r1, r9
	mov	r2, #0
	ldr	r3, .L27
	bl	__aeabi_dcmpge
	cmp	r0, #0
	ldr	r10, [sp, #56]
	ldr	r5, [sp, #60]
	beq	.L22
	mov	r9, #1
.L5:
	mov	r0, r5
	bl	RDG_rand
	and	r8, r0, #3
	mov	r0, r5
	bl	RDG_rand
	add	r8, r8, #8
	lsl	r8, r8, #1
	lsl	r8, r9, r8
	sub	r2, r8, #1
	and	r2, r2, r0
	add	r2, r8, r2
	add	r8, r2, r4
	cmp	r8, r6
	sub	fp, r8, #-1073741823
	add	r0, r7, r4, lsl #2
	bls	.L4
	mov	r1, #0
	sub	r2, r6, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	memset
.L4:
	mov	r1, #0
	bl	memset
	mov	r1, r10
	mov	r0, r5
	bl	RDG_genChar
	mov	r4, r8
	str	r0, [r7, fp, lsl #2]
	b	.L5
.L22:
	cmp	r4, #0
	beq	.L26
.L6:
	cmp	r4, r6
	bcs	.L1
	ldr	r3, .L27+4
	mov	r1, r9
	mov	r2, #0
	mov	r0, r8
	bl	__aeabi_dmul
	bl	__aeabi_d2iz
	mov	r3, #1
	mov	r9, r0
	str	r3, [sp, #4]
	sub	r3, r7, #4
	str	r3, [sp]
.L14:
	mov	r0, r5
	bl	RDG_rand15Bits
	cmp	r0, r9
	mov	r0, r5
	bge	.L9
	bl	RDG_randLength
	add	r0, r0, #4
	mov	r1, r6
	add	r0, r0, r4
	bl	MIN
	mov	r8, r0
	mov	r0, r5
	bl	RDG_rand
	mov	fp, r0
	mov	r0, r5
	bl	RDG_rand15Bits
	and	r3, fp, #15
	cmp	r3, #2
	beq	.L10
	mov	r1, r4
	add	r0, r0, #1
	bl	MIN
	str	r0, [sp, #4]
.L10:
	cmp	r8, r4
	sub	r3, r4, #-1073741823
	bls	.L11
	ldr	r2, [sp, #4]
	ldr	r1, [sp]
	sub	r2, r3, r2
	add	r2, r7, r2, lsl #2
	add	r3, r7, r3, lsl #2
	add	r0, r1, r8, lsl #2
.L12:
	ldr	r1, [r2, #4]!
	str	r1, [r3, #4]!
	cmp	r3, r0
	bne	.L12
.L24:
	mov	r4, r8
.L11:
	cmp	r4, r6
	bcc	.L14
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	bl	RDG_randLength
	mov	r1, r6
	add	r0, r0, r4
	bl	MIN
	cmp	r0, r4
	mov	r8, r0
	bls	.L11
	ldr	r3, [sp]
	sub	r4, r4, #-1073741823
	add	fp, r7, r4, lsl #2
	add	r4, r3, r0, lsl #2
.L13:
	mov	r1, r10
	mov	r0, r5
	bl	RDG_genChar
	str	r0, [fp, #4]!
	cmp	fp, r4
	bne	.L13
	b	.L24
.L26:
	mov	r1, r10
	mov	r0, r5
	bl	RDG_genChar
	mov	r4, #1
	str	r0, [r7]
	b	.L6
.L28:
	.align	2
.L27:
	.word	1072693248
	.word	1088421888
	.size	RDG_genBlock, .-RDG_genBlock
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
