#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 */
char *bbb_getGpioStrByIndex(int);
char *bbb_getNameByIndex(int);
char *bbb_getPinStrByIndex(int);
char *bbb_getSignalNameByIndex(int);
char *bbb_getTypeStrByIndex(int);
int /*<<< orphan*/ printf(char *, char *, char *, char *, char *, char *);
void bbb_showByIndex(int index) {
  printf("%s %s %s %s %s\n", bbb_getPinStrByIndex(index),
         bbb_getGpioStrByIndex(index), bbb_getTypeStrByIndex(index),
         bbb_getSignalNameByIndex(index), bbb_getNameByIndex(index));
  ;
}


x86 assembly (clang, -O0):
<bbb_showByIndex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1060 <bbb_getPinStrByIndex@plt>
mov    %rax,-0x28(%rbp)
mov    -0x4(%rbp),%edi
call   1080 <bbb_getGpioStrByIndex@plt>
mov    %rax,-0x20(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <bbb_getTypeStrByIndex@plt>
mov    %rax,-0x18(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <bbb_getSignalNameByIndex@plt>
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
call   1070 <bbb_getNameByIndex@plt>
mov    -0x28(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    %rax,%r9
lea    0xe43(%rip),%rdi
call   1050 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bbb_showByIndex>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %edi,%ebx
call   1060 <bbb_getPinStrByIndex@plt>
mov    %rax,%r14
mov    %ebx,%edi
call   1080 <bbb_getGpioStrByIndex@plt>
mov    %rax,%r15
mov    %ebx,%edi
call   1030 <bbb_getTypeStrByIndex@plt>
mov    %rax,%r12
mov    %ebx,%edi
call   1040 <bbb_getSignalNameByIndex@plt>
mov    %rax,%r13
mov    %ebx,%edi
call   1070 <bbb_getNameByIndex@plt>
lea    0xe61(%rip),%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %rax,%r9
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"%s %s %s %s %s\0A\00"
define void @bbb_showByIndex(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i8* @bbb_getPinStrByIndex(i32 %3)
%5 = load i32, i32* %2
%6 = call i8* @bbb_getGpioStrByIndex(i32 %5)
%7 = load i32, i32* %2
%8 = call i8* @bbb_getTypeStrByIndex(i32 %7)
%9 = load i32, i32* %2
%10 = call i8* @bbb_getSignalNameByIndex(i32 %9)
%11 = load i32, i32* %2
%12 = call i8* @bbb_getNameByIndex(i32 %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %6, i8* %8, i8* %10, i8* %12)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"%s %s %s %s %s\0A\00"
define void @bbb_showByIndex(i32 %0) {
%2 = tail call i8* @bbb_getPinStrByIndex(i32 %0)
%3 = tail call i8* @bbb_getGpioStrByIndex(i32 %0)
%4 = tail call i8* @bbb_getTypeStrByIndex(i32 %0)
%5 = tail call i8* @bbb_getSignalNameByIndex(i32 %0)
%6 = tail call i8* @bbb_getNameByIndex(i32 %0)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %2, i8* %3, i8* %4, i8* %5, i8* %6)
ret void
}