#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*/ strcmp(char const *, char *);
const char *add_usb_radio_debug_function(const char *buff) {
  if (!strcmp(buff, "mtp,adb,mass_storage"))
    return "mtp,adb,mass_storage,diag,modem,rmnet";
  else if (!strcmp(buff, "mtp,adb,mass_storage,acm"))
    return "mtp,adb,mass_storage,diag,modem,rmnet";
  else if (!strcmp(buff, "mtp,mass_storage"))
    return "mtp,mass_storage,diag,modem,rmnet";
  else if (!strcmp(buff, "mtp,mass_storage,acm"))
    return "mtp,mass_storage,diag,modem,rmnet";
  if (!strcmp(buff, "ffs,acm"))
    return "adb,diag,modem,acm";
  if (!strcmp(buff, "mass_storage,adb"))
    return "mass_storage,adb,diag,modem,rmnet";
  else if (!strcmp(buff, "mass_storage"))
    return "mass_storage,diag,modem,rmnet";
  else if (!strcmp(buff, "rndis,adb"))
    return "rndis,adb,diag,modem";
  else if (!strcmp(buff, "rndis"))
    return "rndis,diag,modem";
  else if (!strcmp(buff, "mtp"))
    return "mtp,diag,modem,rmnet";
  else if (!strcmp(buff, "mtp,adb"))
    return "mtp,adb,diag,modem,rmnet";
  return buff;
}


x86 assembly (clang, -O0):
<add_usb_radio_debug_function>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1145 <add_usb_radio_debug_function+0x35>
lea    0xed9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    130f <add_usb_radio_debug_function+0x1ff>
mov    -0x10(%rbp),%rdi
lea    0xeeb(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    116e <add_usb_radio_debug_function+0x5e>
lea    0xeb0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    130f <add_usb_radio_debug_function+0x1ff>
mov    -0x10(%rbp),%rdi
lea    0xedb(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1197 <add_usb_radio_debug_function+0x87>
lea    0xed7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    130f <add_usb_radio_debug_function+0x1ff>
mov    -0x10(%rbp),%rdi
lea    0xee5(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    11c0 <add_usb_radio_debug_function+0xb0>
lea    0xeae(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    130f <add_usb_radio_debug_function+0x1ff>
jmp    11c5 <add_usb_radio_debug_function+0xb5>
jmp    11ca <add_usb_radio_debug_function+0xba>
jmp    11cf <add_usb_radio_debug_function+0xbf>
mov    -0x10(%rbp),%rdi
lea    0xec2(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    11f8 <add_usb_radio_debug_function+0xe8>
lea    0xeb5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    130f <add_usb_radio_debug_function+0x1ff>
mov    -0x10(%rbp),%rdi
lea    0xeb4(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1221 <add_usb_radio_debug_function+0x111>
lea    0xeb0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    130f <add_usb_radio_debug_function+0x1ff>
mov    -0x10(%rbp),%rdi
lea    0xddc(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    124a <add_usb_radio_debug_function+0x13a>
lea    0xddc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    130f <add_usb_radio_debug_function+0x1ff>
mov    -0x10(%rbp),%rdi
lea    0xe95(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1273 <add_usb_radio_debug_function+0x163>
lea    0xe8a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    130f <add_usb_radio_debug_function+0x1ff>
mov    -0x10(%rbp),%rdi
lea    0xe8b(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    129c <add_usb_radio_debug_function+0x18c>
lea    0xe7c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    130f <add_usb_radio_debug_function+0x1ff>
mov    -0x10(%rbp),%rdi
lea    0xe79(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    12c5 <add_usb_radio_debug_function+0x1b5>
lea    0xe68(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    130f <add_usb_radio_debug_function+0x1ff>
mov    -0x10(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    12ee <add_usb_radio_debug_function+0x1de>
lea    0xe5c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    130f <add_usb_radio_debug_function+0x1ff>
jmp    12f3 <add_usb_radio_debug_function+0x1e3>
jmp    12f8 <add_usb_radio_debug_function+0x1e8>
jmp    12fd <add_usb_radio_debug_function+0x1ed>
jmp    1302 <add_usb_radio_debug_function+0x1f2>
jmp    1307 <add_usb_radio_debug_function+0x1f7>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<add_usb_radio_debug_function>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0xee2(%rip),%rsi
call   1030 <strcmp@plt>
lea    0xeeb(%rip),%rbx
test   %eax,%eax
je     1242 <add_usb_radio_debug_function+0x132>
lea    0xf02(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1242 <add_usb_radio_debug_function+0x132>
lea    0xf04(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
lea    0xf06(%rip),%rbx
test   %eax,%eax
je     1242 <add_usb_radio_debug_function+0x132>
lea    0xf19(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1242 <add_usb_radio_debug_function+0x132>
lea    0xf17(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     120e <add_usb_radio_debug_function+0xfe>
lea    0xf1f(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1217 <add_usb_radio_debug_function+0x107>
lea    0xe5d(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1220 <add_usb_radio_debug_function+0x110>
lea    0xf2c(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1229 <add_usb_radio_debug_function+0x119>
lea    0xf38(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1232 <add_usb_radio_debug_function+0x122>
lea    0xf3c(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     123b <add_usb_radio_debug_function+0x12b>
lea    0xf42(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
lea    0xf39(%rip),%rbx
cmovne %r14,%rbx
jmp    1242 <add_usb_radio_debug_function+0x132>
lea    0xe8f(%rip),%rbx
jmp    1242 <add_usb_radio_debug_function+0x132>
lea    0xeaa(%rip),%rbx
jmp    1242 <add_usb_radio_debug_function+0x132>
lea    0xdf6(%rip),%rbx
jmp    1242 <add_usb_radio_debug_function+0x132>
lea    0xec4(%rip),%rbx
jmp    1242 <add_usb_radio_debug_function+0x132>
lea    0xed6(%rip),%rbx
jmp    1242 <add_usb_radio_debug_function+0x132>
lea    0xee2(%rip),%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [21 x i8] c"mtp,adb,mass_storage\00"
@.str.1 = [38 x i8] c"mtp,adb,mass_storage,diag,modem,rmnet\00"
@.str.2 = [25 x i8] c"mtp,adb,mass_storage,acm\00"
@.str.3 = [17 x i8] c"mtp,mass_storage\00"
@.str.4 = [34 x i8] c"mtp,mass_storage,diag,modem,rmnet\00"
@.str.5 = [21 x i8] c"mtp,mass_storage,acm\00"
@.str.6 = [8 x i8] c"ffs,acm\00"
@.str.7 = [19 x i8] c"adb,diag,modem,acm\00"
@.str.8 = [17 x i8] c"mass_storage,adb\00"
@.str.9 = [34 x i8] c"mass_storage,adb,diag,modem,rmnet\00"
@.str.10 = [13 x i8] c"mass_storage\00"
@.str.11 = [30 x i8] c"mass_storage,diag,modem,rmnet\00"
@.str.12 = [10 x i8] c"rndis,adb\00"
@.str.13 = [21 x i8] c"rndis,adb,diag,modem\00"
@.str.14 = [6 x i8] c"rndis\00"
@.str.15 = [17 x i8] c"rndis,diag,modem\00"
@.str.16 = [4 x i8] c"mtp\00"
@.str.17 = [21 x i8] c"mtp,diag,modem,rmnet\00"
@.str.18 = [8 x i8] c"mtp,adb\00"
@.str.19 = [25 x i8] c"mtp,adb,diag,modem,rmnet\00"
define i8* @add_usb_radio_debug_function(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @strcmp(i8* %4, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %68
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i32 @strcmp(i8* %9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %8
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %68
13: ; preds = %8
%14 = load i8*, i8** %3
%15 = call i32 @strcmp(i8* %14, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %13
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %68
18: ; preds = %13
%19 = load i8*, i8** %3
%20 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %18
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %68
23: ; preds = %18
br label %24
24: ; preds = %23
br label %25
25: ; preds = %24
br label %26
26: ; preds = %25
%27 = load i8*, i8** %3
%28 = call i32 @strcmp(i8* %27, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%29 = icmp ne i32 %28, 0
br i1 %29, label %31, label %30
30: ; preds = %26
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %68
31: ; preds = %26
%32 = load i8*, i8** %3
%33 = call i32 @strcmp(i8* %32, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%34 = icmp ne i32 %33, 0
br i1 %34, label %36, label %35
35: ; preds = %31
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %68
36: ; preds = %31
%37 = load i8*, i8** %3
%38 = call i32 @strcmp(i8* %37, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%39 = icmp ne i32 %38, 0
br i1 %39, label %41, label %40
40: ; preds = %36
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %68
41: ; preds = %36
%42 = load i8*, i8** %3
%43 = call i32 @strcmp(i8* %42, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%44 = icmp ne i32 %43, 0
br i1 %44, label %46, label %45
45: ; preds = %41
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %68
46: ; preds = %41
%47 = load i8*, i8** %3
%48 = call i32 @strcmp(i8* %47, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%49 = icmp ne i32 %48, 0
br i1 %49, label %51, label %50
50: ; preds = %46
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %68
51: ; preds = %46
%52 = load i8*, i8** %3
%53 = call i32 @strcmp(i8* %52, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%54 = icmp ne i32 %53, 0
br i1 %54, label %56, label %55
55: ; preds = %51
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %68
56: ; preds = %51
%57 = load i8*, i8** %3
%58 = call i32 @strcmp(i8* %57, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%59 = icmp ne i32 %58, 0
br i1 %59, label %61, label %60
60: ; preds = %56
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %68
61: ; preds = %56
br label %62
62: ; preds = %61
br label %63
63: ; preds = %62
br label %64
64: ; preds = %63
br label %65
65: ; preds = %64
br label %66
66: ; preds = %65
%67 = load i8*, i8** %3
store i8* %67, i8** %2
br label %68
68: ; preds = %66, %60, %55, %50, %45, %40, %35, %30, %22, %17, %12, %7
%69 = load i8*, i8** %2
ret i8* %69
}

LLVM IR (-O2):
@.str = [21 x i8] c"mtp,adb,mass_storage\00"
@.str.1 = [38 x i8] c"mtp,adb,mass_storage,diag,modem,rmnet\00"
@.str.2 = [25 x i8] c"mtp,adb,mass_storage,acm\00"
@.str.3 = [17 x i8] c"mtp,mass_storage\00"
@.str.4 = [34 x i8] c"mtp,mass_storage,diag,modem,rmnet\00"
@.str.5 = [21 x i8] c"mtp,mass_storage,acm\00"
@.str.6 = [8 x i8] c"ffs,acm\00"
@.str.7 = [19 x i8] c"adb,diag,modem,acm\00"
@.str.8 = [17 x i8] c"mass_storage,adb\00"
@.str.9 = [34 x i8] c"mass_storage,adb,diag,modem,rmnet\00"
@.str.10 = [13 x i8] c"mass_storage\00"
@.str.11 = [30 x i8] c"mass_storage,diag,modem,rmnet\00"
@.str.12 = [10 x i8] c"rndis,adb\00"
@.str.13 = [21 x i8] c"rndis,adb,diag,modem\00"
@.str.14 = [6 x i8] c"rndis\00"
@.str.15 = [17 x i8] c"rndis,diag,modem\00"
@.str.16 = [4 x i8] c"mtp\00"
@.str.17 = [21 x i8] c"mtp,diag,modem,rmnet\00"
@.str.18 = [8 x i8] c"mtp,adb\00"
@.str.19 = [25 x i8] c"mtp,adb,diag,modem,rmnet\00"
define i8* @add_usb_radio_debug_function(i8* %0) {
%2 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(21) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
br i1 %3, label %35, label %4
4: ; preds = %1
%5 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(25) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
br i1 %6, label %35, label %7
7: ; preds = %4
%8 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(17) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%9 = icmp eq i32 %8, 0
br i1 %9, label %35, label %10
10: ; preds = %7
%11 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(21) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
br i1 %12, label %35, label %13
13: ; preds = %10
%14 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
br i1 %15, label %35, label %16
16: ; preds = %13
%17 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(17) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%18 = icmp eq i32 %17, 0
br i1 %18, label %35, label %19
19: ; preds = %16
%20 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(13) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%21 = icmp eq i32 %20, 0
br i1 %21, label %35, label %22
22: ; preds = %19
%23 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%24 = icmp eq i32 %23, 0
br i1 %24, label %35, label %25
25: ; preds = %22
%26 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%27 = icmp eq i32 %26, 0
br i1 %27, label %35, label %28
28: ; preds = %25
%29 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %35, label %31
31: ; preds = %28
%32 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%33 = icmp eq i32 %32, 0
%34 = select i1 %33, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0), i8* %0
br label %35
35: ; preds = %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%36 = phi i8* [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), %1 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), %4 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), %7 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), %10 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), %13 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0), %16 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), %19 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), %22 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), %25 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), %28 ], [ %34, %31 ]
ret i8* %36
}