	.file	"extr_datagen.c_RDG_genOut.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	RDG_genOut
	.type	RDG_genOut, @function
RDG_genOut:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -68[rbp], esi
	mov	r14, QWORD PTR RDG_BLOCKSIZE[rip]
	movsd	QWORD PTR -80[rbp], xmm0
	mov	rbx, rsp
	movapd	xmm0, xmm1
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR RDG_DICTSIZE[rip]
	add	rax, r14
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L20:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L20
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L21
	ucomisd	xmm0, QWORD PTR .LC0[rip]
	mov	r12, rsp
	jp	.L5
.L24:
	jne	.L5
	movsd	xmm0, QWORD PTR -80[rbp]
	divsd	xmm0, QWORD PTR .LC1[rip]
.L5:
	xor	ecx, ecx
	lea	r15, -68[rbp]
	xor	ebx, ebx
	mov	edi, ecx
	mov	DWORD PTR -72[rbp], ecx
	call	RDG_fillLiteralDistrib@PLT
	mov	edi, DWORD PTR stdout[rip]
	call	SET_BINARY_MODE@PLT
	mov	ecx, DWORD PTR -72[rbp]
	movsd	xmm0, QWORD PTR -80[rbp]
	mov	r8, r15
	mov	esi, DWORD PTR RDG_DICTSIZE[rip]
	xor	edx, edx
	mov	rdi, r12
	call	RDG_genBlock@PLT
	test	r13, r13
	je	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR RDG_DICTSIZE[rip]
	movsd	xmm0, QWORD PTR -80[rbp]
	xor	ecx, ecx
	mov	r8, r15
	mov	esi, DWORD PTR RDG_BLOCKSIZE[rip]
	mov	rdi, r12
	add	esi, edx
	call	RDG_genBlock@PLT
	mov	rdx, r13
	sub	rdx, rbx
	cmp	rdx, QWORD PTR RDG_BLOCKSIZE[rip]
	jnb	.L22
	mov	ecx, DWORD PTR stdout[rip]
	mov	esi, 1
	mov	rdi, r12
	call	fwrite@PLT
	mov	rax, QWORD PTR RDG_BLOCKSIZE[rip]
	mov	edx, DWORD PTR RDG_DICTSIZE[rip]
	mov	rdi, r12
	lea	rsi, [r12+rax*4]
	call	memcpy@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	ecx, DWORD PTR stdout[rip]
	mov	rdx, r14
	mov	rdi, r12
	add	rbx, r14
	mov	esi, 1
	call	fwrite@PLT
	mov	rax, QWORD PTR RDG_BLOCKSIZE[rip]
	mov	edx, DWORD PTR RDG_DICTSIZE[rip]
	mov	rdi, r12
	lea	rsi, [r12+rax*4]
	call	memcpy@PLT
	cmp	r13, rbx
	ja	.L7
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	or	QWORD PTR -8[rsp+rdx], 0
	ucomisd	xmm0, QWORD PTR .LC0[rip]
	mov	r12, rsp
	jnp	.L24
	jmp	.L5
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	RDG_genOut, .-RDG_genOut
	.comm	stdout,4,4
	.comm	RDG_DICTSIZE,4,4
	.comm	RDG_BLOCKSIZE,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	0
	.align 8
.LC1:
	.long	0
	.long	1074921472
	.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_genOut.c"
	.text
	.global	__aeabi_dcmpeq
	.global	__aeabi_ddiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	RDG_genOut
	.syntax unified
	.arm
	.fpu softvfp
	.type	RDG_genOut, %function
RDG_genOut:
	@ args = 12, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #60
	ldmib	fp, {r9-r10}
	mov	r6, r2
	mov	r7, r3
	ldr	ip, .L14
	ldr	r8, .L14+4
	ldr	ip, [ip]
	ldmia	r8, {r4-r5}
	adds	r4, r4, ip
	lsl	r4, r4, #2
	add	r4, r4, #7
	bic	r4, r4, #7
	sub	sp, sp, r4
	mov	r5, r7
	mov	r4, r6
	mov	ip, r1
	str	r4, [fp, #-76]
	str	r5, [fp, #-72]
	str	ip, [fp, #-56]
	ldr	ip, .L14+8
	str	r0, [fp, #-60]
	mov	r1, r10
	mov	r0, r9
	mov	r2, #0
	mov	r3, #0
	ldr	ip, [ip]
	str	ip, [fp, #-40]
	mov	ip,#0
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	ldr	r7, [r8]
	add	r6, sp, #16
	beq	.L2
	mov	r2, #0
	mov	r0, r4
	mov	r1, r5
	ldr	r3, .L14+12
	bl	__aeabi_ddiv
	mov	r9, r0
	mov	r10, r1
.L2:
	mov	r4, #0
	mov	r2, r9
	mov	r3, r10
	mov	r0, r4
	bl	RDG_fillLiteralDistrib
	ldr	r3, .L14+16
	ldr	r10, .L14
	ldr	r0, [r3]
	bl	SET_BINARY_MODE
	str	r4, [sp, #8]
	sub	r4, fp, #76
	ldmia	r4, {r3-r4}
	stm	sp, {r3-r4}
	add	r3, fp, #12
	str	r3, [sp, #12]
	ldr	r1, [r10]
	mov	r2, #0
	mov	r0, r6
	bl	RDG_genBlock
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	orrs	r3, r0, r1
	beq	.L1
	ldr	r9, [r8]
	ldr	r10, [r10]
	mov	r3, r9
	mov	r2, r10
	mov	r9, r6
	mov	r10, r7
	mov	r4, #0
	mov	r5, #0
	mov	r6, r0
	mov	r7, r1
.L6:
	mov	ip, #0
	add	r1, fp, #12
	str	ip, [sp, #8]
	str	r1, [sp, #12]
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	stm	sp, {r0-r1}
	add	r1, r2, r3
	mov	r0, r9
	bl	RDG_genBlock
	ldmia	r8, {r2-r3}
	subs	r1, r6, r4
	str	r1, [fp, #-52]
	sbc	r1, r7, r5
	str	r1, [fp, #-48]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	ldr	r3, .L14+16
	subcc	r10, r6, r4
	adds	r4, r4, r10
	mov	r2, r10
	mov	r1, #1
	ldr	r3, [r3]
	mov	r0, r9
	adc	r5, r5, #0
	bl	fwrite
	ldr	r2, .L14
	ldr	r3, [r8]
	ldr	r2, [r2]
	add	r1, r9, r3, lsl #2
	mov	r0, r9
	str	r3, [fp, #-64]
	str	r2, [fp, #-60]
	bl	memcpy
	cmp	r7, r5
	cmpeq	r6, r4
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-64]
	bhi	.L6
.L1:
	ldr	r3, .L14+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	RDG_DICTSIZE
	.word	RDG_BLOCKSIZE
	.word	.LC0
	.word	1074921472
	.word	stdout
	.size	RDG_genOut, .-RDG_genOut
	.comm	stdout,4,4
	.comm	RDG_DICTSIZE,4,4
	.comm	RDG_BLOCKSIZE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
