#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*/ manchesterWrite(char, int, void (*)(unsigned int),
                                   void (*)(), void (*)());
void manchesterWritePreamble(int T, void (*delay)(unsigned int),
                             void (*setLow)(void), void (*setHigh)(void)) {
  char c;
  c = 0xFF;
  manchesterWrite(c, T, delay, setLow, setHigh);
  c = 0xFE;
  manchesterWrite(c, T, delay, setLow, setHigh);
}


x86 assembly (clang, -O0):
<manchesterWritePreamble>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movb   $0xff,-0x21(%rbp)
mov    -0x21(%rbp),%al
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
movsbl %al,%edi
call   1030 <manchesterWrite@plt>
movb   $0xfe,-0x21(%rbp)
mov    -0x21(%rbp),%al
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
movsbl %al,%edi
call   1030 <manchesterWrite@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<manchesterWritePreamble>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %edi,%ebp
mov    $0xffffffff,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1030 <manchesterWrite@plt>
mov    $0xfffffffe,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %r14,%r8
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <manchesterWrite@plt>

LLVM IR (-O0):
define void @manchesterWritePreamble(i32 %0, void (i32)* %1, void ()* %2, void ()* %3) {
%5 = alloca i32
%6 = alloca void (i32)*
%7 = alloca void ()*
%8 = alloca void ()*
%9 = alloca i8
store i32 %0, i32* %5
store void (i32)* %1, void (i32)** %6
store void ()* %2, void ()** %7
store void ()* %3, void ()** %8
store i8 -1, i8* %9
%10 = load i8, i8* %9
%11 = load i32, i32* %5
%12 = load void (i32)*, void (i32)** %6
%13 = load void ()*, void ()** %7
%14 = bitcast void ()* %13 to void (...)*
%15 = load void ()*, void ()** %8
%16 = bitcast void ()* %15 to void (...)*
%17 = call i32 @manchesterWrite(i8 signext %10, i32 %11, void (i32)* %12, void (...)* %14, void (...)* %16)
store i8 -2, i8* %9
%18 = load i8, i8* %9
%19 = load i32, i32* %5
%20 = load void (i32)*, void (i32)** %6
%21 = load void ()*, void ()** %7
%22 = bitcast void ()* %21 to void (...)*
%23 = load void ()*, void ()** %8
%24 = bitcast void ()* %23 to void (...)*
%25 = call i32 @manchesterWrite(i8 signext %18, i32 %19, void (i32)* %20, void (...)* %22, void (...)* %24)
ret void
}

LLVM IR (-O2):
define void @manchesterWritePreamble(i32 %0, void (i32)* %1, void ()* %2, void ()* %3) {
%5 = bitcast void ()* %2 to void (...)*
%6 = bitcast void ()* %3 to void (...)*
%7 = tail call i32 @manchesterWrite(i8 signext -1, i32 %0, void (i32)* %1, void (...)* %5, void (...)* %6)
%8 = tail call i32 @manchesterWrite(i8 signext -2, i32 %0, void (i32)* %1, void (...)* %5, void (...)* %6)
ret void
}