#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ initdbfspr();
int /*<<< orphan*/ initspr(int, int, int, int, int /*<<< orphan*/,
                           int /*<<< orphan*/);
void initmbspr(void) {
  int i;
  for (i = 0; i < 50; i++)
    initspr((0 + 1) + i, 62, 4, 15, 0, 0);
  for (i = 0; i < 6; i++)
    initspr(((0 + 1) + 50) + i, 71, 4, 15, 0, 0);
  initdbfspr();
}


x86 assembly (clang, -O0):
<initmbspr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x32,-0x4(%rbp)
jge    1167 <initmbspr+0x47>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    $0x3e,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r9d,%r9d
mov    %r9d,%r8d
call   1030 <initspr@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <initmbspr+0xf>
movl   $0x0,-0x4(%rbp)
cmpl   $0x6,-0x4(%rbp)
jge    11a6 <initmbspr+0x86>
mov    -0x4(%rbp),%edi
add    $0x33,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r9d,%r9d
mov    %r9d,%r8d
call   1030 <initspr@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    116e <initmbspr+0x4e>
mov    $0x0,%al
call   1040 <initdbfspr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initmbspr>:
push   %rbx
mov    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    $0x3e,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
add    $0x1,%ebx
cmp    $0x33,%ebx
jne    1130 <initmbspr+0x10>
mov    $0x33,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x34,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x35,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x36,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x37,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x38,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <initdbfspr@plt>

LLVM IR (-O0):
define void @initmbspr() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %9, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 50
br i1 %4, label %5, label %12
5: ; preds = %2
%6 = load i32, i32* %1
%7 = add nsw i32 1, %6
%8 = call i32 @initspr(i32 %7, i32 62, i32 4, i32 15, i32 0, i32 0)
br label %9
9: ; preds = %5
%10 = load i32, i32* %1
%11 = add nsw i32 %10, 1
store i32 %11, i32* %1
br label %2
12: ; preds = %2
store i32 0, i32* %1
br label %13
13: ; preds = %20, %12
%14 = load i32, i32* %1
%15 = icmp slt i32 %14, 6
br i1 %15, label %16, label %23
16: ; preds = %13
%17 = load i32, i32* %1
%18 = add nsw i32 51, %17
%19 = call i32 @initspr(i32 %18, i32 71, i32 4, i32 15, i32 0, i32 0)
br label %20
20: ; preds = %16
%21 = load i32, i32* %1
%22 = add nsw i32 %21, 1
store i32 %22, i32* %1
br label %13
23: ; preds = %13
%24 = call i32 (...) @initdbfspr()
ret void
}

LLVM IR (-O2):
define void @initmbspr() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %3, %1 ]
%3 = add nuw nsw i32 %2, 1
%4 = tail call i32 @initspr(i32 %3, i32 62, i32 4, i32 15, i32 0, i32 0)
%5 = icmp eq i32 %3, 50
br i1 %5, label %6, label %1
6: ; preds = %1
%7 = tail call i32 @initspr(i32 51, i32 71, i32 4, i32 15, i32 0, i32 0)
%8 = tail call i32 @initspr(i32 52, i32 71, i32 4, i32 15, i32 0, i32 0)
%9 = tail call i32 @initspr(i32 53, i32 71, i32 4, i32 15, i32 0, i32 0)
%10 = tail call i32 @initspr(i32 54, i32 71, i32 4, i32 15, i32 0, i32 0)
%11 = tail call i32 @initspr(i32 55, i32 71, i32 4, i32 15, i32 0, i32 0)
%12 = tail call i32 @initspr(i32 56, i32 71, i32 4, i32 15, i32 0, i32 0)
%13 = tail call i32 (...) @initdbfspr()
ret void
}