#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 < 7; i++)
    initspr((0 + 1) + i, 62, 4, 15, 0, 0);
  for (i = 0; i < 6; i++)
    initspr(((0 + 1) + 7) + 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   $0x7,-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    $0x8,%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   %rax
mov    $0x1,%edi
mov    $0x3e,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x2,%edi
mov    $0x3e,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x3,%edi
mov    $0x3e,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x4,%edi
mov    $0x3e,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x5,%edi
mov    $0x3e,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x6,%edi
mov    $0x3e,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x7,%edi
mov    $0x3e,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x8,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0x9,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0xa,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0xb,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0xc,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
mov    $0xd,%edi
mov    $0x47,%esi
mov    $0x4,%edx
mov    $0xf,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <initspr@plt>
xor    %eax,%eax
pop    %rcx
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, 7
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 8, %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() {
%1 = tail call i32 @initspr(i32 1, i32 62, i32 4, i32 15, i32 0, i32 0)
%2 = tail call i32 @initspr(i32 2, i32 62, i32 4, i32 15, i32 0, i32 0)
%3 = tail call i32 @initspr(i32 3, i32 62, i32 4, i32 15, i32 0, i32 0)
%4 = tail call i32 @initspr(i32 4, i32 62, i32 4, i32 15, i32 0, i32 0)
%5 = tail call i32 @initspr(i32 5, i32 62, i32 4, i32 15, i32 0, i32 0)
%6 = tail call i32 @initspr(i32 6, i32 62, i32 4, i32 15, i32 0, i32 0)
%7 = tail call i32 @initspr(i32 7, i32 62, i32 4, i32 15, i32 0, i32 0)
%8 = tail call i32 @initspr(i32 8, i32 71, i32 4, i32 15, i32 0, i32 0)
%9 = tail call i32 @initspr(i32 9, i32 71, i32 4, i32 15, i32 0, i32 0)
%10 = tail call i32 @initspr(i32 10, i32 71, i32 4, i32 15, i32 0, i32 0)
%11 = tail call i32 @initspr(i32 11, i32 71, i32 4, i32 15, i32 0, i32 0)
%12 = tail call i32 @initspr(i32 12, i32 71, i32 4, i32 15, i32 0, i32 0)
%13 = tail call i32 @initspr(i32 13, i32 71, i32 4, i32 15, i32 0, i32 0)
%14 = tail call i32 (...) @initdbfspr()
ret void
}