
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

ec_point * ecp_mul(ec_point *a,Bignum b)

{
  ec_curve *curve;
  ec_point *peVar1;
  ec_point *peVar2;
  int iVar3;
  int iVar4;
  ec_point *a_00;
  ec_point *point;
  
  curve = a->curve;
  if (curve->type == ADDRTYPE_UNSPEC) {
    iVar3 = ec_aminus3(curve);
    peVar2 = ecp_mul_(a,b,iVar3);
  }
  else {
    if (curve->type == ADDRTYPE_IPV6) {
      peVar2 = (ec_point *)safemalloc(1,0x14);
      peVar2->curve = curve;
      peVar2->x = (Bignum)0x0;
      peVar2->y = (Bignum)0x0;
      peVar2->z = (Bignum)0x0;
      peVar2->infinity = '\x01';
      iVar3 = bignum_bitcount((Bignum_conflict)b);
      if (iVar3 < 0) {
        return peVar2;
      }
      while( true ) {
        peVar1 = ecp_double(peVar2,0);
        ec_point_free(peVar2);
        if (peVar1 == (ec_point *)0x0) {
          return (ec_point *)0x0;
        }
        iVar4 = bignum_bit((Bignum_conflict)b,iVar3);
        peVar2 = peVar1;
        if (iVar4 != 0) {
          peVar2 = ecp_add(peVar1,a,0);
          ec_point_free(peVar1);
        }
        iVar3 = iVar3 + -1;
        if (iVar3 < 0) break;
        if (peVar2 == (ec_point *)0x0) {
          return (ec_point *)0x0;
        }
      }
      return peVar2;
    }
    peVar1 = ecp_double(a,0);
    peVar2 = ec_point_copy(a);
    iVar3 = bignum_bitcount((Bignum_conflict)b);
    iVar3 = iVar3 + -2;
    if (-1 < iVar3) {
      a_00 = peVar2;
      point = peVar1;
      do {
        while( true ) {
          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);
          if (iVar4 == 0) break;
          iVar3 = iVar3 + -1;
          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);
          ec_point_free(a_00);
          peVar1 = ecp_double(point,0);
          ec_point_free(point);
          a_00 = peVar2;
          point = peVar1;
          if (iVar3 == -1) goto LAB_0005e5ac;
        }
        iVar3 = iVar3 + -1;
        peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);
        ec_point_free(point);
        peVar2 = ecp_double(a_00,0);
        ec_point_free(a_00);
        a_00 = peVar2;
        point = peVar1;
      } while (iVar3 != -1);
    }
LAB_0005e5ac:
    ec_point_free(peVar1);
  }
  if ((peVar2 != (ec_point *)0x0) &&
     ((peVar2->infinity != '\0' || (iVar3 = ecp_normalise(peVar2), iVar3 != 0)))) {
    return peVar2;
  }
  ec_point_free(peVar2);
  return (ec_point *)0x0;
}



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

undefined4 * FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)

{
  int *piVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  
  piVar1 = (int *)*param_1;
  iVar4 = *piVar1;
  if (iVar4 == 0) {
    FUN_0005c0f0();
    puVar3 = (undefined4 *)FUN_0005e3b0();
  }
  else {
    if (iVar4 == 2) {
      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);
      *puVar3 = piVar1;
      puVar3[1] = 0;
      puVar3[2] = 0;
      puVar3[3] = 0;
      *(undefined1 *)(puVar3 + 4) = 1;
      iVar4 = FUN_00053df0(param_2);
      if (iVar4 < 0) {
        return puVar3;
      }
      while( true ) {
        puVar6 = (undefined4 *)FUN_0005cd80();
        FUN_0005e340(puVar3);
        if (puVar6 == (undefined4 *)0x0) {
          return (undefined4 *)0x0;
        }
        iVar5 = FUN_00053f20(param_2,iVar4);
        puVar3 = puVar6;
        if (iVar5 != 0) {
          puVar3 = (undefined4 *)FUN_0005c670();
          FUN_0005e340(puVar6);
        }
        iVar4 = iVar4 + -1;
        if (iVar4 < 0) break;
        if (puVar3 == (undefined4 *)0x0) {
          return (undefined4 *)0x0;
        }
      }
      return puVar3;
    }
    uVar2 = FUN_0005cd80();
    puVar3 = (undefined4 *)FUN_0005b700();
    iVar4 = FUN_00053df0(param_2);
    iVar4 = iVar4 + -2;
    if (-1 < iVar4) {
      puVar6 = puVar3;
      uVar7 = uVar2;
      do {
        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {
          iVar4 = iVar4 + -1;
          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);
          FUN_0005e340(puVar6);
          uVar2 = FUN_0005cd80();
          FUN_0005e340(uVar7);
          puVar6 = puVar3;
          uVar7 = uVar2;
          if (iVar4 == -1) goto LAB_0005e5ac;
        }
        iVar4 = iVar4 + -1;
        uVar2 = FUN_0005c3a0(param_1 + 1);
        FUN_0005e340(uVar7);
        puVar3 = (undefined4 *)FUN_0005cd80();
        FUN_0005e340(puVar6);
        puVar6 = puVar3;
        uVar7 = uVar2;
      } while (iVar4 != -1);
    }
LAB_0005e5ac:
    FUN_0005e340(uVar2);
  }
  if ((puVar3 != (undefined4 *)0x0) &&
     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {
    return puVar3;
  }
  FUN_0005e340(puVar3);
  return (undefined4 *)0x0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0xb22a7
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [EAX]
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x0005e5e0
CMP EAX,0x2
JZ 0x0005e618
MOV EAX,dword ptr [ESP + 0x30]
XOR EDX,EDX
CALL 0x0005cd80
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0x30]
CALL 0x0005b700
SUB ESP,0xc
PUSH dword ptr [ESP + 0x40]
MOV ESI,EAX
CALL 0x00053df0
ADD ESP,0x10
SUB EAX,0x2
MOV EBP,EAX
JS 0x0005e5ac
MOV EAX,dword ptr [ESP + 0x30]
ADD EAX,0x4
MOV dword ptr [ESP + 0x4],EAX
JMP 0x0005e554
SUB ESP,0xc
MOV EAX,ESI
SUB EBP,0x1
PUSH dword ptr [ESP + 0x10]
CALL 0x0005c3a0
MOV dword ptr [ESP],EDI
MOV dword ptr [ESP + 0x18],EAX
CALL 0x0005e340
XOR EDX,EDX
MOV EAX,ESI
CALL 0x0005cd80
MOV dword ptr [ESP],ESI
MOV dword ptr [ESP + 0x1c],EAX
CALL 0x0005e340
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
MOV EDI,dword ptr [ESP + 0x8]
MOV ESI,EAX
CMP EBP,-0x1
JZ 0x0005e5ac
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [ESP + 0x40]
CALL 0x00053f20
LEA EDX,[EDI + 0x4]
ADD ESP,0x10
MOV ECX,dword ptr [EDI + 0xc]
TEST EAX,EAX
JZ 0x0005e510
SUB ESP,0xc
MOV EAX,ESI
SUB EBP,0x1
PUSH dword ptr [ESP + 0x10]
CALL 0x0005c3a0
MOV dword ptr [ESP],ESI
MOV dword ptr [ESP + 0x18],EAX
CALL 0x0005e340
XOR EDX,EDX
MOV EAX,EDI
CALL 0x0005cd80
MOV dword ptr [ESP],EDI
MOV ESI,EAX
CALL 0x0005e340
ADD ESP,0x10
MOV EDI,ESI
MOV ESI,dword ptr [ESP + 0x8]
CMP EBP,-0x1
JNZ 0x0005e554
SUB ESP,0xc
PUSH EDI
CALL 0x0005e340
ADD ESP,0x10
TEST ESI,ESI
JZ 0x0005e5fc
CMP byte ptr [ESI + 0x10],0x0
JNZ 0x0005e5cd
MOV EAX,ESI
CALL 0x0005c140
TEST EAX,EAX
JZ 0x0005e5fc
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,ESI
CALL 0x0005c0f0
MOV EDX,dword ptr [ESP + 0x34]
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x30]
CALL 0x0005e3b0
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x0005e5bc
SUB ESP,0xc
PUSH ESI
XOR ESI,ESI
CALL 0x0005e340
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x14
PUSH 0x1
CALL 0x0002e780
MOV dword ptr [EAX],ESI
MOV EDI,EAX
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV byte ptr [EAX + 0x10],0x1
POP EAX
PUSH dword ptr [ESP + 0x40]
CALL 0x00053df0
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNS 0x0005e67f
JMP 0x0005e6c0
SUB ESP,0x8
MOV EDI,ESI
PUSH EBP
PUSH dword ptr [ESP + 0x40]
CALL 0x00053f20
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005e6a0
SUB EBP,0x1
JS 0x0005e6c0
TEST EDI,EDI
JZ 0x0005e6c0
XOR EDX,EDX
MOV EAX,EDI
CALL 0x0005cd80
SUB ESP,0xc
PUSH EDI
MOV ESI,EAX
CALL 0x0005e340
ADD ESP,0x10
TEST ESI,ESI
JNZ 0x0005e660
JMP 0x0005e5cd
MOV EDX,dword ptr [ESP + 0x30]
XOR ECX,ECX
MOV EAX,ESI
CALL 0x0005c670
SUB ESP,0xc
PUSH ESI
MOV EDI,EAX
CALL 0x0005e340
ADD ESP,0x10
JMP 0x0005e676
MOV ESI,EDI
JMP 0x0005e5cd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  \n  piVar1 = (int *)*param_1;\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }\n  else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }\n  if ((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {\n    return puVar3;\n  }\n  FUN_0005e340(puVar3);\n  return (undefined4 *)0x0;\n}\n\n" comment (function_definition "undefined4 * FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  \n  piVar1 = (int *)*param_1;\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }\n  else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }\n  if ((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {\n    return puVar3;\n  }\n  FUN_0005e340(puVar3);\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)" * (function_declarator "FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  \n  piVar1 = (int *)*param_1;\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }\n  else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }\n  if ((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {\n    return puVar3;\n  }\n  FUN_0005e340(puVar3);\n  return (undefined4 *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar4 == 0) {\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }\n  else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }" { (expression_statement "FUN_0005c0f0();" (call_expression "FUN_0005c0f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0005e3b0();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005e3b0()" identifier = (cast_expression "(undefined4 *)FUN_0005e3b0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005e3b0()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }" else (compound_statement "{\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }" { (if_statement "if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }" { (expression_statement "puVar3 = (undefined4 *)FUN_0002e780(1,0x14);" (assignment_expression "puVar3 = (undefined4 *)FUN_0002e780(1,0x14)" identifier = (cast_expression "(undefined4 *)FUN_0002e780(1,0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002e780(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar3 = piVar1;" (assignment_expression "*puVar3 = piVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(puVar3 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar3 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar3 + 4)" * (cast_expression "(undefined1 *)(puVar3 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = FUN_00053df0(param_2);" (assignment_expression "iVar4 = FUN_00053df0(param_2)" identifier = (call_expression "FUN_00053df0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar4 < 0) {\n        return puVar3;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        return puVar3;\n      }" { (return_statement "return puVar3;" return identifier ;) })) (while_statement "while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }" { (expression_statement "puVar6 = (undefined4 *)FUN_0005cd80();" (assignment_expression "puVar6 = (undefined4 *)FUN_0005cd80()" identifier = (cast_expression "(undefined4 *)FUN_0005cd80()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005cd80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_0005e340(puVar3);" (call_expression "FUN_0005e340(puVar3)" identifier (argument_list "(puVar3)" ( identifier ))) ;) (if_statement "if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }" if (parenthesized_expression "(puVar6 == (undefined4 *)0x0)" ( (binary_expression "puVar6 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return (undefined4 *)0x0;\n        }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar5 = FUN_00053f20(param_2,iVar4);" (assignment_expression "iVar5 = FUN_00053f20(param_2,iVar4)" identifier = (call_expression "FUN_00053f20(param_2,iVar4)" identifier (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (expression_statement "puVar3 = puVar6;" (assignment_expression "puVar3 = puVar6" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }" { (expression_statement "puVar3 = (undefined4 *)FUN_0005c670();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005c670()" identifier = (cast_expression "(undefined4 *)FUN_0005c670()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005c670()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_0005e340(puVar6);" (call_expression "FUN_0005e340(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) })) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (iVar4 < 0) break;" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (break_statement "break;" break ;)) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return (undefined4 *)0x0;\n        }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (return_statement "return puVar3;" return identifier ;) })) (expression_statement "uVar2 = FUN_0005cd80();" (assignment_expression "uVar2 = FUN_0005cd80()" identifier = (call_expression "FUN_0005cd80()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0005b700();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005b700()" identifier = (cast_expression "(undefined4 *)FUN_0005b700()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005b700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar4 = FUN_00053df0(param_2);" (assignment_expression "iVar4 = FUN_00053df0(param_2)" identifier = (call_expression "FUN_00053df0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar4 = iVar4 + -2;" (assignment_expression "iVar4 = iVar4 + -2" identifier = (binary_expression "iVar4 + -2" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }" { (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" identifier = identifier) ;) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) (do_statement "do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);" do (compound_statement "{\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      }" { (while_statement "while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }" while (parenthesized_expression "(iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0)" ( (comma_expression "iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0" (assignment_expression "iVar5 = FUN_00053f20(param_2,iVar4)" identifier = (call_expression "FUN_00053f20(param_2,iVar4)" identifier (argument_list "(param_2,iVar4)" ( identifier , identifier )))) , (binary_expression "iVar5 != 0" identifier != number_literal)) )) (compound_statement "{\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }" { (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);" (assignment_expression "puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1)" identifier = (cast_expression "(undefined4 *)FUN_0005c3a0(param_1 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005c3a0(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (expression_statement "FUN_0005e340(puVar6);" (call_expression "FUN_0005e340(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "uVar2 = FUN_0005cd80();" (assignment_expression "uVar2 = FUN_0005cd80()" identifier = (call_expression "FUN_0005cd80()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0005e340(uVar7);" (call_expression "FUN_0005e340(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" identifier = identifier) ;) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) (if_statement "if (iVar4 == -1) goto LAB_0005e5ac;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0005e5ac;" goto statement_identifier ;)) })) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "uVar2 = FUN_0005c3a0(param_1 + 1);" (assignment_expression "uVar2 = FUN_0005c3a0(param_1 + 1)" identifier = (call_expression "FUN_0005c3a0(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (expression_statement "FUN_0005e340(uVar7);" (call_expression "FUN_0005e340(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0005cd80();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005cd80()" identifier = (cast_expression "(undefined4 *)FUN_0005cd80()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005cd80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_0005e340(puVar6);" (call_expression "FUN_0005e340(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" identifier = identifier) ;) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) }) while (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) ;) })) (labeled_statement "LAB_0005e5ac:\n    FUN_0005e340(uVar2);" statement_identifier : (expression_statement "FUN_0005e340(uVar2);" (call_expression "FUN_0005e340(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;)) }))) (if_statement "if ((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {\n    return puVar3;\n  }" if (parenthesized_expression "((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0))))" ( (binary_expression "(puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))" (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))" ( (parenthesized_expression "(*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0))" ( (binary_expression "*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)" (binary_expression "*(char *)(puVar3 + 4) != '\0'" (pointer_expression "*(char *)(puVar3 + 4)" * (cast_expression "(char *)(puVar3 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(iVar4 = FUN_0005c140(), iVar4 != 0)" ( (comma_expression "iVar4 = FUN_0005c140(), iVar4 != 0" (assignment_expression "iVar4 = FUN_0005c140()" identifier = (call_expression "FUN_0005c140()" identifier (argument_list "()" ( )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) ))) )) (compound_statement "{\n    return puVar3;\n  }" { (return_statement "return puVar3;" return identifier ;) })) (expression_statement "FUN_0005e340(puVar3);" (call_expression "FUN_0005e340(puVar3)" identifier (argument_list "(puVar3)" ( identifier ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nec_point * ecp_mul(ec_point *a,Bignum b)\n\n{\n  ec_curve *curve;\n  ec_point *peVar1;\n  ec_point *peVar2;\n  int iVar3;\n  int iVar4;\n  ec_point *a_00;\n  ec_point *point;\n  \n  curve = a->curve;\n  if (curve->type == ADDRTYPE_UNSPEC) {\n    iVar3 = ec_aminus3(curve);\n    peVar2 = ecp_mul_(a,b,iVar3);\n  }\n  else {\n    if (curve->type == ADDRTYPE_IPV6) {\n      peVar2 = (ec_point *)safemalloc(1,0x14);\n      peVar2->curve = curve;\n      peVar2->x = (Bignum)0x0;\n      peVar2->y = (Bignum)0x0;\n      peVar2->z = (Bignum)0x0;\n      peVar2->infinity = '\x01';\n      iVar3 = bignum_bitcount((Bignum_conflict)b);\n      if (iVar3 < 0) {\n        return peVar2;\n      }\n      while( true ) {\n        peVar1 = ecp_double(peVar2,0);\n        ec_point_free(peVar2);\n        if (peVar1 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n        iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n        peVar2 = peVar1;\n        if (iVar4 != 0) {\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }\n        iVar3 = iVar3 + -1;\n        if (iVar3 < 0) break;\n        if (peVar2 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n      }\n      return peVar2;\n    }\n    peVar1 = ecp_double(a,0);\n    peVar2 = ec_point_copy(a);\n    iVar3 = bignum_bitcount((Bignum_conflict)b);\n    iVar3 = iVar3 + -2;\n    if (-1 < iVar3) {\n      a_00 = peVar2;\n      point = peVar1;\n      do {\n        while( true ) {\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }\n        iVar3 = iVar3 + -1;\n        peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n        ec_point_free(point);\n        peVar2 = ecp_double(a_00,0);\n        ec_point_free(a_00);\n        a_00 = peVar2;\n        point = peVar1;\n      } while (iVar3 != -1);\n    }\nLAB_0005e5ac:\n    ec_point_free(peVar1);\n  }\n  if ((peVar2 != (ec_point *)0x0) &&\n     ((peVar2->infinity != '\0' || (iVar3 = ecp_normalise(peVar2), iVar3 != 0)))) {\n    return peVar2;\n  }\n  ec_point_free(peVar2);\n  return (ec_point *)0x0;\n}\n\n" comment comment comment (function_definition "ec_point * ecp_mul(ec_point *a,Bignum b)\n\n{\n  ec_curve *curve;\n  ec_point *peVar1;\n  ec_point *peVar2;\n  int iVar3;\n  int iVar4;\n  ec_point *a_00;\n  ec_point *point;\n  \n  curve = a->curve;\n  if (curve->type == ADDRTYPE_UNSPEC) {\n    iVar3 = ec_aminus3(curve);\n    peVar2 = ecp_mul_(a,b,iVar3);\n  }\n  else {\n    if (curve->type == ADDRTYPE_IPV6) {\n      peVar2 = (ec_point *)safemalloc(1,0x14);\n      peVar2->curve = curve;\n      peVar2->x = (Bignum)0x0;\n      peVar2->y = (Bignum)0x0;\n      peVar2->z = (Bignum)0x0;\n      peVar2->infinity = '\x01';\n      iVar3 = bignum_bitcount((Bignum_conflict)b);\n      if (iVar3 < 0) {\n        return peVar2;\n      }\n      while( true ) {\n        peVar1 = ecp_double(peVar2,0);\n        ec_point_free(peVar2);\n        if (peVar1 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n        iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n        peVar2 = peVar1;\n        if (iVar4 != 0) {\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }\n        iVar3 = iVar3 + -1;\n        if (iVar3 < 0) break;\n        if (peVar2 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n      }\n      return peVar2;\n    }\n    peVar1 = ecp_double(a,0);\n    peVar2 = ec_point_copy(a);\n    iVar3 = bignum_bitcount((Bignum_conflict)b);\n    iVar3 = iVar3 + -2;\n    if (-1 < iVar3) {\n      a_00 = peVar2;\n      point = peVar1;\n      do {\n        while( true ) {\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }\n        iVar3 = iVar3 + -1;\n        peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n        ec_point_free(point);\n        peVar2 = ecp_double(a_00,0);\n        ec_point_free(a_00);\n        a_00 = peVar2;\n        point = peVar1;\n      } while (iVar3 != -1);\n    }\nLAB_0005e5ac:\n    ec_point_free(peVar1);\n  }\n  if ((peVar2 != (ec_point *)0x0) &&\n     ((peVar2->infinity != '\0' || (iVar3 = ecp_normalise(peVar2), iVar3 != 0)))) {\n    return peVar2;\n  }\n  ec_point_free(peVar2);\n  return (ec_point *)0x0;\n}" type_identifier (pointer_declarator "* ecp_mul(ec_point *a,Bignum b)" * (function_declarator "ecp_mul(ec_point *a,Bignum b)" identifier (parameter_list "(ec_point *a,Bignum b)" ( (parameter_declaration "ec_point *a" type_identifier (pointer_declarator "*a" * identifier)) , (parameter_declaration "Bignum b" type_identifier identifier) )))) (compound_statement "{\n  ec_curve *curve;\n  ec_point *peVar1;\n  ec_point *peVar2;\n  int iVar3;\n  int iVar4;\n  ec_point *a_00;\n  ec_point *point;\n  \n  curve = a->curve;\n  if (curve->type == ADDRTYPE_UNSPEC) {\n    iVar3 = ec_aminus3(curve);\n    peVar2 = ecp_mul_(a,b,iVar3);\n  }\n  else {\n    if (curve->type == ADDRTYPE_IPV6) {\n      peVar2 = (ec_point *)safemalloc(1,0x14);\n      peVar2->curve = curve;\n      peVar2->x = (Bignum)0x0;\n      peVar2->y = (Bignum)0x0;\n      peVar2->z = (Bignum)0x0;\n      peVar2->infinity = '\x01';\n      iVar3 = bignum_bitcount((Bignum_conflict)b);\n      if (iVar3 < 0) {\n        return peVar2;\n      }\n      while( true ) {\n        peVar1 = ecp_double(peVar2,0);\n        ec_point_free(peVar2);\n        if (peVar1 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n        iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n        peVar2 = peVar1;\n        if (iVar4 != 0) {\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }\n        iVar3 = iVar3 + -1;\n        if (iVar3 < 0) break;\n        if (peVar2 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n      }\n      return peVar2;\n    }\n    peVar1 = ecp_double(a,0);\n    peVar2 = ec_point_copy(a);\n    iVar3 = bignum_bitcount((Bignum_conflict)b);\n    iVar3 = iVar3 + -2;\n    if (-1 < iVar3) {\n      a_00 = peVar2;\n      point = peVar1;\n      do {\n        while( true ) {\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }\n        iVar3 = iVar3 + -1;\n        peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n        ec_point_free(point);\n        peVar2 = ecp_double(a_00,0);\n        ec_point_free(a_00);\n        a_00 = peVar2;\n        point = peVar1;\n      } while (iVar3 != -1);\n    }\nLAB_0005e5ac:\n    ec_point_free(peVar1);\n  }\n  if ((peVar2 != (ec_point *)0x0) &&\n     ((peVar2->infinity != '\0' || (iVar3 = ecp_normalise(peVar2), iVar3 != 0)))) {\n    return peVar2;\n  }\n  ec_point_free(peVar2);\n  return (ec_point *)0x0;\n}" { (declaration "ec_curve *curve;" type_identifier (pointer_declarator "*curve" * identifier) ;) (declaration "ec_point *peVar1;" type_identifier (pointer_declarator "*peVar1" * identifier) ;) (declaration "ec_point *peVar2;" type_identifier (pointer_declarator "*peVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ec_point *a_00;" type_identifier (pointer_declarator "*a_00" * identifier) ;) (declaration "ec_point *point;" type_identifier (pointer_declarator "*point" * identifier) ;) (expression_statement "curve = a->curve;" (assignment_expression "curve = a->curve" identifier = (field_expression "a->curve" identifier -> field_identifier)) ;) (if_statement "if (curve->type == ADDRTYPE_UNSPEC) {\n    iVar3 = ec_aminus3(curve);\n    peVar2 = ecp_mul_(a,b,iVar3);\n  }\n  else {\n    if (curve->type == ADDRTYPE_IPV6) {\n      peVar2 = (ec_point *)safemalloc(1,0x14);\n      peVar2->curve = curve;\n      peVar2->x = (Bignum)0x0;\n      peVar2->y = (Bignum)0x0;\n      peVar2->z = (Bignum)0x0;\n      peVar2->infinity = '\x01';\n      iVar3 = bignum_bitcount((Bignum_conflict)b);\n      if (iVar3 < 0) {\n        return peVar2;\n      }\n      while( true ) {\n        peVar1 = ecp_double(peVar2,0);\n        ec_point_free(peVar2);\n        if (peVar1 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n        iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n        peVar2 = peVar1;\n        if (iVar4 != 0) {\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }\n        iVar3 = iVar3 + -1;\n        if (iVar3 < 0) break;\n        if (peVar2 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n      }\n      return peVar2;\n    }\n    peVar1 = ecp_double(a,0);\n    peVar2 = ec_point_copy(a);\n    iVar3 = bignum_bitcount((Bignum_conflict)b);\n    iVar3 = iVar3 + -2;\n    if (-1 < iVar3) {\n      a_00 = peVar2;\n      point = peVar1;\n      do {\n        while( true ) {\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }\n        iVar3 = iVar3 + -1;\n        peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n        ec_point_free(point);\n        peVar2 = ecp_double(a_00,0);\n        ec_point_free(a_00);\n        a_00 = peVar2;\n        point = peVar1;\n      } while (iVar3 != -1);\n    }\nLAB_0005e5ac:\n    ec_point_free(peVar1);\n  }" if (parenthesized_expression "(curve->type == ADDRTYPE_UNSPEC)" ( (binary_expression "curve->type == ADDRTYPE_UNSPEC" (field_expression "curve->type" identifier -> field_identifier) == identifier) )) (compound_statement "{\n    iVar3 = ec_aminus3(curve);\n    peVar2 = ecp_mul_(a,b,iVar3);\n  }" { (expression_statement "iVar3 = ec_aminus3(curve);" (assignment_expression "iVar3 = ec_aminus3(curve)" identifier = (call_expression "ec_aminus3(curve)" identifier (argument_list "(curve)" ( identifier )))) ;) (expression_statement "peVar2 = ecp_mul_(a,b,iVar3);" (assignment_expression "peVar2 = ecp_mul_(a,b,iVar3)" identifier = (call_expression "ecp_mul_(a,b,iVar3)" identifier (argument_list "(a,b,iVar3)" ( identifier , identifier , identifier )))) ;) }) (else_clause "else {\n    if (curve->type == ADDRTYPE_IPV6) {\n      peVar2 = (ec_point *)safemalloc(1,0x14);\n      peVar2->curve = curve;\n      peVar2->x = (Bignum)0x0;\n      peVar2->y = (Bignum)0x0;\n      peVar2->z = (Bignum)0x0;\n      peVar2->infinity = '\x01';\n      iVar3 = bignum_bitcount((Bignum_conflict)b);\n      if (iVar3 < 0) {\n        return peVar2;\n      }\n      while( true ) {\n        peVar1 = ecp_double(peVar2,0);\n        ec_point_free(peVar2);\n        if (peVar1 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n        iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n        peVar2 = peVar1;\n        if (iVar4 != 0) {\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }\n        iVar3 = iVar3 + -1;\n        if (iVar3 < 0) break;\n        if (peVar2 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n      }\n      return peVar2;\n    }\n    peVar1 = ecp_double(a,0);\n    peVar2 = ec_point_copy(a);\n    iVar3 = bignum_bitcount((Bignum_conflict)b);\n    iVar3 = iVar3 + -2;\n    if (-1 < iVar3) {\n      a_00 = peVar2;\n      point = peVar1;\n      do {\n        while( true ) {\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }\n        iVar3 = iVar3 + -1;\n        peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n        ec_point_free(point);\n        peVar2 = ecp_double(a_00,0);\n        ec_point_free(a_00);\n        a_00 = peVar2;\n        point = peVar1;\n      } while (iVar3 != -1);\n    }\nLAB_0005e5ac:\n    ec_point_free(peVar1);\n  }" else (compound_statement "{\n    if (curve->type == ADDRTYPE_IPV6) {\n      peVar2 = (ec_point *)safemalloc(1,0x14);\n      peVar2->curve = curve;\n      peVar2->x = (Bignum)0x0;\n      peVar2->y = (Bignum)0x0;\n      peVar2->z = (Bignum)0x0;\n      peVar2->infinity = '\x01';\n      iVar3 = bignum_bitcount((Bignum_conflict)b);\n      if (iVar3 < 0) {\n        return peVar2;\n      }\n      while( true ) {\n        peVar1 = ecp_double(peVar2,0);\n        ec_point_free(peVar2);\n        if (peVar1 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n        iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n        peVar2 = peVar1;\n        if (iVar4 != 0) {\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }\n        iVar3 = iVar3 + -1;\n        if (iVar3 < 0) break;\n        if (peVar2 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n      }\n      return peVar2;\n    }\n    peVar1 = ecp_double(a,0);\n    peVar2 = ec_point_copy(a);\n    iVar3 = bignum_bitcount((Bignum_conflict)b);\n    iVar3 = iVar3 + -2;\n    if (-1 < iVar3) {\n      a_00 = peVar2;\n      point = peVar1;\n      do {\n        while( true ) {\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }\n        iVar3 = iVar3 + -1;\n        peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n        ec_point_free(point);\n        peVar2 = ecp_double(a_00,0);\n        ec_point_free(a_00);\n        a_00 = peVar2;\n        point = peVar1;\n      } while (iVar3 != -1);\n    }\nLAB_0005e5ac:\n    ec_point_free(peVar1);\n  }" { (if_statement "if (curve->type == ADDRTYPE_IPV6) {\n      peVar2 = (ec_point *)safemalloc(1,0x14);\n      peVar2->curve = curve;\n      peVar2->x = (Bignum)0x0;\n      peVar2->y = (Bignum)0x0;\n      peVar2->z = (Bignum)0x0;\n      peVar2->infinity = '\x01';\n      iVar3 = bignum_bitcount((Bignum_conflict)b);\n      if (iVar3 < 0) {\n        return peVar2;\n      }\n      while( true ) {\n        peVar1 = ecp_double(peVar2,0);\n        ec_point_free(peVar2);\n        if (peVar1 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n        iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n        peVar2 = peVar1;\n        if (iVar4 != 0) {\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }\n        iVar3 = iVar3 + -1;\n        if (iVar3 < 0) break;\n        if (peVar2 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n      }\n      return peVar2;\n    }" if (parenthesized_expression "(curve->type == ADDRTYPE_IPV6)" ( (binary_expression "curve->type == ADDRTYPE_IPV6" (field_expression "curve->type" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      peVar2 = (ec_point *)safemalloc(1,0x14);\n      peVar2->curve = curve;\n      peVar2->x = (Bignum)0x0;\n      peVar2->y = (Bignum)0x0;\n      peVar2->z = (Bignum)0x0;\n      peVar2->infinity = '\x01';\n      iVar3 = bignum_bitcount((Bignum_conflict)b);\n      if (iVar3 < 0) {\n        return peVar2;\n      }\n      while( true ) {\n        peVar1 = ecp_double(peVar2,0);\n        ec_point_free(peVar2);\n        if (peVar1 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n        iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n        peVar2 = peVar1;\n        if (iVar4 != 0) {\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }\n        iVar3 = iVar3 + -1;\n        if (iVar3 < 0) break;\n        if (peVar2 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n      }\n      return peVar2;\n    }" { (expression_statement "peVar2 = (ec_point *)safemalloc(1,0x14);" (assignment_expression "peVar2 = (ec_point *)safemalloc(1,0x14)" identifier = (cast_expression "(ec_point *)safemalloc(1,0x14)" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "peVar2->curve = curve;" (assignment_expression "peVar2->curve = curve" (field_expression "peVar2->curve" identifier -> field_identifier) = identifier) ;) (expression_statement "peVar2->x = (Bignum)0x0;" (assignment_expression "peVar2->x = (Bignum)0x0" (field_expression "peVar2->x" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "peVar2->y = (Bignum)0x0;" (assignment_expression "peVar2->y = (Bignum)0x0" (field_expression "peVar2->y" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "peVar2->z = (Bignum)0x0;" (assignment_expression "peVar2->z = (Bignum)0x0" (field_expression "peVar2->z" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "peVar2->infinity = '\x01';" (assignment_expression "peVar2->infinity = '\x01'" (field_expression "peVar2->infinity" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "iVar3 = bignum_bitcount((Bignum_conflict)b);" (assignment_expression "iVar3 = bignum_bitcount((Bignum_conflict)b)" identifier = (call_expression "bignum_bitcount((Bignum_conflict)b)" identifier (argument_list "((Bignum_conflict)b)" ( (cast_expression "(Bignum_conflict)b" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) )))) ;) (if_statement "if (iVar3 < 0) {\n        return peVar2;\n      }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n        return peVar2;\n      }" { (return_statement "return peVar2;" return identifier ;) })) (while_statement "while( true ) {\n        peVar1 = ecp_double(peVar2,0);\n        ec_point_free(peVar2);\n        if (peVar1 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n        iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n        peVar2 = peVar1;\n        if (iVar4 != 0) {\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }\n        iVar3 = iVar3 + -1;\n        if (iVar3 < 0) break;\n        if (peVar2 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        peVar1 = ecp_double(peVar2,0);\n        ec_point_free(peVar2);\n        if (peVar1 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n        iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n        peVar2 = peVar1;\n        if (iVar4 != 0) {\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }\n        iVar3 = iVar3 + -1;\n        if (iVar3 < 0) break;\n        if (peVar2 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }\n      }" { (expression_statement "peVar1 = ecp_double(peVar2,0);" (assignment_expression "peVar1 = ecp_double(peVar2,0)" identifier = (call_expression "ecp_double(peVar2,0)" identifier (argument_list "(peVar2,0)" ( identifier , number_literal )))) ;) (expression_statement "ec_point_free(peVar2);" (call_expression "ec_point_free(peVar2)" identifier (argument_list "(peVar2)" ( identifier ))) ;) (if_statement "if (peVar1 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }" if (parenthesized_expression "(peVar1 == (ec_point *)0x0)" ( (binary_expression "peVar1 == (ec_point *)0x0" identifier == (cast_expression "(ec_point *)0x0" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return (ec_point *)0x0;\n        }" { (return_statement "return (ec_point *)0x0;" return (cast_expression "(ec_point *)0x0" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar4 = bignum_bit((Bignum_conflict)b,iVar3);" (assignment_expression "iVar4 = bignum_bit((Bignum_conflict)b,iVar3)" identifier = (call_expression "bignum_bit((Bignum_conflict)b,iVar3)" identifier (argument_list "((Bignum_conflict)b,iVar3)" ( (cast_expression "(Bignum_conflict)b" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) , identifier )))) ;) (expression_statement "peVar2 = peVar1;" (assignment_expression "peVar2 = peVar1" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n          peVar2 = ecp_add(peVar1,a,0);\n          ec_point_free(peVar1);\n        }" { (expression_statement "peVar2 = ecp_add(peVar1,a,0);" (assignment_expression "peVar2 = ecp_add(peVar1,a,0)" identifier = (call_expression "ecp_add(peVar1,a,0)" identifier (argument_list "(peVar1,a,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "ec_point_free(peVar1);" (call_expression "ec_point_free(peVar1)" identifier (argument_list "(peVar1)" ( identifier ))) ;) })) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar3 < 0) break;" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (break_statement "break;" break ;)) (if_statement "if (peVar2 == (ec_point *)0x0) {\n          return (ec_point *)0x0;\n        }" if (parenthesized_expression "(peVar2 == (ec_point *)0x0)" ( (binary_expression "peVar2 == (ec_point *)0x0" identifier == (cast_expression "(ec_point *)0x0" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return (ec_point *)0x0;\n        }" { (return_statement "return (ec_point *)0x0;" return (cast_expression "(ec_point *)0x0" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (return_statement "return peVar2;" return identifier ;) })) (expression_statement "peVar1 = ecp_double(a,0);" (assignment_expression "peVar1 = ecp_double(a,0)" identifier = (call_expression "ecp_double(a,0)" identifier (argument_list "(a,0)" ( identifier , number_literal )))) ;) (expression_statement "peVar2 = ec_point_copy(a);" (assignment_expression "peVar2 = ec_point_copy(a)" identifier = (call_expression "ec_point_copy(a)" identifier (argument_list "(a)" ( identifier )))) ;) (expression_statement "iVar3 = bignum_bitcount((Bignum_conflict)b);" (assignment_expression "iVar3 = bignum_bitcount((Bignum_conflict)b)" identifier = (call_expression "bignum_bitcount((Bignum_conflict)b)" identifier (argument_list "((Bignum_conflict)b)" ( (cast_expression "(Bignum_conflict)b" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) )))) ;) (expression_statement "iVar3 = iVar3 + -2;" (assignment_expression "iVar3 = iVar3 + -2" identifier = (binary_expression "iVar3 + -2" identifier + number_literal)) ;) (if_statement "if (-1 < iVar3) {\n      a_00 = peVar2;\n      point = peVar1;\n      do {\n        while( true ) {\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }\n        iVar3 = iVar3 + -1;\n        peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n        ec_point_free(point);\n        peVar2 = ecp_double(a_00,0);\n        ec_point_free(a_00);\n        a_00 = peVar2;\n        point = peVar1;\n      } while (iVar3 != -1);\n    }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n      a_00 = peVar2;\n      point = peVar1;\n      do {\n        while( true ) {\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }\n        iVar3 = iVar3 + -1;\n        peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n        ec_point_free(point);\n        peVar2 = ecp_double(a_00,0);\n        ec_point_free(a_00);\n        a_00 = peVar2;\n        point = peVar1;\n      } while (iVar3 != -1);\n    }" { (expression_statement "a_00 = peVar2;" (assignment_expression "a_00 = peVar2" identifier = identifier) ;) (expression_statement "point = peVar1;" (assignment_expression "point = peVar1" identifier = identifier) ;) (do_statement "do {\n        while( true ) {\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }\n        iVar3 = iVar3 + -1;\n        peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n        ec_point_free(point);\n        peVar2 = ecp_double(a_00,0);\n        ec_point_free(a_00);\n        a_00 = peVar2;\n        point = peVar1;\n      } while (iVar3 != -1);" do (compound_statement "{\n        while( true ) {\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }\n        iVar3 = iVar3 + -1;\n        peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n        ec_point_free(point);\n        peVar2 = ecp_double(a_00,0);\n        ec_point_free(a_00);\n        a_00 = peVar2;\n        point = peVar1;\n      }" { (while_statement "while( true ) {\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar4 = bignum_bit((Bignum_conflict)b,iVar3);\n          if (iVar4 == 0) break;\n          iVar3 = iVar3 + -1;\n          peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);\n          ec_point_free(a_00);\n          peVar1 = ecp_double(point,0);\n          ec_point_free(point);\n          a_00 = peVar2;\n          point = peVar1;\n          if (iVar3 == -1) goto LAB_0005e5ac;\n        }" { (expression_statement "iVar4 = bignum_bit((Bignum_conflict)b,iVar3);" (assignment_expression "iVar4 = bignum_bit((Bignum_conflict)b,iVar3)" identifier = (call_expression "bignum_bit((Bignum_conflict)b,iVar3)" identifier (argument_list "((Bignum_conflict)b,iVar3)" ( (cast_expression "(Bignum_conflict)b" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) , identifier )))) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);" (assignment_expression "peVar2 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x)" identifier = (call_expression "ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x)" identifier (argument_list "(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x)" ( identifier , (cast_expression "(ec_point *)&point->x" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&point->x" & (field_expression "point->x" identifier -> field_identifier))) , (cast_expression "(ec_point *)point->z" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "point->z" identifier -> field_identifier)) , (cast_expression "(ec_point *)&a->x" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&a->x" & (field_expression "a->x" identifier -> field_identifier))) )))) ;) (expression_statement "ec_point_free(a_00);" (call_expression "ec_point_free(a_00)" identifier (argument_list "(a_00)" ( identifier ))) ;) (expression_statement "peVar1 = ecp_double(point,0);" (assignment_expression "peVar1 = ecp_double(point,0)" identifier = (call_expression "ecp_double(point,0)" identifier (argument_list "(point,0)" ( identifier , number_literal )))) ;) (expression_statement "ec_point_free(point);" (call_expression "ec_point_free(point)" identifier (argument_list "(point)" ( identifier ))) ;) (expression_statement "a_00 = peVar2;" (assignment_expression "a_00 = peVar2" identifier = identifier) ;) (expression_statement "point = peVar1;" (assignment_expression "point = peVar1" identifier = identifier) ;) (if_statement "if (iVar3 == -1) goto LAB_0005e5ac;" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0005e5ac;" goto statement_identifier ;)) })) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x);" (assignment_expression "peVar1 = ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x)" identifier = (call_expression "ecp_addm(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x)" identifier (argument_list "(a_00,(ec_point *)&point->x,(ec_point *)point->z,(ec_point *)&a->x)" ( identifier , (cast_expression "(ec_point *)&point->x" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&point->x" & (field_expression "point->x" identifier -> field_identifier))) , (cast_expression "(ec_point *)point->z" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "point->z" identifier -> field_identifier)) , (cast_expression "(ec_point *)&a->x" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&a->x" & (field_expression "a->x" identifier -> field_identifier))) )))) ;) (expression_statement "ec_point_free(point);" (call_expression "ec_point_free(point)" identifier (argument_list "(point)" ( identifier ))) ;) (expression_statement "peVar2 = ecp_double(a_00,0);" (assignment_expression "peVar2 = ecp_double(a_00,0)" identifier = (call_expression "ecp_double(a_00,0)" identifier (argument_list "(a_00,0)" ( identifier , number_literal )))) ;) (expression_statement "ec_point_free(a_00);" (call_expression "ec_point_free(a_00)" identifier (argument_list "(a_00)" ( identifier ))) ;) (expression_statement "a_00 = peVar2;" (assignment_expression "a_00 = peVar2" identifier = identifier) ;) (expression_statement "point = peVar1;" (assignment_expression "point = peVar1" identifier = identifier) ;) }) while (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) ;) })) (labeled_statement "LAB_0005e5ac:\n    ec_point_free(peVar1);" statement_identifier : (expression_statement "ec_point_free(peVar1);" (call_expression "ec_point_free(peVar1)" identifier (argument_list "(peVar1)" ( identifier ))) ;)) }))) (if_statement "if ((peVar2 != (ec_point *)0x0) &&\n     ((peVar2->infinity != '\0' || (iVar3 = ecp_normalise(peVar2), iVar3 != 0)))) {\n    return peVar2;\n  }" if (parenthesized_expression "((peVar2 != (ec_point *)0x0) &&\n     ((peVar2->infinity != '\0' || (iVar3 = ecp_normalise(peVar2), iVar3 != 0))))" ( (binary_expression "(peVar2 != (ec_point *)0x0) &&\n     ((peVar2->infinity != '\0' || (iVar3 = ecp_normalise(peVar2), iVar3 != 0)))" (parenthesized_expression "(peVar2 != (ec_point *)0x0)" ( (binary_expression "peVar2 != (ec_point *)0x0" identifier != (cast_expression "(ec_point *)0x0" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((peVar2->infinity != '\0' || (iVar3 = ecp_normalise(peVar2), iVar3 != 0)))" ( (parenthesized_expression "(peVar2->infinity != '\0' || (iVar3 = ecp_normalise(peVar2), iVar3 != 0))" ( (binary_expression "peVar2->infinity != '\0' || (iVar3 = ecp_normalise(peVar2), iVar3 != 0)" (binary_expression "peVar2->infinity != '\0'" (field_expression "peVar2->infinity" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(iVar3 = ecp_normalise(peVar2), iVar3 != 0)" ( (comma_expression "iVar3 = ecp_normalise(peVar2), iVar3 != 0" (assignment_expression "iVar3 = ecp_normalise(peVar2)" identifier = (call_expression "ecp_normalise(peVar2)" identifier (argument_list "(peVar2)" ( identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) ))) )) (compound_statement "{\n    return peVar2;\n  }" { (return_statement "return peVar2;" return identifier ;) })) (expression_statement "ec_point_free(peVar2);" (call_expression "ec_point_free(peVar2)" identifier (argument_list "(peVar2)" ( identifier ))) ;) (return_statement "return (ec_point *)0x0;" return (cast_expression "(ec_point *)0x0" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 * FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  \n  piVar1 = (int *)*param_1;\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }\n  else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }\n  if ((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {\n    return puVar3;\n  }\n  FUN_0005e340(puVar3);\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  \n  piVar1 = (int *)*param_1;\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }\n  else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }\n  if ((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {\n    return puVar3;\n  }\n  FUN_0005e340(puVar3);\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)" * (function_declarator "FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  \n  piVar1 = (int *)*param_1;\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }\n  else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }\n  if ((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {\n    return puVar3;\n  }\n  FUN_0005e340(puVar3);\n  return (undefined4 *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar4 == 0) {\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }\n  else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }" { (expression_statement "FUN_0005c0f0();" (call_expression "FUN_0005c0f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0005e3b0();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005e3b0()" identifier = (cast_expression "(undefined4 *)FUN_0005e3b0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005e3b0()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }" else (compound_statement "{\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }" { (if_statement "if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }" { (expression_statement "puVar3 = (undefined4 *)FUN_0002e780(1,0x14);" (assignment_expression "puVar3 = (undefined4 *)FUN_0002e780(1,0x14)" identifier = (cast_expression "(undefined4 *)FUN_0002e780(1,0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002e780(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar3 = piVar1;" (assignment_expression "*puVar3 = piVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(puVar3 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar3 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar3 + 4)" * (cast_expression "(undefined1 *)(puVar3 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = FUN_00053df0(param_2);" (assignment_expression "iVar4 = FUN_00053df0(param_2)" identifier = (call_expression "FUN_00053df0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar4 < 0) {\n        return puVar3;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        return puVar3;\n      }" { (return_statement "return puVar3;" return identifier ;) })) (while_statement "while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }" { (expression_statement "puVar6 = (undefined4 *)FUN_0005cd80();" (assignment_expression "puVar6 = (undefined4 *)FUN_0005cd80()" identifier = (cast_expression "(undefined4 *)FUN_0005cd80()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005cd80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_0005e340(puVar3);" (call_expression "FUN_0005e340(puVar3)" identifier (argument_list "(puVar3)" ( identifier ))) ;) (if_statement "if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }" if (parenthesized_expression "(puVar6 == (undefined4 *)0x0)" ( (binary_expression "puVar6 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return (undefined4 *)0x0;\n        }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar5 = FUN_00053f20(param_2,iVar4);" (assignment_expression "iVar5 = FUN_00053f20(param_2,iVar4)" identifier = (call_expression "FUN_00053f20(param_2,iVar4)" identifier (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (expression_statement "puVar3 = puVar6;" (assignment_expression "puVar3 = puVar6" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }" { (expression_statement "puVar3 = (undefined4 *)FUN_0005c670();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005c670()" identifier = (cast_expression "(undefined4 *)FUN_0005c670()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005c670()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_0005e340(puVar6);" (call_expression "FUN_0005e340(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) })) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (iVar4 < 0) break;" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (break_statement "break;" break ;)) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return (undefined4 *)0x0;\n        }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (return_statement "return puVar3;" return identifier ;) })) (expression_statement "uVar2 = FUN_0005cd80();" (assignment_expression "uVar2 = FUN_0005cd80()" identifier = (call_expression "FUN_0005cd80()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0005b700();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005b700()" identifier = (cast_expression "(undefined4 *)FUN_0005b700()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005b700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar4 = FUN_00053df0(param_2);" (assignment_expression "iVar4 = FUN_00053df0(param_2)" identifier = (call_expression "FUN_00053df0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar4 = iVar4 + -2;" (assignment_expression "iVar4 = iVar4 + -2" identifier = (binary_expression "iVar4 + -2" identifier + number_literal)) ;) (if_statement "if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }" { (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" identifier = identifier) ;) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) (do_statement "do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);" do (compound_statement "{\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      }" { (while_statement "while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }" while (parenthesized_expression "(iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0)" ( (comma_expression "iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0" (assignment_expression "iVar5 = FUN_00053f20(param_2,iVar4)" identifier = (call_expression "FUN_00053f20(param_2,iVar4)" identifier (argument_list "(param_2,iVar4)" ( identifier , identifier )))) , (binary_expression "iVar5 != 0" identifier != number_literal)) )) (compound_statement "{\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }" { (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);" (assignment_expression "puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1)" identifier = (cast_expression "(undefined4 *)FUN_0005c3a0(param_1 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005c3a0(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))))) ;) (expression_statement "FUN_0005e340(puVar6);" (call_expression "FUN_0005e340(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "uVar2 = FUN_0005cd80();" (assignment_expression "uVar2 = FUN_0005cd80()" identifier = (call_expression "FUN_0005cd80()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0005e340(uVar7);" (call_expression "FUN_0005e340(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" identifier = identifier) ;) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) (if_statement "if (iVar4 == -1) goto LAB_0005e5ac;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0005e5ac;" goto statement_identifier ;)) })) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "uVar2 = FUN_0005c3a0(param_1 + 1);" (assignment_expression "uVar2 = FUN_0005c3a0(param_1 + 1)" identifier = (call_expression "FUN_0005c3a0(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (expression_statement "FUN_0005e340(uVar7);" (call_expression "FUN_0005e340(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0005cd80();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005cd80()" identifier = (cast_expression "(undefined4 *)FUN_0005cd80()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005cd80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_0005e340(puVar6);" (call_expression "FUN_0005e340(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" identifier = identifier) ;) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) }) while (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) ;) })) (labeled_statement "LAB_0005e5ac:\n    FUN_0005e340(uVar2);" statement_identifier : (expression_statement "FUN_0005e340(uVar2);" (call_expression "FUN_0005e340(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;)) }))) (if_statement "if ((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {\n    return puVar3;\n  }" if (parenthesized_expression "((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0))))" ( (binary_expression "(puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))" (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))" ( (parenthesized_expression "(*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0))" ( (binary_expression "*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)" (binary_expression "*(char *)(puVar3 + 4) != '\0'" (pointer_expression "*(char *)(puVar3 + 4)" * (cast_expression "(char *)(puVar3 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(iVar4 = FUN_0005c140(), iVar4 != 0)" ( (comma_expression "iVar4 = FUN_0005c140(), iVar4 != 0" (assignment_expression "iVar4 = FUN_0005c140()" identifier = (call_expression "FUN_0005c140()" identifier (argument_list "()" ( )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) ))) )) (compound_statement "{\n    return puVar3;\n  }" { (return_statement "return puVar3;" return identifier ;) })) (expression_statement "FUN_0005e340(puVar3);" (call_expression "FUN_0005e340(puVar3)" identifier (argument_list "(puVar3)" ( identifier ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != LIT)) ))) )) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "undefined4 * FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  \n  piVar1 = (int *)*param_1;\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }\n  else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }\n  if ((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {\n    return puVar3;\n  }\n  FUN_0005e340(puVar3);\n  return (undefined4 *)0x0;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)" (* "*") (function_declarator "FUN_0005e4a0(undefined4 *param_1,undefined4 param_2)" (identifier "FUN_0005e4a0") (parameter_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")")))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  \n  piVar1 = (int *)*param_1;\n  iVar4 = *piVar1;\n  if (iVar4 == 0) {\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }\n  else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }\n  if ((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {\n    return puVar3;\n  }\n  FUN_0005e340(puVar3);\n  return (undefined4 *)0x0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" (identifier "piVar1") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if (iVar4 == 0) {\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }\n  else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0005c0f0();\n    puVar3 = (undefined4 *)FUN_0005e3b0();\n  }" ({ "{") (expression_statement "FUN_0005c0f0();" (call_expression "FUN_0005c0f0()" (identifier "FUN_0005c0f0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)FUN_0005e3b0();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005e3b0()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_0005e3b0()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005e3b0()" (identifier "FUN_0005e3b0") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }" (else "else") (compound_statement "{\n    if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }\n    uVar2 = FUN_0005cd80();\n    puVar3 = (undefined4 *)FUN_0005b700();\n    iVar4 = FUN_00053df0(param_2);\n    iVar4 = iVar4 + -2;\n    if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }\nLAB_0005e5ac:\n    FUN_0005e340(uVar2);\n  }" ({ "{") (if_statement "if (iVar4 == 2) {\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }" (if "if") (parenthesized_expression "(iVar4 == 2)" (( "(") (binary_expression "iVar4 == 2" (identifier "iVar4") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);\n      *puVar3 = piVar1;\n      puVar3[1] = 0;\n      puVar3[2] = 0;\n      puVar3[3] = 0;\n      *(undefined1 *)(puVar3 + 4) = 1;\n      iVar4 = FUN_00053df0(param_2);\n      if (iVar4 < 0) {\n        return puVar3;\n      }\n      while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }\n      return puVar3;\n    }" ({ "{") (expression_statement "puVar3 = (undefined4 *)FUN_0002e780(1,0x14);" (assignment_expression "puVar3 = (undefined4 *)FUN_0002e780(1,0x14)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_0002e780(1,0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002e780(1,0x14)" (identifier "FUN_0002e780") (argument_list "(1,0x14)" (( "(") (number_literal "1") (, ",") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "*puVar3 = piVar1;" (assignment_expression "*puVar3 = piVar1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "piVar1")) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[3] = 0;" (assignment_expression "puVar3[3] = 0" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(puVar3 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar3 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar3 + 4)" (* "*") (cast_expression "(undefined1 *)(puVar3 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 4)" (( "(") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar4 = FUN_00053df0(param_2);" (assignment_expression "iVar4 = FUN_00053df0(param_2)" (identifier "iVar4") (= "=") (call_expression "FUN_00053df0(param_2)" (identifier "FUN_00053df0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar4 < 0) {\n        return puVar3;\n      }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        return puVar3;\n      }" ({ "{") (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (while_statement "while( true ) {\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        puVar6 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar3);\n        if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n        iVar5 = FUN_00053f20(param_2,iVar4);\n        puVar3 = puVar6;\n        if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }\n        iVar4 = iVar4 + -1;\n        if (iVar4 < 0) break;\n        if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }\n      }" ({ "{") (expression_statement "puVar6 = (undefined4 *)FUN_0005cd80();" (assignment_expression "puVar6 = (undefined4 *)FUN_0005cd80()" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)FUN_0005cd80()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005cd80()" (identifier "FUN_0005cd80") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "FUN_0005e340(puVar3);" (call_expression "FUN_0005e340(puVar3)" (identifier "FUN_0005e340") (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")"))) (; ";")) (if_statement "if (puVar6 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }" (if "if") (parenthesized_expression "(puVar6 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar6 == (undefined4 *)0x0" (identifier "puVar6") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          return (undefined4 *)0x0;\n        }" ({ "{") (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "iVar5 = FUN_00053f20(param_2,iVar4);" (assignment_expression "iVar5 = FUN_00053f20(param_2,iVar4)" (identifier "iVar5") (= "=") (call_expression "FUN_00053f20(param_2,iVar4)" (identifier "FUN_00053f20") (argument_list "(param_2,iVar4)" (( "(") (identifier "param_2") (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "puVar3 = puVar6;" (assignment_expression "puVar3 = puVar6" (identifier "puVar3") (= "=") (identifier "puVar6")) (; ";")) (if_statement "if (iVar5 != 0) {\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          puVar3 = (undefined4 *)FUN_0005c670();\n          FUN_0005e340(puVar6);\n        }" ({ "{") (expression_statement "puVar3 = (undefined4 *)FUN_0005c670();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005c670()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_0005c670()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005c670()" (identifier "FUN_0005c670") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "FUN_0005e340(puVar6);" (call_expression "FUN_0005e340(puVar6)" (identifier "FUN_0005e340") (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar4 < 0) break;" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n          return (undefined4 *)0x0;\n        }" (if "if") (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined4 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          return (undefined4 *)0x0;\n        }" ({ "{") (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}"))) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_0005cd80();" (assignment_expression "uVar2 = FUN_0005cd80()" (identifier "uVar2") (= "=") (call_expression "FUN_0005cd80()" (identifier "FUN_0005cd80") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar3 = (undefined4 *)FUN_0005b700();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005b700()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_0005b700()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005b700()" (identifier "FUN_0005b700") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar4 = FUN_00053df0(param_2);" (assignment_expression "iVar4 = FUN_00053df0(param_2)" (identifier "iVar4") (= "=") (call_expression "FUN_00053df0(param_2)" (identifier "FUN_00053df0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar4 = iVar4 + -2;" (assignment_expression "iVar4 = iVar4 + -2" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -2" (identifier "iVar4") (+ "+") (number_literal "-2"))) (; ";")) (if_statement "if (-1 < iVar4) {\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }" (if "if") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n      puVar6 = puVar3;\n      uVar7 = uVar2;\n      do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);\n    }" ({ "{") (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" (identifier "puVar6") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" (identifier "uVar7") (= "=") (identifier "uVar2")) (; ";")) (do_statement "do {\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      } while (iVar4 != -1);" (do "do") (compound_statement "{\n        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }\n        iVar4 = iVar4 + -1;\n        uVar2 = FUN_0005c3a0(param_1 + 1);\n        FUN_0005e340(uVar7);\n        puVar3 = (undefined4 *)FUN_0005cd80();\n        FUN_0005e340(puVar6);\n        puVar6 = puVar3;\n        uVar7 = uVar2;\n      }" ({ "{") (while_statement "while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }" (while "while") (parenthesized_expression "(iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0)" (( "(") (comma_expression "iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0" (assignment_expression "iVar5 = FUN_00053f20(param_2,iVar4)" (identifier "iVar5") (= "=") (call_expression "FUN_00053f20(param_2,iVar4)" (identifier "FUN_00053f20") (argument_list "(param_2,iVar4)" (( "(") (identifier "param_2") (, ",") (identifier "iVar4") () ")")))) (, ",") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n          iVar4 = iVar4 + -1;\n          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);\n          FUN_0005e340(puVar6);\n          uVar2 = FUN_0005cd80();\n          FUN_0005e340(uVar7);\n          puVar6 = puVar3;\n          uVar7 = uVar2;\n          if (iVar4 == -1) goto LAB_0005e5ac;\n        }" ({ "{") (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);" (assignment_expression "puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_0005c3a0(param_1 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005c3a0(param_1 + 1)" (identifier "FUN_0005c3a0") (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "FUN_0005e340(puVar6);" (call_expression "FUN_0005e340(puVar6)" (identifier "FUN_0005e340") (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0005cd80();" (assignment_expression "uVar2 = FUN_0005cd80()" (identifier "uVar2") (= "=") (call_expression "FUN_0005cd80()" (identifier "FUN_0005cd80") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_0005e340(uVar7);" (call_expression "FUN_0005e340(uVar7)" (identifier "FUN_0005e340") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" (identifier "puVar6") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" (identifier "uVar7") (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (iVar4 == -1) goto LAB_0005e5ac;" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_0005e5ac;" (goto "goto") (statement_identifier "LAB_0005e5ac") (; ";"))) (} "}"))) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar2 = FUN_0005c3a0(param_1 + 1);" (assignment_expression "uVar2 = FUN_0005c3a0(param_1 + 1)" (identifier "uVar2") (= "=") (call_expression "FUN_0005c3a0(param_1 + 1)" (identifier "FUN_0005c3a0") (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "FUN_0005e340(uVar7);" (call_expression "FUN_0005e340(uVar7)" (identifier "FUN_0005e340") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)FUN_0005cd80();" (assignment_expression "puVar3 = (undefined4 *)FUN_0005cd80()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_0005cd80()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005cd80()" (identifier "FUN_0005cd80") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "FUN_0005e340(puVar6);" (call_expression "FUN_0005e340(puVar6)" (identifier "FUN_0005e340") (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (; ";")) (expression_statement "puVar6 = puVar3;" (assignment_expression "puVar6 = puVar3" (identifier "puVar6") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" (identifier "uVar7") (= "=") (identifier "uVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != -1)" (( "(") (binary_expression "iVar4 != -1" (identifier "iVar4") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_0005e5ac:\n    FUN_0005e340(uVar2);" (statement_identifier "LAB_0005e5ac") (: ":") (expression_statement "FUN_0005e340(uVar2);" (call_expression "FUN_0005e340(uVar2)" (identifier "FUN_0005e340") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";"))) (} "}")))) (if_statement "if ((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {\n    return puVar3;\n  }" (if "if") (parenthesized_expression "((puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0))))" (( "(") (binary_expression "(puVar3 != (undefined4 *)0x0) &&\n     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))" (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 != (undefined4 *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))" (( "(") (parenthesized_expression "(*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0))" (( "(") (binary_expression "*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)" (binary_expression "*(char *)(puVar3 + 4) != '\0'" (pointer_expression "*(char *)(puVar3 + 4)" (* "*") (cast_expression "(char *)(puVar3 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 4)" (( "(") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (|| "||") (parenthesized_expression "(iVar4 = FUN_0005c140(), iVar4 != 0)" (( "(") (comma_expression "iVar4 = FUN_0005c140(), iVar4 != 0" (assignment_expression "iVar4 = FUN_0005c140()" (identifier "iVar4") (= "=") (call_expression "FUN_0005c140()" (identifier "FUN_0005c140") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    return puVar3;\n  }" ({ "{") (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (expression_statement "FUN_0005e340(puVar3);" (call_expression "FUN_0005e340(puVar3)" (identifier "FUN_0005e340") (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")"))) (; ";")) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 * function_1(type_1 *a,type_2 b)

{
  type_3 *curve;
  type_1 *var_10;
  type_1 *var_14;
  int var_7;
  int var_12;
  type_1 *a_00;
  type_1 *point;
  
  curve = a->curve;
  if (curve->type == var_1) {
    var_7 = var_2(curve);
    var_14 = var_3(a,b,var_7);
  }
  else {
    if (curve->type == var_4) {
      var_14 = (type_1 *)var_5(1,0x14);
      var_14->curve = curve;
      var_14->x = (type_2)0x0;
      var_14->y = (type_2)0x0;
      var_14->z = (type_2)0x0;
      var_14->infinity = '\x01';
      var_7 = var_6((type_4)b);
      if (var_7 < 0) {
        return var_14;
      }
      while( true ) {
        var_10 = var_8(var_14,0);
        var_9(var_14);
        if (var_10 == (type_1 *)0x0) {
          return (type_1 *)0x0;
        }
        var_12 = var_11((type_4)b,var_7);
        var_14 = var_10;
        if (var_12 != 0) {
          var_14 = var_13(var_10,a,0);
          var_9(var_10);
        }
        var_7 = var_7 + -1;
        if (var_7 < 0) break;
        if (var_14 == (type_1 *)0x0) {
          return (type_1 *)0x0;
        }
      }
      return var_14;
    }
    var_10 = var_8(a,0);
    var_14 = var_15(a);
    var_7 = var_6((type_4)b);
    var_7 = var_7 + -2;
    if (-1 < var_7) {
      a_00 = var_14;
      point = var_10;
      do {
        while( true ) {
          var_12 = var_11((type_4)b,var_7);
          if (var_12 == 0) break;
          var_7 = var_7 + -1;
          var_14 = var_16(a_00,(type_1 *)&point->x,(type_1 *)point->z,(type_1 *)&a->x);
          var_9(a_00);
          var_10 = var_8(point,0);
          var_9(point);
          a_00 = var_14;
          point = var_10;
          if (var_7 == -1) goto LAB_0005e5ac;
        }
        var_7 = var_7 + -1;
        var_10 = var_16(a_00,(type_1 *)&point->x,(type_1 *)point->z,(type_1 *)&a->x);
        var_9(point);
        var_14 = var_8(a_00,0);
        var_9(a_00);
        a_00 = var_14;
        point = var_10;
      } while (var_7 != -1);
    }
LAB_0005e5ac:
    var_9(var_10);
  }
  if ((var_14 != (type_1 *)0x0) &&
     ((var_14->infinity != '\0' || (var_7 = var_17(var_14), var_7 != 0)))) {
    return var_14;
  }
  var_9(var_14);
  return (type_1 *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list)))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) 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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

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

undefined4 * MASKED(undefined4 *param_1,undefined4 param_2)

{
  int *piVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  
  piVar1 = (int *)*param_1;
  iVar4 = *piVar1;
  if (iVar4 == 0) {
    FUN_0005c0f0();
    puVar3 = (undefined4 *)FUN_0005e3b0();
  }
  else {
    if (iVar4 == 2) {
      puVar3 = (undefined4 *)FUN_0002e780(1,0x14);
      *puVar3 = piVar1;
      puVar3[1] = 0;
      puVar3[2] = 0;
      puVar3[3] = 0;
      *(undefined1 *)(puVar3 + 4) = 1;
      iVar4 = FUN_00053df0(param_2);
      if (iVar4 < 0) {
        return puVar3;
      }
      while( true ) {
        puVar6 = (undefined4 *)FUN_0005cd80();
        FUN_0005e340(puVar3);
        if (puVar6 == (undefined4 *)0x0) {
          return (undefined4 *)0x0;
        }
        iVar5 = FUN_00053f20(param_2,iVar4);
        puVar3 = puVar6;
        if (iVar5 != 0) {
          puVar3 = (undefined4 *)FUN_0005c670();
          FUN_0005e340(puVar6);
        }
        iVar4 = iVar4 + -1;
        if (iVar4 < 0) break;
        if (puVar3 == (undefined4 *)0x0) {
          return (undefined4 *)0x0;
        }
      }
      return puVar3;
    }
    uVar2 = FUN_0005cd80();
    puVar3 = (undefined4 *)FUN_0005b700();
    iVar4 = FUN_00053df0(param_2);
    iVar4 = iVar4 + -2;
    if (-1 < iVar4) {
      puVar6 = puVar3;
      uVar7 = uVar2;
      do {
        while (iVar5 = FUN_00053f20(param_2,iVar4), iVar5 != 0) {
          iVar4 = iVar4 + -1;
          puVar3 = (undefined4 *)FUN_0005c3a0(param_1 + 1);
          FUN_0005e340(puVar6);
          uVar2 = FUN_0005cd80();
          FUN_0005e340(uVar7);
          puVar6 = puVar3;
          uVar7 = uVar2;
          if (iVar4 == -1) goto LAB_0005e5ac;
        }
        iVar4 = iVar4 + -1;
        uVar2 = FUN_0005c3a0(param_1 + 1);
        FUN_0005e340(uVar7);
        puVar3 = (undefined4 *)FUN_0005cd80();
        FUN_0005e340(puVar6);
        puVar6 = puVar3;
        uVar7 = uVar2;
      } while (iVar4 != -1);
    }
LAB_0005e5ac:
    FUN_0005e340(uVar2);
  }
  if ((puVar3 != (undefined4 *)0x0) &&
     ((*(char *)(puVar3 + 4) != '\0' || (iVar4 = FUN_0005c140(), iVar4 != 0)))) {
    return puVar3;
  }
  FUN_0005e340(puVar3);
  return (undefined4 *)0x0;
}

