
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

Bignum __regparm3 getmp(char **data,int *datalen)

{
  uint uVar1;
  int nbytes;
  Bignum_conflict pBVar2;
  int iVar3;
  uchar *data_00;
  
  if (3 < *datalen) {
    uVar1 = *(uint *)*data;
    nbytes = toint(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);
    if (-1 < nbytes) {
      iVar3 = *datalen + -4;
      data_00 = (uchar *)(*data + 4);
      *datalen = iVar3;
      if (iVar3 < nbytes) {
        *data = (char *)data_00;
      }
      else {
        *data = (char *)(data_00 + nbytes);
        *datalen = iVar3 - nbytes;
        if (data_00 != (uchar *)0x0) {
          pBVar2 = bignum_from_bytes(data_00,nbytes);
          return pBVar2;
        }
      }
    }
  }
  return (Bignum)0x0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3 FUN_0006e990(int *param_1,int *param_2)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  
  if (3 < *param_2) {
    uVar1 = *(uint *)*param_1;
    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |
                         uVar1 << 0x18);
    if (-1 < iVar2) {
      iVar4 = *param_2 + -4;
      iVar5 = *param_1 + 4;
      *param_2 = iVar4;
      if (iVar4 < iVar2) {
        *param_1 = iVar5;
      }
      else {
        *param_1 = iVar5 + iVar2;
        *param_2 = iVar4 - iVar2;
        if (iVar5 != 0) {
          uVar3 = FUN_00056330(iVar5,iVar2);
          return uVar3;
        }
      }
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0x5e3d7
SUB ESP,0xc
CMP dword ptr [EDX],0x3
JG 0x0006e9b8
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,EAX
MOV EAX,dword ptr [EAX]
SUB ESP,0xc
MOV ESI,EDX
MOV EAX,dword ptr [EAX]
BSWAP EAX
PUSH EAX
CALL 0x0001ce40
ADD ESP,0x10
TEST EAX,EAX
JS 0x0006e9a7
MOV ECX,dword ptr [ESI]
MOV EDX,dword ptr [EDI]
SUB ECX,0x4
ADD EDX,0x4
MOV dword ptr [ESI],ECX
CMP EAX,ECX
JG 0x0006ea08
LEA EBP,[EDX + EAX*0x1]
SUB ECX,EAX
MOV dword ptr [EDI],EBP
MOV dword ptr [ESI],ECX
TEST EDX,EDX
JZ 0x0006e9a7
SUB ESP,0x8
PUSH EAX
PUSH EDX
CALL 0x00056330
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EDI],EDX
JMP 0x0006e9a7
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0006e990(int *param_1,int *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (3 < *param_2) {\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0006e990(int *param_1,int *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (3 < *param_2) {\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0006e990(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (3 < *param_2) {\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (3 < *param_2) {\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(3 < *param_2)" ( (binary_expression "3 < *param_2" number_literal < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }" { (expression_statement "uVar1 = *(uint *)*param_1;" (assignment_expression "uVar1 = *(uint *)*param_1" identifier = (pointer_expression "*(uint *)*param_1" * (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)))) ;) (expression_statement "iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);" (assignment_expression "iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18)" identifier = (call_expression "FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18)" identifier (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;) (if_statement "if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }" { (expression_statement "iVar4 = *param_2 + -4;" (assignment_expression "iVar4 = *param_2 + -4" identifier = (binary_expression "*param_2 + -4" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (expression_statement "iVar5 = *param_1 + 4;" (assignment_expression "iVar5 = *param_1 + 4" identifier = (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "*param_2 = iVar4;" (assignment_expression "*param_2 = iVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (if_statement "if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }" if (parenthesized_expression "(iVar4 < iVar2)" ( (binary_expression "iVar4 < iVar2" identifier < identifier) )) (compound_statement "{\n        *param_1 = iVar5;\n      }" { (expression_statement "*param_1 = iVar5;" (assignment_expression "*param_1 = iVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) }) (else_clause "else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }" else (compound_statement "{\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }" { (expression_statement "*param_1 = iVar5 + iVar2;" (assignment_expression "*param_1 = iVar5 + iVar2" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar5 + iVar2" identifier + identifier)) ;) (expression_statement "*param_2 = iVar4 - iVar2;" (assignment_expression "*param_2 = iVar4 - iVar2" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar4 - iVar2" identifier - identifier)) ;) (if_statement "if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }" { (expression_statement "uVar3 = FUN_00056330(iVar5,iVar2);" (assignment_expression "uVar3 = FUN_00056330(iVar5,iVar2)" identifier = (call_expression "FUN_00056330(iVar5,iVar2)" identifier (argument_list "(iVar5,iVar2)" ( identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) }))) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nBignum __regparm3 getmp(char **data,int *datalen)\n\n{\n  uint uVar1;\n  int nbytes;\n  Bignum_conflict pBVar2;\n  int iVar3;\n  uchar *data_00;\n  \n  if (3 < *datalen) {\n    uVar1 = *(uint *)*data;\n    nbytes = toint(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n    if (-1 < nbytes) {\n      iVar3 = *datalen + -4;\n      data_00 = (uchar *)(*data + 4);\n      *datalen = iVar3;\n      if (iVar3 < nbytes) {\n        *data = (char *)data_00;\n      }\n      else {\n        *data = (char *)(data_00 + nbytes);\n        *datalen = iVar3 - nbytes;\n        if (data_00 != (uchar *)0x0) {\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }\n      }\n    }\n  }\n  return (Bignum)0x0;\n}\n\n" comment (function_definition "Bignum __regparm3 getmp(char **data,int *datalen)\n\n{\n  uint uVar1;\n  int nbytes;\n  Bignum_conflict pBVar2;\n  int iVar3;\n  uchar *data_00;\n  \n  if (3 < *datalen) {\n    uVar1 = *(uint *)*data;\n    nbytes = toint(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n    if (-1 < nbytes) {\n      iVar3 = *datalen + -4;\n      data_00 = (uchar *)(*data + 4);\n      *datalen = iVar3;\n      if (iVar3 < nbytes) {\n        *data = (char *)data_00;\n      }\n      else {\n        *data = (char *)(data_00 + nbytes);\n        *datalen = iVar3 - nbytes;\n        if (data_00 != (uchar *)0x0) {\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }\n      }\n    }\n  }\n  return (Bignum)0x0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "getmp(char **data,int *datalen)" identifier (parameter_list "(char **data,int *datalen)" ( (parameter_declaration "char **data" primitive_type (pointer_declarator "**data" * (pointer_declarator "*data" * identifier))) , (parameter_declaration "int *datalen" primitive_type (pointer_declarator "*datalen" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int nbytes;\n  Bignum_conflict pBVar2;\n  int iVar3;\n  uchar *data_00;\n  \n  if (3 < *datalen) {\n    uVar1 = *(uint *)*data;\n    nbytes = toint(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n    if (-1 < nbytes) {\n      iVar3 = *datalen + -4;\n      data_00 = (uchar *)(*data + 4);\n      *datalen = iVar3;\n      if (iVar3 < nbytes) {\n        *data = (char *)data_00;\n      }\n      else {\n        *data = (char *)(data_00 + nbytes);\n        *datalen = iVar3 - nbytes;\n        if (data_00 != (uchar *)0x0) {\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }\n      }\n    }\n  }\n  return (Bignum)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int nbytes;" primitive_type identifier ;) (declaration "Bignum_conflict pBVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uchar *data_00;" type_identifier (pointer_declarator "*data_00" * identifier) ;) (if_statement "if (3 < *datalen) {\n    uVar1 = *(uint *)*data;\n    nbytes = toint(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n    if (-1 < nbytes) {\n      iVar3 = *datalen + -4;\n      data_00 = (uchar *)(*data + 4);\n      *datalen = iVar3;\n      if (iVar3 < nbytes) {\n        *data = (char *)data_00;\n      }\n      else {\n        *data = (char *)(data_00 + nbytes);\n        *datalen = iVar3 - nbytes;\n        if (data_00 != (uchar *)0x0) {\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(3 < *datalen)" ( (binary_expression "3 < *datalen" number_literal < (pointer_expression "*datalen" * identifier)) )) (compound_statement "{\n    uVar1 = *(uint *)*data;\n    nbytes = toint(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n    if (-1 < nbytes) {\n      iVar3 = *datalen + -4;\n      data_00 = (uchar *)(*data + 4);\n      *datalen = iVar3;\n      if (iVar3 < nbytes) {\n        *data = (char *)data_00;\n      }\n      else {\n        *data = (char *)(data_00 + nbytes);\n        *datalen = iVar3 - nbytes;\n        if (data_00 != (uchar *)0x0) {\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }\n      }\n    }\n  }" { (expression_statement "uVar1 = *(uint *)*data;" (assignment_expression "uVar1 = *(uint *)*data" identifier = (pointer_expression "*(uint *)*data" * (cast_expression "(uint *)*data" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*data" * identifier)))) ;) (expression_statement "nbytes = toint(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" (assignment_expression "nbytes = toint(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" identifier = (call_expression "toint(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" identifier (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;) (if_statement "if (-1 < nbytes) {\n      iVar3 = *datalen + -4;\n      data_00 = (uchar *)(*data + 4);\n      *datalen = iVar3;\n      if (iVar3 < nbytes) {\n        *data = (char *)data_00;\n      }\n      else {\n        *data = (char *)(data_00 + nbytes);\n        *datalen = iVar3 - nbytes;\n        if (data_00 != (uchar *)0x0) {\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }\n      }\n    }" if (parenthesized_expression "(-1 < nbytes)" ( (binary_expression "-1 < nbytes" number_literal < identifier) )) (compound_statement "{\n      iVar3 = *datalen + -4;\n      data_00 = (uchar *)(*data + 4);\n      *datalen = iVar3;\n      if (iVar3 < nbytes) {\n        *data = (char *)data_00;\n      }\n      else {\n        *data = (char *)(data_00 + nbytes);\n        *datalen = iVar3 - nbytes;\n        if (data_00 != (uchar *)0x0) {\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }\n      }\n    }" { (expression_statement "iVar3 = *datalen + -4;" (assignment_expression "iVar3 = *datalen + -4" identifier = (binary_expression "*datalen + -4" (pointer_expression "*datalen" * identifier) + number_literal)) ;) (expression_statement "data_00 = (uchar *)(*data + 4);" (assignment_expression "data_00 = (uchar *)(*data + 4)" identifier = (cast_expression "(uchar *)(*data + 4)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*data + 4)" ( (binary_expression "*data + 4" (pointer_expression "*data" * identifier) + number_literal) )))) ;) (expression_statement "*datalen = iVar3;" (assignment_expression "*datalen = iVar3" (pointer_expression "*datalen" * identifier) = identifier) ;) (if_statement "if (iVar3 < nbytes) {\n        *data = (char *)data_00;\n      }\n      else {\n        *data = (char *)(data_00 + nbytes);\n        *datalen = iVar3 - nbytes;\n        if (data_00 != (uchar *)0x0) {\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }\n      }" if (parenthesized_expression "(iVar3 < nbytes)" ( (binary_expression "iVar3 < nbytes" identifier < identifier) )) (compound_statement "{\n        *data = (char *)data_00;\n      }" { (expression_statement "*data = (char *)data_00;" (assignment_expression "*data = (char *)data_00" (pointer_expression "*data" * identifier) = (cast_expression "(char *)data_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else {\n        *data = (char *)(data_00 + nbytes);\n        *datalen = iVar3 - nbytes;\n        if (data_00 != (uchar *)0x0) {\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }\n      }" else (compound_statement "{\n        *data = (char *)(data_00 + nbytes);\n        *datalen = iVar3 - nbytes;\n        if (data_00 != (uchar *)0x0) {\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }\n      }" { (expression_statement "*data = (char *)(data_00 + nbytes);" (assignment_expression "*data = (char *)(data_00 + nbytes)" (pointer_expression "*data" * identifier) = (cast_expression "(char *)(data_00 + nbytes)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(data_00 + nbytes)" ( (binary_expression "data_00 + nbytes" identifier + identifier) )))) ;) (expression_statement "*datalen = iVar3 - nbytes;" (assignment_expression "*datalen = iVar3 - nbytes" (pointer_expression "*datalen" * identifier) = (binary_expression "iVar3 - nbytes" identifier - identifier)) ;) (if_statement "if (data_00 != (uchar *)0x0) {\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }" if (parenthesized_expression "(data_00 != (uchar *)0x0)" ( (binary_expression "data_00 != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pBVar2 = bignum_from_bytes(data_00,nbytes);\n          return pBVar2;\n        }" { (expression_statement "pBVar2 = bignum_from_bytes(data_00,nbytes);" (assignment_expression "pBVar2 = bignum_from_bytes(data_00,nbytes)" identifier = (call_expression "bignum_from_bytes(data_00,nbytes)" identifier (argument_list "(data_00,nbytes)" ( identifier , identifier )))) ;) (return_statement "return pBVar2;" return identifier ;) })) }))) })) })) (return_statement "return (Bignum)0x0;" return (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal) ;) })))
(translation_unit "undefined4 __regparm3 FUN_0006e990(int *param_1,int *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (3 < *param_2) {\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0006e990(int *param_1,int *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (3 < *param_2) {\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0006e990(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (3 < *param_2) {\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (3 < *param_2) {\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(3 < *param_2)" ( (binary_expression "3 < *param_2" number_literal < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }" { (expression_statement "uVar1 = *(uint *)*param_1;" (assignment_expression "uVar1 = *(uint *)*param_1" identifier = (pointer_expression "*(uint *)*param_1" * (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)))) ;) (expression_statement "iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);" (assignment_expression "iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18)" identifier = (call_expression "FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18)" identifier (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;) (if_statement "if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }" { (expression_statement "iVar4 = *param_2 + -4;" (assignment_expression "iVar4 = *param_2 + -4" identifier = (binary_expression "*param_2 + -4" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (expression_statement "iVar5 = *param_1 + 4;" (assignment_expression "iVar5 = *param_1 + 4" identifier = (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "*param_2 = iVar4;" (assignment_expression "*param_2 = iVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (if_statement "if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }" if (parenthesized_expression "(iVar4 < iVar2)" ( (binary_expression "iVar4 < iVar2" identifier < identifier) )) (compound_statement "{\n        *param_1 = iVar5;\n      }" { (expression_statement "*param_1 = iVar5;" (assignment_expression "*param_1 = iVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) }) (else_clause "else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }" else (compound_statement "{\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }" { (expression_statement "*param_1 = iVar5 + iVar2;" (assignment_expression "*param_1 = iVar5 + iVar2" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar5 + iVar2" identifier + identifier)) ;) (expression_statement "*param_2 = iVar4 - iVar2;" (assignment_expression "*param_2 = iVar4 - iVar2" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar4 - iVar2" identifier - identifier)) ;) (if_statement "if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }" { (expression_statement "uVar3 = FUN_00056330(iVar5,iVar2);" (assignment_expression "uVar3 = FUN_00056330(iVar5,iVar2)" identifier = (call_expression "FUN_00056330(iVar5,iVar2)" identifier (argument_list "(iVar5,iVar2)" ( identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) }))) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) }))) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0006e990(int *param_1,int *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (3 < *param_2) {\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0006e990(int *param_1,int *param_2)" (identifier "FUN_0006e990") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (3 < *param_2) {\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (if_statement "if (3 < *param_2) {\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(3 < *param_2)" (( "(") (binary_expression "3 < *param_2" (number_literal "3") (< "<") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n    uVar1 = *(uint *)*param_1;\n    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);\n    if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "uVar1 = *(uint *)*param_1;" (assignment_expression "uVar1 = *(uint *)*param_1" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)*param_1" (* "*") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))))) (; ";")) (expression_statement "iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18);" (assignment_expression "iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18)" (identifier "iVar2") (= "=") (call_expression "FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18)" (identifier "FUN_0001ce40") (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18)" (( "(") (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                         uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18"))) () ")")))) (; ";")) (if_statement "if (-1 < iVar2) {\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      iVar4 = *param_2 + -4;\n      iVar5 = *param_1 + 4;\n      *param_2 = iVar4;\n      if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }\n    }" ({ "{") (expression_statement "iVar4 = *param_2 + -4;" (assignment_expression "iVar4 = *param_2 + -4" (identifier "iVar4") (= "=") (binary_expression "*param_2 + -4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "-4"))) (; ";")) (expression_statement "iVar5 = *param_1 + 4;" (assignment_expression "iVar5 = *param_1 + 4" (identifier "iVar5") (= "=") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*param_2 = iVar4;" (assignment_expression "*param_2 = iVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 < iVar2) {\n        *param_1 = iVar5;\n      }\n      else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }" (if "if") (parenthesized_expression "(iVar4 < iVar2)" (( "(") (binary_expression "iVar4 < iVar2" (identifier "iVar4") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n        *param_1 = iVar5;\n      }" ({ "{") (expression_statement "*param_1 = iVar5;" (assignment_expression "*param_1 = iVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar5")) (; ";")) (} "}")) (else_clause "else {\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }" (else "else") (compound_statement "{\n        *param_1 = iVar5 + iVar2;\n        *param_2 = iVar4 - iVar2;\n        if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }\n      }" ({ "{") (expression_statement "*param_1 = iVar5 + iVar2;" (assignment_expression "*param_1 = iVar5 + iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "iVar5 + iVar2" (identifier "iVar5") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "*param_2 = iVar4 - iVar2;" (assignment_expression "*param_2 = iVar4 - iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "iVar4 - iVar2" (identifier "iVar4") (- "-") (identifier "iVar2"))) (; ";")) (if_statement "if (iVar5 != 0) {\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar3 = FUN_00056330(iVar5,iVar2);\n          return uVar3;\n        }" ({ "{") (expression_statement "uVar3 = FUN_00056330(iVar5,iVar2);" (assignment_expression "uVar3 = FUN_00056330(iVar5,iVar2)" (identifier "uVar3") (= "=") (call_expression "FUN_00056330(iVar5,iVar2)" (identifier "FUN_00056330") (argument_list "(iVar5,iVar2)" (( "(") (identifier "iVar5") (, ",") (identifier "iVar2") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (} "}")))) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 __regparm3 function_1(char **data,int *datalen)

{
  type_2 var_2;
  int var_3;
  type_3 pBVar2;
  int var_4;
  type_4 *var_5;
  
  if (3 < *datalen) {
    var_2 = *(type_2 *)*data;
    var_3 = var_1(var_2 >> 0x18 | (var_2 & 0xff0000) >> 8 | (var_2 & 0xff00) << 8 | var_2 << 0x18);
    if (-1 < var_3) {
      var_4 = *datalen + -4;
      var_5 = (type_4 *)(*data + 4);
      *datalen = var_4;
      if (var_4 < var_3) {
        *data = (char *)var_5;
      }
      else {
        *data = (char *)(var_5 + var_3);
        *datalen = var_4 - var_3;
        if (var_5 != (type_4 *)0x0) {
          pBVar2 = var_6(var_5,var_3);
          return pBVar2;
        }
      }
    }
  }
  return (type_1)0x0;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (return_statement (identifier))))))))))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3 MASKED(int *param_1,int *param_2)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  
  if (3 < *param_2) {
    uVar1 = *(uint *)*param_1;
    iVar2 = FUN_0001ce40(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |
                         uVar1 << 0x18);
    if (-1 < iVar2) {
      iVar4 = *param_2 + -4;
      iVar5 = *param_1 + 4;
      *param_2 = iVar4;
      if (iVar4 < iVar2) {
        *param_1 = iVar5;
      }
      else {
        *param_1 = iVar5 + iVar2;
        *param_2 = iVar4 - iVar2;
        if (iVar5 != 0) {
          uVar3 = FUN_00056330(iVar5,iVar2);
          return uVar3;
        }
      }
    }
  }
  return 0;
}

