#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ serverAddr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ btea_decrpyt(unsigned char *, int);
int /*<<< orphan*/ close(int);
scalar_t__ connect(int, struct sockaddr *, int);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_addr(char *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int recv(int, unsigned char *, int, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ strcmp(unsigned char *, char *);
int main() {
  int clientSocket;
  struct sockaddr_in serverAddr;
  unsigned char sendbuf[200];
  unsigned char recvbuf[200];
  unsigned char dst[200];
  int iDataNum;
  if ((clientSocket = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
    perror("socket");
    return 1;
  }
  serverAddr.sin_family = AF_INET;
  serverAddr.sin_port = htons(8899);
  serverAddr.sin_addr.s_addr = inet_addr("192.168.1.113");
  if (connect(clientSocket, (struct sockaddr *)&serverAddr,
              sizeof(serverAddr)) < 0) {
    perror("connect");
    return 1;
  }
  printf("连接到主机...\n");
  while (1) {
    if (strcmp(sendbuf, "quit") == 0)
      break;
    printf("\n读取消息:");
    recvbuf[0] = '\0';
    iDataNum = recv(clientSocket, recvbuf, 200, 0);
    printf("%d\n", iDataNum);
    unsigned char *src = recvbuf;
    for (int i = 0; i < iDataNum; i++) {
      printf("%02x ", recvbuf[i]);
    }
    printf("\n:");
    btea_decrpyt((unsigned char *)(src + 4), 36);
    for (int i = 0; i < 36; i++) {
      printf("%02x ", *(src + 4 + i));
    }
  }
  close(clientSocket);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2a0,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e2f(%rip),%rax
mov    (%rax),%edi
mov    0x2e16(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10c0 <socket@plt>
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
jge    11ef <main+0x4f>
lea    0xe22(%rip),%rdi
call   10a0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    139d <main+0x1fd>
mov    0x2df2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
mov    $0x22c3,%edi
call   1040 <htons@plt>
mov    %eax,-0x14(%rbp)
lea    0xdf8(%rip),%rdi
call   1070 <inet_addr@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%edi
lea    -0x18(%rbp),%rsi
mov    $0xc,%edx
call   10b0 <connect@plt>
cmp    $0x0,%rax
jge    124a <main+0xaa>
lea    0xddc(%rip),%rdi
call   10a0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    139d <main+0x1fd>
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rdi
lea    0xdcb(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    127a <main+0xda>
jmp    138e <main+0x1ee>
lea    0xdb5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movb   $0x0,-0x1b0(%rbp)
mov    -0x8(%rbp),%edi
lea    -0x1b0(%rbp),%rsi
mov    $0xc8,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,-0x284(%rbp)
mov    -0x284(%rbp),%esi
lea    0xd8d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x1b0(%rbp),%rax
mov    %rax,-0x290(%rbp)
movl   $0x0,-0x294(%rbp)
mov    -0x294(%rbp),%eax
cmp    -0x284(%rbp),%eax
jge    131a <main+0x17a>
movslq -0x294(%rbp),%rax
movzbl -0x1b0(%rbp,%rax,1),%esi
ff
lea    0xd4a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x294(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x294(%rbp)
jmp    12d7 <main+0x137>
lea    0xd2e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x290(%rbp),%rdi
add    $0x4,%rdi
mov    $0x24,%esi
call   1090 <btea_decrpyt@plt>
movl   $0x0,-0x298(%rbp)
cmpl   $0x24,-0x298(%rbp)
jge    1389 <main+0x1e9>
mov    -0x290(%rbp),%rax
movslq -0x298(%rbp),%rcx
movzbl 0x4(%rax,%rcx,1),%esi
lea    0xcdb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x298(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x298(%rbp)
jmp    1347 <main+0x1a7>
jmp    1258 <main+0xb8>
mov    -0x8(%rbp),%edi
call   1060 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x2a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1a8,%rsp
mov    0x2e20(%rip),%rbx
mov    (%rbx),%edi
mov    0x2e07(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10d0 <socket@plt>
test   %eax,%eax
js     1539 <main+0x389>
mov    %eax,%r14d
mov    (%rbx),%eax
mov    %eax,0x8(%rsp)
mov    $0x22c3,%edi
call   1050 <htons@plt>
mov    %eax,0x4(%rsp)
lea    0xe07(%rip),%rdi
call   1080 <inet_addr@plt>
mov    %eax,(%rsp)
mov    %rsp,%rsi
mov    %r14d,%edi
mov    $0xc,%edx
call   10c0 <connect@plt>
test   %rax,%rax
js     1542 <main+0x392>
lea    0xe16(%rip),%rdi
call   1040 <puts@plt>
lea    0xde9(%rip),%rsi
lea    0xe0(%rsp),%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     151d <main+0x36d>
lea    0xde4(%rip),%r15
lea    0xe0(%rsp),%r12
jmp    14ad <main+0x2fd>
xchg   %ax,%ax
lea    0xdd4(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x14(%rsp),%rdi
mov    $0x24,%esi
call   10a0 <btea_decrpyt@plt>
movzbl 0x14(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x15(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x16(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x17(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x18(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x19(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1a(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1b(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1c(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1d(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1e(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x1f(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x20(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x21(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x22(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x23(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x24(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x25(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x26(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x27(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x28(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x29(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2a(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2b(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2c(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2d(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2e(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x2f(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x30(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x31(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x32(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x33(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x34(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x35(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x36(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x37(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
lea    0xb7a(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     151d <main+0x36d>
lea    0xb6e(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movb   $0x0,0x10(%rsp)
mov    %r14d,%edi
lea    0x10(%rsp),%rsi
mov    $0xc8,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,%r13d
lea    0xb53(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
test   %r13d,%r13d
jle    1260 <main+0xb0>
mov    %r13d,%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
movzbl 0x10(%rsp,%rbp,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1500 <main+0x350>
jmp    1260 <main+0xb0>
mov    %r14d,%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x1a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xac0(%rip),%rdi
jmp    1549 <main+0x399>
lea    0xacc(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%eax
jmp    1527 <main+0x377>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.1 = [14 x i8] c"192.168.1.113\00"
@.str.2 = [8 x i8] c"connect\00"
@.str.3 = [20 x i8] c"\E8\BF\9E\E6\8E\A5\E5\88\B0\E4\B8\BB\E6\9C\BA...\0A\00"
@.str.4 = [5 x i8] c"quit\00"
@.str.5 = [15 x i8] c"\0A\E8\AF\BB\E5\8F\96\E6\B6\88\E6\81\AF:\00"
@.str.6 = [4 x i8] c"%d\0A\00"
@.str.7 = [6 x i8] c"%02x \00"
@.str.8 = [3 x i8] c"\0A:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.sockaddr_in
%4 = alloca [200 x i8]
%5 = alloca [200 x i8]
%6 = alloca [200 x i8]
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
%11 = load i32, i32* @AF_INET
%12 = load i32, i32* @SOCK_STREAM
%13 = call i32 @socket(i32 %11, i32 %12, i32 0)
store i32 %13, i32* %2
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %1
br label %85
17: ; preds = %0
%18 = load i32, i32* @AF_INET
%19 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i32 0, i32 2
store i32 %18, i32* %19
%20 = call i32 @htons(i32 8899)
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i32 0, i32 1
store i32 %20, i32* %21
%22 = call i32 @inet_addr(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i32 0, i32 0
%24 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %23, i32 0, i32 0
store i32 %22, i32* %24
%25 = load i32, i32* %2
%26 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%27 = call i64 @connect(i32 %25, %struct.sockaddr* %26, i32 12)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %17
%30 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %1
br label %85
31: ; preds = %17
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
br label %33
33: ; preds = %31, %81
%34 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
br label %82
38: ; preds = %33
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%40 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
store i8 0, i8* %40
%41 = load i32, i32* %2
%42 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%43 = call i32 @recv(i32 %41, i8* %42, i32 200, i32 0)
store i32 %43, i32* %7
%44 = load i32, i32* %7
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %44)
%46 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
store i8* %46, i8** %8
store i32 0, i32* %9
br label %47
47: ; preds = %58, %38
%48 = load i32, i32* %9
%49 = load i32, i32* %7
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %61
51: ; preds = %47
%52 = load i32, i32* %9
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 %53
%55 = load i8, i8* %54
%56 = zext i8 %55 to i32
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %56)
br label %58
58: ; preds = %51
%59 = load i32, i32* %9
%60 = add nsw i32 %59, 1
store i32 %60, i32* %9
br label %47
61: ; preds = %47
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%63 = load i8*, i8** %8
%64 = getelementptr inbounds i8, i8* %63, i64 4
%65 = call i32 @btea_decrpyt(i8* %64, i32 36)
store i32 0, i32* %10
br label %66
66: ; preds = %78, %61
%67 = load i32, i32* %10
%68 = icmp slt i32 %67, 36
br i1 %68, label %69, label %81
69: ; preds = %66
%70 = load i8*, i8** %8
%71 = getelementptr inbounds i8, i8* %70, i64 4
%72 = load i32, i32* %10
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, i8* %71, i64 %73
%75 = load i8, i8* %74
%76 = zext i8 %75 to i32
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %76)
br label %78
78: ; preds = %69
%79 = load i32, i32* %10
%80 = add nsw i32 %79, 1
store i32 %80, i32* %10
br label %66
81: ; preds = %66
br label %33
82: ; preds = %37
%83 = load i32, i32* %2
%84 = call i32 @close(i32 %83)
store i32 0, i32* %1
br label %85
85: ; preds = %82, %29, %15
%86 = load i32, i32* %1
ret i32 %86
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.1 = [14 x i8] c"192.168.1.113\00"
@.str.2 = [8 x i8] c"connect\00"
@.str.4 = [5 x i8] c"quit\00"
@.str.5 = [15 x i8] c"\0A\E8\AF\BB\E5\8F\96\E6\B6\88\E6\81\AF:\00"
@.str.6 = [4 x i8] c"%d\0A\00"
@.str.7 = [6 x i8] c"%02x \00"
@.str.8 = [3 x i8] c"\0A:\00"
@str = [19 x i8] c"\E8\BF\9E\E6\8E\A5\E5\88\B0\E4\B8\BB\E6\9C\BA...\00"
define i32 @main() {
%1 = alloca %struct.sockaddr_in
%2 = alloca [200 x i8]
%3 = alloca [200 x i8]
%4 = bitcast %struct.sockaddr_in* %1 to i8*
%5 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%7 = load i32, i32* @AF_INET
%8 = load i32, i32* @SOCK_STREAM
%9 = tail call i32 @socket(i32 %7, i32 %8, i32 0)
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %196
13: ; preds = %0
%14 = load i32, i32* @AF_INET
%15 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 2
store i32 %14, i32* %15
%16 = tail call i32 @htons(i32 8899)
%17 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 1
store i32 %16, i32* %17
%18 = tail call i32 @inet_addr(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%19 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 0, i32 0
store i32 %18, i32* %19
%20 = bitcast %struct.sockaddr_in* %1 to %struct.sockaddr*
%21 = call i64 @connect(i32 %9, %struct.sockaddr* %20, i32 12)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %13
%24 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %196
25: ; preds = %13
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%27 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %194, label %29
29: ; preds = %25
%30 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 4
%31 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 5
%32 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 6
%33 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 7
%34 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 8
%35 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 9
%36 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 10
%37 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 11
%38 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 12
%39 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 13
%40 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 14
%41 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 15
%42 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 16
%43 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 17
%44 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 18
%45 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 19
%46 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 20
%47 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 21
%48 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 22
%49 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 23
%50 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 24
%51 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 25
%52 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 26
%53 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 27
%54 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 28
%55 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 29
%56 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 30
%57 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 31
%58 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 32
%59 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 33
%60 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 34
%61 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 35
%62 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 36
%63 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 37
%64 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 38
%65 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 39
br label %66
66: ; preds = %29, %73
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
store i8 0, i8* %6
%68 = call i32 @recv(i32 %9, i8* %6, i32 200, i32 0)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %68)
%70 = icmp sgt i32 %68, 0
br i1 %70, label %71, label %73
71: ; preds = %66
%72 = zext i32 %68 to i64
br label %186
73: ; preds = %186, %66
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%75 = call i32 @btea_decrpyt(i8* %30, i32 36)
%76 = load i8, i8* %30
%77 = zext i8 %76 to i32
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %77)
%79 = load i8, i8* %31
%80 = zext i8 %79 to i32
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %80)
%82 = load i8, i8* %32
%83 = zext i8 %82 to i32
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %83)
%85 = load i8, i8* %33
%86 = zext i8 %85 to i32
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %86)
%88 = load i8, i8* %34
%89 = zext i8 %88 to i32
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %89)
%91 = load i8, i8* %35
%92 = zext i8 %91 to i32
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %92)
%94 = load i8, i8* %36
%95 = zext i8 %94 to i32
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %95)
%97 = load i8, i8* %37
%98 = zext i8 %97 to i32
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %98)
%100 = load i8, i8* %38
%101 = zext i8 %100 to i32
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %101)
%103 = load i8, i8* %39
%104 = zext i8 %103 to i32
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %104)
%106 = load i8, i8* %40
%107 = zext i8 %106 to i32
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %107)
%109 = load i8, i8* %41
%110 = zext i8 %109 to i32
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %110)
%112 = load i8, i8* %42
%113 = zext i8 %112 to i32
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %113)
%115 = load i8, i8* %43
%116 = zext i8 %115 to i32
%117 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %116)
%118 = load i8, i8* %44
%119 = zext i8 %118 to i32
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %119)
%121 = load i8, i8* %45
%122 = zext i8 %121 to i32
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %122)
%124 = load i8, i8* %46
%125 = zext i8 %124 to i32
%126 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %125)
%127 = load i8, i8* %47
%128 = zext i8 %127 to i32
%129 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %128)
%130 = load i8, i8* %48
%131 = zext i8 %130 to i32
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %131)
%133 = load i8, i8* %49
%134 = zext i8 %133 to i32
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %134)
%136 = load i8, i8* %50
%137 = zext i8 %136 to i32
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %137)
%139 = load i8, i8* %51
%140 = zext i8 %139 to i32
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %140)
%142 = load i8, i8* %52
%143 = zext i8 %142 to i32
%144 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %143)
%145 = load i8, i8* %53
%146 = zext i8 %145 to i32
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %146)
%148 = load i8, i8* %54
%149 = zext i8 %148 to i32
%150 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %149)
%151 = load i8, i8* %55
%152 = zext i8 %151 to i32
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %152)
%154 = load i8, i8* %56
%155 = zext i8 %154 to i32
%156 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %155)
%157 = load i8, i8* %57
%158 = zext i8 %157 to i32
%159 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %158)
%160 = load i8, i8* %58
%161 = zext i8 %160 to i32
%162 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %161)
%163 = load i8, i8* %59
%164 = zext i8 %163 to i32
%165 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %164)
%166 = load i8, i8* %60
%167 = zext i8 %166 to i32
%168 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %167)
%169 = load i8, i8* %61
%170 = zext i8 %169 to i32
%171 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %170)
%172 = load i8, i8* %62
%173 = zext i8 %172 to i32
%174 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %173)
%175 = load i8, i8* %63
%176 = zext i8 %175 to i32
%177 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %176)
%178 = load i8, i8* %64
%179 = zext i8 %178 to i32
%180 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %179)
%181 = load i8, i8* %65
%182 = zext i8 %181 to i32
%183 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %182)
%184 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%185 = icmp eq i64 %184, 0
br i1 %185, label %194, label %66
186: ; preds = %71, %186
%187 = phi i64 [ 0, %71 ], [ %192, %186 ]
%188 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 %187
%189 = load i8, i8* %188
%190 = zext i8 %189 to i32
%191 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %190)
%192 = add nuw nsw i64 %187, 1
%193 = icmp eq i64 %192, %72
br i1 %193, label %73, label %186
194: ; preds = %73, %25
%195 = call i32 @close(i32 %9)
br label %196
196: ; preds = %194, %23, %11
%197 = phi i32 [ 1, %11 ], [ 1, %23 ], [ 0, %194 ]
ret i32 %197
}