#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 MQTTCreate(char *, int, int, char *, char *, int, char **, int, char *,
               int /*<<< orphan*/ *, int, char *);
int tpSDKCreate(char *host, int port, int keepalive, char *userName,
                char *password, int enableServerCertAuth,
                char *sudirribeTopic[], int sudirribeTopicSize,
                char *publishTopic, char *clientID) {
  int rc = MQTTCreate(host, port, keepalive, userName, password,
                      enableServerCertAuth, sudirribeTopic, sudirribeTopicSize,
                      publishTopic, NULL, 1, clientID);
  return rc;
}


x86 assembly (clang, -O0):
<tpSDKCreate>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x60,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x18(%rbp)
mov    %esi,-0x1c(%rbp)
mov    %edx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9d,-0x34(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    -0x34(%rbp),%r9d
mov    0x10(%rbp),%rbx
mov    0x18(%rbp),%r11d
mov    0x20(%rbp),%r10
mov    0x28(%rbp),%rax
xor    %r14d,%r14d
mov    %rbx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10,0x10(%rsp)
movq   $0x0,0x18(%rsp)
movl   $0x1,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1030 <MQTTCreate@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<tpSDKCreate>:
push   %rax
mov    0x18(%rsp),%eax
push   0x28(%rsp)
push   $0x1
push   $0x0
push   0x38(%rsp)
push   %rax
push   0x38(%rsp)
call   1030 <MQTTCreate@plt>
add    $0x30,%rsp
pop    %rcx
ret

LLVM IR (-O0):
define i32 @tpSDKCreate(i8* %0, i32 %1, i32 %2, i8* %3, i8* %4, i32 %5, i8** %6, i32 %7, i8* %8, i8* %9) {
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i8**
%18 = alloca i32
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i32
store i8* %0, i8** %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store i8* %3, i8** %14
store i8* %4, i8** %15
store i32 %5, i32* %16
store i8** %6, i8*** %17
store i32 %7, i32* %18
store i8* %8, i8** %19
store i8* %9, i8** %20
%22 = load i8*, i8** %11
%23 = load i32, i32* %12
%24 = load i32, i32* %13
%25 = load i8*, i8** %14
%26 = load i8*, i8** %15
%27 = load i32, i32* %16
%28 = load i8**, i8*** %17
%29 = load i32, i32* %18
%30 = load i8*, i8** %19
%31 = load i8*, i8** %20
%32 = call i32 @MQTTCreate(i8* %22, i32 %23, i32 %24, i8* %25, i8* %26, i32 %27, i8** %28, i32 %29, i8* %30, i32* null, i32 1, i8* %31)
store i32 %32, i32* %21
%33 = load i32, i32* %21
ret i32 %33
}

LLVM IR (-O2):
define i32 @tpSDKCreate(i8* %0, i32 %1, i32 %2, i8* %3, i8* %4, i32 %5, i8** %6, i32 %7, i8* %8, i8* %9) {
%11 = tail call i32 @MQTTCreate(i8* %0, i32 %1, i32 %2, i8* %3, i8* %4, i32 %5, i8** %6, i32 %7, i8* %8, i32* null, i32 1, i8* %9)
ret i32 %11
}