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

int conf_serialised_size(Conf *conf)

{
  int iVar1;
  int *piVar2;
  size_t sVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int index;
  bool bVar7;
  
  iVar5 = 0;
  index = 0;
  do {
    iVar6 = iVar5 + 4;
    piVar2 = (int *)index234(conf->tree,index);
    if (piVar2 == (int *)0x0) {
      return iVar6;
    }
    iVar4 = *piVar2;
    if (subkeytypes[iVar4] == 1) {
      iVar4 = valuetypes[iVar4];
      iVar6 = iVar5 + 8;
      iVar1 = iVar4 + -2;
      bVar7 = iVar1 == 0;
      if (!bVar7) goto LAB_00018015;
LAB_0001805f:
      sVar3 = strlen((char *)piVar2[2]);
      iVar5 = iVar6 + 1 + sVar3;
    }
    else {
      if (subkeytypes[iVar4] == 2) {
        sVar3 = strlen((char *)piVar2[1]);
        iVar6 = iVar5 + 5 + sVar3;
      }
      iVar4 = valuetypes[iVar4];
      iVar1 = iVar4 + -2;
      bVar7 = iVar4 == 2;
      if (bVar7) goto LAB_0001805f;
LAB_00018015:
      iVar5 = iVar6;
      if (bVar7 || SBORROW4(iVar4,2) != iVar1 < 0) {
        if (iVar4 == 1) {
          iVar5 = iVar6 + 4;
        }
      }
      else if (iVar4 == 3) {
        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);
        iVar5 = iVar6 + iVar5;
      }
      else if (iVar4 == 4) {
        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);
        iVar5 = iVar6 + iVar5;
      }
    }
    index = index + 1;
  } while( true );
}



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

int FUN_00017f70(undefined4 *param_1)

{
  int iVar1;
  int *piVar2;
  size_t sVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  bool bVar8;
  
  iVar5 = 0;
  iVar7 = 0;
  do {
    iVar6 = iVar5 + 4;
    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);
    if (piVar2 == (int *)0x0) {
      return iVar6;
    }
    iVar4 = *piVar2;
    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {
      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);
      iVar6 = iVar5 + 8;
      iVar1 = iVar4 + -2;
      bVar8 = iVar1 == 0;
      if (!bVar8) goto LAB_00018015;
LAB_0001805f:
      sVar3 = strlen((char *)piVar2[2]);
      iVar5 = iVar6 + 1 + sVar3;
    }
    else {
      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {
        sVar3 = strlen((char *)piVar2[1]);
        iVar6 = iVar5 + 5 + sVar3;
      }
      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);
      iVar1 = iVar4 + -2;
      bVar8 = iVar4 == 2;
      if (bVar8) goto LAB_0001805f;
LAB_00018015:
      iVar5 = iVar6;
      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {
        if (iVar4 == 1) {
          iVar5 = iVar6 + 4;
        }
      }
      else if (iVar4 == 3) {
        iVar5 = FUN_00065b40(piVar2[2],0);
        iVar5 = iVar6 + iVar5;
      }
      else if (iVar4 == 4) {
        iVar5 = FUN_00066000(piVar2[2],0);
        iVar5 = iVar6 + iVar5;
      }
    }
    iVar7 = iVar7 + 1;
  } while( true );
}


PUSH EBP
XOR EBP,EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x91e13
SUB ESP,0x1c
JMP 0x00017fb5
CMP EAX,0x4
JNZ 0x00017fb0
SUB ESP,0x8
PUSH 0x0
PUSH dword ptr [EDX + 0x8]
CALL 0x00066000
ADD ESP,0x10
ADD ESI,EAX
LEA ESI,[ESI]
NOP
ADD EDI,0x1
MOV EBP,ESI
SUB ESP,0x8
LEA ESI,[EBP + 0x4]
PUSH EDI
MOV EAX,dword ptr [ESP + 0x3c]
PUSH dword ptr [EAX]
CALL 0x00063d60
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JZ 0x00018080
MOV ECX,dword ptr [EDX]
MOV EAX,dword ptr [EBX + ECX*0x4 + 0xfffc6c30]
CMP EAX,0x1
JZ 0x00018050
CMP EAX,0x2
JNZ 0x00018009
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH dword ptr [EDX + 0x4]
MOV dword ptr [ESP + 0x18],EDX
CALL 0x00014470
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x8]
LEA ESI,[EBP + EAX*0x1 + 0x5]
MOV EAX,dword ptr [EBX + ECX*0x4 + 0xfffc6950]
CMP EAX,0x2
JZ 0x0001805f
JLE 0x00018040
CMP EAX,0x3
JNZ 0x00017f90
SUB ESP,0x8
PUSH 0x0
PUSH dword ptr [EDX + 0x8]
CALL 0x00065b40
ADD ESP,0x10
ADD ESI,EAX
JMP 0x00017fb0
LEA EDX,[ESI + 0x4]
CMP EAX,0x1
CMOVZ ESI,EDX
JMP 0x00017fb0
MOV EAX,dword ptr [EBX + ECX*0x4 + 0xfffc6950]
LEA ESI,[EBP + 0x8]
CMP EAX,0x2
JNZ 0x00018015
SUB ESP,0xc
PUSH dword ptr [EDX + 0x8]
CALL 0x00014470
ADD ESP,0x10
LEA ESI,[ESI + EAX*0x1 + 0x1]
JMP 0x00017fb0
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00017f70(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar5 = 0;\n  iVar7 = 0;\n  do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  } while( true );\n}\n\n" comment (function_definition "int FUN_00017f70(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar5 = 0;\n  iVar7 = 0;\n  do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_00017f70(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar5 = 0;\n  iVar7 = 0;\n  do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  } while( true );" do (compound_statement "{\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  }" { (expression_statement "iVar6 = iVar5 + 4;" (assignment_expression "iVar6 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) (expression_statement "piVar2 = (int *)FUN_00063d60(*param_1,iVar7);" (assignment_expression "piVar2 = (int *)FUN_00063d60(*param_1,iVar7)" identifier = (cast_expression "(int *)FUN_00063d60(*param_1,iVar7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00063d60(*param_1,iVar7)" identifier (argument_list "(*param_1,iVar7)" ( (pointer_expression "*param_1" * identifier) , identifier ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return iVar6;\n    }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" if (parenthesized_expression "(*(int *)(&DAT_000709c0 + iVar4 * 4) == 1)" ( (binary_expression "*(int *)(&DAT_000709c0 + iVar4 * 4) == 1" (pointer_expression "*(int *)(&DAT_000709c0 + iVar4 * 4)" * (cast_expression "(int *)(&DAT_000709c0 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000709c0 + iVar4 * 4)" ( (binary_expression "&DAT_000709c0 + iVar4 * 4" (pointer_expression "&DAT_000709c0" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) == number_literal) )) (compound_statement "{\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }" { (expression_statement "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);" (assignment_expression "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4)" identifier = (pointer_expression "*(int *)(&DAT_000706e0 + iVar4 * 4)" * (cast_expression "(int *)(&DAT_000706e0 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000706e0 + iVar4 * 4)" ( (binary_expression "&DAT_000706e0 + iVar4 * 4" (pointer_expression "&DAT_000706e0" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar6 = iVar5 + 8;" (assignment_expression "iVar6 = iVar5 + 8" identifier = (binary_expression "iVar5 + 8" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar4 + -2;" (assignment_expression "iVar1 = iVar4 + -2" identifier = (binary_expression "iVar4 + -2" identifier + number_literal)) ;) (expression_statement "bVar8 = iVar1 == 0;" (assignment_expression "bVar8 = iVar1 == 0" identifier = (binary_expression "iVar1 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar8) goto LAB_00018015;" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (goto_statement "goto LAB_00018015;" goto statement_identifier ;)) (labeled_statement "LAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);" statement_identifier : (expression_statement "sVar3 = strlen((char *)piVar2[2]);" (assignment_expression "sVar3 = strlen((char *)piVar2[2])" identifier = (call_expression "strlen((char *)piVar2[2])" identifier (argument_list "((char *)piVar2[2])" ( (cast_expression "(char *)piVar2[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ])) )))) ;)) (expression_statement "iVar5 = iVar6 + 1 + sVar3;" (assignment_expression "iVar5 = iVar6 + 1 + sVar3" identifier = (binary_expression "iVar6 + 1 + sVar3" (binary_expression "iVar6 + 1" identifier + number_literal) + identifier)) ;) }) (else_clause "else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" else (compound_statement "{\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" { (if_statement "if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }" if (parenthesized_expression "(*(int *)(&DAT_000709c0 + iVar4 * 4) == 2)" ( (binary_expression "*(int *)(&DAT_000709c0 + iVar4 * 4) == 2" (pointer_expression "*(int *)(&DAT_000709c0 + iVar4 * 4)" * (cast_expression "(int *)(&DAT_000709c0 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000709c0 + iVar4 * 4)" ( (binary_expression "&DAT_000709c0 + iVar4 * 4" (pointer_expression "&DAT_000709c0" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) == number_literal) )) (compound_statement "{\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }" { (expression_statement "sVar3 = strlen((char *)piVar2[1]);" (assignment_expression "sVar3 = strlen((char *)piVar2[1])" identifier = (call_expression "strlen((char *)piVar2[1])" identifier (argument_list "((char *)piVar2[1])" ( (cast_expression "(char *)piVar2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ])) )))) ;) (expression_statement "iVar6 = iVar5 + 5 + sVar3;" (assignment_expression "iVar6 = iVar5 + 5 + sVar3" identifier = (binary_expression "iVar5 + 5 + sVar3" (binary_expression "iVar5 + 5" identifier + number_literal) + identifier)) ;) })) (expression_statement "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);" (assignment_expression "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4)" identifier = (pointer_expression "*(int *)(&DAT_000706e0 + iVar4 * 4)" * (cast_expression "(int *)(&DAT_000706e0 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000706e0 + iVar4 * 4)" ( (binary_expression "&DAT_000706e0 + iVar4 * 4" (pointer_expression "&DAT_000706e0" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar1 = iVar4 + -2;" (assignment_expression "iVar1 = iVar4 + -2" identifier = (binary_expression "iVar4 + -2" identifier + number_literal)) ;) (expression_statement "bVar8 = iVar4 == 2;" (assignment_expression "bVar8 = iVar4 == 2" identifier = (binary_expression "iVar4 == 2" identifier == number_literal)) ;) (if_statement "if (bVar8) goto LAB_0001805f;" if (parenthesized_expression "(bVar8)" ( identifier )) (goto_statement "goto LAB_0001805f;" goto statement_identifier ;)) (labeled_statement "LAB_00018015:\n      iVar5 = iVar6;" statement_identifier : (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;)) (if_statement "if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" if (parenthesized_expression "(bVar8 || SBORROW4(iVar4,2) != iVar1 < 0)" ( (binary_expression "bVar8 || SBORROW4(iVar4,2) != iVar1 < 0" identifier || (binary_expression "SBORROW4(iVar4,2) != iVar1 < 0" (call_expression "SBORROW4(iVar4,2)" identifier (argument_list "(iVar4,2)" ( identifier , number_literal ))) != (binary_expression "iVar1 < 0" identifier < number_literal))) )) (compound_statement "{\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }" { (if_statement "if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n          iVar5 = iVar6 + 4;\n        }" { (expression_statement "iVar5 = iVar6 + 4;" (assignment_expression "iVar5 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) })) }) (else_clause "else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" else (if_statement "if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" if (parenthesized_expression "(iVar4 == 3)" ( (binary_expression "iVar4 == 3" identifier == number_literal) )) (compound_statement "{\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" { (expression_statement "iVar5 = FUN_00065b40(piVar2[2],0);" (assignment_expression "iVar5 = FUN_00065b40(piVar2[2],0)" identifier = (call_expression "FUN_00065b40(piVar2[2],0)" identifier (argument_list "(piVar2[2],0)" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "iVar5 = iVar6 + iVar5;" (assignment_expression "iVar5 = iVar6 + iVar5" identifier = (binary_expression "iVar6 + iVar5" identifier + identifier)) ;) }) (else_clause "else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" else (if_statement "if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" if (parenthesized_expression "(iVar4 == 4)" ( (binary_expression "iVar4 == 4" identifier == number_literal) )) (compound_statement "{\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" { (expression_statement "iVar5 = FUN_00066000(piVar2[2],0);" (assignment_expression "iVar5 = FUN_00066000(piVar2[2],0)" identifier = (call_expression "FUN_00066000(piVar2[2],0)" identifier (argument_list "(piVar2[2],0)" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "iVar5 = iVar6 + iVar5;" (assignment_expression "iVar5 = iVar6 + iVar5" identifier = (binary_expression "iVar6 + iVar5" identifier + identifier)) ;) })))))) }))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint conf_serialised_size(Conf *conf)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int index;\n  bool bVar7;\n  \n  iVar5 = 0;\n  index = 0;\n  do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)index234(conf->tree,index);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (subkeytypes[iVar4] == 1) {\n      iVar4 = valuetypes[iVar4];\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar1 == 0;\n      if (!bVar7) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (subkeytypes[iVar4] == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = valuetypes[iVar4];\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar4 == 2;\n      if (bVar7) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar7 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    index = index + 1;\n  } while( true );\n}\n\n" comment comment (function_definition "int conf_serialised_size(Conf *conf)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int index;\n  bool bVar7;\n  \n  iVar5 = 0;\n  index = 0;\n  do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)index234(conf->tree,index);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (subkeytypes[iVar4] == 1) {\n      iVar4 = valuetypes[iVar4];\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar1 == 0;\n      if (!bVar7) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (subkeytypes[iVar4] == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = valuetypes[iVar4];\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar4 == 2;\n      if (bVar7) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar7 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    index = index + 1;\n  } while( true );\n}" primitive_type (function_declarator "conf_serialised_size(Conf *conf)" identifier (parameter_list "(Conf *conf)" ( (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int index;\n  bool bVar7;\n  \n  iVar5 = 0;\n  index = 0;\n  do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)index234(conf->tree,index);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (subkeytypes[iVar4] == 1) {\n      iVar4 = valuetypes[iVar4];\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar1 == 0;\n      if (!bVar7) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (subkeytypes[iVar4] == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = valuetypes[iVar4];\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar4 == 2;\n      if (bVar7) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar7 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    index = index + 1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int index;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "index = 0;" (assignment_expression "index = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)index234(conf->tree,index);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (subkeytypes[iVar4] == 1) {\n      iVar4 = valuetypes[iVar4];\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar1 == 0;\n      if (!bVar7) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (subkeytypes[iVar4] == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = valuetypes[iVar4];\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar4 == 2;\n      if (bVar7) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar7 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    index = index + 1;\n  } while( true );" do (compound_statement "{\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)index234(conf->tree,index);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (subkeytypes[iVar4] == 1) {\n      iVar4 = valuetypes[iVar4];\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar1 == 0;\n      if (!bVar7) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (subkeytypes[iVar4] == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = valuetypes[iVar4];\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar4 == 2;\n      if (bVar7) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar7 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    index = index + 1;\n  }" { (expression_statement "iVar6 = iVar5 + 4;" (assignment_expression "iVar6 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) (expression_statement "piVar2 = (int *)index234(conf->tree,index);" (assignment_expression "piVar2 = (int *)index234(conf->tree,index)" identifier = (cast_expression "(int *)index234(conf->tree,index)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "index234(conf->tree,index)" identifier (argument_list "(conf->tree,index)" ( (field_expression "conf->tree" identifier -> field_identifier) , identifier ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return iVar6;\n    }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (subkeytypes[iVar4] == 1) {\n      iVar4 = valuetypes[iVar4];\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar1 == 0;\n      if (!bVar7) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (subkeytypes[iVar4] == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = valuetypes[iVar4];\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar4 == 2;\n      if (bVar7) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar7 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" if (parenthesized_expression "(subkeytypes[iVar4] == 1)" ( (binary_expression "subkeytypes[iVar4] == 1" (subscript_expression "subkeytypes[iVar4]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n      iVar4 = valuetypes[iVar4];\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar1 == 0;\n      if (!bVar7) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }" { (expression_statement "iVar4 = valuetypes[iVar4];" (assignment_expression "iVar4 = valuetypes[iVar4]" identifier = (subscript_expression "valuetypes[iVar4]" identifier [ identifier ])) ;) (expression_statement "iVar6 = iVar5 + 8;" (assignment_expression "iVar6 = iVar5 + 8" identifier = (binary_expression "iVar5 + 8" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar4 + -2;" (assignment_expression "iVar1 = iVar4 + -2" identifier = (binary_expression "iVar4 + -2" identifier + number_literal)) ;) (expression_statement "bVar7 = iVar1 == 0;" (assignment_expression "bVar7 = iVar1 == 0" identifier = (binary_expression "iVar1 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar7) goto LAB_00018015;" if (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) (goto_statement "goto LAB_00018015;" goto statement_identifier ;)) (labeled_statement "LAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);" statement_identifier : (expression_statement "sVar3 = strlen((char *)piVar2[2]);" (assignment_expression "sVar3 = strlen((char *)piVar2[2])" identifier = (call_expression "strlen((char *)piVar2[2])" identifier (argument_list "((char *)piVar2[2])" ( (cast_expression "(char *)piVar2[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ])) )))) ;)) (expression_statement "iVar5 = iVar6 + 1 + sVar3;" (assignment_expression "iVar5 = iVar6 + 1 + sVar3" identifier = (binary_expression "iVar6 + 1 + sVar3" (binary_expression "iVar6 + 1" identifier + number_literal) + identifier)) ;) }) (else_clause "else {\n      if (subkeytypes[iVar4] == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = valuetypes[iVar4];\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar4 == 2;\n      if (bVar7) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar7 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" else (compound_statement "{\n      if (subkeytypes[iVar4] == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = valuetypes[iVar4];\n      iVar1 = iVar4 + -2;\n      bVar7 = iVar4 == 2;\n      if (bVar7) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar7 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" { (if_statement "if (subkeytypes[iVar4] == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }" if (parenthesized_expression "(subkeytypes[iVar4] == 2)" ( (binary_expression "subkeytypes[iVar4] == 2" (subscript_expression "subkeytypes[iVar4]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }" { (expression_statement "sVar3 = strlen((char *)piVar2[1]);" (assignment_expression "sVar3 = strlen((char *)piVar2[1])" identifier = (call_expression "strlen((char *)piVar2[1])" identifier (argument_list "((char *)piVar2[1])" ( (cast_expression "(char *)piVar2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ])) )))) ;) (expression_statement "iVar6 = iVar5 + 5 + sVar3;" (assignment_expression "iVar6 = iVar5 + 5 + sVar3" identifier = (binary_expression "iVar5 + 5 + sVar3" (binary_expression "iVar5 + 5" identifier + number_literal) + identifier)) ;) })) (expression_statement "iVar4 = valuetypes[iVar4];" (assignment_expression "iVar4 = valuetypes[iVar4]" identifier = (subscript_expression "valuetypes[iVar4]" identifier [ identifier ])) ;) (expression_statement "iVar1 = iVar4 + -2;" (assignment_expression "iVar1 = iVar4 + -2" identifier = (binary_expression "iVar4 + -2" identifier + number_literal)) ;) (expression_statement "bVar7 = iVar4 == 2;" (assignment_expression "bVar7 = iVar4 == 2" identifier = (binary_expression "iVar4 == 2" identifier == number_literal)) ;) (if_statement "if (bVar7) goto LAB_0001805f;" if (parenthesized_expression "(bVar7)" ( identifier )) (goto_statement "goto LAB_0001805f;" goto statement_identifier ;)) (labeled_statement "LAB_00018015:\n      iVar5 = iVar6;" statement_identifier : (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;)) (if_statement "if (bVar7 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }" if (parenthesized_expression "(bVar7 || SBORROW4(iVar4,2) != iVar1 < 0)" ( (binary_expression "bVar7 || SBORROW4(iVar4,2) != iVar1 < 0" identifier || (binary_expression "SBORROW4(iVar4,2) != iVar1 < 0" (call_expression "SBORROW4(iVar4,2)" identifier (argument_list "(iVar4,2)" ( identifier , number_literal ))) != (binary_expression "iVar1 < 0" identifier < number_literal))) )) (compound_statement "{\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }" { (if_statement "if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n          iVar5 = iVar6 + 4;\n        }" { (expression_statement "iVar5 = iVar6 + 4;" (assignment_expression "iVar5 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) })) }) (else_clause "else if (iVar4 == 3) {\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }" else (if_statement "if (iVar4 == 3) {\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }" if (parenthesized_expression "(iVar4 == 3)" ( (binary_expression "iVar4 == 3" identifier == number_literal) )) (compound_statement "{\n        iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }" { (expression_statement "iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0);" (assignment_expression "iVar5 = filename_serialise((Filename *)piVar2[2],(void *)0x0)" identifier = (call_expression "filename_serialise((Filename *)piVar2[2],(void *)0x0)" identifier (argument_list "((Filename *)piVar2[2],(void *)0x0)" ( (cast_expression "(Filename *)piVar2[2]" ( (type_descriptor "Filename *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ])) , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "iVar5 = iVar6 + iVar5;" (assignment_expression "iVar5 = iVar6 + iVar5" identifier = (binary_expression "iVar6 + iVar5" identifier + identifier)) ;) }) (else_clause "else if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }" else (if_statement "if (iVar4 == 4) {\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }" if (parenthesized_expression "(iVar4 == 4)" ( (binary_expression "iVar4 == 4" identifier == number_literal) )) (compound_statement "{\n        iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);\n        iVar5 = iVar6 + iVar5;\n      }" { (expression_statement "iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0);" (assignment_expression "iVar5 = fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0)" identifier = (call_expression "fontspec_serialise((FontSpec *)piVar2[2],(void *)0x0)" identifier (argument_list "((FontSpec *)piVar2[2],(void *)0x0)" ( (cast_expression "(FontSpec *)piVar2[2]" ( (type_descriptor "FontSpec *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ])) , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "iVar5 = iVar6 + iVar5;" (assignment_expression "iVar5 = iVar6 + iVar5" identifier = (binary_expression "iVar6 + iVar5" identifier + identifier)) ;) })))))) }))) (expression_statement "index = index + 1;" (assignment_expression "index = index + 1" identifier = (binary_expression "index + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int FUN_00017f70(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar5 = 0;\n  iVar7 = 0;\n  do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  } while( true );\n}\n\n" (function_definition "int FUN_00017f70(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar5 = 0;\n  iVar7 = 0;\n  do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_00017f70(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar5 = 0;\n  iVar7 = 0;\n  do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  } while( true );" do (compound_statement "{\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  }" { (expression_statement "iVar6 = iVar5 + 4;" (assignment_expression "iVar6 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) (expression_statement "piVar2 = (int *)FUN_00063d60(*param_1,iVar7);" (assignment_expression "piVar2 = (int *)FUN_00063d60(*param_1,iVar7)" identifier = (cast_expression "(int *)FUN_00063d60(*param_1,iVar7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00063d60(*param_1,iVar7)" identifier (argument_list "(*param_1,iVar7)" ( (pointer_expression "*param_1" * identifier) , identifier ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return iVar6;\n    }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" if (parenthesized_expression "(*(int *)(&DAT_000709c0 + iVar4 * 4) == 1)" ( (binary_expression "*(int *)(&DAT_000709c0 + iVar4 * 4) == 1" (pointer_expression "*(int *)(&DAT_000709c0 + iVar4 * 4)" * (cast_expression "(int *)(&DAT_000709c0 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000709c0 + iVar4 * 4)" ( (binary_expression "&DAT_000709c0 + iVar4 * 4" (pointer_expression "&DAT_000709c0" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) == number_literal) )) (compound_statement "{\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }" { (expression_statement "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);" (assignment_expression "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4)" identifier = (pointer_expression "*(int *)(&DAT_000706e0 + iVar4 * 4)" * (cast_expression "(int *)(&DAT_000706e0 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000706e0 + iVar4 * 4)" ( (binary_expression "&DAT_000706e0 + iVar4 * 4" (pointer_expression "&DAT_000706e0" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar6 = iVar5 + 8;" (assignment_expression "iVar6 = iVar5 + 8" identifier = (binary_expression "iVar5 + 8" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar4 + -2;" (assignment_expression "iVar1 = iVar4 + -2" identifier = (binary_expression "iVar4 + -2" identifier + number_literal)) ;) (expression_statement "bVar8 = iVar1 == 0;" (assignment_expression "bVar8 = iVar1 == 0" identifier = (binary_expression "iVar1 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar8) goto LAB_00018015;" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (goto_statement "goto LAB_00018015;" goto statement_identifier ;)) (labeled_statement "LAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);" statement_identifier : (expression_statement "sVar3 = strlen((char *)piVar2[2]);" (assignment_expression "sVar3 = strlen((char *)piVar2[2])" identifier = (call_expression "strlen((char *)piVar2[2])" identifier (argument_list "((char *)piVar2[2])" ( (cast_expression "(char *)piVar2[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ])) )))) ;)) (expression_statement "iVar5 = iVar6 + 1 + sVar3;" (assignment_expression "iVar5 = iVar6 + 1 + sVar3" identifier = (binary_expression "iVar6 + 1 + sVar3" (binary_expression "iVar6 + 1" identifier + number_literal) + identifier)) ;) }) (else_clause "else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" else (compound_statement "{\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" { (if_statement "if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }" if (parenthesized_expression "(*(int *)(&DAT_000709c0 + iVar4 * 4) == 2)" ( (binary_expression "*(int *)(&DAT_000709c0 + iVar4 * 4) == 2" (pointer_expression "*(int *)(&DAT_000709c0 + iVar4 * 4)" * (cast_expression "(int *)(&DAT_000709c0 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000709c0 + iVar4 * 4)" ( (binary_expression "&DAT_000709c0 + iVar4 * 4" (pointer_expression "&DAT_000709c0" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) == number_literal) )) (compound_statement "{\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }" { (expression_statement "sVar3 = strlen((char *)piVar2[1]);" (assignment_expression "sVar3 = strlen((char *)piVar2[1])" identifier = (call_expression "strlen((char *)piVar2[1])" identifier (argument_list "((char *)piVar2[1])" ( (cast_expression "(char *)piVar2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ])) )))) ;) (expression_statement "iVar6 = iVar5 + 5 + sVar3;" (assignment_expression "iVar6 = iVar5 + 5 + sVar3" identifier = (binary_expression "iVar5 + 5 + sVar3" (binary_expression "iVar5 + 5" identifier + number_literal) + identifier)) ;) })) (expression_statement "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);" (assignment_expression "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4)" identifier = (pointer_expression "*(int *)(&DAT_000706e0 + iVar4 * 4)" * (cast_expression "(int *)(&DAT_000706e0 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000706e0 + iVar4 * 4)" ( (binary_expression "&DAT_000706e0 + iVar4 * 4" (pointer_expression "&DAT_000706e0" & identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar1 = iVar4 + -2;" (assignment_expression "iVar1 = iVar4 + -2" identifier = (binary_expression "iVar4 + -2" identifier + number_literal)) ;) (expression_statement "bVar8 = iVar4 == 2;" (assignment_expression "bVar8 = iVar4 == 2" identifier = (binary_expression "iVar4 == 2" identifier == number_literal)) ;) (if_statement "if (bVar8) goto LAB_0001805f;" if (parenthesized_expression "(bVar8)" ( identifier )) (goto_statement "goto LAB_0001805f;" goto statement_identifier ;)) (labeled_statement "LAB_00018015:\n      iVar5 = iVar6;" statement_identifier : (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;)) (if_statement "if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" if (parenthesized_expression "(bVar8 || SBORROW4(iVar4,2) != iVar1 < 0)" ( (binary_expression "bVar8 || SBORROW4(iVar4,2) != iVar1 < 0" identifier || (binary_expression "SBORROW4(iVar4,2) != iVar1 < 0" (call_expression "SBORROW4(iVar4,2)" identifier (argument_list "(iVar4,2)" ( identifier , number_literal ))) != (binary_expression "iVar1 < 0" identifier < number_literal))) )) (compound_statement "{\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }" { (if_statement "if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n          iVar5 = iVar6 + 4;\n        }" { (expression_statement "iVar5 = iVar6 + 4;" (assignment_expression "iVar5 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) })) }) (else_clause "else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" else (if_statement "if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" if (parenthesized_expression "(iVar4 == 3)" ( (binary_expression "iVar4 == 3" identifier == number_literal) )) (compound_statement "{\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" { (expression_statement "iVar5 = FUN_00065b40(piVar2[2],0);" (assignment_expression "iVar5 = FUN_00065b40(piVar2[2],0)" identifier = (call_expression "FUN_00065b40(piVar2[2],0)" identifier (argument_list "(piVar2[2],0)" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "iVar5 = iVar6 + iVar5;" (assignment_expression "iVar5 = iVar6 + iVar5" identifier = (binary_expression "iVar6 + iVar5" identifier + identifier)) ;) }) (else_clause "else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" else (if_statement "if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" if (parenthesized_expression "(iVar4 == 4)" ( (binary_expression "iVar4 == 4" identifier == number_literal) )) (compound_statement "{\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" { (expression_statement "iVar5 = FUN_00066000(piVar2[2],0);" (assignment_expression "iVar5 = FUN_00066000(piVar2[2],0)" identifier = (call_expression "FUN_00066000(piVar2[2],0)" identifier (argument_list "(piVar2[2],0)" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "iVar5 = iVar6 + iVar5;" (assignment_expression "iVar5 = iVar6 + iVar5" identifier = (binary_expression "iVar6 + iVar5" identifier + identifier)) ;) })))))) }))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (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 ( (pointer_expression * IDENT) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) )))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT || (binary_expression (call_expression IDENT (argument_list ( IDENT , LIT ))) != (binary_expression IDENT < LIT))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })))))) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_00017f70(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar5 = 0;\n  iVar7 = 0;\n  do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_00017f70(undefined4 *param_1)" (identifier "FUN_00017f70") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  bool bVar8;\n  \n  iVar5 = 0;\n  iVar7 = 0;\n  do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  } while( true );" (do "do") (compound_statement "{\n    iVar6 = iVar5 + 4;\n    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);\n    if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }\n    iVar4 = *piVar2;\n    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }\n    iVar7 = iVar7 + 1;\n  }" ({ "{") (expression_statement "iVar6 = iVar5 + 4;" (assignment_expression "iVar6 = iVar5 + 4" (identifier "iVar6") (= "=") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "piVar2 = (int *)FUN_00063d60(*param_1,iVar7);" (assignment_expression "piVar2 = (int *)FUN_00063d60(*param_1,iVar7)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_00063d60(*param_1,iVar7)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00063d60(*param_1,iVar7)" (identifier "FUN_00063d60") (argument_list "(*param_1,iVar7)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "iVar7") () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n      return iVar6;\n    }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return iVar6;\n    }" ({ "{") (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}"))) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" (identifier "iVar4") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (if_statement "if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }\n    else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(&DAT_000709c0 + iVar4 * 4) == 1)" (( "(") (binary_expression "*(int *)(&DAT_000709c0 + iVar4 * 4) == 1" (pointer_expression "*(int *)(&DAT_000709c0 + iVar4 * 4)" (* "*") (cast_expression "(int *)(&DAT_000709c0 + iVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000709c0 + iVar4 * 4)" (( "(") (binary_expression "&DAT_000709c0 + iVar4 * 4" (pointer_expression "&DAT_000709c0" (& "&") (identifier "DAT_000709c0")) (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar6 = iVar5 + 8;\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar1 == 0;\n      if (!bVar8) goto LAB_00018015;\nLAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);\n      iVar5 = iVar6 + 1 + sVar3;\n    }" ({ "{") (expression_statement "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);" (assignment_expression "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(&DAT_000706e0 + iVar4 * 4)" (* "*") (cast_expression "(int *)(&DAT_000706e0 + iVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000706e0 + iVar4 * 4)" (( "(") (binary_expression "&DAT_000706e0 + iVar4 * 4" (pointer_expression "&DAT_000706e0" (& "&") (identifier "DAT_000706e0")) (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar6 = iVar5 + 8;" (assignment_expression "iVar6 = iVar5 + 8" (identifier "iVar6") (= "=") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "iVar1 = iVar4 + -2;" (assignment_expression "iVar1 = iVar4 + -2" (identifier "iVar1") (= "=") (binary_expression "iVar4 + -2" (identifier "iVar4") (+ "+") (number_literal "-2"))) (; ";")) (expression_statement "bVar8 = iVar1 == 0;" (assignment_expression "bVar8 = iVar1 == 0" (identifier "bVar8") (= "=") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (!bVar8) goto LAB_00018015;" (if "if") (parenthesized_expression "(!bVar8)" (( "(") (unary_expression "!bVar8" (! "!") (identifier "bVar8")) () ")")) (goto_statement "goto LAB_00018015;" (goto "goto") (statement_identifier "LAB_00018015") (; ";"))) (labeled_statement "LAB_0001805f:\n      sVar3 = strlen((char *)piVar2[2]);" (statement_identifier "LAB_0001805f") (: ":") (expression_statement "sVar3 = strlen((char *)piVar2[2]);" (assignment_expression "sVar3 = strlen((char *)piVar2[2])" (identifier "sVar3") (= "=") (call_expression "strlen((char *)piVar2[2])" (identifier "strlen") (argument_list "((char *)piVar2[2])" (( "(") (cast_expression "(char *)piVar2[2]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]"))) () ")")))) (; ";"))) (expression_statement "iVar5 = iVar6 + 1 + sVar3;" (assignment_expression "iVar5 = iVar6 + 1 + sVar3" (identifier "iVar5") (= "=") (binary_expression "iVar6 + 1 + sVar3" (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) (+ "+") (identifier "sVar3"))) (; ";")) (} "}")) (else_clause "else {\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" (else "else") (compound_statement "{\n      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }\n      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);\n      iVar1 = iVar4 + -2;\n      bVar8 = iVar4 == 2;\n      if (bVar8) goto LAB_0001805f;\nLAB_00018015:\n      iVar5 = iVar6;\n      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n    }" ({ "{") (if_statement "if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }" (if "if") (parenthesized_expression "(*(int *)(&DAT_000709c0 + iVar4 * 4) == 2)" (( "(") (binary_expression "*(int *)(&DAT_000709c0 + iVar4 * 4) == 2" (pointer_expression "*(int *)(&DAT_000709c0 + iVar4 * 4)" (* "*") (cast_expression "(int *)(&DAT_000709c0 + iVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000709c0 + iVar4 * 4)" (( "(") (binary_expression "&DAT_000709c0 + iVar4 * 4" (pointer_expression "&DAT_000709c0" (& "&") (identifier "DAT_000709c0")) (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        sVar3 = strlen((char *)piVar2[1]);\n        iVar6 = iVar5 + 5 + sVar3;\n      }" ({ "{") (expression_statement "sVar3 = strlen((char *)piVar2[1]);" (assignment_expression "sVar3 = strlen((char *)piVar2[1])" (identifier "sVar3") (= "=") (call_expression "strlen((char *)piVar2[1])" (identifier "strlen") (argument_list "((char *)piVar2[1])" (( "(") (cast_expression "(char *)piVar2[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) () ")")))) (; ";")) (expression_statement "iVar6 = iVar5 + 5 + sVar3;" (assignment_expression "iVar6 = iVar5 + 5 + sVar3" (identifier "iVar6") (= "=") (binary_expression "iVar5 + 5 + sVar3" (binary_expression "iVar5 + 5" (identifier "iVar5") (+ "+") (number_literal "5")) (+ "+") (identifier "sVar3"))) (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);" (assignment_expression "iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(&DAT_000706e0 + iVar4 * 4)" (* "*") (cast_expression "(int *)(&DAT_000706e0 + iVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000706e0 + iVar4 * 4)" (( "(") (binary_expression "&DAT_000706e0 + iVar4 * 4" (pointer_expression "&DAT_000706e0" (& "&") (identifier "DAT_000706e0")) (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar1 = iVar4 + -2;" (assignment_expression "iVar1 = iVar4 + -2" (identifier "iVar1") (= "=") (binary_expression "iVar4 + -2" (identifier "iVar4") (+ "+") (number_literal "-2"))) (; ";")) (expression_statement "bVar8 = iVar4 == 2;" (assignment_expression "bVar8 = iVar4 == 2" (identifier "bVar8") (= "=") (binary_expression "iVar4 == 2" (identifier "iVar4") (== "==") (number_literal "2"))) (; ";")) (if_statement "if (bVar8) goto LAB_0001805f;" (if "if") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (goto_statement "goto LAB_0001805f;" (goto "goto") (statement_identifier "LAB_0001805f") (; ";"))) (labeled_statement "LAB_00018015:\n      iVar5 = iVar6;" (statement_identifier "LAB_00018015") (: ":") (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" (identifier "iVar5") (= "=") (identifier "iVar6")) (; ";"))) (if_statement "if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" (if "if") (parenthesized_expression "(bVar8 || SBORROW4(iVar4,2) != iVar1 < 0)" (( "(") (binary_expression "bVar8 || SBORROW4(iVar4,2) != iVar1 < 0" (identifier "bVar8") (|| "||") (binary_expression "SBORROW4(iVar4,2) != iVar1 < 0" (call_expression "SBORROW4(iVar4,2)" (identifier "SBORROW4") (argument_list "(iVar4,2)" (( "(") (identifier "iVar4") (, ",") (number_literal "2") () ")"))) (!= "!=") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")))) () ")")) (compound_statement "{\n        if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }\n      }" ({ "{") (if_statement "if (iVar4 == 1) {\n          iVar5 = iVar6 + 4;\n        }" (if "if") (parenthesized_expression "(iVar4 == 1)" (( "(") (binary_expression "iVar4 == 1" (identifier "iVar4") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          iVar5 = iVar6 + 4;\n        }" ({ "{") (expression_statement "iVar5 = iVar6 + 4;" (assignment_expression "iVar5 = iVar6 + 4" (identifier "iVar5") (= "=") (binary_expression "iVar6 + 4" (identifier "iVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" (else "else") (if_statement "if (iVar4 == 3) {\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }\n      else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" (if "if") (parenthesized_expression "(iVar4 == 3)" (( "(") (binary_expression "iVar4 == 3" (identifier "iVar4") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n        iVar5 = FUN_00065b40(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" ({ "{") (expression_statement "iVar5 = FUN_00065b40(piVar2[2],0);" (assignment_expression "iVar5 = FUN_00065b40(piVar2[2],0)" (identifier "iVar5") (= "=") (call_expression "FUN_00065b40(piVar2[2],0)" (identifier "FUN_00065b40") (argument_list "(piVar2[2],0)" (( "(") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar5 = iVar6 + iVar5;" (assignment_expression "iVar5 = iVar6 + iVar5" (identifier "iVar5") (= "=") (binary_expression "iVar6 + iVar5" (identifier "iVar6") (+ "+") (identifier "iVar5"))) (; ";")) (} "}")) (else_clause "else if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" (else "else") (if_statement "if (iVar4 == 4) {\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" (if "if") (parenthesized_expression "(iVar4 == 4)" (( "(") (binary_expression "iVar4 == 4" (identifier "iVar4") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n        iVar5 = FUN_00066000(piVar2[2],0);\n        iVar5 = iVar6 + iVar5;\n      }" ({ "{") (expression_statement "iVar5 = FUN_00066000(piVar2[2],0);" (assignment_expression "iVar5 = FUN_00066000(piVar2[2],0)" (identifier "iVar5") (= "=") (call_expression "FUN_00066000(piVar2[2],0)" (identifier "FUN_00066000") (argument_list "(piVar2[2],0)" (( "(") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar5 = iVar6 + iVar5;" (assignment_expression "iVar5 = iVar6 + iVar5" (identifier "iVar5") (= "=") (binary_expression "iVar6 + iVar5" (identifier "iVar6") (+ "+") (identifier "iVar5"))) (; ";")) (} "}"))))))) (} "}")))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

int function_1(type_1 *conf)

{
  int var_5;
  int *var_3;
  size_t var_8;
  int var_4;
  int var_1;
  int var_7;
  int var_13;
  bool var_9;
  
  var_1 = 0;
  var_13 = 0;
  do {
    var_7 = var_1 + 4;
    var_3 = (int *)var_2(conf->tree,var_13);
    if (var_3 == (int *)0x0) {
      return var_7;
    }
    var_4 = *var_3;
    if (subkeytypes[var_4] == 1) {
      var_4 = valuetypes[var_4];
      var_7 = var_1 + 8;
      var_5 = var_4 + -2;
      var_9 = var_5 == 0;
      if (!var_9) goto LAB_00018015;
LAB_0001805f:
      var_8 = var_6((char *)var_3[2]);
      var_1 = var_7 + 1 + var_8;
    }
    else {
      if (subkeytypes[var_4] == 2) {
        var_8 = var_6((char *)var_3[1]);
        var_7 = var_1 + 5 + var_8;
      }
      var_4 = valuetypes[var_4];
      var_5 = var_4 + -2;
      var_9 = var_4 == 2;
      if (var_9) goto LAB_0001805f;
LAB_00018015:
      var_1 = var_7;
      if (var_9 || var_10(var_4,2) != var_5 < 0) {
        if (var_4 == 1) {
          var_1 = var_7 + 4;
        }
      }
      else if (var_4 == 3) {
        var_1 = var_11((type_2 *)var_3[2],(void *)0x0);
        var_1 = var_7 + var_1;
      }
      else if (var_4 == 4) {
        var_1 = var_12((type_3 *)var_3[2],(void *)0x0);
        var_1 = var_7 + var_1;
      }
    }
    var_13 = var_13 + 1;
  } while( true );
}


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

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

int MASKED(undefined4 *param_1)

{
  int iVar1;
  int *piVar2;
  size_t sVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  bool bVar8;
  
  iVar5 = 0;
  iVar7 = 0;
  do {
    iVar6 = iVar5 + 4;
    piVar2 = (int *)FUN_00063d60(*param_1,iVar7);
    if (piVar2 == (int *)0x0) {
      return iVar6;
    }
    iVar4 = *piVar2;
    if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 1) {
      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);
      iVar6 = iVar5 + 8;
      iVar1 = iVar4 + -2;
      bVar8 = iVar1 == 0;
      if (!bVar8) goto LAB_00018015;
LAB_0001805f:
      sVar3 = strlen((char *)piVar2[2]);
      iVar5 = iVar6 + 1 + sVar3;
    }
    else {
      if (*(int *)(&DAT_000709c0 + iVar4 * 4) == 2) {
        sVar3 = strlen((char *)piVar2[1]);
        iVar6 = iVar5 + 5 + sVar3;
      }
      iVar4 = *(int *)(&DAT_000706e0 + iVar4 * 4);
      iVar1 = iVar4 + -2;
      bVar8 = iVar4 == 2;
      if (bVar8) goto LAB_0001805f;
LAB_00018015:
      iVar5 = iVar6;
      if (bVar8 || SBORROW4(iVar4,2) != iVar1 < 0) {
        if (iVar4 == 1) {
          iVar5 = iVar6 + 4;
        }
      }
      else if (iVar4 == 3) {
        iVar5 = FUN_00065b40(piVar2[2],0);
        iVar5 = iVar6 + iVar5;
      }
      else if (iVar4 == 4) {
        iVar5 = FUN_00066000(piVar2[2],0);
        iVar5 = iVar6 + iVar5;
      }
    }
    iVar7 = iVar7 + 1;
  } while( true );
}

