#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*/ mm_compiler_barrier();
void mm_cpu_backoff(void) {
  for (int i = 0; i < 64; i++)
    mm_compiler_barrier();
}


x86 assembly (clang, -O0):
<mm_cpu_backoff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x40,-0x4(%rbp)
jge    113e <mm_cpu_backoff+0x2e>
mov    $0x0,%al
call   1030 <mm_compiler_barrier@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <mm_cpu_backoff+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mm_cpu_backoff>:
push   %rax
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
call   1030 <mm_compiler_barrier@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <mm_compiler_barrier@plt>

LLVM IR (-O0):
define void @mm_cpu_backoff() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %7, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 64
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = call i32 (...) @mm_compiler_barrier()
br label %7
7: ; preds = %5
%8 = load i32, i32* %1
%9 = add nsw i32 %8, 1
store i32 %9, i32* %1
br label %2
10: ; preds = %2
ret void
}

LLVM IR (-O2):
define void @mm_cpu_backoff() {
%1 = tail call i32 (...) @mm_compiler_barrier()
%2 = tail call i32 (...) @mm_compiler_barrier()
%3 = tail call i32 (...) @mm_compiler_barrier()
%4 = tail call i32 (...) @mm_compiler_barrier()
%5 = tail call i32 (...) @mm_compiler_barrier()
%6 = tail call i32 (...) @mm_compiler_barrier()
%7 = tail call i32 (...) @mm_compiler_barrier()
%8 = tail call i32 (...) @mm_compiler_barrier()
%9 = tail call i32 (...) @mm_compiler_barrier()
%10 = tail call i32 (...) @mm_compiler_barrier()
%11 = tail call i32 (...) @mm_compiler_barrier()
%12 = tail call i32 (...) @mm_compiler_barrier()
%13 = tail call i32 (...) @mm_compiler_barrier()
%14 = tail call i32 (...) @mm_compiler_barrier()
%15 = tail call i32 (...) @mm_compiler_barrier()
%16 = tail call i32 (...) @mm_compiler_barrier()
%17 = tail call i32 (...) @mm_compiler_barrier()
%18 = tail call i32 (...) @mm_compiler_barrier()
%19 = tail call i32 (...) @mm_compiler_barrier()
%20 = tail call i32 (...) @mm_compiler_barrier()
%21 = tail call i32 (...) @mm_compiler_barrier()
%22 = tail call i32 (...) @mm_compiler_barrier()
%23 = tail call i32 (...) @mm_compiler_barrier()
%24 = tail call i32 (...) @mm_compiler_barrier()
%25 = tail call i32 (...) @mm_compiler_barrier()
%26 = tail call i32 (...) @mm_compiler_barrier()
%27 = tail call i32 (...) @mm_compiler_barrier()
%28 = tail call i32 (...) @mm_compiler_barrier()
%29 = tail call i32 (...) @mm_compiler_barrier()
%30 = tail call i32 (...) @mm_compiler_barrier()
%31 = tail call i32 (...) @mm_compiler_barrier()
%32 = tail call i32 (...) @mm_compiler_barrier()
%33 = tail call i32 (...) @mm_compiler_barrier()
%34 = tail call i32 (...) @mm_compiler_barrier()
%35 = tail call i32 (...) @mm_compiler_barrier()
%36 = tail call i32 (...) @mm_compiler_barrier()
%37 = tail call i32 (...) @mm_compiler_barrier()
%38 = tail call i32 (...) @mm_compiler_barrier()
%39 = tail call i32 (...) @mm_compiler_barrier()
%40 = tail call i32 (...) @mm_compiler_barrier()
%41 = tail call i32 (...) @mm_compiler_barrier()
%42 = tail call i32 (...) @mm_compiler_barrier()
%43 = tail call i32 (...) @mm_compiler_barrier()
%44 = tail call i32 (...) @mm_compiler_barrier()
%45 = tail call i32 (...) @mm_compiler_barrier()
%46 = tail call i32 (...) @mm_compiler_barrier()
%47 = tail call i32 (...) @mm_compiler_barrier()
%48 = tail call i32 (...) @mm_compiler_barrier()
%49 = tail call i32 (...) @mm_compiler_barrier()
%50 = tail call i32 (...) @mm_compiler_barrier()
%51 = tail call i32 (...) @mm_compiler_barrier()
%52 = tail call i32 (...) @mm_compiler_barrier()
%53 = tail call i32 (...) @mm_compiler_barrier()
%54 = tail call i32 (...) @mm_compiler_barrier()
%55 = tail call i32 (...) @mm_compiler_barrier()
%56 = tail call i32 (...) @mm_compiler_barrier()
%57 = tail call i32 (...) @mm_compiler_barrier()
%58 = tail call i32 (...) @mm_compiler_barrier()
%59 = tail call i32 (...) @mm_compiler_barrier()
%60 = tail call i32 (...) @mm_compiler_barrier()
%61 = tail call i32 (...) @mm_compiler_barrier()
%62 = tail call i32 (...) @mm_compiler_barrier()
%63 = tail call i32 (...) @mm_compiler_barrier()
%64 = tail call i32 (...) @mm_compiler_barrier()
ret void
}