
int __gmpf_cmp_ui(mpf_srcptr u,ulong vval)

{
  int iVar1;
  mp_limb_t *pmVar2;
  int iVar3;
  
  iVar1 = -1;
  iVar3 = u->_mp_size;
  if (-1 < iVar3) {
    if (vval == 0) {
      return (uint)(iVar3 != 0);
    }
    if (u->_mp_exp == 1) {
      pmVar2 = u->_mp_d;
      iVar3 = iVar3 + -1;
      if (vval != pmVar2[iVar3]) {
        iVar1 = 1;
        if (pmVar2[iVar3] < vval) {
          iVar1 = -1;
        }
        return iVar1;
      }
      for (; *pmVar2 == 0; pmVar2 = pmVar2 + 1) {
        iVar3 = iVar3 + -1;
      }
      return (uint)(0 < iVar3);
    }
    iVar1 = (uint)(0 < u->_mp_exp) * 2 + -1;
  }
  return iVar1;
}



uint __gmpf_cmp_ui(int param_1,uint param_2)

{
  uint uVar1;
  int *piVar2;
  int iVar3;
  
  uVar1 = 0xffffffff;
  iVar3 = *(int *)(param_1 + 4);
  if (-1 < iVar3) {
    if (param_2 == 0) {
      return (uint)(iVar3 != 0);
    }
    if (*(int *)(param_1 + 8) == 1) {
      piVar2 = *(int **)(param_1 + 0xc);
      iVar3 = iVar3 + -1;
      if (param_2 != piVar2[iVar3]) {
        uVar1 = 1;
        if ((uint)piVar2[iVar3] < param_2) {
          uVar1 = 0xffffffff;
        }
        return uVar1;
      }
      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {
        iVar3 = iVar3 + -1;
      }
      return (uint)(0 < iVar3);
    }
    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;
  }
  return uVar1;
}


PUSH EBX
MOV ECX,dword ptr [ESP + 0x8]
MOV EAX,0xffffffff
MOV EDX,dword ptr [ECX + 0x4]
TEST EDX,EDX
JS 0x0002136d
MOV EBX,dword ptr [ESP + 0xc]
TEST EBX,EBX
JZ 0x00021370
MOV EAX,dword ptr [ECX + 0x8]
CMP EAX,0x1
JZ 0x00021380
TEST EAX,EAX
SETG AL
MOVZX EAX,AL
LEA EAX,[EAX + EAX*0x1 + -0x1]
POP EBX
RET
XOR EAX,EAX
TEST EDX,EDX
POP EBX
SETNZ AL
RET
MOV ECX,dword ptr [ECX + 0xc]
SUB EDX,0x1
MOV EBX,dword ptr [ECX + EDX*0x4]
CMP dword ptr [ESP + 0xc],EBX
JZ 0x000213a6
MOV EDX,0xffffffff
POP EBX
CMOVA EAX,EDX
RET
SUB EDX,0x1
ADD ECX,0x4
MOV EAX,dword ptr [ECX]
TEST EAX,EAX
JZ 0x000213a0
XOR EAX,EAX
TEST EDX,EDX
POP EBX
SETG AL
RET
(translation_unit "uint __gmpf_cmp_ui(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  \n  uVar1 = 0xffffffff;\n  iVar3 = *(int *)(param_1 + 4);\n  if (-1 < iVar3) {\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }\n  return uVar1;\n}\n\n" (function_definition "uint __gmpf_cmp_ui(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  \n  uVar1 = 0xffffffff;\n  iVar3 = *(int *)(param_1 + 4);\n  if (-1 < iVar3) {\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "__gmpf_cmp_ui(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  \n  uVar1 = 0xffffffff;\n  iVar3 = *(int *)(param_1 + 4);\n  if (-1 < iVar3) {\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (-1 < iVar3) {\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }" { (if_statement "if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      return (uint)(iVar3 != 0);\n    }" { (return_statement "return (uint)(iVar3 != 0);" return (call_expression "(uint)(iVar3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 1)" ( (binary_expression "*(int *)(param_1 + 8) == 1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }" { (expression_statement "piVar2 = *(int **)(param_1 + 0xc);" (assignment_expression "piVar2 = *(int **)(param_1 + 0xc)" identifier = (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (if_statement "if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }" if (parenthesized_expression "(param_2 != piVar2[iVar3])" ( (binary_expression "param_2 != piVar2[iVar3]" identifier != (subscript_expression "piVar2[iVar3]" identifier [ identifier ])) )) (compound_statement "{\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }" { (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (if_statement "if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }" if (parenthesized_expression "((uint)piVar2[iVar3] < param_2)" ( (binary_expression "(uint)piVar2[iVar3] < param_2" (cast_expression "(uint)piVar2[iVar3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar2[iVar3]" identifier [ identifier ])) < identifier) )) (compound_statement "{\n          uVar1 = 0xffffffff;\n        }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })) (for_statement "for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }" for ( ; (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) ; (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ) (compound_statement "{\n        iVar3 = iVar3 + -1;\n      }" { (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) })) (return_statement "return (uint)(0 < iVar3);" return (call_expression "(uint)(0 < iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) ))) ;) })) (expression_statement "uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;" (assignment_expression "uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1" identifier = (binary_expression "(uint)(0 < *(int *)(param_1 + 8)) * 2 - 1" (binary_expression "(uint)(0 < *(int *)(param_1 + 8)) * 2" (call_expression "(uint)(0 < *(int *)(param_1 + 8))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < *(int *)(param_1 + 8))" ( (binary_expression "0 < *(int *)(param_1 + 8)" number_literal < (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ))) * number_literal) - number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int __gmpf_cmp_ui(mpf_srcptr u,ulong vval)\n\n{\n  int iVar1;\n  mp_limb_t *pmVar2;\n  int iVar3;\n  \n  iVar1 = -1;\n  iVar3 = u->_mp_size;\n  if (-1 < iVar3) {\n    if (vval == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (u->_mp_exp == 1) {\n      pmVar2 = u->_mp_d;\n      iVar3 = iVar3 + -1;\n      if (vval != pmVar2[iVar3]) {\n        iVar1 = 1;\n        if (pmVar2[iVar3] < vval) {\n          iVar1 = -1;\n        }\n        return iVar1;\n      }\n      for (; *pmVar2 == 0; pmVar2 = pmVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    iVar1 = (uint)(0 < u->_mp_exp) * 2 + -1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int __gmpf_cmp_ui(mpf_srcptr u,ulong vval)\n\n{\n  int iVar1;\n  mp_limb_t *pmVar2;\n  int iVar3;\n  \n  iVar1 = -1;\n  iVar3 = u->_mp_size;\n  if (-1 < iVar3) {\n    if (vval == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (u->_mp_exp == 1) {\n      pmVar2 = u->_mp_d;\n      iVar3 = iVar3 + -1;\n      if (vval != pmVar2[iVar3]) {\n        iVar1 = 1;\n        if (pmVar2[iVar3] < vval) {\n          iVar1 = -1;\n        }\n        return iVar1;\n      }\n      for (; *pmVar2 == 0; pmVar2 = pmVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    iVar1 = (uint)(0 < u->_mp_exp) * 2 + -1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "__gmpf_cmp_ui(mpf_srcptr u,ulong vval)" identifier (parameter_list "(mpf_srcptr u,ulong vval)" ( (parameter_declaration "mpf_srcptr u" type_identifier identifier) , (parameter_declaration "ulong vval" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  mp_limb_t *pmVar2;\n  int iVar3;\n  \n  iVar1 = -1;\n  iVar3 = u->_mp_size;\n  if (-1 < iVar3) {\n    if (vval == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (u->_mp_exp == 1) {\n      pmVar2 = u->_mp_d;\n      iVar3 = iVar3 + -1;\n      if (vval != pmVar2[iVar3]) {\n        iVar1 = 1;\n        if (pmVar2[iVar3] < vval) {\n          iVar1 = -1;\n        }\n        return iVar1;\n      }\n      for (; *pmVar2 == 0; pmVar2 = pmVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    iVar1 = (uint)(0 < u->_mp_exp) * 2 + -1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "mp_limb_t *pmVar2;" type_identifier (pointer_declarator "*pmVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (expression_statement "iVar3 = u->_mp_size;" (assignment_expression "iVar3 = u->_mp_size" identifier = (field_expression "u->_mp_size" identifier -> field_identifier)) ;) (if_statement "if (-1 < iVar3) {\n    if (vval == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (u->_mp_exp == 1) {\n      pmVar2 = u->_mp_d;\n      iVar3 = iVar3 + -1;\n      if (vval != pmVar2[iVar3]) {\n        iVar1 = 1;\n        if (pmVar2[iVar3] < vval) {\n          iVar1 = -1;\n        }\n        return iVar1;\n      }\n      for (; *pmVar2 == 0; pmVar2 = pmVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    iVar1 = (uint)(0 < u->_mp_exp) * 2 + -1;\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    if (vval == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (u->_mp_exp == 1) {\n      pmVar2 = u->_mp_d;\n      iVar3 = iVar3 + -1;\n      if (vval != pmVar2[iVar3]) {\n        iVar1 = 1;\n        if (pmVar2[iVar3] < vval) {\n          iVar1 = -1;\n        }\n        return iVar1;\n      }\n      for (; *pmVar2 == 0; pmVar2 = pmVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    iVar1 = (uint)(0 < u->_mp_exp) * 2 + -1;\n  }" { (if_statement "if (vval == 0) {\n      return (uint)(iVar3 != 0);\n    }" if (parenthesized_expression "(vval == 0)" ( (binary_expression "vval == 0" identifier == number_literal) )) (compound_statement "{\n      return (uint)(iVar3 != 0);\n    }" { (return_statement "return (uint)(iVar3 != 0);" return (call_expression "(uint)(iVar3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) ))) ;) })) (if_statement "if (u->_mp_exp == 1) {\n      pmVar2 = u->_mp_d;\n      iVar3 = iVar3 + -1;\n      if (vval != pmVar2[iVar3]) {\n        iVar1 = 1;\n        if (pmVar2[iVar3] < vval) {\n          iVar1 = -1;\n        }\n        return iVar1;\n      }\n      for (; *pmVar2 == 0; pmVar2 = pmVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }" if (parenthesized_expression "(u->_mp_exp == 1)" ( (binary_expression "u->_mp_exp == 1" (field_expression "u->_mp_exp" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      pmVar2 = u->_mp_d;\n      iVar3 = iVar3 + -1;\n      if (vval != pmVar2[iVar3]) {\n        iVar1 = 1;\n        if (pmVar2[iVar3] < vval) {\n          iVar1 = -1;\n        }\n        return iVar1;\n      }\n      for (; *pmVar2 == 0; pmVar2 = pmVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }" { (expression_statement "pmVar2 = u->_mp_d;" (assignment_expression "pmVar2 = u->_mp_d" identifier = (field_expression "u->_mp_d" identifier -> field_identifier)) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (if_statement "if (vval != pmVar2[iVar3]) {\n        iVar1 = 1;\n        if (pmVar2[iVar3] < vval) {\n          iVar1 = -1;\n        }\n        return iVar1;\n      }" if (parenthesized_expression "(vval != pmVar2[iVar3])" ( (binary_expression "vval != pmVar2[iVar3]" identifier != (subscript_expression "pmVar2[iVar3]" identifier [ identifier ])) )) (compound_statement "{\n        iVar1 = 1;\n        if (pmVar2[iVar3] < vval) {\n          iVar1 = -1;\n        }\n        return iVar1;\n      }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (pmVar2[iVar3] < vval) {\n          iVar1 = -1;\n        }" if (parenthesized_expression "(pmVar2[iVar3] < vval)" ( (binary_expression "pmVar2[iVar3] < vval" (subscript_expression "pmVar2[iVar3]" identifier [ identifier ]) < identifier) )) (compound_statement "{\n          iVar1 = -1;\n        }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })) (for_statement "for (; *pmVar2 == 0; pmVar2 = pmVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }" for ( ; (binary_expression "*pmVar2 == 0" (pointer_expression "*pmVar2" * identifier) == number_literal) ; (assignment_expression "pmVar2 = pmVar2 + 1" identifier = (binary_expression "pmVar2 + 1" identifier + number_literal)) ) (compound_statement "{\n        iVar3 = iVar3 + -1;\n      }" { (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) })) (return_statement "return (uint)(0 < iVar3);" return (call_expression "(uint)(0 < iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) ))) ;) })) (expression_statement "iVar1 = (uint)(0 < u->_mp_exp) * 2 + -1;" (assignment_expression "iVar1 = (uint)(0 < u->_mp_exp) * 2 + -1" identifier = (binary_expression "(uint)(0 < u->_mp_exp) * 2 + -1" (binary_expression "(uint)(0 < u->_mp_exp) * 2" (call_expression "(uint)(0 < u->_mp_exp)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < u->_mp_exp)" ( (binary_expression "0 < u->_mp_exp" number_literal < (field_expression "u->_mp_exp" identifier -> field_identifier)) ))) * number_literal) + number_literal)) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "uint __gmpf_cmp_ui(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  \n  uVar1 = 0xffffffff;\n  iVar3 = *(int *)(param_1 + 4);\n  if (-1 < iVar3) {\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }\n  return uVar1;\n}\n\n" (function_definition "uint __gmpf_cmp_ui(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  \n  uVar1 = 0xffffffff;\n  iVar3 = *(int *)(param_1 + 4);\n  if (-1 < iVar3) {\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "__gmpf_cmp_ui(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  \n  uVar1 = 0xffffffff;\n  iVar3 = *(int *)(param_1 + 4);\n  if (-1 < iVar3) {\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (-1 < iVar3) {\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }" { (if_statement "if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      return (uint)(iVar3 != 0);\n    }" { (return_statement "return (uint)(iVar3 != 0);" return (call_expression "(uint)(iVar3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 1)" ( (binary_expression "*(int *)(param_1 + 8) == 1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }" { (expression_statement "piVar2 = *(int **)(param_1 + 0xc);" (assignment_expression "piVar2 = *(int **)(param_1 + 0xc)" identifier = (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (if_statement "if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }" if (parenthesized_expression "(param_2 != piVar2[iVar3])" ( (binary_expression "param_2 != piVar2[iVar3]" identifier != (subscript_expression "piVar2[iVar3]" identifier [ identifier ])) )) (compound_statement "{\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }" { (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (if_statement "if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }" if (parenthesized_expression "((uint)piVar2[iVar3] < param_2)" ( (binary_expression "(uint)piVar2[iVar3] < param_2" (cast_expression "(uint)piVar2[iVar3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar2[iVar3]" identifier [ identifier ])) < identifier) )) (compound_statement "{\n          uVar1 = 0xffffffff;\n        }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })) (for_statement "for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }" for ( ; (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) ; (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ) (compound_statement "{\n        iVar3 = iVar3 + -1;\n      }" { (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) })) (return_statement "return (uint)(0 < iVar3);" return (call_expression "(uint)(0 < iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) ))) ;) })) (expression_statement "uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;" (assignment_expression "uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1" identifier = (binary_expression "(uint)(0 < *(int *)(param_1 + 8)) * 2 - 1" (binary_expression "(uint)(0 < *(int *)(param_1 + 8)) * 2" (call_expression "(uint)(0 < *(int *)(param_1 + 8))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < *(int *)(param_1 + 8))" ( (binary_expression "0 < *(int *)(param_1 + 8)" number_literal < (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ))) * number_literal) - number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (subscript_expression IDENT [ IDENT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ IDENT ])) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })) (for_statement for ( ; (binary_expression (pointer_expression * IDENT) == LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) * LIT) - LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint __gmpf_cmp_ui(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  \n  uVar1 = 0xffffffff;\n  iVar3 = *(int *)(param_1 + 4);\n  if (-1 < iVar3) {\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "__gmpf_cmp_ui(int param_1,uint param_2)" (identifier "__gmpf_cmp_ui") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  int iVar3;\n  \n  uVar1 = 0xffffffff;\n  iVar3 = *(int *)(param_1 + 4);\n  if (-1 < iVar3) {\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (-1 < iVar3) {\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }" (if "if") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }\n    if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }\n    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      return (uint)(iVar3 != 0);\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return (uint)(iVar3 != 0);\n    }" ({ "{") (return_statement "return (uint)(iVar3 != 0);" (return "return") (call_expression "(uint)(iVar3 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 8) == 1) {\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) == 1)" (( "(") (binary_expression "*(int *)(param_1 + 8) == 1" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      piVar2 = *(int **)(param_1 + 0xc);\n      iVar3 = iVar3 + -1;\n      if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }\n      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }\n      return (uint)(0 < iVar3);\n    }" ({ "{") (expression_statement "piVar2 = *(int **)(param_1 + 0xc);" (assignment_expression "piVar2 = *(int **)(param_1 + 0xc)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (param_2 != piVar2[iVar3]) {\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }" (if "if") (parenthesized_expression "(param_2 != piVar2[iVar3])" (( "(") (binary_expression "param_2 != piVar2[iVar3]" (identifier "param_2") (!= "!=") (subscript_expression "piVar2[iVar3]" (identifier "piVar2") ([ "[") (identifier "iVar3") (] "]"))) () ")")) (compound_statement "{\n        uVar1 = 1;\n        if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }\n        return uVar1;\n      }" ({ "{") (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((uint)piVar2[iVar3] < param_2) {\n          uVar1 = 0xffffffff;\n        }" (if "if") (parenthesized_expression "((uint)piVar2[iVar3] < param_2)" (( "(") (binary_expression "(uint)piVar2[iVar3] < param_2" (cast_expression "(uint)piVar2[iVar3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar2[iVar3]" (identifier "piVar2") ([ "[") (identifier "iVar3") (] "]"))) (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n          uVar1 = 0xffffffff;\n        }" ({ "{") (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (for_statement "for (; *piVar2 == 0; piVar2 = piVar2 + 1) {\n        iVar3 = iVar3 + -1;\n      }" (for "for") (( "(") (; ";") (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0")) (; ";") (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) () ")") (compound_statement "{\n        iVar3 = iVar3 + -1;\n      }" ({ "{") (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (return_statement "return (uint)(0 < iVar3);" (return "return") (call_expression "(uint)(0 < iVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;" (assignment_expression "uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1" (identifier "uVar1") (= "=") (binary_expression "(uint)(0 < *(int *)(param_1 + 8)) * 2 - 1" (binary_expression "(uint)(0 < *(int *)(param_1 + 8)) * 2" (call_expression "(uint)(0 < *(int *)(param_1 + 8))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0 < *(int *)(param_1 + 8))" (( "(") (binary_expression "0 < *(int *)(param_1 + 8)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")"))) (* "*") (number_literal "2")) (- "-") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1(type_1 u,type_2 var_2)

{
  int iVar1;
  type_3 *var_3;
  int var_1;
  
  iVar1 = -1;
  var_1 = u->_mp_size;
  if (-1 < var_1) {
    if (var_2 == 0) {
      return (uint)(var_1 != 0);
    }
    if (u->_mp_exp == 1) {
      var_3 = u->_mp_d;
      var_1 = var_1 + -1;
      if (var_2 != var_3[var_1]) {
        iVar1 = 1;
        if (var_3[var_1] < var_2) {
          iVar1 = -1;
        }
        return iVar1;
      }
      for (; *var_3 == 0; var_3 = var_3 + 1) {
        var_1 = var_1 + -1;
      }
      return (uint)(0 < var_1);
    }
    iVar1 = (uint)(0 < u->_mp_exp) * 2 + -1;
  }
  return iVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (identifier))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))) (for_statement condition: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (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: (number_literal)) right: (number_literal)))))) (return_statement (identifier)))))

uint MASKED(int param_1,uint param_2)

{
  uint uVar1;
  int *piVar2;
  int iVar3;
  
  uVar1 = 0xffffffff;
  iVar3 = *(int *)(param_1 + 4);
  if (-1 < iVar3) {
    if (param_2 == 0) {
      return (uint)(iVar3 != 0);
    }
    if (*(int *)(param_1 + 8) == 1) {
      piVar2 = *(int **)(param_1 + 0xc);
      iVar3 = iVar3 + -1;
      if (param_2 != piVar2[iVar3]) {
        uVar1 = 1;
        if ((uint)piVar2[iVar3] < param_2) {
          uVar1 = 0xffffffff;
        }
        return uVar1;
      }
      for (; *piVar2 == 0; piVar2 = piVar2 + 1) {
        iVar3 = iVar3 + -1;
      }
      return (uint)(0 < iVar3);
    }
    uVar1 = (uint)(0 < *(int *)(param_1 + 8)) * 2 - 1;
  }
  return uVar1;
}

