#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 */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;
typedef int /*<<< orphan*/ int8_t;

/* Variables and functions */
int /*<<< orphan*/ aes_ccm_encrypt(int /*<<< orphan*/, int /*<<< orphan*/,
                                   int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                                   int /*<<< orphan*/, int /*<<< orphan*/ *,
                                   int /*<<< orphan*/, int /*<<< orphan*/ *,
                                   int /*<<< orphan*/ *, int /*<<< orphan*/);
int8_t AES_CCM_EncryptData(uint8_t encryptFlag, uint8_t MACLen, uint8_t *nonce,
                           uint8_t *plainText, uint16_t textLen,
                           uint8_t *addDataBuf, uint16_t addBufLen,
                           uint8_t *aesKey, uint8_t *MAC, uint8_t ccmLVal) {
  return aes_ccm_encrypt(encryptFlag, MACLen, nonce, plainText, textLen,
                         addDataBuf, addBufLen, aesKey, MAC, ccmLVal);
}


x86 assembly (clang, -O0):
<AES_CCM_EncryptData>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x48,%rsp
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r8d
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%ebx
mov    0x18(%rbp),%r11
mov    0x20(%rbp),%r10
mov    0x28(%rbp),%eax
mov    %ebx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1030 <aes_ccm_encrypt@plt>
add    $0x48,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<AES_CCM_EncryptData>:
jmp    1030 <aes_ccm_encrypt@plt>

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

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