#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*/ printf(char *, unsigned char);
void add_fec_plid_128(unsigned int sbn, unsigned int esi) {
  printf("%c", (unsigned char)((sbn >> 24) & 0xFF));
  printf("%c", (unsigned char)((sbn >> 16) & 0xFF));
  printf("%c", (unsigned char)((sbn >> 8) & 0xFF));
  printf("%c", (unsigned char)(sbn & 0xFF));
  printf("%c", (unsigned char)((esi >> 24) & 0xFF));
  printf("%c", (unsigned char)((esi >> 16) & 0xFF));
  printf("%c", (unsigned char)((esi >> 8) & 0xFF));
  printf("%c", (unsigned char)(esi & 0xFF));
}


x86 assembly (clang, -O0):
<add_fec_plid_128>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x18,%eax
and    $0xff,%eax
lea    0xed0(%rip),%rdi
movzbl %al,%esi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
lea    0xeb6(%rip),%rdi
movzbl %al,%esi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
shr    $0x8,%eax
and    $0xff,%eax
lea    0xe9c(%rip),%rdi
movzbl %al,%esi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
and    $0xff,%eax
lea    0xe85(%rip),%rdi
movzbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
shr    $0x18,%eax
and    $0xff,%eax
lea    0xe6b(%rip),%rdi
movzbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
shr    $0x10,%eax
and    $0xff,%eax
lea    0xe51(%rip),%rdi
movzbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
shr    $0x8,%eax
and    $0xff,%eax
lea    0xe37(%rip),%rdi
movzbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
and    $0xff,%eax
lea    0xe20(%rip),%rdi
movzbl %al,%esi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<add_fec_plid_128>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebp
mov    %edi,%ebx
mov    %edi,%eax
shr    $0x18,%eax
lea    0xedc(%rip),%r14
mov    %r14,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    %ebx,%eax
shr    $0x10,%eax
movzbl %al,%esi
mov    %r14,%rdi
call   1030 <printf@plt>
movzbl %bh,%esi
mov    %r14,%rdi
call   1030 <printf@plt>
movzbl %bl,%esi
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %ebp,%eax
shr    $0x18,%eax
mov    %r14,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    %ebp,%eax
mov    %ebp,%ebx
shr    $0x10,%eax
movzbl %al,%esi
mov    %r14,%rdi
call   1030 <printf@plt>
movzbl %bh,%esi
mov    %r14,%rdi
call   1030 <printf@plt>
movzbl %bl,%esi
mov    %r14,%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
define void @add_fec_plid_128(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = lshr i32 %5, 24
%7 = and i32 %6, 255
%8 = trunc i32 %7 to i8
%9 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %8)
%10 = load i32, i32* %3
%11 = lshr i32 %10, 16
%12 = and i32 %11, 255
%13 = trunc i32 %12 to i8
%14 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %13)
%15 = load i32, i32* %3
%16 = lshr i32 %15, 8
%17 = and i32 %16, 255
%18 = trunc i32 %17 to i8
%19 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %18)
%20 = load i32, i32* %3
%21 = and i32 %20, 255
%22 = trunc i32 %21 to i8
%23 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %22)
%24 = load i32, i32* %4
%25 = lshr i32 %24, 24
%26 = and i32 %25, 255
%27 = trunc i32 %26 to i8
%28 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %27)
%29 = load i32, i32* %4
%30 = lshr i32 %29, 16
%31 = and i32 %30, 255
%32 = trunc i32 %31 to i8
%33 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %32)
%34 = load i32, i32* %4
%35 = lshr i32 %34, 8
%36 = and i32 %35, 255
%37 = trunc i32 %36 to i8
%38 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %37)
%39 = load i32, i32* %4
%40 = and i32 %39, 255
%41 = trunc i32 %40 to i8
%42 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %41)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define void @add_fec_plid_128(i32 %0, i32 %1) {
%3 = lshr i32 %0, 24
%4 = trunc i32 %3 to i8
%5 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %4)
%6 = lshr i32 %0, 16
%7 = trunc i32 %6 to i8
%8 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %7)
%9 = lshr i32 %0, 8
%10 = trunc i32 %9 to i8
%11 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %10)
%12 = trunc i32 %0 to i8
%13 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %12)
%14 = lshr i32 %1, 24
%15 = trunc i32 %14 to i8
%16 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %15)
%17 = lshr i32 %1, 16
%18 = trunc i32 %17 to i8
%19 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %18)
%20 = lshr i32 %1, 8
%21 = trunc i32 %20 to i8
%22 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %21)
%23 = trunc i32 %1 to i8
%24 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %23)
ret void
}