#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void assert_syntax(int argc, char **argv) {
  if (argc != 4) {
    fprintf(stderr,
            "Description: %s takes a RSA public key modulus and exponent in "
            "base64 encoding and produces a public key file in PEM format.\n",
            argv[0]);
    fprintf(stderr, "syntax: %s <modulus_base64> <exp_base64> <output_file>\n",
            argv[0]);
    exit(1);
  }
}


x86 assembly (clang, -O0):
<assert_syntax>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x4(%rbp)
je     117b <assert_syntax+0x5b>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xeb0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e84(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xf12(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<assert_syntax>:
cmp    $0x4,%edi
jne    1126 <assert_syntax+0x6>
ret
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    0x2eac(%rip),%r14
mov    (%r14),%edi
mov    (%rsi),%rdx
lea    0xebf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%r14),%edi
mov    (%rbx),%rdx
lea    0xf2b(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [126 x i8] c"Description: %s takes a RSA public key modulus and exponent in base64 encoding and produces a public key file in PEM format.\0A\00"
@.str.1 = [56 x i8] c"syntax: %s <modulus_base64> <exp_base64> <output_file>\0A\00"
define void @assert_syntax(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i32, i32* %3
%6 = icmp ne i32 %5, 4
br i1 %6, label %7, label %19
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = load i8**, i8*** %4
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([126 x i8], [126 x i8]* @.str, i64 0, i64 0), i8* %11)
%13 = load i32, i32* @stderr
%14 = load i8**, i8*** %4
%15 = getelementptr inbounds i8*, i8** %14, i64 0
%16 = load i8*, i8** %15
%17 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%18 = call i32 @exit(i32 1)
unreachable
19: ; preds = %2
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [126 x i8] c"Description: %s takes a RSA public key modulus and exponent in base64 encoding and produces a public key file in PEM format.\0A\00"
@.str.1 = [56 x i8] c"syntax: %s <modulus_base64> <exp_base64> <output_file>\0A\00"
define void @assert_syntax(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 4
br i1 %3, label %12, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %1
%7 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([126 x i8], [126 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @stderr
%9 = load i8*, i8** %1
%10 = tail call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%11 = tail call i32 @exit(i32 1)
unreachable
12: ; preds = %2
ret void
}