	.file	"extr_random.c_initstate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	initstate
	.type	initstate, @function
initstate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR BREAK_0[rip], rdx
	mov	rcx, QWORD PTR state[rip]
	ja	.L10
	mov	rbx, rsi
	mov	rax, QWORD PTR TYPE_0[rip]
	mov	rsi, QWORD PTR rand_type[rip]
	lea	r12, -8[rcx]
	cmp	rsi, rax
	je	.L3
	mov	rax, QWORD PTR rptr[rip]
	movsx	r8, DWORD PTR MAX_TYPES[rip]
	sub	rax, rcx
	sar	rax, 3
	imul	rax, r8
	add	rax, rsi
.L3:
	mov	QWORD PTR -8[rcx], rax
	cmp	QWORD PTR BREAK_1[rip], rdx
	ja	.L13
	cmp	QWORD PTR BREAK_2[rip], rdx
	jbe	.L6
	mov	rax, QWORD PTR TYPE_1[rip]
	mov	rdx, QWORD PTR DEG_1[rip]
	mov	QWORD PTR rand_type[rip], rax
	mov	eax, DWORD PTR SEP_1[rip]
	mov	QWORD PTR rand_deg[rip], rdx
	mov	DWORD PTR rand_sep[rip], eax
.L5:
	lea	rax, 8[rbx]
	mov	QWORD PTR state[rip], rax
	lea	rax, [rax+rdx*8]
	mov	QWORD PTR end_ptr[rip], rax
	call	srandom@PLT
	mov	rdx, QWORD PTR rand_type[rip]
	cmp	rdx, QWORD PTR TYPE_0[rip]
	je	.L14
	mov	rax, QWORD PTR rptr[rip]
	movsx	rcx, DWORD PTR MAX_TYPES[rip]
	sub	rax, QWORD PTR state[rip]
	sar	rax, 3
	imul	rax, rcx
	add	rax, rdx
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rax, QWORD PTR TYPE_0[rip]
	mov	rdx, QWORD PTR DEG_0[rip]
	mov	QWORD PTR rand_type[rip], rax
	mov	eax, DWORD PTR SEP_0[rip]
	mov	QWORD PTR rand_deg[rip], rdx
	mov	DWORD PTR rand_sep[rip], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	QWORD PTR [rbx], rdx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	cmp	QWORD PTR BREAK_3[rip], rdx
	ja	.L15
	cmp	QWORD PTR BREAK_4[rip], rdx
	jbe	.L8
	mov	rax, QWORD PTR TYPE_3[rip]
	mov	rdx, QWORD PTR DEG_3[rip]
	mov	QWORD PTR rand_type[rip], rax
	mov	eax, DWORD PTR SEP_3[rip]
	mov	QWORD PTR rand_deg[rip], rdx
	mov	DWORD PTR rand_sep[rip], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR TYPE_2[rip]
	mov	rdx, QWORD PTR DEG_2[rip]
	mov	QWORD PTR rand_type[rip], rax
	mov	eax, DWORD PTR SEP_2[rip]
	mov	QWORD PTR rand_deg[rip], rdx
	mov	DWORD PTR rand_sep[rip], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	xor	r12d, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR TYPE_4[rip]
	mov	rdx, QWORD PTR DEG_4[rip]
	mov	QWORD PTR rand_type[rip], rax
	mov	eax, DWORD PTR SEP_4[rip]
	mov	QWORD PTR rand_deg[rip], rdx
	mov	DWORD PTR rand_sep[rip], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	initstate, .-initstate
	.comm	state,8,8
	.comm	rptr,8,8
	.comm	rand_type,8,8
	.comm	rand_sep,4,4
	.comm	rand_deg,8,8
	.comm	end_ptr,8,8
	.comm	TYPE_4,8,8
	.comm	TYPE_3,8,8
	.comm	TYPE_2,8,8
	.comm	TYPE_1,8,8
	.comm	TYPE_0,8,8
	.comm	SEP_4,4,4
	.comm	SEP_3,4,4
	.comm	SEP_2,4,4
	.comm	SEP_1,4,4
	.comm	SEP_0,4,4
	.comm	MAX_TYPES,4,4
	.comm	DEG_4,8,8
	.comm	DEG_3,8,8
	.comm	DEG_2,8,8
	.comm	DEG_1,8,8
	.comm	DEG_0,8,8
	.comm	BREAK_4,8,8
	.comm	BREAK_3,8,8
	.comm	BREAK_2,8,8
	.comm	BREAK_1,8,8
	.comm	BREAK_0,8,8
	.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_random.c_initstate.c"
	.text
	.align	2
	.global	initstate
	.syntax unified
	.arm
	.fpu softvfp
	.type	initstate, %function
initstate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	r6, .L15+4
	cmp	r3, r2
	movhi	r5, #0
	ldr	ip, [r6]
	bhi	.L1
	ldr	r7, .L15+8
	ldr	r8, .L15+12
	mov	r4, r1
	ldr	r3, [r8]
	ldr	r1, [r7]
	sub	r5, ip, #4
	cmp	r1, r3
	beq	.L3
	ldr	r3, .L15+16
	ldr	lr, .L15+20
	ldr	r3, [r3]
	ldr	lr, [lr]
	sub	r3, r3, ip
	asr	r3, r3, #2
	mla	r3, lr, r3, r1
.L3:
	ldr	r1, .L15+24
	str	r3, [ip, #-4]
	ldr	r3, [r1]
	cmp	r3, r2
	bhi	.L14
	ldr	r3, .L15+28
	ldr	r3, [r3]
	cmp	r3, r2
	bls	.L6
	ldr	r2, .L15+32
	ldr	r3, .L15+36
	ldr	r1, .L15+40
.L12:
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	ip, .L15+44
	str	r2, [r7]
	ldr	r2, .L15+48
	str	r3, [ip]
	str	r1, [r2]
.L5:
	ldr	r1, .L15+52
	add	r2, r4, #4
	add	r3, r2, r3, lsl #2
	str	r3, [r1]
	str	r2, [r6]
	bl	srandom
	ldr	r3, [r8]
	ldr	r2, [r7]
	cmp	r2, r3
	ldrne	r3, .L15+16
	ldrne	r0, [r6]
	ldrne	r3, [r3]
	ldrne	r1, .L15+20
	subne	r3, r3, r0
	ldrne	r1, [r1]
	asrne	r3, r3, #2
	mlane	r3, r1, r3, r2
	streq	r2, [r4]
	strne	r3, [r4]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r3, .L15+56
	ldr	r1, .L15+60
	ldr	r2, .L15+44
	ldr	r3, [r3]
	ldr	ip, [r1]
	str	r3, [r2]
	ldr	r1, .L15+48
	ldr	r2, [r8]
	str	ip, [r1]
	str	r2, [r7]
	b	.L5
.L6:
	ldr	r3, .L15+64
	ldr	r3, [r3]
	cmp	r3, r2
	ldrhi	r2, .L15+68
	ldrhi	r3, .L15+72
	ldrhi	r1, .L15+76
	bhi	.L12
.L7:
	ldr	r3, .L15+80
	ldr	r3, [r3]
	cmp	r3, r2
	ldrhi	r2, .L15+84
	ldrhi	r3, .L15+88
	ldrhi	r1, .L15+92
	ldrls	r2, .L15+96
	ldrls	r3, .L15+100
	ldrls	r1, .L15+104
	b	.L12
.L16:
	.align	2
.L15:
	.word	BREAK_0
	.word	state
	.word	rand_type
	.word	TYPE_0
	.word	rptr
	.word	MAX_TYPES
	.word	BREAK_1
	.word	BREAK_2
	.word	TYPE_1
	.word	DEG_1
	.word	SEP_1
	.word	rand_deg
	.word	rand_sep
	.word	end_ptr
	.word	DEG_0
	.word	SEP_0
	.word	BREAK_3
	.word	TYPE_2
	.word	DEG_2
	.word	SEP_2
	.word	BREAK_4
	.word	TYPE_3
	.word	DEG_3
	.word	SEP_3
	.word	TYPE_4
	.word	DEG_4
	.word	SEP_4
	.size	initstate, .-initstate
	.comm	state,4,4
	.comm	rptr,4,4
	.comm	rand_type,4,4
	.comm	rand_sep,4,4
	.comm	rand_deg,4,4
	.comm	end_ptr,4,4
	.comm	TYPE_4,4,4
	.comm	TYPE_3,4,4
	.comm	TYPE_2,4,4
	.comm	TYPE_1,4,4
	.comm	TYPE_0,4,4
	.comm	SEP_4,4,4
	.comm	SEP_3,4,4
	.comm	SEP_2,4,4
	.comm	SEP_1,4,4
	.comm	SEP_0,4,4
	.comm	MAX_TYPES,4,4
	.comm	DEG_4,4,4
	.comm	DEG_3,4,4
	.comm	DEG_2,4,4
	.comm	DEG_1,4,4
	.comm	DEG_0,4,4
	.comm	BREAK_4,4,4
	.comm	BREAK_3,4,4
	.comm	BREAK_2,4,4
	.comm	BREAK_1,4,4
	.comm	BREAK_0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
