#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*/ AddInterfaceTableLine(char *);
char *ParseTextAreaLines(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
void AddInterfaceTables(char *cValue) {
  char cLine[256];
  while (1) {
    sprintf(cLine, "%.255s", ParseTextAreaLines(cValue));
    if (cLine[0] == '#')
      continue;
    if (cLine[0] == ' ')
      continue;
    if (!cLine[0])
      break;
    AddInterfaceTableLine(cLine);
  }
}


x86 assembly (clang, -O0):
<AddInterfaceTables>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x110(%rbp),%rax
mov    %rax,-0x118(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <ParseTextAreaLines@plt>
mov    -0x118(%rbp),%rdi
mov    %rax,%rdx
lea    0xe99(%rip),%rsi
call   1050 <sprintf@plt>
movsbl -0x110(%rbp),%eax
cmp    $0x23,%eax
jne    1181 <AddInterfaceTables+0x51>
jmp    113f <AddInterfaceTables+0xf>
movsbl -0x110(%rbp),%eax
cmp    $0x20,%eax
jne    1196 <AddInterfaceTables+0x66>
jmp    113f <AddInterfaceTables+0xf>
cmpb   $0x0,-0x110(%rbp)
jne    11a8 <AddInterfaceTables+0x78>
jmp    11b9 <AddInterfaceTables+0x89>
lea    -0x110(%rbp),%rdi
call   1030 <AddInterfaceTableLine@plt>
jmp    113f <AddInterfaceTables+0xf>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AddInterfaceTables>:
push   %r15
push   %r14
push   %rbx
sub    $0x100,%rsp
mov    %rdi,%rbx
lea    0xeba(%rip),%r14
mov    %rsp,%r15
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1040 <ParseTextAreaLines@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rax,%rdx
call   1050 <sprintf@plt>
movzbl (%rsp),%eax
cmp    $0x20,%al
je     1150 <AddInterfaceTables+0x20>
cmp    $0x23,%al
je     1150 <AddInterfaceTables+0x20>
test   %al,%al
je     1180 <AddInterfaceTables+0x50>
mov    %r15,%rdi
call   1030 <AddInterfaceTableLine@plt>
jmp    1150 <AddInterfaceTables+0x20>
add    $0x100,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%.255s\00"
define void @AddInterfaceTables(i8* %0) {
%2 = alloca i8*
%3 = alloca [256 x i8]
store i8* %0, i8** %2
br label %4
4: ; preds = %1, %13, %19, %25
%5 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%6 = load i8*, i8** %2
%7 = call i8* @ParseTextAreaLines(i8* %6)
%8 = call i32 @sprintf(i8* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 35
br i1 %12, label %13, label %14
13: ; preds = %4
br label %4
14: ; preds = %4
%15 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 32
br i1 %18, label %19, label %20
19: ; preds = %14
br label %4
20: ; preds = %14
%21 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%22 = load i8, i8* %21
%23 = icmp ne i8 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %20
br label %28
25: ; preds = %20
%26 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%27 = call i32 @AddInterfaceTableLine(i8* %26)
br label %4
28: ; preds = %24
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%.255s\00"
define void @AddInterfaceTables(i8* %0) {
%2 = alloca [256 x i8]
%3 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
br label %4
4: ; preds = %10, %1
%5 = call i8* @ParseTextAreaLines(i8* %0)
%6 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i8, i8* %3
switch i8 %7, label %8 [
i8 35, label %10
i8 32, label %10
i8 0, label %11
]
8: ; preds = %4
%9 = call i32 @AddInterfaceTableLine(i8* %3)
br label %10
10: ; preds = %8, %4, %4
br label %4
11: ; preds = %4
ret void
}