#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*/ phy_mii_write1_();
void phy_preamble_(void) {
  int i = 32;
  while (i > 0) {
    phy_mii_write1_();
    i--;
  }
}


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

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

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

LLVM IR (-O2):
define void @phy_preamble_() {
%1 = tail call i32 (...) @phy_mii_write1_()
%2 = tail call i32 (...) @phy_mii_write1_()
%3 = tail call i32 (...) @phy_mii_write1_()
%4 = tail call i32 (...) @phy_mii_write1_()
%5 = tail call i32 (...) @phy_mii_write1_()
%6 = tail call i32 (...) @phy_mii_write1_()
%7 = tail call i32 (...) @phy_mii_write1_()
%8 = tail call i32 (...) @phy_mii_write1_()
%9 = tail call i32 (...) @phy_mii_write1_()
%10 = tail call i32 (...) @phy_mii_write1_()
%11 = tail call i32 (...) @phy_mii_write1_()
%12 = tail call i32 (...) @phy_mii_write1_()
%13 = tail call i32 (...) @phy_mii_write1_()
%14 = tail call i32 (...) @phy_mii_write1_()
%15 = tail call i32 (...) @phy_mii_write1_()
%16 = tail call i32 (...) @phy_mii_write1_()
%17 = tail call i32 (...) @phy_mii_write1_()
%18 = tail call i32 (...) @phy_mii_write1_()
%19 = tail call i32 (...) @phy_mii_write1_()
%20 = tail call i32 (...) @phy_mii_write1_()
%21 = tail call i32 (...) @phy_mii_write1_()
%22 = tail call i32 (...) @phy_mii_write1_()
%23 = tail call i32 (...) @phy_mii_write1_()
%24 = tail call i32 (...) @phy_mii_write1_()
%25 = tail call i32 (...) @phy_mii_write1_()
%26 = tail call i32 (...) @phy_mii_write1_()
%27 = tail call i32 (...) @phy_mii_write1_()
%28 = tail call i32 (...) @phy_mii_write1_()
%29 = tail call i32 (...) @phy_mii_write1_()
%30 = tail call i32 (...) @phy_mii_write1_()
%31 = tail call i32 (...) @phy_mii_write1_()
%32 = tail call i32 (...) @phy_mii_write1_()
ret void
}