#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*/ sprintf(char *, char *, int, int, int, char *, char *,
                           char *);
char *AssociarAssinatura(int sessao, char *codigo_ativacao,
                         char *composicao_cnpj, char *assinatura) {
  static char resp[256];
  int eeeee = 13000;
  int cccc = 0000;
  char *mensagem = "Assinatura do AC registrada";
  char *cod = "";
  char *mensagem_sefaz = "";
  sprintf(resp, "%d|%05d|%04d|%s|%s|%s", sessao, eeeee, cccc, mensagem, cod,
          mensagem_sefaz);
  return resp;
}


x86 assembly (clang, -O0):
<AssociarAssinatura>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x32c8,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
lea    0xec4(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xed4(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xec9(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x4(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
mov    -0x30(%rbp),%r9
mov    -0x38(%rbp),%r10
mov    -0x40(%rbp),%rax
lea    0x2ecd(%rip),%rdi
lea    0xea2(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <sprintf@plt>
lea    0x2eb1(%rip),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AssociarAssinatura>:
push   %rbx
mov    %edi,%edx
lea    0xf01(%rip),%rax
lea    0x2f1f(%rip),%rbx
lea    0xef4(%rip),%rsi
lea    0xed1(%rip),%r9
mov    %rbx,%rdi
mov    $0x32c8,%ecx
xor    %r8d,%r8d
push   %rax
push   %rax
call   1030 <sprintf@plt>
add    $0x10,%rsp
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@AssociarAssinatura.resp = internal global [256 x i8] zeroinitializer
@.str = [28 x i8] c"Assinatura do AC registrada\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [22 x i8] c"%d|%05d|%04d|%s|%s|%s\00"
define i8* @AssociarAssinatura(i32 %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
store i32 %0, i32* %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
store i32 13000, i32* %9
store i32 0, i32* %10
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8** %11
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %12
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %13
%14 = load i32, i32* %5
%15 = load i32, i32* %9
%16 = load i32, i32* %10
%17 = load i8*, i8** %11
%18 = load i8*, i8** %12
%19 = load i8*, i8** %13
%20 = call i32 @sprintf(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @AssociarAssinatura.resp, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %14, i32 %15, i32 %16, i8* %17, i8* %18, i8* %19)
ret i8* getelementptr inbounds ([256 x i8], [256 x i8]* @AssociarAssinatura.resp, i64 0, i64 0)
}

LLVM IR (-O2):
@AssociarAssinatura.resp = internal global [256 x i8] zeroinitializer
@.str = [28 x i8] c"Assinatura do AC registrada\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [22 x i8] c"%d|%05d|%04d|%s|%s|%s\00"
define i8* @AssociarAssinatura(i32 %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i8* nocapture readnone %3) {
%5 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([256 x i8], [256 x i8]* @AssociarAssinatura.resp, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %0, i32 13000, i32 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret i8* getelementptr inbounds ([256 x i8], [256 x i8]* @AssociarAssinatura.resp, i64 0, i64 0)
}