#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 */
struct uriparams {
  int dummy;
};
struct templatevars {
  int dummy;
};

/* Variables and functions */
char *getParam(struct uriparams *, char *);
char *send_oscam_config_anticasc(struct templatevars *, struct uriparams *);
char *send_oscam_config_cache(struct templatevars *, struct uriparams *);
char *send_oscam_config_camd35(struct templatevars *, struct uriparams *);
char *send_oscam_config_camd35tcp(struct templatevars *, struct uriparams *);
char *send_oscam_config_cccam(struct templatevars *, struct uriparams *);
char *send_oscam_config_dvbapi(struct templatevars *, struct uriparams *);
char *send_oscam_config_gbox(struct templatevars *, struct uriparams *);
char *send_oscam_config_global(struct templatevars *, struct uriparams *);
char *send_oscam_config_loadbalancer(struct templatevars *, struct uriparams *);
char *send_oscam_config_monitor(struct templatevars *, struct uriparams *);
char *send_oscam_config_newcamd(struct templatevars *, struct uriparams *);
char *send_oscam_config_radegast(struct templatevars *, struct uriparams *);
char *send_oscam_config_scam(struct templatevars *, struct uriparams *);
char *send_oscam_config_serial(struct templatevars *, struct uriparams *);
char *send_oscam_config_webif(struct templatevars *, struct uriparams *);
int /*<<< orphan*/ setActiveMenu(struct templatevars *, int);
int /*<<< orphan*/ strcmp(char *, char *);
char *send_oscam_config(struct templatevars *vars, struct uriparams *params) {
  setActiveMenu(vars, 2);
  char *part = getParam(params, "part");
  if (!strcmp(part, "webif")) {
    return send_oscam_config_webif(vars, params);
  } else if (!strcmp(part, "monitor")) {
    return send_oscam_config_monitor(vars, params);
  } else if (!strcmp(part, "camd35")) {
    return send_oscam_config_camd35(vars, params);
  } else if (!strcmp(part, "camd35tcp")) {
    return send_oscam_config_camd35tcp(vars, params);
  } else if (!strcmp(part, "cache")) {
    return send_oscam_config_cache(vars, params);
  } else if (!strcmp(part, "newcamd")) {
    return send_oscam_config_newcamd(vars, params);
  } else if (!strcmp(part, "radegast")) {
    return send_oscam_config_radegast(vars, params);
  } else if (!strcmp(part, "scam")) {
    return send_oscam_config_scam(vars, params);
  } else if (!strcmp(part, "cccam")) {
    return send_oscam_config_cccam(vars, params);
  } else if (!strcmp(part, "gbox")) {
    return send_oscam_config_gbox(vars, params);
  } else if (!strcmp(part, "dvbapi")) {
    return send_oscam_config_dvbapi(vars, params);
  } else if (!strcmp(part, "anticasc")) {
    return send_oscam_config_anticasc(vars, params);
  } else if (!strcmp(part, "serial")) {
    return send_oscam_config_serial(vars, params);
  } else if (!strcmp(part, "loadbalancer")) {
    return send_oscam_config_loadbalancer(vars, params);
  } else {
    return send_oscam_config_global(vars, params);
  }
}


x86 assembly (clang, -O0):
<send_oscam_config>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   10e0 <setActiveMenu@plt>
mov    -0x18(%rbp),%rdi
lea    0xdb7(%rip),%rsi
call   1130 <getParam@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xda8(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    1281 <send_oscam_config+0x61>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <send_oscam_config_webif@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xd7f(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    12b0 <send_oscam_config+0x90>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <send_oscam_config_monitor@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xd58(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    12df <send_oscam_config+0xbf>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1110 <send_oscam_config_camd35@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xd30(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    130e <send_oscam_config+0xee>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1070 <send_oscam_config_camd35tcp@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xd0b(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    133d <send_oscam_config+0x11d>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1080 <send_oscam_config_cache@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xce2(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    136c <send_oscam_config+0x14c>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1120 <send_oscam_config_newcamd@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xcbb(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    139b <send_oscam_config+0x17b>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   10a0 <send_oscam_config_radegast@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xc95(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    13ca <send_oscam_config+0x1aa>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   10d0 <send_oscam_config_scam@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xc6b(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    13f9 <send_oscam_config+0x1d9>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1090 <send_oscam_config_cccam@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xc42(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    1428 <send_oscam_config+0x208>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1050 <send_oscam_config_gbox@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xc18(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    1457 <send_oscam_config+0x237>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1140 <send_oscam_config_dvbapi@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xbf0(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    1486 <send_oscam_config+0x266>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1100 <send_oscam_config_anticasc@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xbca(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    14b5 <send_oscam_config+0x295>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   10c0 <send_oscam_config_serial@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x20(%rbp),%rdi
lea    0xba2(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    14e4 <send_oscam_config+0x2c4>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1060 <send_oscam_config_loadbalancer@plt>
mov    %rax,-0x8(%rbp)
jmp    14f5 <send_oscam_config+0x2d5>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   10f0 <send_oscam_config_global@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<send_oscam_config>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    $0x2,%esi
call   10e0 <setActiveMenu@plt>
lea    0xdc4(%rip),%rsi
mov    %r14,%rdi
call   1130 <getParam@plt>
mov    %rax,%rbx
lea    0xdb7(%rip),%rsi
mov    %rax,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     1399 <send_oscam_config+0x179>
lea    0xda6(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     13a9 <send_oscam_config+0x189>
lea    0xd97(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     13b9 <send_oscam_config+0x199>
lea    0xd87(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     13c9 <send_oscam_config+0x1a9>
lea    0xd7a(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     13d9 <send_oscam_config+0x1b9>
lea    0xd69(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     13e9 <send_oscam_config+0x1c9>
lea    0xd5a(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     13f9 <send_oscam_config+0x1d9>
lea    0xd4c(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     1409 <send_oscam_config+0x1e9>
lea    0xd3a(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     1419 <send_oscam_config+0x1f9>
lea    0xd29(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     1429 <send_oscam_config+0x209>
lea    0xd17(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     1439 <send_oscam_config+0x219>
lea    0xd07(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     1449 <send_oscam_config+0x229>
lea    0xcf9(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     1459 <send_oscam_config+0x239>
lea    0xce9(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
mov    %r15,%rdi
mov    %r14,%rsi
test   %eax,%eax
je     1469 <send_oscam_config+0x249>
pop    %rbx
pop    %r14
pop    %r15
jmp    10f0 <send_oscam_config_global@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <send_oscam_config_webif@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <send_oscam_config_monitor@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1110 <send_oscam_config_camd35@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1070 <send_oscam_config_camd35tcp@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1080 <send_oscam_config_cache@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1120 <send_oscam_config_newcamd@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    10a0 <send_oscam_config_radegast@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    10d0 <send_oscam_config_scam@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1090 <send_oscam_config_cccam@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <send_oscam_config_gbox@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1140 <send_oscam_config_dvbapi@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1100 <send_oscam_config_anticasc@plt>
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    10c0 <send_oscam_config_serial@plt>
pop    %rbx
pop    %r14
pop    %r15
jmp    1060 <send_oscam_config_loadbalancer@plt>

LLVM IR (-O0):
%struct.templatevars = type { i32 }
%struct.uriparams = type { i32 }
@.str = [5 x i8] c"part\00"
@.str.1 = [6 x i8] c"webif\00"
@.str.2 = [8 x i8] c"monitor\00"
@.str.3 = [7 x i8] c"camd35\00"
@.str.4 = [10 x i8] c"camd35tcp\00"
@.str.5 = [6 x i8] c"cache\00"
@.str.6 = [8 x i8] c"newcamd\00"
@.str.7 = [9 x i8] c"radegast\00"
@.str.8 = [5 x i8] c"scam\00"
@.str.9 = [6 x i8] c"cccam\00"
@.str.10 = [5 x i8] c"gbox\00"
@.str.11 = [7 x i8] c"dvbapi\00"
@.str.12 = [9 x i8] c"anticasc\00"
@.str.13 = [7 x i8] c"serial\00"
@.str.14 = [13 x i8] c"loadbalancer\00"
define i8* @send_oscam_config(%struct.templatevars* %0, %struct.uriparams* %1) {
%3 = alloca i8*
%4 = alloca %struct.templatevars*
%5 = alloca %struct.uriparams*
%6 = alloca i8*
store %struct.templatevars* %0, %struct.templatevars** %4
store %struct.uriparams* %1, %struct.uriparams** %5
%7 = load %struct.templatevars*, %struct.templatevars** %4
%8 = call i32 @setActiveMenu(%struct.templatevars* %7, i32 2)
%9 = load %struct.uriparams*, %struct.uriparams** %5
%10 = call i8* @getParam(%struct.uriparams* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i8* %10, i8** %6
%11 = load i8*, i8** %6
%12 = call i32 @strcmp(i8* %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp ne i32 %12, 0
br i1 %13, label %18, label %14
14: ; preds = %2
%15 = load %struct.templatevars*, %struct.templatevars** %4
%16 = load %struct.uriparams*, %struct.uriparams** %5
%17 = call i8* @send_oscam_config_webif(%struct.templatevars* %15, %struct.uriparams* %16)
store i8* %17, i8** %3
br label %126
18: ; preds = %2
%19 = load i8*, i8** %6
%20 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp ne i32 %20, 0
br i1 %21, label %26, label %22
22: ; preds = %18
%23 = load %struct.templatevars*, %struct.templatevars** %4
%24 = load %struct.uriparams*, %struct.uriparams** %5
%25 = call i8* @send_oscam_config_monitor(%struct.templatevars* %23, %struct.uriparams* %24)
store i8* %25, i8** %3
br label %126
26: ; preds = %18
%27 = load i8*, i8** %6
%28 = call i32 @strcmp(i8* %27, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp ne i32 %28, 0
br i1 %29, label %34, label %30
30: ; preds = %26
%31 = load %struct.templatevars*, %struct.templatevars** %4
%32 = load %struct.uriparams*, %struct.uriparams** %5
%33 = call i8* @send_oscam_config_camd35(%struct.templatevars* %31, %struct.uriparams* %32)
store i8* %33, i8** %3
br label %126
34: ; preds = %26
%35 = load i8*, i8** %6
%36 = call i32 @strcmp(i8* %35, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%37 = icmp ne i32 %36, 0
br i1 %37, label %42, label %38
38: ; preds = %34
%39 = load %struct.templatevars*, %struct.templatevars** %4
%40 = load %struct.uriparams*, %struct.uriparams** %5
%41 = call i8* @send_oscam_config_camd35tcp(%struct.templatevars* %39, %struct.uriparams* %40)
store i8* %41, i8** %3
br label %126
42: ; preds = %34
%43 = load i8*, i8** %6
%44 = call i32 @strcmp(i8* %43, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%45 = icmp ne i32 %44, 0
br i1 %45, label %50, label %46
46: ; preds = %42
%47 = load %struct.templatevars*, %struct.templatevars** %4
%48 = load %struct.uriparams*, %struct.uriparams** %5
%49 = call i8* @send_oscam_config_cache(%struct.templatevars* %47, %struct.uriparams* %48)
store i8* %49, i8** %3
br label %126
50: ; preds = %42
%51 = load i8*, i8** %6
%52 = call i32 @strcmp(i8* %51, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%53 = icmp ne i32 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %50
%55 = load %struct.templatevars*, %struct.templatevars** %4
%56 = load %struct.uriparams*, %struct.uriparams** %5
%57 = call i8* @send_oscam_config_newcamd(%struct.templatevars* %55, %struct.uriparams* %56)
store i8* %57, i8** %3
br label %126
58: ; preds = %50
%59 = load i8*, i8** %6
%60 = call i32 @strcmp(i8* %59, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%61 = icmp ne i32 %60, 0
br i1 %61, label %66, label %62
62: ; preds = %58
%63 = load %struct.templatevars*, %struct.templatevars** %4
%64 = load %struct.uriparams*, %struct.uriparams** %5
%65 = call i8* @send_oscam_config_radegast(%struct.templatevars* %63, %struct.uriparams* %64)
store i8* %65, i8** %3
br label %126
66: ; preds = %58
%67 = load i8*, i8** %6
%68 = call i32 @strcmp(i8* %67, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%69 = icmp ne i32 %68, 0
br i1 %69, label %74, label %70
70: ; preds = %66
%71 = load %struct.templatevars*, %struct.templatevars** %4
%72 = load %struct.uriparams*, %struct.uriparams** %5
%73 = call i8* @send_oscam_config_scam(%struct.templatevars* %71, %struct.uriparams* %72)
store i8* %73, i8** %3
br label %126
74: ; preds = %66
%75 = load i8*, i8** %6
%76 = call i32 @strcmp(i8* %75, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%77 = icmp ne i32 %76, 0
br i1 %77, label %82, label %78
78: ; preds = %74
%79 = load %struct.templatevars*, %struct.templatevars** %4
%80 = load %struct.uriparams*, %struct.uriparams** %5
%81 = call i8* @send_oscam_config_cccam(%struct.templatevars* %79, %struct.uriparams* %80)
store i8* %81, i8** %3
br label %126
82: ; preds = %74
%83 = load i8*, i8** %6
%84 = call i32 @strcmp(i8* %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%85 = icmp ne i32 %84, 0
br i1 %85, label %90, label %86
86: ; preds = %82
%87 = load %struct.templatevars*, %struct.templatevars** %4
%88 = load %struct.uriparams*, %struct.uriparams** %5
%89 = call i8* @send_oscam_config_gbox(%struct.templatevars* %87, %struct.uriparams* %88)
store i8* %89, i8** %3
br label %126
90: ; preds = %82
%91 = load i8*, i8** %6
%92 = call i32 @strcmp(i8* %91, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%93 = icmp ne i32 %92, 0
br i1 %93, label %98, label %94
94: ; preds = %90
%95 = load %struct.templatevars*, %struct.templatevars** %4
%96 = load %struct.uriparams*, %struct.uriparams** %5
%97 = call i8* @send_oscam_config_dvbapi(%struct.templatevars* %95, %struct.uriparams* %96)
store i8* %97, i8** %3
br label %126
98: ; preds = %90
%99 = load i8*, i8** %6
%100 = call i32 @strcmp(i8* %99, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
%101 = icmp ne i32 %100, 0
br i1 %101, label %106, label %102
102: ; preds = %98
%103 = load %struct.templatevars*, %struct.templatevars** %4
%104 = load %struct.uriparams*, %struct.uriparams** %5
%105 = call i8* @send_oscam_config_anticasc(%struct.templatevars* %103, %struct.uriparams* %104)
store i8* %105, i8** %3
br label %126
106: ; preds = %98
%107 = load i8*, i8** %6
%108 = call i32 @strcmp(i8* %107, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%109 = icmp ne i32 %108, 0
br i1 %109, label %114, label %110
110: ; preds = %106
%111 = load %struct.templatevars*, %struct.templatevars** %4
%112 = load %struct.uriparams*, %struct.uriparams** %5
%113 = call i8* @send_oscam_config_serial(%struct.templatevars* %111, %struct.uriparams* %112)
store i8* %113, i8** %3
br label %126
114: ; preds = %106
%115 = load i8*, i8** %6
%116 = call i32 @strcmp(i8* %115, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
%117 = icmp ne i32 %116, 0
br i1 %117, label %122, label %118
118: ; preds = %114
%119 = load %struct.templatevars*, %struct.templatevars** %4
%120 = load %struct.uriparams*, %struct.uriparams** %5
%121 = call i8* @send_oscam_config_loadbalancer(%struct.templatevars* %119, %struct.uriparams* %120)
store i8* %121, i8** %3
br label %126
122: ; preds = %114
%123 = load %struct.templatevars*, %struct.templatevars** %4
%124 = load %struct.uriparams*, %struct.uriparams** %5
%125 = call i8* @send_oscam_config_global(%struct.templatevars* %123, %struct.uriparams* %124)
store i8* %125, i8** %3
br label %126
126: ; preds = %122, %118, %110, %102, %94, %86, %78, %70, %62, %54, %46, %38, %30, %22, %14
%127 = load i8*, i8** %3
ret i8* %127
}

LLVM IR (-O2):
%struct.templatevars = type { i32 }
%struct.uriparams = type { i32 }
@.str = [5 x i8] c"part\00"
@.str.1 = [6 x i8] c"webif\00"
@.str.2 = [8 x i8] c"monitor\00"
@.str.3 = [7 x i8] c"camd35\00"
@.str.4 = [10 x i8] c"camd35tcp\00"
@.str.5 = [6 x i8] c"cache\00"
@.str.6 = [8 x i8] c"newcamd\00"
@.str.7 = [9 x i8] c"radegast\00"
@.str.8 = [5 x i8] c"scam\00"
@.str.9 = [6 x i8] c"cccam\00"
@.str.10 = [5 x i8] c"gbox\00"
@.str.11 = [7 x i8] c"dvbapi\00"
@.str.12 = [9 x i8] c"anticasc\00"
@.str.13 = [7 x i8] c"serial\00"
@.str.14 = [13 x i8] c"loadbalancer\00"
define i8* @send_oscam_config(%struct.templatevars* %0, %struct.uriparams* %1) {
%3 = tail call i32 @setActiveMenu(%struct.templatevars* %0, i32 2)
%4 = tail call i8* @getParam(%struct.uriparams* %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i8* @send_oscam_config_webif(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
9: ; preds = %2
%10 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = tail call i8* @send_oscam_config_monitor(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
14: ; preds = %9
%15 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = tail call i8* @send_oscam_config_camd35(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
19: ; preds = %14
%20 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = tail call i8* @send_oscam_config_camd35tcp(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
24: ; preds = %19
%25 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = tail call i8* @send_oscam_config_cache(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
29: ; preds = %24
%30 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = tail call i8* @send_oscam_config_newcamd(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
34: ; preds = %29
%35 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = tail call i8* @send_oscam_config_radegast(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
39: ; preds = %34
%40 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %39
%43 = tail call i8* @send_oscam_config_scam(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
44: ; preds = %39
%45 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = tail call i8* @send_oscam_config_cccam(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
49: ; preds = %44
%50 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = tail call i8* @send_oscam_config_gbox(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
54: ; preds = %49
%55 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = tail call i8* @send_oscam_config_dvbapi(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
59: ; preds = %54
%60 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = tail call i8* @send_oscam_config_anticasc(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
64: ; preds = %59
%65 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = tail call i8* @send_oscam_config_serial(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
69: ; preds = %64
%70 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(13) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %69
%73 = tail call i8* @send_oscam_config_loadbalancer(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
74: ; preds = %69
%75 = tail call i8* @send_oscam_config_global(%struct.templatevars* %0, %struct.uriparams* %1)
br label %76
76: ; preds = %74, %72, %67, %62, %57, %52, %47, %42, %37, %32, %27, %22, %17, %12, %7
%77 = phi i8* [ %75, %74 ], [ %73, %72 ], [ %68, %67 ], [ %63, %62 ], [ %58, %57 ], [ %53, %52 ], [ %48, %47 ], [ %43, %42 ], [ %38, %37 ], [ %33, %32 ], [ %28, %27 ], [ %23, %22 ], [ %18, %17 ], [ %13, %12 ], [ %8, %7 ]
ret i8* %77
}