#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*/ aes_macos(unsigned char *, unsigned char const *,
                             unsigned char const *);
int /*<<< orphan*/ poly1305_macos(unsigned char *, unsigned char const *,
                                  unsigned char *, unsigned char const *,
                                  unsigned int);
void poly1305aes_macos_authenticate(unsigned char out[16],
                                    const unsigned char kr[32],
                                    const unsigned char n[16],
                                    const unsigned char m[], unsigned int l) {
  unsigned char aeskn[16];
  aes_macos(aeskn, (kr + 0), n);
  poly1305_macos(out, (kr + 16), aeskn, m, l);
}


x86 assembly (clang, -O0):
<poly1305aes_macos_authenticate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
lea    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <aes_macos@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
lea    -0x40(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r8d
call   1040 <poly1305_macos@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<poly1305aes_macos_authenticate>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %r8d,%r14d
mov    %rcx,%r15
mov    %rsi,%rbp
mov    %rdi,%rbx
mov    %rsp,%r12
mov    %r12,%rdi
call   1030 <aes_macos@plt>
add    $0x10,%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14d,%r8d
call   1040 <poly1305_macos@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @poly1305aes_macos_authenticate(i8* %0, i8* %1, i8* %2, i8* %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca [16 x i8]
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%12 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%13 = load i8*, i8** %7
%14 = getelementptr inbounds i8, i8* %13, i64 0
%15 = load i8*, i8** %8
%16 = call i32 @aes_macos(i8* %12, i8* %14, i8* %15)
%17 = load i8*, i8** %6
%18 = load i8*, i8** %7
%19 = getelementptr inbounds i8, i8* %18, i64 16
%20 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%21 = load i8*, i8** %9
%22 = load i32, i32* %10
%23 = call i32 @poly1305_macos(i8* %17, i8* %19, i8* %20, i8* %21, i32 %22)
ret void
}

LLVM IR (-O2):
define void @poly1305aes_macos_authenticate(i8* %0, i8* %1, i8* %2, i8* %3, i32 %4) {
%6 = alloca [16 x i8]
%7 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%8 = call i32 @aes_macos(i8* %7, i8* %1, i8* %2)
%9 = getelementptr inbounds i8, i8* %1, i64 16
%10 = call i32 @poly1305_macos(i8* %0, i8* %9, i8* %7, i8* %3, i32 %4)
ret void
}