// File: /workspace/github_cpp_makefile_star2_O1/JenTus[P]TCEM/src_TCEM/sfmt/SFMT.c
// Function: sfmt_gen_rand_all
void sfmt_gen_rand_all(sfmt_t * sfmt) {
    int i;
    w128_t *r1, *r2;

    r1 = &sfmt->state[SFMT_N - 2];
    r2 = &sfmt->state[SFMT_N - 1];
    for (i = 0; i < SFMT_N - SFMT_POS1; i++) {
	do_recursion(&sfmt->state[i], &sfmt->state[i],
		     &sfmt->state[i + SFMT_POS1], r1, r2);
	r1 = r2;
	r2 = &sfmt->state[i];
    }
    for (; i < SFMT_N; i++) {
	do_recursion(&sfmt->state[i], &sfmt->state[i],
		     &sfmt->state[i + SFMT_POS1 - SFMT_N], r1, r2);
	r1 = r2;
	r2 = &sfmt->state[i];
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0x9a0(%rdi), %rcx
leaq 0x9b0(%rdi), %rsi
movl $0x22, %edx
movq %rdi, %rax
movl 0xc(%rcx), %r8d
movl 0x8(%rcx), %r9d
movq (%rcx), %r11
movq %rsi, %rcx
movq %rax, %rsi
movl 0xc(%rax), %eax
movl 0x8(%rsi), %r10d
movl (%rsi), %ebx
shrdq $0x8, %r9, %r11
movl 0x7a0(%rsi), %ebp
movl %r11d, %r14d
xorl %ebx, %r14d
shrl $0xb, %ebp
andl $-0x11, %ebp
movl (%rcx), %r15d
shlq $0x8, %rbx
shll $0x12, %r15d
xorl %ebx, %r15d
xorl %ebp, %r15d
movl 0x4(%rsi), %r12d
xorl %r15d, %r14d
movq %r12, %r15
movl %r14d, (%rsi)
shlq $0x28, %r15
movl 0x7a4(%rsi), %ebp
shrl $0xb, %ebp
andl $0x1ecb7f, %ebp         # imm = 0x1ECB7F
orq %rbx, %r15
movl 0x4(%rcx), %ebx
shll $0x12, %ebx
xorl %ebp, %ebx
xorq %r15, %r11
xorl %r12d, %ebx
movl %r12d, %ebp
shrq $0x20, %r11
xorl %r11d, %ebx
movq %rax, %r11
movl %ebx, 0x4(%rsi)
movl 0x8(%rcx), %ebx
shlq $0x28, %r11
shll $0x12, %ebx
xorl %r10d, %ebx
shlq $0x8, %r10
orq %r10, %r11
shrl $0x18, %ebp
orl %ebp, %r10d
movq %r8, %r14
shlq $0x20, %r14
orq %r9, %r14
movl 0x7a8(%rsi), %r9d
shrl $0xb, %r9d
andl $0x1affff, %r9d         # imm = 0x1AFFFF
xorl %r10d, %r9d
shrq $0x8, %r14
xorl %r9d, %r14d
xorl %r14d, %ebx
movl %ebx, 0x8(%rsi)
movl 0x7ac(%rsi), %r9d
shrl $0x8, %r8d
shrl $0xb, %r9d
andl $-0xa, %r9d
xorl %r8d, %r9d
movl 0xc(%rcx), %r8d
shll $0x12, %r8d
xorl %eax, %r8d
shrq $0x20, %r11
xorl %r11d, %r9d
xorl %r9d, %r8d
movl %r8d, 0xc(%rsi)
leaq 0x10(%rsi), %rax
decq %rdx
jne 0x1085a
addq $0x220, %rdi            # imm = 0x220
addq $-0x10, %rax
movl $0x7a, %edx
movl 0xc(%rcx), %esi
movl 0x8(%rcx), %r8d
movq (%rcx), %r9
movq %rax, %rcx
movq %rdi, %rax
movl 0xc(%rdi), %edi
movl 0x4(%rax), %r10d
movl (%rax), %ebx
movq %r10, %r11
shrdq $0x8, %r8, %r9
shlq $0x28, %r11
movl %r9d, %ebp
xorl %ebx, %ebp
shlq $0x8, %rbx
orq %rbx, %r11
movl (%rcx), %r14d
shll $0x12, %r14d
xorl %ebx, %r14d
movl -0x220(%rax), %ebx
shrl $0xb, %ebx
andl $-0x11, %ebx
xorl %ebx, %r14d
movl 0x8(%rax), %ebx
xorl %r14d, %ebp
movl -0x21c(%rax), %r14d
movl %ebp, (%rax)
shrl $0xb, %r14d
andl $0x1ecb7f, %r14d        # imm = 0x1ECB7F
movl 0x4(%rcx), %ebp
shll $0x12, %ebp
xorl %r14d, %ebp
xorq %r11, %r9
xorl %r10d, %ebp
shrq $0x20, %r9
xorl %r9d, %ebp
movq %rdi, %r9
shlq $0x28, %r9
movl %ebp, 0x4(%rax)
movl 0x8(%rcx), %r11d
shll $0x12, %r11d
xorl %ebx, %r11d
shlq $0x8, %rbx
orq %rbx, %r9
shrl $0x18, %r10d
orl %r10d, %ebx
movq %rsi, %r10
shlq $0x20, %r10
orq %r8, %r10
movl -0x218(%rax), %r8d
shrl $0xb, %r8d
andl $0x1affff, %r8d         # imm = 0x1AFFFF
xorl %ebx, %r8d
shrq $0x8, %r10
xorl %r8d, %r10d
xorl %r10d, %r11d
shrl $0x8, %esi
movl %r11d, 0x8(%rax)
movl -0x214(%rax), %r8d
shrl $0xb, %r8d
andl $-0xa, %r8d
xorl %esi, %r8d
shrq $0x20, %r9
xorl %r9d, %r8d
movl 0xc(%rcx), %esi
shll $0x12, %esi
xorl %edi, %esi
xorl %r8d, %esi
movl %esi, 0xc(%rax)
leaq 0x10(%rax), %rdi
decq %rdx
jne 0x1096f
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq