int stub_ast_check_signature_bin(struct ast_key *key, const char *msg,
                                 int msglen, const unsigned char *sig) {
  ast_log(2,
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/tpenguin/solarisvoip-asterisk/refs/heads/"
          "master/cryptostub.c",
          43, __PRETTY_FUNCTION__, "Crypto support not loaded!\n");
  return -1;
}


x86 assembly (clang, -O0):
<stub_ast_check_signature_bin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    $0x2,%edi
lea    0xecd(%rip),%rsi
mov    $0x2b,%edx
lea    0xf58(%rip),%rcx
lea    0xfae(%rip),%r8
mov    $0x0,%al
call   1030 <ast_log@plt>
mov    $0xffffffff,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stub_ast_check_signature_bin>:
push   %rax
lea    0xee8(%rip),%rsi
lea    0xf78(%rip),%rcx
lea    0xfce(%rip),%r8
mov    $0x2,%edi
mov    $0x2b,%edx
xor    %eax,%eax
call   1030 <ast_log@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.ast_key = type opaque
@.str = [151 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tpenguin/solarisvoip-asterisk/refs/heads/master/cryptostub.c\00"
@__PRETTY_FUNCTION__.stub_ast_check_signature_bin = [93 x i8] c"int stub_ast_check_signature_bin(struct ast_key *, const char *, int, const unsigned char *)\00"
@.str.1 = [28 x i8] c"Crypto support not loaded!\0A\00"
define i32 @stub_ast_check_signature_bin(%struct.ast_key* %0, i8* %1, i32 %2, i8* %3) {
%5 = alloca %struct.ast_key*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
store %struct.ast_key* %0, %struct.ast_key** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i8* %3, i8** %8
%9 = call i32 (i32, i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @ast_log to i32 (i32, i8*, i32, i8*, i8*, ...)*)(i32 2, i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str, i64 0, i64 0), i32 43, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @__PRETTY_FUNCTION__.stub_ast_check_signature_bin, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
ret i32 -1
}

LLVM IR (-O2):
%struct.ast_key = type opaque
@.str = [151 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tpenguin/solarisvoip-asterisk/refs/heads/master/cryptostub.c\00"
@__PRETTY_FUNCTION__.stub_ast_check_signature_bin = [93 x i8] c"int stub_ast_check_signature_bin(struct ast_key *, const char *, int, const unsigned char *)\00"
@.str.1 = [28 x i8] c"Crypto support not loaded!\0A\00"
define i32 @stub_ast_check_signature_bin(%struct.ast_key* nocapture readnone %0, i8* nocapture readnone %1, i32 %2, i8* nocapture readnone %3) {
%5 = tail call i32 (i32, i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @ast_log to i32 (i32, i8*, i32, i8*, i8*, ...)*)(i32 2, i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str, i64 0, i64 0), i32 43, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @__PRETTY_FUNCTION__.stub_ast_check_signature_bin, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
ret i32 -1
}