#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*/ CE_High();
int /*<<< orphan*/ CE_Low();
int /*<<< orphan*/ Send_Byte(unsigned char);
void Auto_Add_IncA(unsigned long Dst, unsigned char byte1,
                   unsigned char byte2) {
  CE_Low();
  Send_Byte(0xAD);
  Send_Byte(((Dst & 0xFFFFFF) >> 16));
  Send_Byte(((Dst & 0xFFFF) >> 8));
  Send_Byte(Dst & 0xFF);
  Send_Byte(byte1);
  Send_Byte(byte2);
  CE_High();
}


x86 assembly (clang, -O0):
<Auto_Add_IncA>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    $0x0,%al
call   1050 <CE_Low@plt>
mov    $0xad,%edi
call   1030 <Send_Byte@plt>
mov    -0x8(%rbp),%rax
and    $0xffffff,%rax
shr    $0x10,%rax
movzbl %al,%edi
call   1030 <Send_Byte@plt>
mov    -0x8(%rbp),%rax
and    $0xffff,%rax
shr    $0x8,%rax
movzbl %al,%edi
call   1030 <Send_Byte@plt>
mov    -0x8(%rbp),%rax
and    $0xff,%rax
movzbl %al,%edi
call   1030 <Send_Byte@plt>
movzbl -0x9(%rbp),%edi
call   1030 <Send_Byte@plt>
movzbl -0xa(%rbp),%edi
call   1030 <Send_Byte@plt>
mov    $0x0,%al
call   1040 <CE_High@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Auto_Add_IncA>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %rdi,%rbx
xor    %eax,%eax
call   1050 <CE_Low@plt>
mov    $0xad,%edi
call   1030 <Send_Byte@plt>
mov    %ebx,%eax
shr    $0x10,%eax
movzbl %al,%edi
call   1030 <Send_Byte@plt>
movzbl %bh,%edi
call   1030 <Send_Byte@plt>
movzbl %bl,%edi
call   1030 <Send_Byte@plt>
mov    %ebp,%edi
call   1030 <Send_Byte@plt>
mov    %r14d,%edi
call   1030 <Send_Byte@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <CE_High@plt>

LLVM IR (-O0):
define void @Auto_Add_IncA(i64 %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i64
%5 = alloca i8
%6 = alloca i8
store i64 %0, i64* %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%7 = call i32 (...) @CE_Low()
%8 = call i32 @Send_Byte(i8 zeroext -83)
%9 = load i64, i64* %4
%10 = and i64 %9, 16777215
%11 = lshr i64 %10, 16
%12 = trunc i64 %11 to i8
%13 = call i32 @Send_Byte(i8 zeroext %12)
%14 = load i64, i64* %4
%15 = and i64 %14, 65535
%16 = lshr i64 %15, 8
%17 = trunc i64 %16 to i8
%18 = call i32 @Send_Byte(i8 zeroext %17)
%19 = load i64, i64* %4
%20 = and i64 %19, 255
%21 = trunc i64 %20 to i8
%22 = call i32 @Send_Byte(i8 zeroext %21)
%23 = load i8, i8* %5
%24 = call i32 @Send_Byte(i8 zeroext %23)
%25 = load i8, i8* %6
%26 = call i32 @Send_Byte(i8 zeroext %25)
%27 = call i32 (...) @CE_High()
ret void
}

LLVM IR (-O2):
define void @Auto_Add_IncA(i64 %0, i8 zeroext %1, i8 zeroext %2) {
%4 = tail call i32 (...) @CE_Low()
%5 = tail call i32 @Send_Byte(i8 zeroext -83)
%6 = lshr i64 %0, 16
%7 = trunc i64 %6 to i8
%8 = tail call i32 @Send_Byte(i8 zeroext %7)
%9 = lshr i64 %0, 8
%10 = trunc i64 %9 to i8
%11 = tail call i32 @Send_Byte(i8 zeroext %10)
%12 = trunc i64 %0 to i8
%13 = tail call i32 @Send_Byte(i8 zeroext %12)
%14 = tail call i32 @Send_Byte(i8 zeroext %1)
%15 = tail call i32 @Send_Byte(i8 zeroext %2)
%16 = tail call i32 (...) @CE_High()
ret void
}