// File: /workspace/github_cpp_makefile_star2_O3/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 %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 (%rax), %r14d
movl 0x4(%rax), %eax
movq %rax, %rbx
shlq $0x28, %rbx
movl 0x7a0(%rsi), %r10d
shrl $0xb, %r10d
movl (%rcx), %ebp
andl $-0x11, %r10d
shll $0x12, %ebp
xorl %r10d, %ebp
movq %r14, %r15
shlq $0x8, %r15
orq %r15, %rbx
shrdq $0x8, %r9, %r11
xorl %r11d, %r15d
xorl %ebp, %r15d
movl 0xc(%rsi), %r10d
xorl %r14d, %r15d
movl 0x8(%rsi), %r14d
movl %r15d, (%rsi)
movl 0x7a4(%rsi), %ebp
shrl $0xb, %ebp
andl $0x1ecb7f, %ebp         # imm = 0x1ECB7F
xorq %rbx, %r11
movl 0x4(%rcx), %ebx
shll $0x12, %ebx
xorl %ebp, %ebx
shrq $0x20, %r11
xorl %eax, %ebx
xorl %r11d, %ebx
movq %r10, %r11
shlq $0x28, %r11
movl %ebx, 0x4(%rsi)
movl 0x8(%rcx), %ebx
shll $0x12, %ebx
xorl %r14d, %ebx
shlq $0x8, %r14
orq %r14, %r11
shrl $0x18, %eax
orl %eax, %r14d
movq %r8, %rax
shlq $0x20, %rax
orq %r9, %rax
movl 0x7a8(%rsi), %r9d
shrl $0xb, %r9d
andl $0x1affff, %r9d         # imm = 0x1AFFFF
xorl %r14d, %r9d
shrq $0x8, %rax
xorl %r9d, %eax
xorl %eax, %ebx
movl %ebx, 0x8(%rsi)
movl 0x7ac(%rsi), %eax
shrl $0x8, %r8d
shrl $0xb, %eax
andl $-0xa, %eax
xorl %r8d, %eax
movl 0xc(%rcx), %r8d
shll $0x12, %r8d
xorl %r10d, %r8d
shrq $0x20, %r11
xorl %r11d, %eax
xorl %eax, %r8d
movl %r8d, 0xc(%rsi)
leaq 0x10(%rsi), %rax
decq %rdx
jne 0x10500
addq $0x220, %rdi            # imm = 0x220
addq $-0x10, %rax
movl $0x7a, %edx
movl 0xc(%rcx), %esi
movl 0x8(%rcx), %r8d
movq (%rcx), %r10
movq %rax, %rcx
movq %rdi, %rax
movl 0xc(%rdi), %edi
movl 0x4(%rax), %r9d
movl (%rax), %r14d
movq %r9, %r11
shlq $0x28, %r11
movl -0x220(%rax), %ebx
shrl $0xb, %ebx
andl $-0x11, %ebx
movl (%rcx), %ebp
shll $0x12, %ebp
xorl %ebx, %ebp
movq %r14, %r15
shlq $0x8, %r15
orq %r15, %r11
shrdq $0x8, %r8, %r10
xorl %r10d, %r15d
xorl %ebp, %r15d
movl 0x8(%rax), %ebx
xorl %r14d, %r15d
movl -0x21c(%rax), %ebp
movl %r15d, (%rax)
shrl $0xb, %ebp
andl $0x1ecb7f, %ebp         # imm = 0x1ECB7F
movl 0x4(%rcx), %r14d
shll $0x12, %r14d
xorl %ebp, %r14d
xorq %r11, %r10
shrq $0x20, %r10
xorl %r9d, %r14d
xorl %r10d, %r14d
movq %rdi, %r10
shlq $0x28, %r10
movl %r14d, 0x4(%rax)
movl 0x8(%rcx), %r11d
shll $0x12, %r11d
xorl %ebx, %r11d
shlq $0x8, %rbx
orq %rbx, %r10
shrl $0x18, %r9d
orl %r9d, %ebx
movq %rsi, %r9
shlq $0x20, %r9
orq %r8, %r9
movl -0x218(%rax), %r8d
shrl $0xb, %r8d
andl $0x1affff, %r8d         # imm = 0x1AFFFF
xorl %ebx, %r8d
shrq $0x8, %r9
xorl %r8d, %r9d
xorl %r9d, %r11d
shrl $0x8, %esi
movl %r11d, 0x8(%rax)
movl -0x214(%rax), %r8d
shrl $0xb, %r8d
andl $-0xa, %r8d
xorl %esi, %r8d
shrq $0x20, %r10
xorl %r10d, %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 0x1060f
popq %rbx
popq %r14
popq %r15
popq %rbp
retq