
uchar * dss_private_blob(void *key,int *len)

{
                    /* WARNING: Subroutine does not return */
  bignum_bitcount(*(Bignum_conflict *)((int)key + 0x10));
}



char * FUN_000370c0(int param_1,int *param_2)

{
  int iVar1;
  char *pcVar2;
  char cVar4;
  char *pcVar3;
  int iVar5;
  int iVar6;
  char *pcVar7;
  int iVar8;
  
  iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));
  iVar5 = iVar1 + 8;
  if (iVar5 < 0) {
    iVar5 = iVar1 + 0xf;
  }
  iVar6 = iVar5 >> 3;
  iVar8 = iVar6 + 4;
  iVar1 = iVar6 + -1;
  pcVar2 = (char *)safemalloc(iVar8,1);
  *pcVar2 = (char)(iVar5 >> 0x1b);
  pcVar2[1] = (char)(iVar5 >> 0x13);
  pcVar7 = pcVar2 + 4;
  pcVar2[2] = (char)(iVar5 >> 0xb);
  pcVar2[3] = (char)iVar6;
  pcVar3 = pcVar7;
  if (iVar6 != 0) {
    do {
      iVar5 = iVar1 + -1;
      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);
      *pcVar3 = cVar4;
      iVar1 = iVar5;
      pcVar3 = pcVar3 + 1;
    } while (iVar5 != -1);
    pcVar7 = pcVar7 + iVar6;
  }
  if (pcVar7 != pcVar2 + iVar8) {
    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)
                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,
                                PTR_s_j_000790a8 + 0x3884);
    return pcVar3;
  }
  *param_2 = iVar8;
  return pcVar2;
}


lui gp,0x5
addiu gp,gp,-0x6050
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x7d7c(gp)
sw s2,0x20(sp)
or s2,a0,zero
sw gp,0x10(sp)
sw s8,0x38(sp)
or s8,a1,zero
sw s1,0x1c(sp)
sw ra,0x3c(sp)
sw s7,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s0,0x18(sp)
bal 0x00030758
_lw a0,0x10(a0)
addiu s1,v0,0x8
bgez s1,0x00037120
_lw gp,0x10(sp)
addiu s1,v0,0xf
sra s5,s1,0x3
lw t9,-0x7fa0(gp)
li a1,0x1
addiu s7,s5,0x4
addiu s0,s5,-0x1
bal 0x0001cc64
_or a0,s7,zero
sra v1,s1,0x1b
or s4,v0,zero
lw gp,0x10(sp)
sra v0,s1,0x13
sra s1,s1,0xb
sb v1,0x0(s4)
sb v0,0x1(s4)
addiu s6,s4,0x4
sb s1,0x2(s4)
beq s5,zero,0x00037198
_sb s5,0x3(s4)
li s3,-0x1
or s1,s6,zero
lw t9,-0x7d78(gp)
addiu s1,s1,0x1
lw a0,0x10(s2)
or a1,s0,zero
bal 0x000308c0
_addiu s0,s0,-0x1
lw gp,0x10(sp)
bne s0,s3,0x00037170
_sb v0,-0x1(s1)
addu s6,s6,s5
addu v0,s4,s7
bne s6,v0,0x000371d8
_lw ra,0x3c(sp)
or v0,s4,zero
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
sw s7,0x0(s8)
lw s8,0x38(sp)
lw s7,0x34(sp)
jr ra
_addiu sp,sp,0x40
lw a3,-0x7fc8(gp)
li a2,0x16d
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x79b0(gp)
addiu a3,a3,0x3884
addiu a1,a1,0x3808
jalr t9
_addiu a0,a0,0x3814
(translation_unit "char * FUN_000370c0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar4;\n  char *pcVar3;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  int iVar8;\n  \n  iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));\n  iVar5 = iVar1 + 8;\n  if (iVar5 < 0) {\n    iVar5 = iVar1 + 0xf;\n  }\n  iVar6 = iVar5 >> 3;\n  iVar8 = iVar6 + 4;\n  iVar1 = iVar6 + -1;\n  pcVar2 = (char *)safemalloc(iVar8,1);\n  *pcVar2 = (char)(iVar5 >> 0x1b);\n  pcVar2[1] = (char)(iVar5 >> 0x13);\n  pcVar7 = pcVar2 + 4;\n  pcVar2[2] = (char)(iVar5 >> 0xb);\n  pcVar2[3] = (char)iVar6;\n  pcVar3 = pcVar7;\n  if (iVar6 != 0) {\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }\n  if (pcVar7 != pcVar2 + iVar8) {\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }\n  *param_2 = iVar8;\n  return pcVar2;\n}\n\n" (function_definition "char * FUN_000370c0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar4;\n  char *pcVar3;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  int iVar8;\n  \n  iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));\n  iVar5 = iVar1 + 8;\n  if (iVar5 < 0) {\n    iVar5 = iVar1 + 0xf;\n  }\n  iVar6 = iVar5 >> 3;\n  iVar8 = iVar6 + 4;\n  iVar1 = iVar6 + -1;\n  pcVar2 = (char *)safemalloc(iVar8,1);\n  *pcVar2 = (char)(iVar5 >> 0x1b);\n  pcVar2[1] = (char)(iVar5 >> 0x13);\n  pcVar7 = pcVar2 + 4;\n  pcVar2[2] = (char)(iVar5 >> 0xb);\n  pcVar2[3] = (char)iVar6;\n  pcVar3 = pcVar7;\n  if (iVar6 != 0) {\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }\n  if (pcVar7 != pcVar2 + iVar8) {\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }\n  *param_2 = iVar8;\n  return pcVar2;\n}" primitive_type (pointer_declarator "* FUN_000370c0(int param_1,int *param_2)" * (function_declarator "FUN_000370c0(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char cVar4;\n  char *pcVar3;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  int iVar8;\n  \n  iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));\n  iVar5 = iVar1 + 8;\n  if (iVar5 < 0) {\n    iVar5 = iVar1 + 0xf;\n  }\n  iVar6 = iVar5 >> 3;\n  iVar8 = iVar6 + 4;\n  iVar1 = iVar6 + -1;\n  pcVar2 = (char *)safemalloc(iVar8,1);\n  *pcVar2 = (char)(iVar5 >> 0x1b);\n  pcVar2[1] = (char)(iVar5 >> 0x13);\n  pcVar7 = pcVar2 + 4;\n  pcVar2[2] = (char)(iVar5 >> 0xb);\n  pcVar2[3] = (char)iVar6;\n  pcVar3 = pcVar7;\n  if (iVar6 != 0) {\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }\n  if (pcVar7 != pcVar2 + iVar8) {\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }\n  *param_2 = iVar8;\n  return pcVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10))" identifier = (call_expression "bignum_bitcount(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) )))) ;) (expression_statement "iVar5 = iVar1 + 8;" (assignment_expression "iVar5 = iVar1 + 8" identifier = (binary_expression "iVar1 + 8" identifier + number_literal)) ;) (if_statement "if (iVar5 < 0) {\n    iVar5 = iVar1 + 0xf;\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar5 = iVar1 + 0xf;\n  }" { (expression_statement "iVar5 = iVar1 + 0xf;" (assignment_expression "iVar5 = iVar1 + 0xf" identifier = (binary_expression "iVar1 + 0xf" identifier + number_literal)) ;) })) (expression_statement "iVar6 = iVar5 >> 3;" (assignment_expression "iVar6 = iVar5 >> 3" identifier = (binary_expression "iVar5 >> 3" identifier >> number_literal)) ;) (expression_statement "iVar8 = iVar6 + 4;" (assignment_expression "iVar8 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar6 + -1;" (assignment_expression "iVar1 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "pcVar2 = (char *)safemalloc(iVar8,1);" (assignment_expression "pcVar2 = (char *)safemalloc(iVar8,1)" identifier = (cast_expression "(char *)safemalloc(iVar8,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(iVar8,1)" identifier (argument_list "(iVar8,1)" ( identifier , number_literal ))))) ;) (expression_statement "*pcVar2 = (char)(iVar5 >> 0x1b);" (assignment_expression "*pcVar2 = (char)(iVar5 >> 0x1b)" (pointer_expression "*pcVar2" * identifier) = (cast_expression "(char)(iVar5 >> 0x1b)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar5 >> 0x1b)" ( (binary_expression "iVar5 >> 0x1b" identifier >> number_literal) )))) ;) (expression_statement "pcVar2[1] = (char)(iVar5 >> 0x13);" (assignment_expression "pcVar2[1] = (char)(iVar5 >> 0x13)" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) = (cast_expression "(char)(iVar5 >> 0x13)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar5 >> 0x13)" ( (binary_expression "iVar5 >> 0x13" identifier >> number_literal) )))) ;) (expression_statement "pcVar7 = pcVar2 + 4;" (assignment_expression "pcVar7 = pcVar2 + 4" identifier = (binary_expression "pcVar2 + 4" identifier + number_literal)) ;) (expression_statement "pcVar2[2] = (char)(iVar5 >> 0xb);" (assignment_expression "pcVar2[2] = (char)(iVar5 >> 0xb)" (subscript_expression "pcVar2[2]" identifier [ number_literal ]) = (cast_expression "(char)(iVar5 >> 0xb)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar5 >> 0xb)" ( (binary_expression "iVar5 >> 0xb" identifier >> number_literal) )))) ;) (expression_statement "pcVar2[3] = (char)iVar6;" (assignment_expression "pcVar2[3] = (char)iVar6" (subscript_expression "pcVar2[3]" identifier [ number_literal ]) = (cast_expression "(char)iVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "pcVar3 = pcVar7;" (assignment_expression "pcVar3 = pcVar7" identifier = identifier) ;) (if_statement "if (iVar6 != 0) {\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }" { (do_statement "do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);" do (compound_statement "{\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    }" { (expression_statement "iVar5 = iVar1 + -1;" (assignment_expression "iVar5 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);" (assignment_expression "cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1)" identifier = (call_expression "bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),iVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "iVar1 = iVar5;" (assignment_expression "iVar1 = iVar5" identifier = identifier) ;) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != -1)" ( (binary_expression "iVar5 != -1" identifier != number_literal) )) ;) (expression_statement "pcVar7 = pcVar7 + iVar6;" (assignment_expression "pcVar7 = pcVar7 + iVar6" identifier = (binary_expression "pcVar7 + iVar6" identifier + identifier)) ;) })) (if_statement "if (pcVar7 != pcVar2 + iVar8) {\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }" if (parenthesized_expression "(pcVar7 != pcVar2 + iVar8)" ( (binary_expression "pcVar7 != pcVar2 + iVar8" identifier != (binary_expression "pcVar2 + iVar8" identifier + identifier)) )) (compound_statement "{\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }" { (expression_statement "pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" identifier = (cast_expression "(char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" (parenthesized_expression "(*(code *)PTR___assert_fail_000796c0)" ( (pointer_expression "*(code *)PTR___assert_fail_000796c0" * (cast_expression "(code *)PTR___assert_fail_000796c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" ( (binary_expression "PTR_s_j_000790a8 + 0x3814" identifier + number_literal) , (binary_expression "PTR_s_j_000790a8 + 0x3808" identifier + number_literal) , number_literal , (binary_expression "PTR_s_j_000790a8 + 0x3884" identifier + number_literal) ))))) ;) (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "*param_2 = iVar8;" (assignment_expression "*param_2 = iVar8" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "uchar * dss_private_blob(void *key,int *len)\n\n{\n                    /* WARNING: Subroutine does not return */\n  bignum_bitcount(*(Bignum_conflict *)((int)key + 0x10));\n}\n\n" (function_definition "uchar * dss_private_blob(void *key,int *len)\n\n{\n                    /* WARNING: Subroutine does not return */\n  bignum_bitcount(*(Bignum_conflict *)((int)key + 0x10));\n}" type_identifier (pointer_declarator "* dss_private_blob(void *key,int *len)" * (function_declarator "dss_private_blob(void *key,int *len)" identifier (parameter_list "(void *key,int *len)" ( (parameter_declaration "void *key" primitive_type (pointer_declarator "*key" * identifier)) , (parameter_declaration "int *len" primitive_type (pointer_declarator "*len" * identifier)) )))) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n  bignum_bitcount(*(Bignum_conflict *)((int)key + 0x10));\n}" { comment (expression_statement "bignum_bitcount(*(Bignum_conflict *)((int)key + 0x10));" (call_expression "bignum_bitcount(*(Bignum_conflict *)((int)key + 0x10))" identifier (argument_list "(*(Bignum_conflict *)((int)key + 0x10))" ( (pointer_expression "*(Bignum_conflict *)((int)key + 0x10)" * (cast_expression "(Bignum_conflict *)((int)key + 0x10)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + 0x10)" ( (binary_expression "(int)key + 0x10" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) })))
(translation_unit "char * FUN_000370c0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar4;\n  char *pcVar3;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  int iVar8;\n  \n  iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));\n  iVar5 = iVar1 + 8;\n  if (iVar5 < 0) {\n    iVar5 = iVar1 + 0xf;\n  }\n  iVar6 = iVar5 >> 3;\n  iVar8 = iVar6 + 4;\n  iVar1 = iVar6 + -1;\n  pcVar2 = (char *)safemalloc(iVar8,1);\n  *pcVar2 = (char)(iVar5 >> 0x1b);\n  pcVar2[1] = (char)(iVar5 >> 0x13);\n  pcVar7 = pcVar2 + 4;\n  pcVar2[2] = (char)(iVar5 >> 0xb);\n  pcVar2[3] = (char)iVar6;\n  pcVar3 = pcVar7;\n  if (iVar6 != 0) {\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }\n  if (pcVar7 != pcVar2 + iVar8) {\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }\n  *param_2 = iVar8;\n  return pcVar2;\n}\n\n" (function_definition "char * FUN_000370c0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar4;\n  char *pcVar3;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  int iVar8;\n  \n  iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));\n  iVar5 = iVar1 + 8;\n  if (iVar5 < 0) {\n    iVar5 = iVar1 + 0xf;\n  }\n  iVar6 = iVar5 >> 3;\n  iVar8 = iVar6 + 4;\n  iVar1 = iVar6 + -1;\n  pcVar2 = (char *)safemalloc(iVar8,1);\n  *pcVar2 = (char)(iVar5 >> 0x1b);\n  pcVar2[1] = (char)(iVar5 >> 0x13);\n  pcVar7 = pcVar2 + 4;\n  pcVar2[2] = (char)(iVar5 >> 0xb);\n  pcVar2[3] = (char)iVar6;\n  pcVar3 = pcVar7;\n  if (iVar6 != 0) {\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }\n  if (pcVar7 != pcVar2 + iVar8) {\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }\n  *param_2 = iVar8;\n  return pcVar2;\n}" primitive_type (pointer_declarator "* FUN_000370c0(int param_1,int *param_2)" * (function_declarator "FUN_000370c0(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char cVar4;\n  char *pcVar3;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  int iVar8;\n  \n  iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));\n  iVar5 = iVar1 + 8;\n  if (iVar5 < 0) {\n    iVar5 = iVar1 + 0xf;\n  }\n  iVar6 = iVar5 >> 3;\n  iVar8 = iVar6 + 4;\n  iVar1 = iVar6 + -1;\n  pcVar2 = (char *)safemalloc(iVar8,1);\n  *pcVar2 = (char)(iVar5 >> 0x1b);\n  pcVar2[1] = (char)(iVar5 >> 0x13);\n  pcVar7 = pcVar2 + 4;\n  pcVar2[2] = (char)(iVar5 >> 0xb);\n  pcVar2[3] = (char)iVar6;\n  pcVar3 = pcVar7;\n  if (iVar6 != 0) {\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }\n  if (pcVar7 != pcVar2 + iVar8) {\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }\n  *param_2 = iVar8;\n  return pcVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10))" identifier = (call_expression "bignum_bitcount(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) )))) ;) (expression_statement "iVar5 = iVar1 + 8;" (assignment_expression "iVar5 = iVar1 + 8" identifier = (binary_expression "iVar1 + 8" identifier + number_literal)) ;) (if_statement "if (iVar5 < 0) {\n    iVar5 = iVar1 + 0xf;\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar5 = iVar1 + 0xf;\n  }" { (expression_statement "iVar5 = iVar1 + 0xf;" (assignment_expression "iVar5 = iVar1 + 0xf" identifier = (binary_expression "iVar1 + 0xf" identifier + number_literal)) ;) })) (expression_statement "iVar6 = iVar5 >> 3;" (assignment_expression "iVar6 = iVar5 >> 3" identifier = (binary_expression "iVar5 >> 3" identifier >> number_literal)) ;) (expression_statement "iVar8 = iVar6 + 4;" (assignment_expression "iVar8 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar6 + -1;" (assignment_expression "iVar1 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "pcVar2 = (char *)safemalloc(iVar8,1);" (assignment_expression "pcVar2 = (char *)safemalloc(iVar8,1)" identifier = (cast_expression "(char *)safemalloc(iVar8,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(iVar8,1)" identifier (argument_list "(iVar8,1)" ( identifier , number_literal ))))) ;) (expression_statement "*pcVar2 = (char)(iVar5 >> 0x1b);" (assignment_expression "*pcVar2 = (char)(iVar5 >> 0x1b)" (pointer_expression "*pcVar2" * identifier) = (cast_expression "(char)(iVar5 >> 0x1b)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar5 >> 0x1b)" ( (binary_expression "iVar5 >> 0x1b" identifier >> number_literal) )))) ;) (expression_statement "pcVar2[1] = (char)(iVar5 >> 0x13);" (assignment_expression "pcVar2[1] = (char)(iVar5 >> 0x13)" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) = (cast_expression "(char)(iVar5 >> 0x13)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar5 >> 0x13)" ( (binary_expression "iVar5 >> 0x13" identifier >> number_literal) )))) ;) (expression_statement "pcVar7 = pcVar2 + 4;" (assignment_expression "pcVar7 = pcVar2 + 4" identifier = (binary_expression "pcVar2 + 4" identifier + number_literal)) ;) (expression_statement "pcVar2[2] = (char)(iVar5 >> 0xb);" (assignment_expression "pcVar2[2] = (char)(iVar5 >> 0xb)" (subscript_expression "pcVar2[2]" identifier [ number_literal ]) = (cast_expression "(char)(iVar5 >> 0xb)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar5 >> 0xb)" ( (binary_expression "iVar5 >> 0xb" identifier >> number_literal) )))) ;) (expression_statement "pcVar2[3] = (char)iVar6;" (assignment_expression "pcVar2[3] = (char)iVar6" (subscript_expression "pcVar2[3]" identifier [ number_literal ]) = (cast_expression "(char)iVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "pcVar3 = pcVar7;" (assignment_expression "pcVar3 = pcVar7" identifier = identifier) ;) (if_statement "if (iVar6 != 0) {\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }" { (do_statement "do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);" do (compound_statement "{\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    }" { (expression_statement "iVar5 = iVar1 + -1;" (assignment_expression "iVar5 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);" (assignment_expression "cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1)" identifier = (call_expression "bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),iVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "iVar1 = iVar5;" (assignment_expression "iVar1 = iVar5" identifier = identifier) ;) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != -1)" ( (binary_expression "iVar5 != -1" identifier != number_literal) )) ;) (expression_statement "pcVar7 = pcVar7 + iVar6;" (assignment_expression "pcVar7 = pcVar7 + iVar6" identifier = (binary_expression "pcVar7 + iVar6" identifier + identifier)) ;) })) (if_statement "if (pcVar7 != pcVar2 + iVar8) {\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }" if (parenthesized_expression "(pcVar7 != pcVar2 + iVar8)" ( (binary_expression "pcVar7 != pcVar2 + iVar8" identifier != (binary_expression "pcVar2 + iVar8" identifier + identifier)) )) (compound_statement "{\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }" { (expression_statement "pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" identifier = (cast_expression "(char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" (parenthesized_expression "(*(code *)PTR___assert_fail_000796c0)" ( (pointer_expression "*(code *)PTR___assert_fail_000796c0" * (cast_expression "(code *)PTR___assert_fail_000796c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" ( (binary_expression "PTR_s_j_000790a8 + 0x3814" identifier + number_literal) , (binary_expression "PTR_s_j_000790a8 + 0x3808" identifier + number_literal) , number_literal , (binary_expression "PTR_s_j_000790a8 + 0x3884" identifier + number_literal) ))))) ;) (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "*param_2 = iVar8;" (assignment_expression "*param_2 = iVar8" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "char * FUN_000370c0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char cVar4;\n  char *pcVar3;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  int iVar8;\n  \n  iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));\n  iVar5 = iVar1 + 8;\n  if (iVar5 < 0) {\n    iVar5 = iVar1 + 0xf;\n  }\n  iVar6 = iVar5 >> 3;\n  iVar8 = iVar6 + 4;\n  iVar1 = iVar6 + -1;\n  pcVar2 = (char *)safemalloc(iVar8,1);\n  *pcVar2 = (char)(iVar5 >> 0x1b);\n  pcVar2[1] = (char)(iVar5 >> 0x13);\n  pcVar7 = pcVar2 + 4;\n  pcVar2[2] = (char)(iVar5 >> 0xb);\n  pcVar2[3] = (char)iVar6;\n  pcVar3 = pcVar7;\n  if (iVar6 != 0) {\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }\n  if (pcVar7 != pcVar2 + iVar8) {\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }\n  *param_2 = iVar8;\n  return pcVar2;\n}" (primitive_type "char") (pointer_declarator "* FUN_000370c0(int param_1,int *param_2)" (* "*") (function_declarator "FUN_000370c0(int param_1,int *param_2)" (identifier "FUN_000370c0") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char cVar4;\n  char *pcVar3;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  int iVar8;\n  \n  iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));\n  iVar5 = iVar1 + 8;\n  if (iVar5 < 0) {\n    iVar5 = iVar1 + 0xf;\n  }\n  iVar6 = iVar5 >> 3;\n  iVar8 = iVar6 + 4;\n  iVar1 = iVar6 + -1;\n  pcVar2 = (char *)safemalloc(iVar8,1);\n  *pcVar2 = (char)(iVar5 >> 0x1b);\n  pcVar2[1] = (char)(iVar5 >> 0x13);\n  pcVar7 = pcVar2 + 4;\n  pcVar2[2] = (char)(iVar5 >> 0xb);\n  pcVar2[3] = (char)iVar6;\n  pcVar3 = pcVar7;\n  if (iVar6 != 0) {\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }\n  if (pcVar7 != pcVar2 + iVar8) {\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }\n  *param_2 = iVar8;\n  return pcVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10))" (identifier "iVar1") (= "=") (call_expression "bignum_bitcount(*(undefined4 *)(param_1 + 0x10))" (identifier "bignum_bitcount") (argument_list "(*(undefined4 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar5 = iVar1 + 8;" (assignment_expression "iVar5 = iVar1 + 8" (identifier "iVar5") (= "=") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8"))) (; ";")) (if_statement "if (iVar5 < 0) {\n    iVar5 = iVar1 + 0xf;\n  }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar5 = iVar1 + 0xf;\n  }" ({ "{") (expression_statement "iVar5 = iVar1 + 0xf;" (assignment_expression "iVar5 = iVar1 + 0xf" (identifier "iVar5") (= "=") (binary_expression "iVar1 + 0xf" (identifier "iVar1") (+ "+") (number_literal "0xf"))) (; ";")) (} "}"))) (expression_statement "iVar6 = iVar5 >> 3;" (assignment_expression "iVar6 = iVar5 >> 3" (identifier "iVar6") (= "=") (binary_expression "iVar5 >> 3" (identifier "iVar5") (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "iVar8 = iVar6 + 4;" (assignment_expression "iVar8 = iVar6 + 4" (identifier "iVar8") (= "=") (binary_expression "iVar6 + 4" (identifier "iVar6") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "iVar1 = iVar6 + -1;" (assignment_expression "iVar1 = iVar6 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "pcVar2 = (char *)safemalloc(iVar8,1);" (assignment_expression "pcVar2 = (char *)safemalloc(iVar8,1)" (identifier "pcVar2") (= "=") (cast_expression "(char *)safemalloc(iVar8,1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safemalloc(iVar8,1)" (identifier "safemalloc") (argument_list "(iVar8,1)" (( "(") (identifier "iVar8") (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "*pcVar2 = (char)(iVar5 >> 0x1b);" (assignment_expression "*pcVar2 = (char)(iVar5 >> 0x1b)" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (cast_expression "(char)(iVar5 >> 0x1b)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(iVar5 >> 0x1b)" (( "(") (binary_expression "iVar5 >> 0x1b" (identifier "iVar5") (>> ">>") (number_literal "0x1b")) () ")")))) (; ";")) (expression_statement "pcVar2[1] = (char)(iVar5 >> 0x13);" (assignment_expression "pcVar2[1] = (char)(iVar5 >> 0x13)" (subscript_expression "pcVar2[1]" (identifier "pcVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(char)(iVar5 >> 0x13)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(iVar5 >> 0x13)" (( "(") (binary_expression "iVar5 >> 0x13" (identifier "iVar5") (>> ">>") (number_literal "0x13")) () ")")))) (; ";")) (expression_statement "pcVar7 = pcVar2 + 4;" (assignment_expression "pcVar7 = pcVar2 + 4" (identifier "pcVar7") (= "=") (binary_expression "pcVar2 + 4" (identifier "pcVar2") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "pcVar2[2] = (char)(iVar5 >> 0xb);" (assignment_expression "pcVar2[2] = (char)(iVar5 >> 0xb)" (subscript_expression "pcVar2[2]" (identifier "pcVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(char)(iVar5 >> 0xb)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(iVar5 >> 0xb)" (( "(") (binary_expression "iVar5 >> 0xb" (identifier "iVar5") (>> ">>") (number_literal "0xb")) () ")")))) (; ";")) (expression_statement "pcVar2[3] = (char)iVar6;" (assignment_expression "pcVar2[3] = (char)iVar6" (subscript_expression "pcVar2[3]" (identifier "pcVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(char)iVar6" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar6"))) (; ";")) (expression_statement "pcVar3 = pcVar7;" (assignment_expression "pcVar3 = pcVar7" (identifier "pcVar3") (= "=") (identifier "pcVar7")) (; ";")) (if_statement "if (iVar6 != 0) {\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);\n    pcVar7 = pcVar7 + iVar6;\n  }" ({ "{") (do_statement "do {\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    } while (iVar5 != -1);" (do "do") (compound_statement "{\n      iVar5 = iVar1 + -1;\n      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);\n      *pcVar3 = cVar4;\n      iVar1 = iVar5;\n      pcVar3 = pcVar3 + 1;\n    }" ({ "{") (expression_statement "iVar5 = iVar1 + -1;" (assignment_expression "iVar5 = iVar1 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);" (assignment_expression "cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1)" (identifier "cVar4") (= "=") (call_expression "bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1)" (identifier "bignum_byte") (argument_list "(*(undefined4 *)(param_1 + 0x10),iVar1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (identifier "cVar4")) (; ";")) (expression_statement "iVar1 = iVar5;" (assignment_expression "iVar1 = iVar5" (identifier "iVar1") (= "=") (identifier "iVar5")) (; ";")) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != -1)" (( "(") (binary_expression "iVar5 != -1" (identifier "iVar5") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (expression_statement "pcVar7 = pcVar7 + iVar6;" (assignment_expression "pcVar7 = pcVar7 + iVar6" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + iVar6" (identifier "pcVar7") (+ "+") (identifier "iVar6"))) (; ";")) (} "}"))) (if_statement "if (pcVar7 != pcVar2 + iVar8) {\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }" (if "if") (parenthesized_expression "(pcVar7 != pcVar2 + iVar8)" (( "(") (binary_expression "pcVar7 != pcVar2 + iVar8" (identifier "pcVar7") (!= "!=") (binary_expression "pcVar2 + iVar8" (identifier "pcVar2") (+ "+") (identifier "iVar8"))) () ")")) (compound_statement "{\n    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);\n    return pcVar3;\n  }" ({ "{") (expression_statement "pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" (identifier "pcVar3") (= "=") (cast_expression "(char *)(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___assert_fail_000796c0)\n                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" (parenthesized_expression "(*(code *)PTR___assert_fail_000796c0)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000796c0" (* "*") (cast_expression "(code *)PTR___assert_fail_000796c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000796c0"))) () ")")) (argument_list "(PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,\n                                PTR_s_j_000790a8 + 0x3884)" (( "(") (binary_expression "PTR_s_j_000790a8 + 0x3814" (identifier "PTR_s_j_000790a8") (+ "+") (number_literal "0x3814")) (, ",") (binary_expression "PTR_s_j_000790a8 + 0x3808" (identifier "PTR_s_j_000790a8") (+ "+") (number_literal "0x3808")) (, ",") (number_literal "0x16d") (, ",") (binary_expression "PTR_s_j_000790a8 + 0x3884" (identifier "PTR_s_j_000790a8") (+ "+") (number_literal "0x3884")) () ")"))))) (; ";")) (return_statement "return pcVar3;" (return "return") (identifier "pcVar3") (; ";")) (} "}"))) (expression_statement "*param_2 = iVar8;" (assignment_expression "*param_2 = iVar8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar8")) (; ";")) (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))))

char * MASKED(int param_1,int *param_2)

{
  int iVar1;
  char *pcVar2;
  char cVar4;
  char *pcVar3;
  int iVar5;
  int iVar6;
  char *pcVar7;
  int iVar8;
  
  iVar1 = bignum_bitcount(*(undefined4 *)(param_1 + 0x10));
  iVar5 = iVar1 + 8;
  if (iVar5 < 0) {
    iVar5 = iVar1 + 0xf;
  }
  iVar6 = iVar5 >> 3;
  iVar8 = iVar6 + 4;
  iVar1 = iVar6 + -1;
  pcVar2 = (char *)safemalloc(iVar8,1);
  *pcVar2 = (char)(iVar5 >> 0x1b);
  pcVar2[1] = (char)(iVar5 >> 0x13);
  pcVar7 = pcVar2 + 4;
  pcVar2[2] = (char)(iVar5 >> 0xb);
  pcVar2[3] = (char)iVar6;
  pcVar3 = pcVar7;
  if (iVar6 != 0) {
    do {
      iVar5 = iVar1 + -1;
      cVar4 = bignum_byte(*(undefined4 *)(param_1 + 0x10),iVar1);
      *pcVar3 = cVar4;
      iVar1 = iVar5;
      pcVar3 = pcVar3 + 1;
    } while (iVar5 != -1);
    pcVar7 = pcVar7 + iVar6;
  }
  if (pcVar7 != pcVar2 + iVar8) {
    pcVar3 = (char *)(*(code *)PTR___assert_fail_000796c0)
                               (PTR_s_j_000790a8 + 0x3814,PTR_s_j_000790a8 + 0x3808,0x16d,
                                PTR_s_j_000790a8 + 0x3884);
    return pcVar3;
  }
  *param_2 = iVar8;
  return pcVar2;
}

