#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 HadTu_size(void const *);
int SubEvt_decoding(void const *);
int SubEvt_id(void const *);
int SubEvt_trigNr(void const *);
int /*<<< orphan*/ sprintf(char *, char *, int, int, int, int);
char *SubEvt_2charP(const void *my) {
  static char buf[132];
  sprintf(buf, "size: 0x%08x\tdecoding: 0x%08x\tid: 0x%08x\ttrigNr: 0x%08x",
          HadTu_size(my), SubEvt_decoding(my), SubEvt_id(my),
          SubEvt_trigNr(my));
  return buf;
}


x86 assembly (clang, -O0):
<SubEvt_2charP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <HadTu_size@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1070 <SubEvt_decoding@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <SubEvt_id@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <SubEvt_trigNr@plt>
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%r8d
mov    %eax,%r9d
lea    0x2ec3(%rip),%rdi
lea    0xe5c(%rip),%rsi
call   1050 <sprintf@plt>
lea    0x2eb0(%rip),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SubEvt_2charP>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1030 <HadTu_size@plt>
mov    %eax,%r14d
mov    %rbx,%rdi
call   1070 <SubEvt_decoding@plt>
mov    %eax,%r15d
mov    %rbx,%rdi
call   1060 <SubEvt_id@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1040 <SubEvt_trigNr@plt>
lea    0x2eda(%rip),%rbx
lea    0xe73(%rip),%rsi
mov    %rbx,%rdi
mov    %r14d,%edx
mov    %r15d,%ecx
mov    %ebp,%r8d
mov    %eax,%r9d
call   1050 <sprintf@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@SubEvt_2charP.buf = internal global [132 x i8] zeroinitializer
@.str = [56 x i8] c"size: 0x%08x\09decoding: 0x%08x\09id: 0x%08x\09trigNr: 0x%08x\00"
define i8* @SubEvt_2charP(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @HadTu_size(i8* %3)
%5 = load i8*, i8** %2
%6 = call i32 @SubEvt_decoding(i8* %5)
%7 = load i8*, i8** %2
%8 = call i32 @SubEvt_id(i8* %7)
%9 = load i8*, i8** %2
%10 = call i32 @SubEvt_trigNr(i8* %9)
%11 = call i32 @sprintf(i8* getelementptr inbounds ([132 x i8], [132 x i8]* @SubEvt_2charP.buf, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %6, i32 %8, i32 %10)
ret i8* getelementptr inbounds ([132 x i8], [132 x i8]* @SubEvt_2charP.buf, i64 0, i64 0)
}

LLVM IR (-O2):
@SubEvt_2charP.buf = internal global [132 x i8] zeroinitializer
@.str = [56 x i8] c"size: 0x%08x\09decoding: 0x%08x\09id: 0x%08x\09trigNr: 0x%08x\00"
define i8* @SubEvt_2charP(i8* %0) {
%2 = tail call i32 @HadTu_size(i8* %0)
%3 = tail call i32 @SubEvt_decoding(i8* %0)
%4 = tail call i32 @SubEvt_id(i8* %0)
%5 = tail call i32 @SubEvt_trigNr(i8* %0)
%6 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([132 x i8], [132 x i8]* @SubEvt_2charP.buf, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3, i32 %4, i32 %5)
ret i8* getelementptr inbounds ([132 x i8], [132 x i8]* @SubEvt_2charP.buf, i64 0, i64 0)
}