
Bignum_conflict bignum_from_decimal(char *decimal)

{
  byte bVar1;
  undefined *puVar2;
  Bignum_conflict a;
  int *piVar3;
  
  a = copybn(*(Bignum_conflict *)PTR_Zero_000b2aa8);
  puVar2 = PTR_Ten_000b2ab0;
  bVar1 = *decimal;
  if (bVar1 == 0) {
    return a;
  }
  piVar3 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();
  if ((*(ushort *)(*piVar3 + (uint)bVar1 * 2) & 8) == 0) {
                    /* WARNING: Subroutine does not return */
    freebn(a);
  }
  bigmuladd(a,*(Bignum_conflict *)puVar2,(Bignum_conflict)0x0);
  bignum_from_long((int)*decimal - 0x30);
                    /* WARNING: Subroutine does not return */
  freebn(a);
}



undefined4 bignum_from_decimal(char *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  int *piVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  uint uVar7;
  
  uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);
  puVar2 = PTR_Ten_000b2ab0;
  puVar1 = PTR_bigadd_000b2aac;
  uVar7 = (uint)*param_1;
  if (uVar7 != 0) {
    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();
    do {
      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {
        freebn();
        return 0;
      }
      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);
      uVar6 = bignum_from_long(*param_1 + -0x30);
      freebn(uVar3);
      uVar3 = (*(code *)puVar1)(uVar5,uVar6);
      freebn(uVar5);
      freebn(uVar6);
      uVar7 = (uint)param_1[1];
      param_1 = param_1 + 1;
    } while (uVar7 != 0);
  }
  return uVar3;
}


lui gp,0x6
addiu gp,gp,0x139c
addu gp,gp,t9
lw v0,-0x78c8(gp)
addiu sp,sp,-0x48
lw t9,-0x78cc(gp)
sw s1,0x24(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw s2,0x28(sp)
sw s0,0x20(sp)
sw ra,0x44(sp)
sw s8,0x40(sp)
sw s7,0x3c(sp)
sw s6,0x38(sp)
sw s5,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
bal 0x000574e0
_lw a0,0x0(v0)
lb s0,0x0(s1)
or s2,v0,zero
beq s0,zero,0x000590f8
_lw gp,0x10(sp)
lw v0,-0x78c4(gp)
lw t9,-0x7648(gp)
lw s3,-0x79c0(gp)
lw s7,-0x78c0(gp)
lw s6,-0x78d0(gp)
lw s5,-0x78bc(gp)
jalr t9
_sw v0,0x1c(sp)
b 0x000590c8
_or s4,v0,zero
lw a1,0x0(s7)
or t9,s6,zero
bal 0x00058944
_addiu s1,s1,0x1
or t9,s5,zero
lb a0,-0x1(s1)
or s8,v0,zero
bal 0x00058f80
_addiu a0,a0,-0x30
or a0,s2,zero
or t9,s3,zero
bal 0x00057554
_or s0,v0,zero
lw t9,0x1c(sp)
or a1,s0,zero
jalr t9
_or a0,s8,zero
or a0,s8,zero
or t9,s3,zero
bal 0x00057554
_or s2,v0,zero
or t9,s3,zero
bal 0x00057554
_or a0,s0,zero
lb s0,0x0(s1)
beq s0,zero,0x000590fc
_lw ra,0x44(sp)
lw v0,0x0(s4)
andi s0,s0,0xff
sll s0,s0,0x1
or a2,zero,zero
addu s0,v0,s0
lhu v0,0x0(s0)
andi v0,v0,0x8
bne v0,zero,0x0005905c
_or a0,s2,zero
or t9,s3,zero
bal 0x00057554
_or s2,zero,zero
lw ra,0x44(sp)
or v0,s2,zero
lw s8,0x40(sp)
lw s7,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x48
(translation_unit "undefined4 bignum_from_decimal(char *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);\n  puVar2 = PTR_Ten_000b2ab0;\n  puVar1 = PTR_bigadd_000b2aac;\n  uVar7 = (uint)*param_1;\n  if (uVar7 != 0) {\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 bignum_from_decimal(char *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);\n  puVar2 = PTR_Ten_000b2ab0;\n  puVar1 = PTR_bigadd_000b2aac;\n  uVar7 = (uint)*param_1;\n  if (uVar7 != 0) {\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }\n  return uVar3;\n}" type_identifier (function_declarator "bignum_from_decimal(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);\n  puVar2 = PTR_Ten_000b2ab0;\n  puVar1 = PTR_bigadd_000b2aac;\n  uVar7 = (uint)*param_1;\n  if (uVar7 != 0) {\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);" (assignment_expression "uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8)" identifier = (call_expression "copybn(*(undefined4 *)PTR_Zero_000b2aa8)" identifier (argument_list "(*(undefined4 *)PTR_Zero_000b2aa8)" ( (pointer_expression "*(undefined4 *)PTR_Zero_000b2aa8" * (cast_expression "(undefined4 *)PTR_Zero_000b2aa8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "puVar2 = PTR_Ten_000b2ab0;" (assignment_expression "puVar2 = PTR_Ten_000b2ab0" identifier = identifier) ;) (expression_statement "puVar1 = PTR_bigadd_000b2aac;" (assignment_expression "puVar1 = PTR_bigadd_000b2aac" identifier = identifier) ;) (expression_statement "uVar7 = (uint)*param_1;" (assignment_expression "uVar7 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (uVar7 != 0) {\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }" { (expression_statement "piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();" (assignment_expression "piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000b2d28)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_000b2d28)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000b2d28)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_000b2d28" * (cast_expression "(code *)PTR___ctype_b_loc_000b2d28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (do_statement "do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);" do (compound_statement "{\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    }" { (if_statement "if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }" if (parenthesized_expression "((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0)" ( (binary_expression "(*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8" (pointer_expression "*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2)" * (cast_expression "(ushort *)(*piVar4 + (uVar7 & 0xff) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + (uVar7 & 0xff) * 2)" ( (binary_expression "*piVar4 + (uVar7 & 0xff) * 2" (pointer_expression "*piVar4" * identifier) + (binary_expression "(uVar7 & 0xff) * 2" (parenthesized_expression "(uVar7 & 0xff)" ( (binary_expression "uVar7 & 0xff" identifier & number_literal) )) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        freebn();\n        return 0;\n      }" { (expression_statement "freebn();" (call_expression "freebn()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);" (assignment_expression "uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0)" identifier = (call_expression "bigmuladd(uVar3,*(undefined4 *)puVar2,0)" identifier (argument_list "(uVar3,*(undefined4 *)puVar2,0)" ( identifier , (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal )))) ;) (expression_statement "uVar6 = bignum_from_long(*param_1 + -0x30);" (assignment_expression "uVar6 = bignum_from_long(*param_1 + -0x30)" identifier = (call_expression "bignum_from_long(*param_1 + -0x30)" identifier (argument_list "(*param_1 + -0x30)" ( (binary_expression "*param_1 + -0x30" (pointer_expression "*param_1" * identifier) + number_literal) )))) ;) (expression_statement "freebn(uVar3);" (call_expression "freebn(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "uVar3 = (*(code *)puVar1)(uVar5,uVar6);" (assignment_expression "uVar3 = (*(code *)puVar1)(uVar5,uVar6)" identifier = (call_expression "(*(code *)puVar1)(uVar5,uVar6)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,uVar6)" ( identifier , identifier )))) ;) (expression_statement "freebn(uVar5);" (call_expression "freebn(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "freebn(uVar6);" (call_expression "freebn(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (expression_statement "uVar7 = (uint)param_1[1];" (assignment_expression "uVar7 = (uint)param_1[1]" identifier = (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "Bignum_conflict bignum_from_decimal(char *decimal)\n\n{\n  byte bVar1;\n  undefined *puVar2;\n  Bignum_conflict a;\n  int *piVar3;\n  \n  a = copybn(*(Bignum_conflict *)PTR_Zero_000b2aa8);\n  puVar2 = PTR_Ten_000b2ab0;\n  bVar1 = *decimal;\n  if (bVar1 == 0) {\n    return a;\n  }\n  piVar3 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n  if ((*(ushort *)(*piVar3 + (uint)bVar1 * 2) & 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    freebn(a);\n  }\n  bigmuladd(a,*(Bignum_conflict *)puVar2,(Bignum_conflict)0x0);\n  bignum_from_long((int)*decimal - 0x30);\n                    /* WARNING: Subroutine does not return */\n  freebn(a);\n}\n\n" (function_definition "Bignum_conflict bignum_from_decimal(char *decimal)\n\n{\n  byte bVar1;\n  undefined *puVar2;\n  Bignum_conflict a;\n  int *piVar3;\n  \n  a = copybn(*(Bignum_conflict *)PTR_Zero_000b2aa8);\n  puVar2 = PTR_Ten_000b2ab0;\n  bVar1 = *decimal;\n  if (bVar1 == 0) {\n    return a;\n  }\n  piVar3 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n  if ((*(ushort *)(*piVar3 + (uint)bVar1 * 2) & 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    freebn(a);\n  }\n  bigmuladd(a,*(Bignum_conflict *)puVar2,(Bignum_conflict)0x0);\n  bignum_from_long((int)*decimal - 0x30);\n                    /* WARNING: Subroutine does not return */\n  freebn(a);\n}" type_identifier (function_declarator "bignum_from_decimal(char *decimal)" identifier (parameter_list "(char *decimal)" ( (parameter_declaration "char *decimal" primitive_type (pointer_declarator "*decimal" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  undefined *puVar2;\n  Bignum_conflict a;\n  int *piVar3;\n  \n  a = copybn(*(Bignum_conflict *)PTR_Zero_000b2aa8);\n  puVar2 = PTR_Ten_000b2ab0;\n  bVar1 = *decimal;\n  if (bVar1 == 0) {\n    return a;\n  }\n  piVar3 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n  if ((*(ushort *)(*piVar3 + (uint)bVar1 * 2) & 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    freebn(a);\n  }\n  bigmuladd(a,*(Bignum_conflict *)puVar2,(Bignum_conflict)0x0);\n  bignum_from_long((int)*decimal - 0x30);\n                    /* WARNING: Subroutine does not return */\n  freebn(a);\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "Bignum_conflict a;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "a = copybn(*(Bignum_conflict *)PTR_Zero_000b2aa8);" (assignment_expression "a = copybn(*(Bignum_conflict *)PTR_Zero_000b2aa8)" identifier = (call_expression "copybn(*(Bignum_conflict *)PTR_Zero_000b2aa8)" identifier (argument_list "(*(Bignum_conflict *)PTR_Zero_000b2aa8)" ( (pointer_expression "*(Bignum_conflict *)PTR_Zero_000b2aa8" * (cast_expression "(Bignum_conflict *)PTR_Zero_000b2aa8" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "puVar2 = PTR_Ten_000b2ab0;" (assignment_expression "puVar2 = PTR_Ten_000b2ab0" identifier = identifier) ;) (expression_statement "bVar1 = *decimal;" (assignment_expression "bVar1 = *decimal" identifier = (pointer_expression "*decimal" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n    return a;\n  }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return a;\n  }" { (return_statement "return a;" return identifier ;) })) (expression_statement "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000b2d28)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_000b2d28)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000b2d28)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_000b2d28" * (cast_expression "(code *)PTR___ctype_b_loc_000b2d28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((*(ushort *)(*piVar3 + (uint)bVar1 * 2) & 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    freebn(a);\n  }" if (parenthesized_expression "((*(ushort *)(*piVar3 + (uint)bVar1 * 2) & 8) == 0)" ( (binary_expression "(*(ushort *)(*piVar3 + (uint)bVar1 * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar3 + (uint)bVar1 * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar3 + (uint)bVar1 * 2) & 8" (pointer_expression "*(ushort *)(*piVar3 + (uint)bVar1 * 2)" * (cast_expression "(ushort *)(*piVar3 + (uint)bVar1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + (uint)bVar1 * 2)" ( (binary_expression "*piVar3 + (uint)bVar1 * 2" (pointer_expression "*piVar3" * identifier) + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    freebn(a);\n  }" { comment (expression_statement "freebn(a);" (call_expression "freebn(a)" identifier (argument_list "(a)" ( identifier ))) ;) })) (expression_statement "bigmuladd(a,*(Bignum_conflict *)puVar2,(Bignum_conflict)0x0);" (call_expression "bigmuladd(a,*(Bignum_conflict *)puVar2,(Bignum_conflict)0x0)" identifier (argument_list "(a,*(Bignum_conflict *)puVar2,(Bignum_conflict)0x0)" ( identifier , (pointer_expression "*(Bignum_conflict *)puVar2" * (cast_expression "(Bignum_conflict *)puVar2" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal) ))) ;) (expression_statement "bignum_from_long((int)*decimal - 0x30);" (call_expression "bignum_from_long((int)*decimal - 0x30)" identifier (argument_list "((int)*decimal - 0x30)" ( (binary_expression "(int)*decimal - 0x30" (cast_expression "(int)*decimal" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*decimal" * identifier)) - number_literal) ))) ;) comment (expression_statement "freebn(a);" (call_expression "freebn(a)" identifier (argument_list "(a)" ( identifier ))) ;) })))
(translation_unit "undefined4 bignum_from_decimal(char *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);\n  puVar2 = PTR_Ten_000b2ab0;\n  puVar1 = PTR_bigadd_000b2aac;\n  uVar7 = (uint)*param_1;\n  if (uVar7 != 0) {\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 bignum_from_decimal(char *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);\n  puVar2 = PTR_Ten_000b2ab0;\n  puVar1 = PTR_bigadd_000b2aac;\n  uVar7 = (uint)*param_1;\n  if (uVar7 != 0) {\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }\n  return uVar3;\n}" type_identifier (function_declarator "bignum_from_decimal(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);\n  puVar2 = PTR_Ten_000b2ab0;\n  puVar1 = PTR_bigadd_000b2aac;\n  uVar7 = (uint)*param_1;\n  if (uVar7 != 0) {\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);" (assignment_expression "uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8)" identifier = (call_expression "copybn(*(undefined4 *)PTR_Zero_000b2aa8)" identifier (argument_list "(*(undefined4 *)PTR_Zero_000b2aa8)" ( (pointer_expression "*(undefined4 *)PTR_Zero_000b2aa8" * (cast_expression "(undefined4 *)PTR_Zero_000b2aa8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "puVar2 = PTR_Ten_000b2ab0;" (assignment_expression "puVar2 = PTR_Ten_000b2ab0" identifier = identifier) ;) (expression_statement "puVar1 = PTR_bigadd_000b2aac;" (assignment_expression "puVar1 = PTR_bigadd_000b2aac" identifier = identifier) ;) (expression_statement "uVar7 = (uint)*param_1;" (assignment_expression "uVar7 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (uVar7 != 0) {\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }" { (expression_statement "piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();" (assignment_expression "piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000b2d28)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_000b2d28)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000b2d28)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_000b2d28" * (cast_expression "(code *)PTR___ctype_b_loc_000b2d28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (do_statement "do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);" do (compound_statement "{\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    }" { (if_statement "if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }" if (parenthesized_expression "((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0)" ( (binary_expression "(*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8" (pointer_expression "*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2)" * (cast_expression "(ushort *)(*piVar4 + (uVar7 & 0xff) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + (uVar7 & 0xff) * 2)" ( (binary_expression "*piVar4 + (uVar7 & 0xff) * 2" (pointer_expression "*piVar4" * identifier) + (binary_expression "(uVar7 & 0xff) * 2" (parenthesized_expression "(uVar7 & 0xff)" ( (binary_expression "uVar7 & 0xff" identifier & number_literal) )) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        freebn();\n        return 0;\n      }" { (expression_statement "freebn();" (call_expression "freebn()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);" (assignment_expression "uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0)" identifier = (call_expression "bigmuladd(uVar3,*(undefined4 *)puVar2,0)" identifier (argument_list "(uVar3,*(undefined4 *)puVar2,0)" ( identifier , (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal )))) ;) (expression_statement "uVar6 = bignum_from_long(*param_1 + -0x30);" (assignment_expression "uVar6 = bignum_from_long(*param_1 + -0x30)" identifier = (call_expression "bignum_from_long(*param_1 + -0x30)" identifier (argument_list "(*param_1 + -0x30)" ( (binary_expression "*param_1 + -0x30" (pointer_expression "*param_1" * identifier) + number_literal) )))) ;) (expression_statement "freebn(uVar3);" (call_expression "freebn(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "uVar3 = (*(code *)puVar1)(uVar5,uVar6);" (assignment_expression "uVar3 = (*(code *)puVar1)(uVar5,uVar6)" identifier = (call_expression "(*(code *)puVar1)(uVar5,uVar6)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,uVar6)" ( identifier , identifier )))) ;) (expression_statement "freebn(uVar5);" (call_expression "freebn(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "freebn(uVar6);" (call_expression "freebn(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (expression_statement "uVar7 = (uint)param_1[1];" (assignment_expression "uVar7 = (uint)param_1[1]" identifier = (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (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 ( ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 bignum_from_decimal(char *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);\n  puVar2 = PTR_Ten_000b2ab0;\n  puVar1 = PTR_bigadd_000b2aac;\n  uVar7 = (uint)*param_1;\n  if (uVar7 != 0) {\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "bignum_from_decimal(char *param_1)" (identifier "bignum_from_decimal") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  \n  uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);\n  puVar2 = PTR_Ten_000b2ab0;\n  puVar1 = PTR_bigadd_000b2aac;\n  uVar7 = (uint)*param_1;\n  if (uVar7 != 0) {\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }\n  return uVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (expression_statement "uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);" (assignment_expression "uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8)" (identifier "uVar3") (= "=") (call_expression "copybn(*(undefined4 *)PTR_Zero_000b2aa8)" (identifier "copybn") (argument_list "(*(undefined4 *)PTR_Zero_000b2aa8)" (( "(") (pointer_expression "*(undefined4 *)PTR_Zero_000b2aa8" (* "*") (cast_expression "(undefined4 *)PTR_Zero_000b2aa8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_Zero_000b2aa8"))) () ")")))) (; ";")) (expression_statement "puVar2 = PTR_Ten_000b2ab0;" (assignment_expression "puVar2 = PTR_Ten_000b2ab0" (identifier "puVar2") (= "=") (identifier "PTR_Ten_000b2ab0")) (; ";")) (expression_statement "puVar1 = PTR_bigadd_000b2aac;" (assignment_expression "puVar1 = PTR_bigadd_000b2aac" (identifier "puVar1") (= "=") (identifier "PTR_bigadd_000b2aac")) (; ";")) (expression_statement "uVar7 = (uint)*param_1;" (assignment_expression "uVar7 = (uint)*param_1" (identifier "uVar7") (= "=") (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (uVar7 != 0) {\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }" (if "if") (parenthesized_expression "(uVar7 != 0)" (( "(") (binary_expression "uVar7 != 0" (identifier "uVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();\n    do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);\n  }" ({ "{") (expression_statement "piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();" (assignment_expression "piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)()" (identifier "piVar4") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000b2d28)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_b_loc_000b2d28)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000b2d28)" (( "(") (pointer_expression "*(code *)PTR___ctype_b_loc_000b2d28" (* "*") (cast_expression "(code *)PTR___ctype_b_loc_000b2d28" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_b_loc_000b2d28"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (do_statement "do {\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    } while (uVar7 != 0);" (do "do") (compound_statement "{\n      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }\n      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);\n      uVar6 = bignum_from_long(*param_1 + -0x30);\n      freebn(uVar3);\n      uVar3 = (*(code *)puVar1)(uVar5,uVar6);\n      freebn(uVar5);\n      freebn(uVar6);\n      uVar7 = (uint)param_1[1];\n      param_1 = param_1 + 1;\n    }" ({ "{") (if_statement "if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {\n        freebn();\n        return 0;\n      }" (if "if") (parenthesized_expression "((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0)" (( "(") (binary_expression "(*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8)" (( "(") (binary_expression "*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8" (pointer_expression "*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2)" (* "*") (cast_expression "(ushort *)(*piVar4 + (uVar7 & 0xff) * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar4 + (uVar7 & 0xff) * 2)" (( "(") (binary_expression "*piVar4 + (uVar7 & 0xff) * 2" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (binary_expression "(uVar7 & 0xff) * 2" (parenthesized_expression "(uVar7 & 0xff)" (( "(") (binary_expression "uVar7 & 0xff" (identifier "uVar7") (& "&") (number_literal "0xff")) () ")")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        freebn();\n        return 0;\n      }" ({ "{") (expression_statement "freebn();" (call_expression "freebn()" (identifier "freebn") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);" (assignment_expression "uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0)" (identifier "uVar5") (= "=") (call_expression "bigmuladd(uVar3,*(undefined4 *)puVar2,0)" (identifier "bigmuladd") (argument_list "(uVar3,*(undefined4 *)puVar2,0)" (( "(") (identifier "uVar3") (, ",") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "uVar6 = bignum_from_long(*param_1 + -0x30);" (assignment_expression "uVar6 = bignum_from_long(*param_1 + -0x30)" (identifier "uVar6") (= "=") (call_expression "bignum_from_long(*param_1 + -0x30)" (identifier "bignum_from_long") (argument_list "(*param_1 + -0x30)" (( "(") (binary_expression "*param_1 + -0x30" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x30")) () ")")))) (; ";")) (expression_statement "freebn(uVar3);" (call_expression "freebn(uVar3)" (identifier "freebn") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "uVar3 = (*(code *)puVar1)(uVar5,uVar6);" (assignment_expression "uVar3 = (*(code *)puVar1)(uVar5,uVar6)" (identifier "uVar3") (= "=") (call_expression "(*(code *)puVar1)(uVar5,uVar6)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(uVar5,uVar6)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar6") () ")")))) (; ";")) (expression_statement "freebn(uVar5);" (call_expression "freebn(uVar5)" (identifier "freebn") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "freebn(uVar6);" (call_expression "freebn(uVar6)" (identifier "freebn") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "uVar7 = (uint)param_1[1];" (assignment_expression "uVar7 = (uint)param_1[1]" (identifier "uVar7") (= "=") (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 != 0)" (( "(") (binary_expression "uVar7 != 0" (identifier "uVar7") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

undefined4 MASKED(char *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  int *piVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  uint uVar7;
  
  uVar3 = copybn(*(undefined4 *)PTR_Zero_000b2aa8);
  puVar2 = PTR_Ten_000b2ab0;
  puVar1 = PTR_bigadd_000b2aac;
  uVar7 = (uint)*param_1;
  if (uVar7 != 0) {
    piVar4 = (int *)(*(code *)PTR___ctype_b_loc_000b2d28)();
    do {
      if ((*(ushort *)(*piVar4 + (uVar7 & 0xff) * 2) & 8) == 0) {
        freebn();
        return 0;
      }
      uVar5 = bigmuladd(uVar3,*(undefined4 *)puVar2,0);
      uVar6 = bignum_from_long(*param_1 + -0x30);
      freebn(uVar3);
      uVar3 = (*(code *)puVar1)(uVar5,uVar6);
      freebn(uVar5);
      freebn(uVar6);
      uVar7 = (uint)param_1[1];
      param_1 = param_1 + 1;
    } while (uVar7 != 0);
  }
  return uVar3;
}

