#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*/ EVP_MD;

/* Variables and functions */
int EVP_MAX_MD_SIZE;
unsigned long EVP_MD_size(int /*<<< orphan*/ const *);
int /*<<< orphan*/ *EVP_get_digestbyname(char *);
int /*<<< orphan*/ PKCS5_PBKDF2_HMAC(char *, size_t, char *, unsigned long,
                                     unsigned long, int /*<<< orphan*/ const *,
                                     unsigned long, unsigned char *);
unsigned long base64_decode(char const *, char *, unsigned long);
int /*<<< orphan*/ base64_encode(char const *, unsigned long, char *, int);
scalar_t__ calloc(unsigned long, int);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ genSaltBin(char *, unsigned long);
int /*<<< orphan*/ memset(char *, int, int);
int /*<<< orphan*/ printf(char *, unsigned char *);
int /*<<< orphan*/ snprintf(char *, unsigned long, char *, char *,
                            unsigned long, char *, char *);
int sscanf(char *, char *, char **, unsigned long *, char **);
int strlen(char *);
scalar_t__ strncmp(char *, char *, int);
char *fPBKDF2(char *str, char *salt, unsigned long lSalt, char *sPRF) {
  char *ssalt = NULL, *digestname = NULL, *ssPRF = NULL;
  char *salt_b64 = NULL, *salt_bin = NULL;
  unsigned long iter = 24576, prf = 0, lRes = 0;
  char *result = NULL;
  const EVP_MD *md = NULL;
  unsigned char digest[EVP_MAX_MD_SIZE];
  char digest_b64[(EVP_MAX_MD_SIZE * 2) + 5];
  if (salt && (sscanf(salt, ":%m[^:]:%u:%m[^:]", &ssPRF, &iter, &ssalt) == 3)) {
    salt = ssalt;
    sPRF = ssPRF;
    lSalt = strlen(ssalt);
    if (salt[lSalt - 1] == '=') {
      salt_bin = (char *)calloc(lSalt + 1, sizeof(char));
      lSalt = base64_decode((const char *)salt, salt_bin, lSalt + 1);
    }
  } else {
    if (salt) {
      if (salt[0] == 0) {
        genSaltBin(salt, lSalt);
        salt_b64 = (char *)calloc(lSalt * 2 + 5, sizeof(char));
        base64_encode((const char *)salt, lSalt, salt_b64, lSalt * 2 + 5);
      } else if (salt[lSalt - 1] == '=') {
        salt_bin = (char *)calloc(lSalt + 1, sizeof(char));
        lSalt = base64_decode((const char *)salt, salt_bin, lSalt + 1);
      }
    } else {
      if (lSalt == 0)
        lSalt = (16);
      ssalt = (char *)calloc(lSalt + 1, sizeof(char));
      salt = ssalt;
      genSaltBin(salt, lSalt);
      salt_b64 = (char *)calloc(lSalt * 2 + 5, sizeof(char));
      base64_encode((const char *)salt, lSalt, salt_b64, lSalt * 2 + 5);
    }
  }
  if (iter == 0)
    iter = 64000;
  if (sPRF) {
    if (strncmp("pbkdf2-", sPRF, 7) != 0) {
      if (ssPRF)
        free(ssPRF);
      if (ssalt)
        free(ssalt);
      if (salt_b64)
        free(salt_b64);
      if (salt_bin)
        free(salt_bin);
      return NULL;
    }
    digestname = sPRF + 7;
  }
  md = EVP_get_digestbyname(digestname);
  if (!md) {
    printf("Unknown message digest %s\nUsing sha256\n", digest);
    md = EVP_get_digestbyname("sha256");
    digestname = "sha256";
  }
  size_t sl = strlen(str);
  (void)PKCS5_PBKDF2_HMAC(str, sl, (unsigned char *)salt_bin ? salt_bin : salt,
                          lSalt, iter, md, EVP_MD_size(md), digest);
  memset(digest_b64, 0x00, sizeof digest_b64);
  base64_encode((const char *)digest, EVP_MD_size(md), digest_b64,
                sizeof digest_b64);
  lRes = (EVP_MAX_MD_SIZE * 2) + strlen(sPRF) + lSalt + 30;
  result = (char *)calloc(lRes, sizeof(char));
  snprintf(result, lRes, ":%s:%lu:%s:%s", sPRF, iter,
           (salt_b64 ? salt_b64 : salt), digest_b64);
  if (ssPRF)
    free(ssPRF);
  if (ssalt)
    free(ssalt);
  if (salt_b64)
    free(salt_b64);
  if (salt_bin)
    free(salt_bin);
  return result;
}


x86 assembly (clang, -O0):
<fPBKDF2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
movq   $0x0,-0x50(%rbp)
movq   $0x6000,-0x58(%rbp)
movq   $0x0,-0x60(%rbp)
movq   $0x0,-0x68(%rbp)
movq   $0x0,-0x70(%rbp)
movq   $0x0,-0x78(%rbp)
mov    0x2d96(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%rdx
mov    %rdx,-0x80(%rbp)
mov    %rcx,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0xb8(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x88(%rbp)
mov    (%rax),%ecx
mov    %ecx,%eax
lea    0x5(%rax,%rax,1),%eax
mov    %rax,-0xb0(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xa8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x90(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     134a <fPBKDF2+0x16a>
mov    -0x18(%rbp),%rdi
lea    0xd3c(%rip),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x58(%rbp),%rcx
lea    -0x30(%rbp),%r8
call   10e0 <sscanf@plt>
cmp    $0x3,%eax
jne    134a <fPBKDF2+0x16a>
mov    -0x30(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rdi
call   1070 <strlen@plt>
cltq
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x20(%rbp),%rcx
sub    $0x1,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x3d,%eax
jne    1345 <fPBKDF2+0x165>
mov    -0x20(%rbp),%rdi
add    $0x1,%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x20(%rbp),%rdx
add    $0x1,%rdx
call   1100 <base64_decode@plt>
mov    %rax,-0x20(%rbp)
jmp    147e <fPBKDF2+0x29e>
cmpq   $0x0,-0x18(%rbp)
je     1402 <fPBKDF2+0x222>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    13b0 <fPBKDF2+0x1d0>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10d0 <genSaltBin@plt>
mov    -0x20(%rbp),%rdi
shl    $0x1,%rdi
add    $0x5,%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    -0x20(%rbp),%rax
shl    $0x1,%rax
add    $0x5,%rax
mov    %eax,%ecx
call   10f0 <base64_encode@plt>
jmp    13fd <fPBKDF2+0x21d>
mov    -0x18(%rbp),%rax
mov    -0x20(%rbp),%rcx
sub    $0x1,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x3d,%eax
jne    13f8 <fPBKDF2+0x218>
mov    -0x20(%rbp),%rdi
add    $0x1,%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x20(%rbp),%rdx
add    $0x1,%rdx
call   1100 <base64_decode@plt>
mov    %rax,-0x20(%rbp)
jmp    13fd <fPBKDF2+0x21d>
jmp    1479 <fPBKDF2+0x299>
cmpq   $0x0,-0x20(%rbp)
jne    1415 <fPBKDF2+0x235>
movq   $0x10,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x1,%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10d0 <genSaltBin@plt>
mov    -0x20(%rbp),%rdi
shl    $0x1,%rdi
add    $0x5,%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    -0x20(%rbp),%rax
shl    $0x1,%rax
add    $0x5,%rax
mov    %eax,%ecx
call   10f0 <base64_encode@plt>
jmp    147e <fPBKDF2+0x29e>
cmpq   $0x0,-0x58(%rbp)
jne    1491 <fPBKDF2+0x2b1>
movq   $0xfa00,-0x58(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     152e <fPBKDF2+0x34e>
mov    -0x28(%rbp),%rsi
lea    0xb6b(%rip),%rdi
mov    $0x7,%edx
call   1050 <strncmp@plt>
cmp    $0x0,%rax
je     1522 <fPBKDF2+0x342>
cmpq   $0x0,-0x40(%rbp)
je     14cf <fPBKDF2+0x2ef>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x30(%rbp)
je     14e3 <fPBKDF2+0x303>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x48(%rbp)
je     14f7 <fPBKDF2+0x317>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x50(%rbp)
je     150b <fPBKDF2+0x32b>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x8(%rbp)
movl   $0x1,-0x94(%rbp)
jmp    17c1 <fPBKDF2+0x5e1>
mov    -0x28(%rbp),%rax
add    $0x7,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
call   10c0 <EVP_get_digestbyname@plt>
mov    %rax,-0x78(%rbp)
cmpq   $0x0,-0x78(%rbp)
jne    1574 <fPBKDF2+0x394>
mov    -0xb8(%rbp),%rsi
lea    0xac6(%rip),%rdi
call   1080 <printf@plt>
lea    0xae2(%rip),%rdi
call   10c0 <EVP_get_digestbyname@plt>
mov    %rax,-0x78(%rbp)
lea    0xad2(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
call   1070 <strlen@plt>
cltq
mov    %rax,-0xa0(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    -0xa0(%rbp),%rax
mov    %rax,-0xc0(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     15ba <fPBKDF2+0x3da>
mov    -0x50(%rbp),%rax
mov    %rax,-0xd0(%rbp)
jmp    15c5 <fPBKDF2+0x3e5>
mov    -0x18(%rbp),%rax
mov    %rax,-0xd0(%rbp)
mov    -0xd0(%rbp),%rax
mov    %rax,-0x118(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x110(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x108(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,-0x100(%rbp)
mov    -0x78(%rbp),%rdi
call   1040 <EVP_MD_size@plt>
mov    -0xc8(%rbp),%rdi
mov    -0xc0(%rbp),%rsi
mov    -0x118(%rbp),%rdx
mov    -0x110(%rbp),%rcx
mov    -0x108(%rbp),%r8
mov    -0x100(%rbp),%r9
mov    %rax,%r10
mov    -0xb8(%rbp),%rax
sub    $0x10,%rsp
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1060 <PKCS5_PBKDF2_HMAC@plt>
mov    -0xa8(%rbp),%rdi
add    $0x10,%rsp
mov    -0xb0(%rbp),%rax
mov    %eax,%edx
xor    %esi,%esi
call   10a0 <memset@plt>
mov    -0x78(%rbp),%rdi
call   1040 <EVP_MD_size@plt>
mov    -0xb8(%rbp),%rdi
mov    -0xa8(%rbp),%rdx
mov    %rax,%rsi
mov    -0xb0(%rbp),%rax
mov    %eax,%ecx
call   10f0 <base64_encode@plt>
mov    0x295b(%rip),%rax
mov    (%rax),%eax
shl    $0x1,%eax
mov    %eax,-0xf4(%rbp)
mov    -0x28(%rbp),%rdi
call   1070 <strlen@plt>
mov    %eax,%ecx
mov    -0xf4(%rbp),%eax
add    %ecx,%eax
cltq
add    -0x20(%rbp),%rax
add    $0x1e,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0xf0(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0xe8(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0xd8(%rbp)
cmpq   $0x0,-0x48(%rbp)
je     1712 <fPBKDF2+0x532>
mov    -0x48(%rbp),%rax
mov    %rax,-0x120(%rbp)
jmp    171d <fPBKDF2+0x53d>
mov    -0x18(%rbp),%rax
mov    %rax,-0x120(%rbp)
mov    -0xa8(%rbp),%rax
mov    -0xd8(%rbp),%r8
mov    -0xe0(%rbp),%rcx
mov    -0xe8(%rbp),%rsi
mov    -0xf0(%rbp),%rdi
mov    -0x120(%rbp),%r9
lea    0x8fb(%rip),%rdx
sub    $0x10,%rsp
mov    %rax,(%rsp)
call   1090 <snprintf@plt>
add    $0x10,%rsp
cmpq   $0x0,-0x40(%rbp)
je     1773 <fPBKDF2+0x593>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x30(%rbp)
je     1787 <fPBKDF2+0x5a7>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x48(%rbp)
je     179b <fPBKDF2+0x5bb>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x50(%rbp)
je     17af <fPBKDF2+0x5cf>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x70(%rbp),%rax
mov    %rax,-0x8(%rbp)
movl   $0x1,-0x94(%rbp)
mov    -0x80(%rbp),%rax
mov    %rax,%rsp
mov    -0x8(%rbp),%rax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fPBKDF2>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rcx,-0x30(%rbp)
mov    %rdx,%r12
mov    %rdi,-0x78(%rbp)
mov    %rsp,-0x90(%rbp)
movq   $0x0,-0x48(%rbp)
movq   $0x0,-0x50(%rbp)
movq   $0x6000,-0x40(%rbp)
mov    0x2dc6(%rip),%rcx
mov    (%rcx),%eax
mov    %rsp,%rdx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rdx
mov    %rdx,-0x68(%rbp)
mov    %rdx,%rsp
mov    (%rcx),%eax
add    %eax,%eax
add    $0x5,%eax
mov    %rax,-0x80(%rbp)
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rbx
sub    %rax,%rbx
mov    %rbx,%rsp
test   %rsi,%rsi
mov    %rbx,-0x88(%rbp)
je     129d <fPBKDF2+0xbd>
mov    %rsi,%r15
lea    0xd95(%rip),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x40(%rbp),%rcx
lea    -0x48(%rbp),%r8
mov    %r15,%rdi
call   10e0 <sscanf@plt>
cmp    $0x3,%eax
jne    12f6 <fPBKDF2+0x116>
mov    -0x48(%rbp),%r15
mov    -0x50(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    %r15,%rdi
call   1070 <strlen@plt>
movslq %eax,%r12
jmp    12fc <fPBKDF2+0x11c>
test   %r12,%r12
mov    $0x10,%eax
cmove  %rax,%r12
lea    0x1(%r12),%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %rax,%r15
mov    %rax,-0x48(%rbp)
mov    %rax,%rdi
mov    %r12,%rsi
call   10d0 <genSaltBin@plt>
mov    %r12,%rbx
add    %r12,%r12
add    $0x5,%r12
mov    %r12,%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %rax,-0x38(%rbp)
mov    %rax,%rdx
mov    %r12d,%ecx
mov    %rbx,%r12
jmp    1369 <fPBKDF2+0x189>
cmpb   $0x0,(%r15)
je     1339 <fPBKDF2+0x159>
cmpb   $0x3d,-0x1(%r12,%r15,1)
jne    1331 <fPBKDF2+0x151>
add    $0x1,%r12
mov    %r12,%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %rax,%r14
mov    %r15,%rdi
mov    %rax,%rsi
mov    %r12,%rdx
call   1100 <base64_decode@plt>
mov    %rax,%r12
xor    %eax,%eax
mov    %rax,-0x38(%rbp)
jmp    1371 <fPBKDF2+0x191>
xor    %eax,%eax
mov    %rax,-0x38(%rbp)
jmp    136e <fPBKDF2+0x18e>
mov    %r15,%rdi
mov    %r12,%rsi
call   10d0 <genSaltBin@plt>
lea    (%r12,%r12,1),%r14
add    $0x5,%r14
mov    %r14,%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rax,-0x38(%rbp)
mov    %rax,%rdx
mov    %r14d,%ecx
call   10f0 <base64_encode@plt>
xor    %r14d,%r14d
mov    -0x30(%rbp),%r13
cmpq   $0x0,-0x40(%rbp)
je     13cf <fPBKDF2+0x1ef>
test   %r13,%r13
je     13dc <fPBKDF2+0x1fc>
lea    0xc8a(%rip),%rdi
mov    %r13,%rsi
mov    $0x7,%edx
call   1050 <strncmp@plt>
test   %rax,%rax
je     13e8 <fPBKDF2+0x208>
mov    -0x50(%rbp),%rdi
test   %rdi,%rdi
je     13a8 <fPBKDF2+0x1c8>
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
test   %rdi,%rdi
mov    -0x38(%rbp),%rbx
je     13ba <fPBKDF2+0x1da>
call   1030 <free@plt>
test   %rbx,%rbx
je     13c7 <fPBKDF2+0x1e7>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %r15d,%r15d
jmp    153c <fPBKDF2+0x35c>
movq   $0xfa00,-0x40(%rbp)
test   %r13,%r13
jne    1381 <fPBKDF2+0x1a1>
mov    %r14,-0x58(%rbp)
mov    %r12,-0x60(%rbp)
xor    %edi,%edi
jmp    13f4 <fPBKDF2+0x214>
mov    %r14,-0x58(%rbp)
mov    %r12,-0x60(%rbp)
lea    0x7(%r13),%rdi
mov    %r15,%r12
mov    %r13,-0x30(%rbp)
call   10c0 <EVP_get_digestbyname@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1427 <fPBKDF2+0x247>
lea    0xc0b(%rip),%rdi
mov    -0x68(%rbp),%rsi
call   1080 <printf@plt>
lea    0xc23(%rip),%rdi
call   10c0 <EVP_get_digestbyname@plt>
mov    %rax,%rbx
mov    -0x78(%rbp),%r14
mov    %r14,%rdi
call   1070 <strlen@plt>
movslq %eax,%r13
mov    -0x58(%rbp),%r15
test   %r15,%r15
mov    %r12,-0x70(%rbp)
cmove  %r12,%r15
mov    -0x40(%rbp),%r12
mov    %rbx,%rdi
call   1040 <EVP_MD_size@plt>
mov    %r14,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
mov    -0x60(%rbp),%r15
mov    %r15,%rcx
mov    %r12,%r8
mov    %rbx,%r9
mov    -0x68(%rbp),%r12
push   %r12
push   %rax
call   1060 <PKCS5_PBKDF2_HMAC@plt>
add    $0x10,%rsp
mov    -0x88(%rbp),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    -0x80(%rbp),%r14
mov    %r14d,%edx
call   10a0 <memset@plt>
mov    %rbx,%rdi
call   1040 <EVP_MD_size@plt>
mov    %r12,%rdi
mov    %rax,%rsi
mov    %r13,%rdx
mov    %r14d,%ecx
call   10f0 <base64_encode@plt>
mov    0x2b39(%rip),%rax
movslq (%rax),%rbx
mov    -0x30(%rbp),%r12
mov    %r12,%rdi
call   1070 <strlen@plt>
cltq
lea    (%rax,%rbx,2),%rax
lea    (%r15,%rax,1),%rbx
add    $0x1e,%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %rax,%r15
mov    -0x40(%rbp),%r8
mov    -0x38(%rbp),%rax
test   %rax,%rax
mov    -0x70(%rbp),%r9
cmovne %rax,%r9
sub    $0x8,%rsp
lea    0xb4f(%rip),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r12,%rcx
push   %r13
call   1090 <snprintf@plt>
add    $0x10,%rsp
mov    -0x50(%rbp),%rdi
test   %rdi,%rdi
je     151c <fPBKDF2+0x33c>
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
test   %rdi,%rdi
je     152a <fPBKDF2+0x34a>
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
test   %rdi,%rdi
mov    -0x58(%rbp),%r14
je     153c <fPBKDF2+0x35c>
call   1030 <free@plt>
test   %r14,%r14
je     1549 <fPBKDF2+0x369>
mov    %r14,%rdi
call   1030 <free@plt>
mov    -0x90(%rbp),%rsp
mov    %r15,%rax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@EVP_MAX_MD_SIZE = global i32 0
@.str = [18 x i8] c":%m[^:]:%u:%m[^:]\00"
@.str.1 = [8 x i8] c"pbkdf2-\00"
@.str.2 = [40 x i8] c"Unknown message digest %s\0AUsing sha256\0A\00"
@.str.3 = [7 x i8] c"sha256\00"
@.str.4 = [14 x i8] c":%s:%lu:%s:%s\00"
define i8* @fPBKDF2(i8* %0, i8* %1, i64 %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i64
%16 = alloca i64
%17 = alloca i64
%18 = alloca i8*
%19 = alloca i32*
%20 = alloca i8*
%21 = alloca i64
%22 = alloca i64
%23 = alloca i32
%24 = alloca i64
store i8* %0, i8** %6
store i8* %1, i8** %7
store i64 %2, i64* %8
store i8* %3, i8** %9
store i8* null, i8** %10
store i8* null, i8** %11
store i8* null, i8** %12
store i8* null, i8** %13
store i8* null, i8** %14
store i64 24576, i64* %15
store i64 0, i64* %16
store i64 0, i64* %17
store i8* null, i8** %18
store i32* null, i32** %19
%25 = load i32, i32* @EVP_MAX_MD_SIZE
%26 = zext i32 %25 to i64
%27 = call i8* @llvm.stacksave()
store i8* %27, i8** %20
%28 = alloca i8, i64 %26
store i64 %26, i64* %21
%29 = load i32, i32* @EVP_MAX_MD_SIZE
%30 = mul nsw i32 %29, 2
%31 = add nsw i32 %30, 5
%32 = zext i32 %31 to i64
%33 = alloca i8, i64 %32
store i64 %32, i64* %22
%34 = load i8*, i8** %7
%35 = icmp ne i8* %34, null
br i1 %35, label %36, label %64
36: ; preds = %4
%37 = load i8*, i8** %7
%38 = call i32 @sscanf(i8* %37, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %12, i64* %15, i8** %10)
%39 = icmp eq i32 %38, 3
br i1 %39, label %40, label %64
40: ; preds = %36
%41 = load i8*, i8** %10
store i8* %41, i8** %7
%42 = load i8*, i8** %12
store i8* %42, i8** %9
%43 = load i8*, i8** %10
%44 = call i32 @strlen(i8* %43)
%45 = sext i32 %44 to i64
store i64 %45, i64* %8
%46 = load i8*, i8** %7
%47 = load i64, i64* %8
%48 = sub i64 %47, 1
%49 = getelementptr inbounds i8, i8* %46, i64 %48
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 61
br i1 %52, label %53, label %63
53: ; preds = %40
%54 = load i64, i64* %8
%55 = add i64 %54, 1
%56 = call i64 @calloc(i64 %55, i32 1)
%57 = inttoptr i64 %56 to i8*
store i8* %57, i8** %14
%58 = load i8*, i8** %7
%59 = load i8*, i8** %14
%60 = load i64, i64* %8
%61 = add i64 %60, 1
%62 = call i64 @base64_decode(i8* %58, i8* %59, i64 %61)
store i64 %62, i64* %8
br label %63
63: ; preds = %53, %40
br label %137
64: ; preds = %36, %4
%65 = load i8*, i8** %7
%66 = icmp ne i8* %65, null
br i1 %66, label %67, label %110
67: ; preds = %64
%68 = load i8*, i8** %7
%69 = getelementptr inbounds i8, i8* %68, i64 0
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %90
73: ; preds = %67
%74 = load i8*, i8** %7
%75 = load i64, i64* %8
%76 = call i32 @genSaltBin(i8* %74, i64 %75)
%77 = load i64, i64* %8
%78 = mul i64 %77, 2
%79 = add i64 %78, 5
%80 = call i64 @calloc(i64 %79, i32 1)
%81 = inttoptr i64 %80 to i8*
store i8* %81, i8** %13
%82 = load i8*, i8** %7
%83 = load i64, i64* %8
%84 = load i8*, i8** %13
%85 = load i64, i64* %8
%86 = mul i64 %85, 2
%87 = add i64 %86, 5
%88 = trunc i64 %87 to i32
%89 = call i32 @base64_encode(i8* %82, i64 %83, i8* %84, i32 %88)
br label %109
90: ; preds = %67
%91 = load i8*, i8** %7
%92 = load i64, i64* %8
%93 = sub i64 %92, 1
%94 = getelementptr inbounds i8, i8* %91, i64 %93
%95 = load i8, i8* %94
%96 = sext i8 %95 to i32
%97 = icmp eq i32 %96, 61
br i1 %97, label %98, label %108
98: ; preds = %90
%99 = load i64, i64* %8
%100 = add i64 %99, 1
%101 = call i64 @calloc(i64 %100, i32 1)
%102 = inttoptr i64 %101 to i8*
store i8* %102, i8** %14
%103 = load i8*, i8** %7
%104 = load i8*, i8** %14
%105 = load i64, i64* %8
%106 = add i64 %105, 1
%107 = call i64 @base64_decode(i8* %103, i8* %104, i64 %106)
store i64 %107, i64* %8
br label %108
108: ; preds = %98, %90
br label %109
109: ; preds = %108, %73
br label %136
110: ; preds = %64
%111 = load i64, i64* %8
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %114
113: ; preds = %110
store i64 16, i64* %8
br label %114
114: ; preds = %113, %110
%115 = load i64, i64* %8
%116 = add i64 %115, 1
%117 = call i64 @calloc(i64 %116, i32 1)
%118 = inttoptr i64 %117 to i8*
store i8* %118, i8** %10
%119 = load i8*, i8** %10
store i8* %119, i8** %7
%120 = load i8*, i8** %7
%121 = load i64, i64* %8
%122 = call i32 @genSaltBin(i8* %120, i64 %121)
%123 = load i64, i64* %8
%124 = mul i64 %123, 2
%125 = add i64 %124, 5
%126 = call i64 @calloc(i64 %125, i32 1)
%127 = inttoptr i64 %126 to i8*
store i8* %127, i8** %13
%128 = load i8*, i8** %7
%129 = load i64, i64* %8
%130 = load i8*, i8** %13
%131 = load i64, i64* %8
%132 = mul i64 %131, 2
%133 = add i64 %132, 5
%134 = trunc i64 %133 to i32
%135 = call i32 @base64_encode(i8* %128, i64 %129, i8* %130, i32 %134)
br label %136
136: ; preds = %114, %109
br label %137
137: ; preds = %136, %63
%138 = load i64, i64* %15
%139 = icmp eq i64 %138, 0
br i1 %139, label %140, label %141
140: ; preds = %137
store i64 64000, i64* %15
br label %141
141: ; preds = %140, %137
%142 = load i8*, i8** %9
%143 = icmp ne i8* %142, null
br i1 %143, label %144, label %176
144: ; preds = %141
%145 = load i8*, i8** %9
%146 = call i64 @strncmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %145, i32 7)
%147 = icmp ne i64 %146, 0
br i1 %147, label %148, label %173
148: ; preds = %144
%149 = load i8*, i8** %12
%150 = icmp ne i8* %149, null
br i1 %150, label %151, label %154
151: ; preds = %148
%152 = load i8*, i8** %12
%153 = call i32 @free(i8* %152)
br label %154
154: ; preds = %151, %148
%155 = load i8*, i8** %10
%156 = icmp ne i8* %155, null
br i1 %156, label %157, label %160
157: ; preds = %154
%158 = load i8*, i8** %10
%159 = call i32 @free(i8* %158)
br label %160
160: ; preds = %157, %154
%161 = load i8*, i8** %13
%162 = icmp ne i8* %161, null
br i1 %162, label %163, label %166
163: ; preds = %160
%164 = load i8*, i8** %13
%165 = call i32 @free(i8* %164)
br label %166
166: ; preds = %163, %160
%167 = load i8*, i8** %14
%168 = icmp ne i8* %167, null
br i1 %168, label %169, label %172
169: ; preds = %166
%170 = load i8*, i8** %14
%171 = call i32 @free(i8* %170)
br label %172
172: ; preds = %169, %166
store i8* null, i8** %5
store i32 1, i32* %23
br label %260
173: ; preds = %144
%174 = load i8*, i8** %9
%175 = getelementptr inbounds i8, i8* %174, i64 7
store i8* %175, i8** %11
br label %176
176: ; preds = %173, %141
%177 = load i8*, i8** %11
%178 = call i32* @EVP_get_digestbyname(i8* %177)
store i32* %178, i32** %19
%179 = load i32*, i32** %19
%180 = icmp ne i32* %179, null
br i1 %180, label %184, label %181
181: ; preds = %176
%182 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i8* %28)
%183 = call i32* @EVP_get_digestbyname(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
store i32* %183, i32** %19
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %11
br label %184
184: ; preds = %181, %176
%185 = load i8*, i8** %6
%186 = call i32 @strlen(i8* %185)
%187 = sext i32 %186 to i64
store i64 %187, i64* %24
%188 = load i8*, i8** %6
%189 = load i64, i64* %24
%190 = load i8*, i8** %14
%191 = icmp ne i8* %190, null
br i1 %191, label %192, label %194
192: ; preds = %184
%193 = load i8*, i8** %14
br label %196
194: ; preds = %184
%195 = load i8*, i8** %7
br label %196
196: ; preds = %194, %192
%197 = phi i8* [ %193, %192 ], [ %195, %194 ]
%198 = load i64, i64* %8
%199 = load i64, i64* %15
%200 = load i32*, i32** %19
%201 = load i32*, i32** %19
%202 = call i64 @EVP_MD_size(i32* %201)
%203 = call i32 @PKCS5_PBKDF2_HMAC(i8* %188, i64 %189, i8* %197, i64 %198, i64 %199, i32* %200, i64 %202, i8* %28)
%204 = trunc i64 %32 to i32
%205 = call i32 @memset(i8* %33, i32 0, i32 %204)
%206 = load i32*, i32** %19
%207 = call i64 @EVP_MD_size(i32* %206)
%208 = trunc i64 %32 to i32
%209 = call i32 @base64_encode(i8* %28, i64 %207, i8* %33, i32 %208)
%210 = load i32, i32* @EVP_MAX_MD_SIZE
%211 = mul nsw i32 %210, 2
%212 = load i8*, i8** %9
%213 = call i32 @strlen(i8* %212)
%214 = add nsw i32 %211, %213
%215 = sext i32 %214 to i64
%216 = load i64, i64* %8
%217 = add i64 %215, %216
%218 = add i64 %217, 30
store i64 %218, i64* %17
%219 = load i64, i64* %17
%220 = call i64 @calloc(i64 %219, i32 1)
%221 = inttoptr i64 %220 to i8*
store i8* %221, i8** %18
%222 = load i8*, i8** %18
%223 = load i64, i64* %17
%224 = load i8*, i8** %9
%225 = load i64, i64* %15
%226 = load i8*, i8** %13
%227 = icmp ne i8* %226, null
br i1 %227, label %228, label %230
228: ; preds = %196
%229 = load i8*, i8** %13
br label %232
230: ; preds = %196
%231 = load i8*, i8** %7
br label %232
232: ; preds = %230, %228
%233 = phi i8* [ %229, %228 ], [ %231, %230 ]
%234 = call i32 @snprintf(i8* %222, i64 %223, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* %224, i64 %225, i8* %233, i8* %33)
%235 = load i8*, i8** %12
%236 = icmp ne i8* %235, null
br i1 %236, label %237, label %240
237: ; preds = %232
%238 = load i8*, i8** %12
%239 = call i32 @free(i8* %238)
br label %240
240: ; preds = %237, %232
%241 = load i8*, i8** %10
%242 = icmp ne i8* %241, null
br i1 %242, label %243, label %246
243: ; preds = %240
%244 = load i8*, i8** %10
%245 = call i32 @free(i8* %244)
br label %246
246: ; preds = %243, %240
%247 = load i8*, i8** %13
%248 = icmp ne i8* %247, null
br i1 %248, label %249, label %252
249: ; preds = %246
%250 = load i8*, i8** %13
%251 = call i32 @free(i8* %250)
br label %252
252: ; preds = %249, %246
%253 = load i8*, i8** %14
%254 = icmp ne i8* %253, null
br i1 %254, label %255, label %258
255: ; preds = %252
%256 = load i8*, i8** %14
%257 = call i32 @free(i8* %256)
br label %258
258: ; preds = %255, %252
%259 = load i8*, i8** %18
store i8* %259, i8** %5
store i32 1, i32* %23
br label %260
260: ; preds = %258, %172
%261 = load i8*, i8** %20
%262 = load i8*, i8** %5
ret i8* %262
}

LLVM IR (-O2):
@EVP_MAX_MD_SIZE = global i32 0
@.str = [18 x i8] c":%m[^:]:%u:%m[^:]\00"
@.str.1 = [8 x i8] c"pbkdf2-\00"
@.str.2 = [40 x i8] c"Unknown message digest %s\0AUsing sha256\0A\00"
@.str.3 = [7 x i8] c"sha256\00"
@.str.4 = [14 x i8] c":%s:%lu:%s:%s\00"
define i8* @fPBKDF2(i8* %0, i8* %1, i64 %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i64
%8 = bitcast i8** %5 to i8*
store i8* null, i8** %5
%9 = bitcast i8** %6 to i8*
store i8* null, i8** %6
%10 = bitcast i64* %7 to i8*
store i64 24576, i64* %7
%11 = load i32, i32* @EVP_MAX_MD_SIZE
%12 = zext i32 %11 to i64
%13 = tail call i8* @llvm.stacksave()
%14 = alloca i8, i64 %12
%15 = load i32, i32* @EVP_MAX_MD_SIZE
%16 = shl nsw i32 %15, 1
%17 = add nsw i32 %16, 5
%18 = zext i32 %17 to i64
%19 = alloca i8, i64 %18
%20 = icmp eq i8* %1, null
br i1 %20, label %59, label %21
21: ; preds = %4
%22 = call i32 @sscanf(i8* %1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %6, i64* %7, i8** %5)
%23 = icmp eq i32 %22, 3
br i1 %23, label %24, label %38
24: ; preds = %21
%25 = load i8*, i8** %5
%26 = load i8*, i8** %6
%27 = call i32 @strlen(i8* %25)
%28 = sext i32 %27 to i64
%29 = add nsw i64 %28, -1
%30 = getelementptr inbounds i8, i8* %25, i64 %29
%31 = load i8, i8* %30
%32 = icmp eq i8 %31, 61
br i1 %32, label %33, label %72
33: ; preds = %24
%34 = add nsw i64 %28, 1
%35 = call i64 @calloc(i64 %34, i32 1)
%36 = inttoptr i64 %35 to i8*
%37 = call i64 @base64_decode(i8* %25, i8* %36, i64 %34)
br label %72
38: ; preds = %21
%39 = load i8, i8* %1
%40 = icmp eq i8 %39, 0
br i1 %40, label %41, label %49
41: ; preds = %38
%42 = call i32 @genSaltBin(i8* %1, i64 %2)
%43 = shl i64 %2, 1
%44 = add i64 %43, 5
%45 = call i64 @calloc(i64 %44, i32 1)
%46 = inttoptr i64 %45 to i8*
%47 = trunc i64 %44 to i32
%48 = call i32 @base64_encode(i8* %1, i64 %2, i8* %46, i32 %47)
br label %72
49: ; preds = %38
%50 = add i64 %2, -1
%51 = getelementptr inbounds i8, i8* %1, i64 %50
%52 = load i8, i8* %51
%53 = icmp eq i8 %52, 61
br i1 %53, label %54, label %72
54: ; preds = %49
%55 = add i64 %2, 1
%56 = call i64 @calloc(i64 %55, i32 1)
%57 = inttoptr i64 %56 to i8*
%58 = call i64 @base64_decode(i8* %1, i8* %57, i64 %55)
br label %72
59: ; preds = %4
%60 = icmp eq i64 %2, 0
%61 = select i1 %60, i64 16, i64 %2
%62 = add i64 %61, 1
%63 = tail call i64 @calloc(i64 %62, i32 1)
%64 = inttoptr i64 %63 to i8*
store i8* %64, i8** %5
%65 = tail call i32 @genSaltBin(i8* %64, i64 %61)
%66 = shl i64 %61, 1
%67 = add i64 %66, 5
%68 = tail call i64 @calloc(i64 %67, i32 1)
%69 = inttoptr i64 %68 to i8*
%70 = trunc i64 %67 to i32
%71 = tail call i32 @base64_encode(i8* %64, i64 %61, i8* %69, i32 %70)
br label %72
72: ; preds = %59, %49, %54, %41, %24, %33
%73 = phi i8* [ null, %33 ], [ null, %24 ], [ %46, %41 ], [ null, %54 ], [ null, %49 ], [ %69, %59 ]
%74 = phi i8* [ %36, %33 ], [ null, %24 ], [ null, %41 ], [ %57, %54 ], [ null, %49 ], [ null, %59 ]
%75 = phi i8* [ %26, %33 ], [ %26, %24 ], [ %3, %41 ], [ %3, %54 ], [ %3, %49 ], [ %3, %59 ]
%76 = phi i64 [ %37, %33 ], [ %28, %24 ], [ %2, %41 ], [ %58, %54 ], [ %2, %49 ], [ %61, %59 ]
%77 = phi i8* [ %25, %33 ], [ %25, %24 ], [ %1, %41 ], [ %1, %54 ], [ %1, %49 ], [ %64, %59 ]
%78 = load i64, i64* %7
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %72
store i64 64000, i64* %7
br label %81
81: ; preds = %80, %72
%82 = icmp eq i8* %75, null
br i1 %82, label %104, label %83
83: ; preds = %81
%84 = call i64 @strncmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %75, i32 7)
%85 = icmp eq i64 %84, 0
br i1 %85, label %102, label %86
86: ; preds = %83
%87 = load i8*, i8** %6
%88 = icmp eq i8* %87, null
br i1 %88, label %91, label %89
89: ; preds = %86
%90 = call i32 @free(i8* %87)
br label %91
91: ; preds = %89, %86
%92 = load i8*, i8** %5
%93 = icmp eq i8* %92, null
br i1 %93, label %96, label %94
94: ; preds = %91
%95 = call i32 @free(i8* %92)
br label %96
96: ; preds = %94, %91
%97 = icmp eq i8* %73, null
br i1 %97, label %100, label %98
98: ; preds = %96
%99 = call i32 @free(i8* %73)
br label %100
100: ; preds = %98, %96
%101 = icmp eq i8* %74, null
br i1 %101, label %152, label %149
102: ; preds = %83
%103 = getelementptr inbounds i8, i8* %75, i64 7
br label %104
104: ; preds = %102, %81
%105 = phi i8* [ %103, %102 ], [ null, %81 ]
%106 = call i32* @EVP_get_digestbyname(i8* %105)
%107 = icmp eq i32* %106, null
br i1 %107, label %108, label %111
108: ; preds = %104
%109 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i8* %14)
%110 = call i32* @EVP_get_digestbyname(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %111
111: ; preds = %108, %104
%112 = phi i32* [ %106, %104 ], [ %110, %108 ]
%113 = call i32 @strlen(i8* %0)
%114 = sext i32 %113 to i64
%115 = icmp eq i8* %74, null
%116 = select i1 %115, i8* %77, i8* %74
%117 = load i64, i64* %7
%118 = call i64 @EVP_MD_size(i32* %112)
%119 = call i32 @PKCS5_PBKDF2_HMAC(i8* %0, i64 %114, i8* %116, i64 %76, i64 %117, i32* %112, i64 %118, i8* %14)
%120 = call i32 @memset(i8* %19, i32 0, i32 %17)
%121 = call i64 @EVP_MD_size(i32* %112)
%122 = call i32 @base64_encode(i8* %14, i64 %121, i8* %19, i32 %17)
%123 = load i32, i32* @EVP_MAX_MD_SIZE
%124 = shl nsw i32 %123, 1
%125 = call i32 @strlen(i8* %75)
%126 = add nsw i32 %124, %125
%127 = sext i32 %126 to i64
%128 = add i64 %76, 30
%129 = add i64 %128, %127
%130 = call i64 @calloc(i64 %129, i32 1)
%131 = inttoptr i64 %130 to i8*
%132 = load i64, i64* %7
%133 = icmp eq i8* %73, null
%134 = select i1 %133, i8* %77, i8* %73
%135 = call i32 @snprintf(i8* %131, i64 %129, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* %75, i64 %132, i8* %134, i8* %19)
%136 = load i8*, i8** %6
%137 = icmp eq i8* %136, null
br i1 %137, label %140, label %138
138: ; preds = %111
%139 = call i32 @free(i8* %136)
br label %140
140: ; preds = %138, %111
%141 = load i8*, i8** %5
%142 = icmp eq i8* %141, null
br i1 %142, label %145, label %143
143: ; preds = %140
%144 = call i32 @free(i8* %141)
br label %145
145: ; preds = %143, %140
br i1 %133, label %148, label %146
146: ; preds = %145
%147 = call i32 @free(i8* %73)
br label %148
148: ; preds = %146, %145
br i1 %115, label %152, label %149
149: ; preds = %148, %100
%150 = phi i8* [ null, %100 ], [ %131, %148 ]
%151 = call i32 @free(i8* %74)
br label %152
152: ; preds = %149, %148, %100
%153 = phi i8* [ null, %100 ], [ %131, %148 ], [ %150, %149 ]
ret i8* %153
}