#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*/ MSG_WAITALL;
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ message(int const, char *);
int /*<<< orphan*/ printf(char *);
int recv(int const, char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
void processend(const int address) {
  int n;
  char buff[256];
  n = recv(address, buff, 256, MSG_WAITALL);
  printf("New game?(ujra)\n");
  printf(">");
  fgets(buff, 256, stdin);
  message(address, buff);
}


x86 assembly (clang, -O0):
<processend>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x110(%rbp),%rsi
mov    0x2e71(%rip),%rax
mov    (%rax),%ecx
mov    $0x100,%edx
call   1030 <recv@plt>
mov    %eax,-0x8(%rbp)
lea    0xe8b(%rip),%rdi
call   1050 <printf@plt>
lea    0xe90(%rip),%rdi
call   1050 <printf@plt>
lea    -0x110(%rbp),%rdi
mov    0x2e54(%rip),%rax
mov    (%rax),%edx
mov    $0x100,%esi
call   1060 <fgets@plt>
mov    -0x4(%rbp),%edi
lea    -0x110(%rbp),%rsi
call   1040 <message@plt>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<processend>:
push   %r14
push   %rbx
sub    $0x108,%rsp
mov    %edi,%ebx
mov    0x2e6d(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%r14
mov    %r14,%rsi
mov    $0x100,%edx
call   1030 <recv@plt>
lea    0xe84(%rip),%rdi
call   1060 <puts@plt>
mov    $0x3e,%edi
call   1040 <putchar@plt>
mov    0x2e56(%rip),%rax
mov    (%rax),%edx
mov    %r14,%rdi
mov    $0x100,%esi
call   1070 <fgets@plt>
mov    %ebx,%edi
mov    %r14,%rsi
call   1050 <message@plt>
add    $0x108,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@MSG_WAITALL = global i32 0
@.str = [17 x i8] c"New game?(ujra)\0A\00"
@.str.1 = [2 x i8] c">\00"
@stdin = global i32 0
define void @processend(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca [256 x i8]
store i32 %0, i32* %2
%5 = load i32, i32* %2
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%7 = load i32, i32* @MSG_WAITALL
%8 = call i32 @recv(i32 %5, i8* %6, i32 256, i32 %7)
store i32 %8, i32* %3
%9 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%12 = load i32, i32* @stdin
%13 = call i32 @fgets(i8* %11, i32 256, i32 %12)
%14 = load i32, i32* %2
%15 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%16 = call i32 @message(i32 %14, i8* %15)
ret void
}

LLVM IR (-O2):
@MSG_WAITALL = global i32 0
@stdin = global i32 0
@str = [16 x i8] c"New game?(ujra)\00"
define void @processend(i32 %0) {
%2 = alloca [256 x i8]
%3 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%4 = load i32, i32* @MSG_WAITALL
%5 = call i32 @recv(i32 %0, i8* %3, i32 256, i32 %4)
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%7 = call i32 @putchar(i32 62)
%8 = load i32, i32* @stdin
%9 = call i32 @fgets(i8* %3, i32 256, i32 %8)
%10 = call i32 @message(i32 %0, i8* %3)
ret void
}