#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 sockaddr_in6 {
  int dummy;
};
struct ILibStun_IceState {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ ILibStun_SendIceRequestEx(struct ILibStun_IceState *, char *,
                                             int, struct sockaddr_in6 *);
int /*<<< orphan*/ util_random(int, char *);
void ILibStun_SendIceRequest(struct ILibStun_IceState *IceState, int SlotNumber,
                             int useCandidate,
                             struct sockaddr_in6 *remoteInterface) {
  char TransactionID[12];
  TransactionID[0] = (char)SlotNumber;
  util_random(11, TransactionID + 1);
  ILibStun_SendIceRequestEx(IceState, TransactionID, useCandidate,
                            remoteInterface);
}


x86 assembly (clang, -O0):
<ILibStun_SendIceRequest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %al,-0x24(%rbp)
lea    -0x24(%rbp),%rsi
add    $0x1,%rsi
mov    $0xb,%edi
call   1040 <util_random@plt>
mov    -0x8(%rbp),%rdi
lea    -0x24(%rbp),%rsi
mov    -0x10(%rbp),%edx
mov    -0x18(%rbp),%rcx
call   1030 <ILibStun_SendIceRequestEx@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ILibStun_SendIceRequest>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rcx,%r14
mov    %edx,%ebp
mov    %rdi,%rbx
mov    %sil,0x4(%rsp)
lea    0x5(%rsp),%rsi
mov    $0xb,%edi
call   1040 <util_random@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
mov    %r14,%rcx
call   1030 <ILibStun_SendIceRequestEx@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.ILibStun_IceState = type { i32 }
%struct.sockaddr_in6 = type { i32 }
define void @ILibStun_SendIceRequest(%struct.ILibStun_IceState* %0, i32 %1, i32 %2, %struct.sockaddr_in6* %3) {
%5 = alloca %struct.ILibStun_IceState*
%6 = alloca i32
%7 = alloca i32
%8 = alloca %struct.sockaddr_in6*
%9 = alloca [12 x i8]
store %struct.ILibStun_IceState* %0, %struct.ILibStun_IceState** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store %struct.sockaddr_in6* %3, %struct.sockaddr_in6** %8
%10 = load i32, i32* %6
%11 = trunc i32 %10 to i8
%12 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
store i8 %11, i8* %12
%13 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
%14 = getelementptr inbounds i8, i8* %13, i64 1
%15 = call i32 @util_random(i32 11, i8* %14)
%16 = load %struct.ILibStun_IceState*, %struct.ILibStun_IceState** %5
%17 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
%18 = load i32, i32* %7
%19 = load %struct.sockaddr_in6*, %struct.sockaddr_in6** %8
%20 = call i32 @ILibStun_SendIceRequestEx(%struct.ILibStun_IceState* %16, i8* %17, i32 %18, %struct.sockaddr_in6* %19)
ret void
}

LLVM IR (-O2):
%struct.ILibStun_IceState = type { i32 }
%struct.sockaddr_in6 = type { i32 }
define void @ILibStun_SendIceRequest(%struct.ILibStun_IceState* %0, i32 %1, i32 %2, %struct.sockaddr_in6* %3) {
%5 = alloca [12 x i8]
%6 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 0
%7 = trunc i32 %1 to i8
store i8 %7, i8* %6
%8 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 1
%9 = call i32 @util_random(i32 11, i8* %8)
%10 = call i32 @ILibStun_SendIceRequestEx(%struct.ILibStun_IceState* %0, i8* %6, i32 %2, %struct.sockaddr_in6* %3)
ret void
}