#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 IdentifiantBoutonPlosible(int /*<<< orphan*/);
int RetournerInformationConfig(char *, char *, char *);
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int RetournerInformationConfigIndex(char *parametreALire, char *index,
                                    char *valeurDefaut, char *resultat) {
  int codeRetour;
  char parametreComplet[1024];
  codeRetour = IdentifiantBoutonPlosible(atoi(index));
  if (codeRetour != 200) {
    return codeRetour;
  }
  strcpy(parametreComplet, parametreALire);
  strcat(parametreComplet, index);
  return RetournerInformationConfig(parametreComplet, valeurDefaut, resultat);
}


x86 assembly (clang, -O0):
<RetournerInformationConfigIndex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x430,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
call   1060 <atoi@plt>
mov    %eax,%edi
call   1040 <IdentifiantBoutonPlosible@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0xc8,-0x2c(%rbp)
je     1196 <RetournerInformationConfigIndex+0x46>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    11cd <RetournerInformationConfigIndex+0x7d>
lea    -0x430(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x430(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1070 <strcat@plt>
lea    -0x430(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1050 <RetournerInformationConfig@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RetournerInformationConfigIndex>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x400,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%r12
mov    %rsi,%rdi
call   1060 <atoi@plt>
mov    %eax,%edi
call   1040 <IdentifiantBoutonPlosible@plt>
cmp    $0xc8,%eax
jne    11a9 <RetournerInformationConfigIndex+0x59>
mov    %rsp,%r13
mov    %r13,%rdi
mov    %r12,%rsi
call   1030 <strcpy@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
call   1070 <strcat@plt>
mov    %r13,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1050 <RetournerInformationConfig@plt>
add    $0x400,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @RetournerInformationConfigIndex(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca [1024 x i8]
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
%12 = load i8*, i8** %7
%13 = call i32 @atoi(i8* %12)
%14 = call i32 @IdentifiantBoutonPlosible(i32 %13)
store i32 %14, i32* %10
%15 = load i32, i32* %10
%16 = icmp ne i32 %15, 200
br i1 %16, label %17, label %19
17: ; preds = %4
%18 = load i32, i32* %10
store i32 %18, i32* %5
br label %30
19: ; preds = %4
%20 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%21 = load i8*, i8** %6
%22 = call i32 @strcpy(i8* %20, i8* %21)
%23 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%24 = load i8*, i8** %7
%25 = call i32 @strcat(i8* %23, i8* %24)
%26 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%27 = load i8*, i8** %8
%28 = load i8*, i8** %9
%29 = call i32 @RetournerInformationConfig(i8* %26, i8* %27, i8* %28)
store i32 %29, i32* %5
br label %30
30: ; preds = %19, %17
%31 = load i32, i32* %5
ret i32 %31
}

LLVM IR (-O2):
define i32 @RetournerInformationConfigIndex(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca [1024 x i8]
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%7 = tail call i32 @atoi(i8* %1)
%8 = tail call i32 @IdentifiantBoutonPlosible(i32 %7)
%9 = icmp eq i32 %8, 200
br i1 %9, label %10, label %14
10: ; preds = %4
%11 = call i32 @strcpy(i8* %6, i8* %0)
%12 = call i32 @strcat(i8* %6, i8* %1)
%13 = call i32 @RetournerInformationConfig(i8* %6, i8* %2, i8* %3)
br label %14
14: ; preds = %4, %10
%15 = phi i32 [ %13, %10 ], [ %8, %4 ]
ret i32 %15
}