
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int decodepoint(char *p,int length,ec_point *point)

{
  int iVar1;
  
  if (point->curve->type == ADDRTYPE_IPV6) {
    iVar1 = decodepoint_ed(p,length,point);
    return iVar1;
  }
  if ((0 < length) && (*p == '\x04')) {
    if ((length - 1U & 1) != 0) {
      point->x = (Bignum)0x0;
      point->y = (Bignum)0x0;
      point->z = (Bignum)0x0;
      return 0;
    }
                    /* WARNING: Subroutine does not return */
    bignum_from_bytes((uchar *)(p + 1),(int)(length - 1U) >> 1);
  }
  return 0;
}



undefined4 FUN_00064f6c(char *param_1,int param_2,undefined4 *param_3)

{
  undefined4 uVar1;
  int iVar2;
  
  if (*(int *)*param_3 == 2) {
    uVar1 = FUN_00064a78();
    return uVar1;
  }
  if ((0 < param_2) && (*param_1 == '\x04')) {
    if ((param_2 - 1U & 1) != 0) {
      param_3[1] = 0;
      param_3[2] = 0;
      param_3[3] = 0;
      return 0;
    }
    iVar2 = (int)(param_2 - 1U) >> 1;
    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);
    param_3[1] = uVar1;
    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);
    param_3[2] = uVar1;
    param_3[3] = 0;
    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {
      return 1;
    }
    freebn(param_3[1]);
    param_3[1] = 0;
    freebn(param_3[2]);
    param_3[2] = 0;
  }
  return 0;
}


lui gp,0x5
addiu gp,gp,0x31e4
addu gp,gp,t9
lw t1,0x0(a2)
addiu sp,sp,-0x30
li t0,0x2
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
lw t1,0x0(t1)
beq t1,t0,0x00065088
_lw t9,-0x78f0(gp)
blez a1,0x00064fc0
_or v0,a1,zero
lb a1,0x0(a0)
or a3,a0,zero
li a0,0x4
beq a1,a0,0x00064fdc
_addiu v0,v0,-0x1
or v0,zero,zero
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
andi a0,v0,0x1
beq a0,zero,0x00065010
_or s1,a2,zero
lw ra,0x2c(sp)
or v0,zero,zero
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
addiu sp,sp,0x30
sw zero,0x4(a2)
sw zero,0x8(a2)
jr ra
_sw zero,0xc(a2)
sra s0,v0,0x1
lw t9,-0x7b48(gp)
addiu s2,a3,0x1
or a1,s0,zero
bal 0x000570a0
_or a0,s2,zero
addu a0,s2,s0
lw gp,0x10(sp)
or a1,s0,zero
lw t9,-0x7b48(gp)
bal 0x000570a0
_sw v0,0x4(s1)
lbu v1,0x10(s1)
lw gp,0x10(sp)
sw v0,0x8(s1)
bne v1,zero,0x0006506c
_sw zero,0xc(s1)
lw t9,-0x78f0(gp)
addiu t9,t9,0x4728
bal 0x00064728
_or a0,s1,zero
beq v0,zero,0x000650a4
_lw gp,0x10(sp)
lw ra,0x2c(sp)
li v0,0x1
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
addiu t9,t9,0x4a78
lw s0,0x20(sp)
b 0x00064a78
_addiu sp,sp,0x30
lw t9,-0x7a0c(gp)
lw a0,0x4(s1)
bal 0x00056af4
_sw v0,0x1c(sp)
lw gp,0x10(sp)
lw a0,0x8(s1)
lw t9,-0x7a0c(gp)
bal 0x00056af4
_sw zero,0x4(s1)
lw v0,0x1c(sp)
b 0x00064fc4
_sw zero,0x8(s1)
(translation_unit "undefined4 FUN_00064f6c(char *param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(int *)*param_3 == 2) {\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }\n  if ((0 < param_2) && (*param_1 == '\x04')) {\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00064f6c(char *param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(int *)*param_3 == 2) {\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }\n  if ((0 < param_2) && (*param_1 == '\x04')) {\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00064f6c(char *param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(char *param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(int *)*param_3 == 2) {\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }\n  if ((0 < param_2) && (*param_1 == '\x04')) {\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(int *)*param_3 == 2) {\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }" if (parenthesized_expression "(*(int *)*param_3 == 2)" ( (binary_expression "*(int *)*param_3 == 2" (pointer_expression "*(int *)*param_3" * (cast_expression "(int *)*param_3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) == number_literal) )) (compound_statement "{\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_00064a78();" (assignment_expression "uVar1 = FUN_00064a78()" identifier = (call_expression "FUN_00064a78()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if ((0 < param_2) && (*param_1 == '\x04')) {\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }" if (parenthesized_expression "((0 < param_2) && (*param_1 == '\x04'))" ( (binary_expression "(0 < param_2) && (*param_1 == '\x04')" (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) && (parenthesized_expression "(*param_1 == '\x04')" ( (binary_expression "*param_1 == '\x04'" (pointer_expression "*param_1" * identifier) == (char_literal "'\x04'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }" { (if_statement "if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }" if (parenthesized_expression "((param_2 - 1U & 1) != 0)" ( (binary_expression "(param_2 - 1U & 1) != 0" (parenthesized_expression "(param_2 - 1U & 1)" ( (binary_expression "param_2 - 1U & 1" (binary_expression "param_2 - 1U" identifier - number_literal) & number_literal) )) != number_literal) )) (compound_statement "{\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }" { (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = (int)(param_2 - 1U) >> 1;" (assignment_expression "iVar2 = (int)(param_2 - 1U) >> 1" identifier = (binary_expression "(int)(param_2 - 1U) >> 1" (cast_expression "(int)(param_2 - 1U)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_2 - 1U)" ( (binary_expression "param_2 - 1U" identifier - number_literal) ))) >> number_literal)) ;) (expression_statement "uVar1 = bignum_from_bytes(param_1 + 1,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_1 + 1,iVar2)" identifier = (call_expression "bignum_from_bytes(param_1 + 1,iVar2)" identifier (argument_list "(param_1 + 1,iVar2)" ( (binary_expression "param_1 + 1" identifier + number_literal) , identifier )))) ;) (expression_statement "param_3[1] = uVar1;" (assignment_expression "param_3[1] = uVar1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2)" identifier = (call_expression "bignum_from_bytes(param_1 + 1 + iVar2,iVar2)" identifier (argument_list "(param_1 + 1 + iVar2,iVar2)" ( (binary_expression "param_1 + 1 + iVar2" (binary_expression "param_1 + 1" identifier + number_literal) + identifier) , identifier )))) ;) (expression_statement "param_3[2] = uVar1;" (assignment_expression "param_3[2] = uVar1" (subscript_expression "param_3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }" if (parenthesized_expression "((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0))" ( (binary_expression "(*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)" (parenthesized_expression "(*(char *)(param_3 + 4) != '\0')" ( (binary_expression "*(char *)(param_3 + 4) != '\0'" (pointer_expression "*(char *)(param_3 + 4)" * (cast_expression "(char *)(param_3 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(iVar2 = FUN_00064728(param_3), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00064728(param_3), iVar2 != 0" (assignment_expression "iVar2 = FUN_00064728(param_3)" identifier = (call_expression "FUN_00064728(param_3)" identifier (argument_list "(param_3)" ( identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "freebn(param_3[1]);" (call_expression "freebn(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "freebn(param_3[2]);" (call_expression "freebn(param_3[2])" identifier (argument_list "(param_3[2])" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) ))) ;) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint decodepoint(char *p,int length,ec_point *point)\n\n{\n  int iVar1;\n  \n  if (point->curve->type == ADDRTYPE_IPV6) {\n    iVar1 = decodepoint_ed(p,length,point);\n    return iVar1;\n  }\n  if ((0 < length) && (*p == '\x04')) {\n    if ((length - 1U & 1) != 0) {\n      point->x = (Bignum)0x0;\n      point->y = (Bignum)0x0;\n      point->z = (Bignum)0x0;\n      return 0;\n    }\n                    /* WARNING: Subroutine does not return */\n    bignum_from_bytes((uchar *)(p + 1),(int)(length - 1U) >> 1);\n  }\n  return 0;\n}\n\n" comment (function_definition "int decodepoint(char *p,int length,ec_point *point)\n\n{\n  int iVar1;\n  \n  if (point->curve->type == ADDRTYPE_IPV6) {\n    iVar1 = decodepoint_ed(p,length,point);\n    return iVar1;\n  }\n  if ((0 < length) && (*p == '\x04')) {\n    if ((length - 1U & 1) != 0) {\n      point->x = (Bignum)0x0;\n      point->y = (Bignum)0x0;\n      point->z = (Bignum)0x0;\n      return 0;\n    }\n                    /* WARNING: Subroutine does not return */\n    bignum_from_bytes((uchar *)(p + 1),(int)(length - 1U) >> 1);\n  }\n  return 0;\n}" primitive_type (function_declarator "decodepoint(char *p,int length,ec_point *point)" identifier (parameter_list "(char *p,int length,ec_point *point)" ( (parameter_declaration "char *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "int length" primitive_type identifier) , (parameter_declaration "ec_point *point" type_identifier (pointer_declarator "*point" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (point->curve->type == ADDRTYPE_IPV6) {\n    iVar1 = decodepoint_ed(p,length,point);\n    return iVar1;\n  }\n  if ((0 < length) && (*p == '\x04')) {\n    if ((length - 1U & 1) != 0) {\n      point->x = (Bignum)0x0;\n      point->y = (Bignum)0x0;\n      point->z = (Bignum)0x0;\n      return 0;\n    }\n                    /* WARNING: Subroutine does not return */\n    bignum_from_bytes((uchar *)(p + 1),(int)(length - 1U) >> 1);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (point->curve->type == ADDRTYPE_IPV6) {\n    iVar1 = decodepoint_ed(p,length,point);\n    return iVar1;\n  }" if (parenthesized_expression "(point->curve->type == ADDRTYPE_IPV6)" ( (binary_expression "point->curve->type == ADDRTYPE_IPV6" (field_expression "point->curve->type" (field_expression "point->curve" identifier -> field_identifier) -> field_identifier) == identifier) )) (compound_statement "{\n    iVar1 = decodepoint_ed(p,length,point);\n    return iVar1;\n  }" { (expression_statement "iVar1 = decodepoint_ed(p,length,point);" (assignment_expression "iVar1 = decodepoint_ed(p,length,point)" identifier = (call_expression "decodepoint_ed(p,length,point)" identifier (argument_list "(p,length,point)" ( identifier , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if ((0 < length) && (*p == '\x04')) {\n    if ((length - 1U & 1) != 0) {\n      point->x = (Bignum)0x0;\n      point->y = (Bignum)0x0;\n      point->z = (Bignum)0x0;\n      return 0;\n    }\n                    /* WARNING: Subroutine does not return */\n    bignum_from_bytes((uchar *)(p + 1),(int)(length - 1U) >> 1);\n  }" if (parenthesized_expression "((0 < length) && (*p == '\x04'))" ( (binary_expression "(0 < length) && (*p == '\x04')" (parenthesized_expression "(0 < length)" ( (binary_expression "0 < length" number_literal < identifier) )) && (parenthesized_expression "(*p == '\x04')" ( (binary_expression "*p == '\x04'" (pointer_expression "*p" * identifier) == (char_literal "'\x04'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if ((length - 1U & 1) != 0) {\n      point->x = (Bignum)0x0;\n      point->y = (Bignum)0x0;\n      point->z = (Bignum)0x0;\n      return 0;\n    }\n                    /* WARNING: Subroutine does not return */\n    bignum_from_bytes((uchar *)(p + 1),(int)(length - 1U) >> 1);\n  }" { (if_statement "if ((length - 1U & 1) != 0) {\n      point->x = (Bignum)0x0;\n      point->y = (Bignum)0x0;\n      point->z = (Bignum)0x0;\n      return 0;\n    }" if (parenthesized_expression "((length - 1U & 1) != 0)" ( (binary_expression "(length - 1U & 1) != 0" (parenthesized_expression "(length - 1U & 1)" ( (binary_expression "length - 1U & 1" (binary_expression "length - 1U" identifier - number_literal) & number_literal) )) != number_literal) )) (compound_statement "{\n      point->x = (Bignum)0x0;\n      point->y = (Bignum)0x0;\n      point->z = (Bignum)0x0;\n      return 0;\n    }" { (expression_statement "point->x = (Bignum)0x0;" (assignment_expression "point->x = (Bignum)0x0" (field_expression "point->x" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "point->y = (Bignum)0x0;" (assignment_expression "point->y = (Bignum)0x0" (field_expression "point->y" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "point->z = (Bignum)0x0;" (assignment_expression "point->z = (Bignum)0x0" (field_expression "point->z" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "bignum_from_bytes((uchar *)(p + 1),(int)(length - 1U) >> 1);" (call_expression "bignum_from_bytes((uchar *)(p + 1),(int)(length - 1U) >> 1)" identifier (argument_list "((uchar *)(p + 1),(int)(length - 1U) >> 1)" ( (cast_expression "(uchar *)(p + 1)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p + 1)" ( (binary_expression "p + 1" identifier + number_literal) ))) , (binary_expression "(int)(length - 1U) >> 1" (cast_expression "(int)(length - 1U)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(length - 1U)" ( (binary_expression "length - 1U" identifier - number_literal) ))) >> number_literal) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00064f6c(char *param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(int *)*param_3 == 2) {\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }\n  if ((0 < param_2) && (*param_1 == '\x04')) {\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00064f6c(char *param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(int *)*param_3 == 2) {\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }\n  if ((0 < param_2) && (*param_1 == '\x04')) {\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00064f6c(char *param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(char *param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(int *)*param_3 == 2) {\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }\n  if ((0 < param_2) && (*param_1 == '\x04')) {\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(int *)*param_3 == 2) {\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }" if (parenthesized_expression "(*(int *)*param_3 == 2)" ( (binary_expression "*(int *)*param_3 == 2" (pointer_expression "*(int *)*param_3" * (cast_expression "(int *)*param_3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) == number_literal) )) (compound_statement "{\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_00064a78();" (assignment_expression "uVar1 = FUN_00064a78()" identifier = (call_expression "FUN_00064a78()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if ((0 < param_2) && (*param_1 == '\x04')) {\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }" if (parenthesized_expression "((0 < param_2) && (*param_1 == '\x04'))" ( (binary_expression "(0 < param_2) && (*param_1 == '\x04')" (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) && (parenthesized_expression "(*param_1 == '\x04')" ( (binary_expression "*param_1 == '\x04'" (pointer_expression "*param_1" * identifier) == (char_literal "'\x04'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }" { (if_statement "if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }" if (parenthesized_expression "((param_2 - 1U & 1) != 0)" ( (binary_expression "(param_2 - 1U & 1) != 0" (parenthesized_expression "(param_2 - 1U & 1)" ( (binary_expression "param_2 - 1U & 1" (binary_expression "param_2 - 1U" identifier - number_literal) & number_literal) )) != number_literal) )) (compound_statement "{\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }" { (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = (int)(param_2 - 1U) >> 1;" (assignment_expression "iVar2 = (int)(param_2 - 1U) >> 1" identifier = (binary_expression "(int)(param_2 - 1U) >> 1" (cast_expression "(int)(param_2 - 1U)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_2 - 1U)" ( (binary_expression "param_2 - 1U" identifier - number_literal) ))) >> number_literal)) ;) (expression_statement "uVar1 = bignum_from_bytes(param_1 + 1,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_1 + 1,iVar2)" identifier = (call_expression "bignum_from_bytes(param_1 + 1,iVar2)" identifier (argument_list "(param_1 + 1,iVar2)" ( (binary_expression "param_1 + 1" identifier + number_literal) , identifier )))) ;) (expression_statement "param_3[1] = uVar1;" (assignment_expression "param_3[1] = uVar1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2)" identifier = (call_expression "bignum_from_bytes(param_1 + 1 + iVar2,iVar2)" identifier (argument_list "(param_1 + 1 + iVar2,iVar2)" ( (binary_expression "param_1 + 1 + iVar2" (binary_expression "param_1 + 1" identifier + number_literal) + identifier) , identifier )))) ;) (expression_statement "param_3[2] = uVar1;" (assignment_expression "param_3[2] = uVar1" (subscript_expression "param_3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }" if (parenthesized_expression "((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0))" ( (binary_expression "(*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)" (parenthesized_expression "(*(char *)(param_3 + 4) != '\0')" ( (binary_expression "*(char *)(param_3 + 4) != '\0'" (pointer_expression "*(char *)(param_3 + 4)" * (cast_expression "(char *)(param_3 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(iVar2 = FUN_00064728(param_3), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00064728(param_3), iVar2 != 0" (assignment_expression "iVar2 = FUN_00064728(param_3)" identifier = (call_expression "FUN_00064728(param_3)" identifier (argument_list "(param_3)" ( identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "freebn(param_3[1]);" (call_expression "freebn(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "freebn(param_3[2]);" (call_expression "freebn(param_3[2])" identifier (argument_list "(param_3[2])" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) ))) ;) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - LIT) ))) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (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 IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00064f6c(char *param_1,int param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(int *)*param_3 == 2) {\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }\n  if ((0 < param_2) && (*param_1 == '\x04')) {\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00064f6c(char *param_1,int param_2,undefined4 *param_3)" (identifier "FUN_00064f6c") (parameter_list "(char *param_1,int param_2,undefined4 *param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(int *)*param_3 == 2) {\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }\n  if ((0 < param_2) && (*param_1 == '\x04')) {\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (*(int *)*param_3 == 2) {\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)*param_3 == 2)" (( "(") (binary_expression "*(int *)*param_3 == 2" (pointer_expression "*(int *)*param_3" (* "*") (cast_expression "(int *)*param_3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    uVar1 = FUN_00064a78();\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_00064a78();" (assignment_expression "uVar1 = FUN_00064a78()" (identifier "uVar1") (= "=") (call_expression "FUN_00064a78()" (identifier "FUN_00064a78") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (if_statement "if ((0 < param_2) && (*param_1 == '\x04')) {\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }" (if "if") (parenthesized_expression "((0 < param_2) && (*param_1 == '\x04'))" (( "(") (binary_expression "(0 < param_2) && (*param_1 == '\x04')" (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "(*param_1 == '\x04')" (( "(") (binary_expression "*param_1 == '\x04'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }\n    iVar2 = (int)(param_2 - 1U) >> 1;\n    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);\n    param_3[1] = uVar1;\n    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);\n    param_3[2] = uVar1;\n    param_3[3] = 0;\n    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }\n    freebn(param_3[1]);\n    param_3[1] = 0;\n    freebn(param_3[2]);\n    param_3[2] = 0;\n  }" ({ "{") (if_statement "if ((param_2 - 1U & 1) != 0) {\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }" (if "if") (parenthesized_expression "((param_2 - 1U & 1) != 0)" (( "(") (binary_expression "(param_2 - 1U & 1) != 0" (parenthesized_expression "(param_2 - 1U & 1)" (( "(") (binary_expression "param_2 - 1U & 1" (binary_expression "param_2 - 1U" (identifier "param_2") (- "-") (number_literal "1U")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      param_3[1] = 0;\n      param_3[2] = 0;\n      param_3[3] = 0;\n      return 0;\n    }" ({ "{") (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = (int)(param_2 - 1U) >> 1;" (assignment_expression "iVar2 = (int)(param_2 - 1U) >> 1" (identifier "iVar2") (= "=") (binary_expression "(int)(param_2 - 1U) >> 1" (cast_expression "(int)(param_2 - 1U)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_2 - 1U)" (( "(") (binary_expression "param_2 - 1U" (identifier "param_2") (- "-") (number_literal "1U")) () ")"))) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = bignum_from_bytes(param_1 + 1,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_1 + 1,iVar2)" (identifier "uVar1") (= "=") (call_expression "bignum_from_bytes(param_1 + 1,iVar2)" (identifier "bignum_from_bytes") (argument_list "(param_1 + 1,iVar2)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "param_3[1] = uVar1;" (assignment_expression "param_3[1] = uVar1" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2)" (identifier "uVar1") (= "=") (call_expression "bignum_from_bytes(param_1 + 1 + iVar2,iVar2)" (identifier "bignum_from_bytes") (argument_list "(param_1 + 1 + iVar2,iVar2)" (( "(") (binary_expression "param_1 + 1 + iVar2" (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar2")) (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "param_3[2] = uVar1;" (assignment_expression "param_3[2] = uVar1" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {\n      return 1;\n    }" (if "if") (parenthesized_expression "((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0))" (( "(") (binary_expression "(*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)" (parenthesized_expression "(*(char *)(param_3 + 4) != '\0')" (( "(") (binary_expression "*(char *)(param_3 + 4) != '\0'" (pointer_expression "*(char *)(param_3 + 4)" (* "*") (cast_expression "(char *)(param_3 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 = FUN_00064728(param_3), iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_00064728(param_3), iVar2 != 0" (assignment_expression "iVar2 = FUN_00064728(param_3)" (identifier "iVar2") (= "=") (call_expression "FUN_00064728(param_3)" (identifier "FUN_00064728") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "freebn(param_3[1]);" (call_expression "freebn(param_3[1])" (identifier "freebn") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "freebn(param_3[2]);" (call_expression "freebn(param_3[2])" (identifier "freebn") (argument_list "(param_3[2])" (( "(") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(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))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (return_statement (number_literal)))))

undefined4 MASKED(char *param_1,int param_2,undefined4 *param_3)

{
  undefined4 uVar1;
  int iVar2;
  
  if (*(int *)*param_3 == 2) {
    uVar1 = FUN_00064a78();
    return uVar1;
  }
  if ((0 < param_2) && (*param_1 == '\x04')) {
    if ((param_2 - 1U & 1) != 0) {
      param_3[1] = 0;
      param_3[2] = 0;
      param_3[3] = 0;
      return 0;
    }
    iVar2 = (int)(param_2 - 1U) >> 1;
    uVar1 = bignum_from_bytes(param_1 + 1,iVar2);
    param_3[1] = uVar1;
    uVar1 = bignum_from_bytes(param_1 + 1 + iVar2,iVar2);
    param_3[2] = uVar1;
    param_3[3] = 0;
    if ((*(char *)(param_3 + 4) != '\0') || (iVar2 = FUN_00064728(param_3), iVar2 != 0)) {
      return 1;
    }
    freebn(param_3[1]);
    param_3[1] = 0;
    freebn(param_3[2]);
    param_3[2] = 0;
  }
  return 0;
}

