
void conf_copy_into(Conf *newconf,Conf *oldconf)

{
  int iVar1;
  int *piVar2;
  int *e;
  FontSpec *pFVar3;
  char *pcVar4;
  Filename *pFVar5;
  int index;
  
  conf_clear(newconf);
  index = 0;
  while( true ) {
    piVar2 = (int *)index234(oldconf->tree,index);
    if (piVar2 == (int *)0x0) break;
    e = (int *)safemalloc(1,0x18);
    iVar1 = *piVar2;
    *e = iVar1;
    if (subkeytypes[iVar1] == 1) {
      e[2] = piVar2[2];
    }
    else if (subkeytypes[iVar1] == 2) {
      pcVar4 = dupstr(*(char **)(piVar2 + 2));
      *(char **)(e + 2) = pcVar4;
    }
    iVar1 = valuetypes[*piVar2];
    if (iVar1 == 2) {
      pcVar4 = dupstr(*(char **)(piVar2 + 4));
      *(char **)(e + 4) = pcVar4;
    }
    else if (iVar1 < 3) {
      if (iVar1 == 1) {
        e[4] = piVar2[4];
      }
    }
    else if (iVar1 == 3) {
      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));
      *(Filename **)(e + 4) = pFVar5;
    }
    else if (iVar1 == 4) {
      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));
      *(FontSpec **)(e + 4) = pFVar3;
    }
    add234(newconf->tree,e);
    index = index + 1;
  }
  return;
}



void FUN_0010b1a9(undefined8 *param_1,undefined8 *param_2)

{
  int iVar1;
  int *piVar2;
  int *piVar3;
  undefined8 uVar4;
  int iVar5;
  
  FUN_0010b0dd();
  iVar5 = 0;
  while( true ) {
    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);
    if (piVar2 == (int *)0x0) break;
    piVar3 = (int *)FUN_0010ea3d(1,0x18);
    iVar1 = *piVar2;
    *piVar3 = iVar1;
    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {
      piVar3[2] = piVar2[2];
    }
    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {
      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));
      *(undefined8 *)(piVar3 + 2) = uVar4;
    }
    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);
    if (iVar1 == 2) {
      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));
      *(undefined8 *)(piVar3 + 4) = uVar4;
    }
    else if (iVar1 < 3) {
      if (iVar1 == 1) {
        piVar3[4] = piVar2[4];
      }
    }
    else if (iVar1 == 3) {
      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));
      *(undefined8 *)(piVar3 + 4) = uVar4;
    }
    else if (iVar1 == 4) {
      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));
      *(undefined8 *)(piVar3 + 4) = uVar4;
    }
    FUN_0014fa81(*param_1,piVar3);
    iVar5 = iVar5 + 1;
  }
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV R13,RDI
MOV R14,RSI
CALL 0x0010b0dd
MOV R12D,0x0
LEA R15,[0x15da80]
JMP 0x0010b203
MOV EAX,dword ptr [RBX + 0x8]
MOV dword ptr [RBP + 0x8],EAX
JMP 0x0010b23d
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x0010eb33
MOV qword ptr [RBP + 0x8],RAX
JMP 0x0010b23d
CMP EAX,0x1
JNZ 0x0010b1f3
MOV EAX,dword ptr [RBX + 0x10]
MOV dword ptr [RBP + 0x10],EAX
MOV RSI,RBP
MOV RDI,qword ptr [R13]
CALL 0x0014fa81
ADD R12D,0x1
MOV ESI,R12D
MOV RDI,qword ptr [R14]
CALL 0x0014fac6
MOV RBX,RAX
TEST RAX,RAX
JZ 0x0010b28e
MOV ESI,0x18
MOV EDI,0x1
CALL 0x0010ea3d
MOV RBP,RAX
MOV EAX,dword ptr [RBX]
MOV dword ptr [RBP],EAX
CDQE
MOV EAX,dword ptr [R15 + RAX*0x4]
CMP EAX,0x1
JZ 0x0010b1d1
CMP EAX,0x2
JZ 0x0010b1d9
MOVSXD RAX,dword ptr [RBX]
LEA RDX,[0x15d7a0]
MOV EAX,dword ptr [RDX + RAX*0x4]
CMP EAX,0x2
JZ 0x0010b26a
JLE 0x0010b1e8
CMP EAX,0x3
JZ 0x0010b27c
CMP EAX,0x4
JNZ 0x0010b1f3
MOV RDI,qword ptr [RBX + 0x10]
CALL 0x001517ed
MOV qword ptr [RBP + 0x10],RAX
JMP 0x0010b1f3
MOV RDI,qword ptr [RBX + 0x10]
CALL 0x0010eb33
MOV qword ptr [RBP + 0x10],RAX
JMP 0x0010b1f3
MOV RDI,qword ptr [RBX + 0x10]
CALL 0x0015136a
MOV qword ptr [RBP + 0x10],RAX
JMP 0x0010b1f3
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "void FUN_0010b1a9(undefined8 *param_1,undefined8 *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  int iVar5;\n  \n  FUN_0010b0dd();\n  iVar5 = 0;\n  while( true ) {\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010b1a9(undefined8 *param_1,undefined8 *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  int iVar5;\n  \n  FUN_0010b0dd();\n  iVar5 = 0;\n  while( true ) {\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010b1a9(undefined8 *param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  int iVar5;\n  \n  FUN_0010b0dd();\n  iVar5 = 0;\n  while( true ) {\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "FUN_0010b0dd();" (call_expression "FUN_0010b0dd()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }" { (expression_statement "piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);" (assignment_expression "piVar2 = (int *)FUN_0014fac6(*param_2,iVar5)" identifier = (cast_expression "(int *)FUN_0014fac6(*param_2,iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014fac6(*param_2,iVar5)" identifier (argument_list "(*param_2,iVar5)" ( (pointer_expression "*param_2" * identifier) , identifier ))))) ;) (if_statement "if (piVar2 == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "piVar3 = (int *)FUN_0010ea3d(1,0x18);" (assignment_expression "piVar3 = (int *)FUN_0010ea3d(1,0x18)" identifier = (cast_expression "(int *)FUN_0010ea3d(1,0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010ea3d(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (if_statement "if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" if (parenthesized_expression "(*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1)" ( (binary_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1" (pointer_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4)" * (cast_expression "(int *)(&DAT_0015da80 + (long)iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0015da80 + (long)iVar1 * 4)" ( (binary_expression "&DAT_0015da80 + (long)iVar1 * 4" (pointer_expression "&DAT_0015da80" & identifier) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) == number_literal) )) (compound_statement "{\n      piVar3[2] = piVar2[2];\n    }" { (expression_statement "piVar3[2] = piVar2[2];" (assignment_expression "piVar3[2] = piVar2[2]" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) }) (else_clause "else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" else (if_statement "if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" if (parenthesized_expression "(*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2)" ( (binary_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2" (pointer_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4)" * (cast_expression "(int *)(&DAT_0015da80 + (long)iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0015da80 + (long)iVar1 * 4)" ( (binary_expression "&DAT_0015da80 + (long)iVar1 * 4" (pointer_expression "&DAT_0015da80" & identifier) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) == number_literal) )) (compound_statement "{\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" { (expression_statement "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));" (assignment_expression "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2))" identifier = (call_expression "FUN_0010eb33(*(undefined8 *)(piVar2 + 2))" identifier (argument_list "(*(undefined8 *)(piVar2 + 2))" ( (pointer_expression "*(undefined8 *)(piVar2 + 2)" * (cast_expression "(undefined8 *)(piVar2 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined8 *)(piVar3 + 2) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 2) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 2)" * (cast_expression "(undefined8 *)(piVar3 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) )))) = identifier) ;) })))) (expression_statement "iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);" (assignment_expression "iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4)" identifier = (pointer_expression "*(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4)" * (cast_expression "(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0015d7a0 + (long)*piVar2 * 4)" ( (binary_expression "&DAT_0015d7a0 + (long)*piVar2 * 4" (pointer_expression "&DAT_0015d7a0" & identifier) + (binary_expression "(long)*piVar2 * 4" (cast_expression "(long)*piVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*piVar2" * identifier)) * number_literal)) ))))) ;) (if_statement "if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" { (expression_statement "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));" (assignment_expression "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4))" identifier = (call_expression "FUN_0010eb33(*(undefined8 *)(piVar2 + 4))" identifier (argument_list "(*(undefined8 *)(piVar2 + 4))" ( (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined8 *)(piVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 4)" * (cast_expression "(undefined8 *)(piVar3 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 4)" ( (binary_expression "piVar3 + 4" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" else (if_statement "if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" if (parenthesized_expression "(iVar1 < 3)" ( (binary_expression "iVar1 < 3" identifier < number_literal) )) (compound_statement "{\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }" { (if_statement "if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n        piVar3[4] = piVar2[4];\n      }" { (expression_statement "piVar3[4] = piVar2[4];" (assignment_expression "piVar3[4] = piVar2[4]" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = (subscript_expression "piVar2[4]" identifier [ number_literal ])) ;) })) }) (else_clause "else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" else (if_statement "if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" { (expression_statement "uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));" (assignment_expression "uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4))" identifier = (call_expression "FUN_0015136a(*(undefined8 *)(piVar2 + 4))" identifier (argument_list "(*(undefined8 *)(piVar2 + 4))" ( (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined8 *)(piVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 4)" * (cast_expression "(undefined8 *)(piVar3 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 4)" ( (binary_expression "piVar3 + 4" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" else (if_statement "if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" if (parenthesized_expression "(iVar1 == 4)" ( (binary_expression "iVar1 == 4" identifier == number_literal) )) (compound_statement "{\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" { (expression_statement "uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));" (assignment_expression "uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4))" identifier = (call_expression "FUN_001517ed(*(undefined8 *)(piVar2 + 4))" identifier (argument_list "(*(undefined8 *)(piVar2 + 4))" ( (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined8 *)(piVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 4)" * (cast_expression "(undefined8 *)(piVar3 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 4)" ( (binary_expression "piVar3 + 4" identifier + number_literal) )))) = identifier) ;) })))))))) (expression_statement "FUN_0014fa81(*param_1,piVar3);" (call_expression "FUN_0014fa81(*param_1,piVar3)" identifier (argument_list "(*param_1,piVar3)" ( (pointer_expression "*param_1" * identifier) , identifier ))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void conf_copy_into(Conf *newconf,Conf *oldconf)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *e;\n  FontSpec *pFVar3;\n  char *pcVar4;\n  Filename *pFVar5;\n  int index;\n  \n  conf_clear(newconf);\n  index = 0;\n  while( true ) {\n    piVar2 = (int *)index234(oldconf->tree,index);\n    if (piVar2 == (int *)0x0) break;\n    e = (int *)safemalloc(1,0x18);\n    iVar1 = *piVar2;\n    *e = iVar1;\n    if (subkeytypes[iVar1] == 1) {\n      e[2] = piVar2[2];\n    }\n    else if (subkeytypes[iVar1] == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 2));\n      *(char **)(e + 2) = pcVar4;\n    }\n    iVar1 = valuetypes[*piVar2];\n    if (iVar1 == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 4));\n      *(char **)(e + 4) = pcVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        e[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));\n      *(Filename **)(e + 4) = pFVar5;\n    }\n    else if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }\n    add234(newconf->tree,e);\n    index = index + 1;\n  }\n  return;\n}\n\n" (function_definition "void conf_copy_into(Conf *newconf,Conf *oldconf)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *e;\n  FontSpec *pFVar3;\n  char *pcVar4;\n  Filename *pFVar5;\n  int index;\n  \n  conf_clear(newconf);\n  index = 0;\n  while( true ) {\n    piVar2 = (int *)index234(oldconf->tree,index);\n    if (piVar2 == (int *)0x0) break;\n    e = (int *)safemalloc(1,0x18);\n    iVar1 = *piVar2;\n    *e = iVar1;\n    if (subkeytypes[iVar1] == 1) {\n      e[2] = piVar2[2];\n    }\n    else if (subkeytypes[iVar1] == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 2));\n      *(char **)(e + 2) = pcVar4;\n    }\n    iVar1 = valuetypes[*piVar2];\n    if (iVar1 == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 4));\n      *(char **)(e + 4) = pcVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        e[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));\n      *(Filename **)(e + 4) = pFVar5;\n    }\n    else if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }\n    add234(newconf->tree,e);\n    index = index + 1;\n  }\n  return;\n}" primitive_type (function_declarator "conf_copy_into(Conf *newconf,Conf *oldconf)" identifier (parameter_list "(Conf *newconf,Conf *oldconf)" ( (parameter_declaration "Conf *newconf" type_identifier (pointer_declarator "*newconf" * identifier)) , (parameter_declaration "Conf *oldconf" type_identifier (pointer_declarator "*oldconf" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int *e;\n  FontSpec *pFVar3;\n  char *pcVar4;\n  Filename *pFVar5;\n  int index;\n  \n  conf_clear(newconf);\n  index = 0;\n  while( true ) {\n    piVar2 = (int *)index234(oldconf->tree,index);\n    if (piVar2 == (int *)0x0) break;\n    e = (int *)safemalloc(1,0x18);\n    iVar1 = *piVar2;\n    *e = iVar1;\n    if (subkeytypes[iVar1] == 1) {\n      e[2] = piVar2[2];\n    }\n    else if (subkeytypes[iVar1] == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 2));\n      *(char **)(e + 2) = pcVar4;\n    }\n    iVar1 = valuetypes[*piVar2];\n    if (iVar1 == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 4));\n      *(char **)(e + 4) = pcVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        e[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));\n      *(Filename **)(e + 4) = pFVar5;\n    }\n    else if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }\n    add234(newconf->tree,e);\n    index = index + 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *e;" primitive_type (pointer_declarator "*e" * identifier) ;) (declaration "FontSpec *pFVar3;" type_identifier (pointer_declarator "*pFVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "Filename *pFVar5;" type_identifier (pointer_declarator "*pFVar5" * identifier) ;) (declaration "int index;" primitive_type identifier ;) (expression_statement "conf_clear(newconf);" (call_expression "conf_clear(newconf)" identifier (argument_list "(newconf)" ( identifier ))) ;) (expression_statement "index = 0;" (assignment_expression "index = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    piVar2 = (int *)index234(oldconf->tree,index);\n    if (piVar2 == (int *)0x0) break;\n    e = (int *)safemalloc(1,0x18);\n    iVar1 = *piVar2;\n    *e = iVar1;\n    if (subkeytypes[iVar1] == 1) {\n      e[2] = piVar2[2];\n    }\n    else if (subkeytypes[iVar1] == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 2));\n      *(char **)(e + 2) = pcVar4;\n    }\n    iVar1 = valuetypes[*piVar2];\n    if (iVar1 == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 4));\n      *(char **)(e + 4) = pcVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        e[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));\n      *(Filename **)(e + 4) = pFVar5;\n    }\n    else if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }\n    add234(newconf->tree,e);\n    index = index + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    piVar2 = (int *)index234(oldconf->tree,index);\n    if (piVar2 == (int *)0x0) break;\n    e = (int *)safemalloc(1,0x18);\n    iVar1 = *piVar2;\n    *e = iVar1;\n    if (subkeytypes[iVar1] == 1) {\n      e[2] = piVar2[2];\n    }\n    else if (subkeytypes[iVar1] == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 2));\n      *(char **)(e + 2) = pcVar4;\n    }\n    iVar1 = valuetypes[*piVar2];\n    if (iVar1 == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 4));\n      *(char **)(e + 4) = pcVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        e[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));\n      *(Filename **)(e + 4) = pFVar5;\n    }\n    else if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }\n    add234(newconf->tree,e);\n    index = index + 1;\n  }" { (expression_statement "piVar2 = (int *)index234(oldconf->tree,index);" (assignment_expression "piVar2 = (int *)index234(oldconf->tree,index)" identifier = (cast_expression "(int *)index234(oldconf->tree,index)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "index234(oldconf->tree,index)" identifier (argument_list "(oldconf->tree,index)" ( (field_expression "oldconf->tree" identifier -> field_identifier) , identifier ))))) ;) (if_statement "if (piVar2 == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "e = (int *)safemalloc(1,0x18);" (assignment_expression "e = (int *)safemalloc(1,0x18)" identifier = (cast_expression "(int *)safemalloc(1,0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "*e = iVar1;" (assignment_expression "*e = iVar1" (pointer_expression "*e" * identifier) = identifier) ;) (if_statement "if (subkeytypes[iVar1] == 1) {\n      e[2] = piVar2[2];\n    }\n    else if (subkeytypes[iVar1] == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 2));\n      *(char **)(e + 2) = pcVar4;\n    }" if (parenthesized_expression "(subkeytypes[iVar1] == 1)" ( (binary_expression "subkeytypes[iVar1] == 1" (subscript_expression "subkeytypes[iVar1]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n      e[2] = piVar2[2];\n    }" { (expression_statement "e[2] = piVar2[2];" (assignment_expression "e[2] = piVar2[2]" (subscript_expression "e[2]" identifier [ number_literal ]) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) }) (else_clause "else if (subkeytypes[iVar1] == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 2));\n      *(char **)(e + 2) = pcVar4;\n    }" else (if_statement "if (subkeytypes[iVar1] == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 2));\n      *(char **)(e + 2) = pcVar4;\n    }" if (parenthesized_expression "(subkeytypes[iVar1] == 2)" ( (binary_expression "subkeytypes[iVar1] == 2" (subscript_expression "subkeytypes[iVar1]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n      pcVar4 = dupstr(*(char **)(piVar2 + 2));\n      *(char **)(e + 2) = pcVar4;\n    }" { (expression_statement "pcVar4 = dupstr(*(char **)(piVar2 + 2));" (assignment_expression "pcVar4 = dupstr(*(char **)(piVar2 + 2))" identifier = (call_expression "dupstr(*(char **)(piVar2 + 2))" identifier (argument_list "(*(char **)(piVar2 + 2))" ( (pointer_expression "*(char **)(piVar2 + 2)" * (cast_expression "(char **)(piVar2 + 2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) )))) ;) (expression_statement "*(char **)(e + 2) = pcVar4;" (assignment_expression "*(char **)(e + 2) = pcVar4" (pointer_expression "*(char **)(e + 2)" * (cast_expression "(char **)(e + 2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(e + 2)" ( (binary_expression "e + 2" identifier + number_literal) )))) = identifier) ;) })))) (expression_statement "iVar1 = valuetypes[*piVar2];" (assignment_expression "iVar1 = valuetypes[*piVar2]" identifier = (subscript_expression "valuetypes[*piVar2]" identifier [ (pointer_expression "*piVar2" * identifier) ])) ;) (if_statement "if (iVar1 == 2) {\n      pcVar4 = dupstr(*(char **)(piVar2 + 4));\n      *(char **)(e + 4) = pcVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        e[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));\n      *(Filename **)(e + 4) = pFVar5;\n    }\n    else if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      pcVar4 = dupstr(*(char **)(piVar2 + 4));\n      *(char **)(e + 4) = pcVar4;\n    }" { (expression_statement "pcVar4 = dupstr(*(char **)(piVar2 + 4));" (assignment_expression "pcVar4 = dupstr(*(char **)(piVar2 + 4))" identifier = (call_expression "dupstr(*(char **)(piVar2 + 4))" identifier (argument_list "(*(char **)(piVar2 + 4))" ( (pointer_expression "*(char **)(piVar2 + 4)" * (cast_expression "(char **)(piVar2 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "*(char **)(e + 4) = pcVar4;" (assignment_expression "*(char **)(e + 4) = pcVar4" (pointer_expression "*(char **)(e + 4)" * (cast_expression "(char **)(e + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(e + 4)" ( (binary_expression "e + 4" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        e[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));\n      *(Filename **)(e + 4) = pFVar5;\n    }\n    else if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }" else (if_statement "if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        e[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));\n      *(Filename **)(e + 4) = pFVar5;\n    }\n    else if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }" if (parenthesized_expression "(iVar1 < 3)" ( (binary_expression "iVar1 < 3" identifier < number_literal) )) (compound_statement "{\n      if (iVar1 == 1) {\n        e[4] = piVar2[4];\n      }\n    }" { (if_statement "if (iVar1 == 1) {\n        e[4] = piVar2[4];\n      }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n        e[4] = piVar2[4];\n      }" { (expression_statement "e[4] = piVar2[4];" (assignment_expression "e[4] = piVar2[4]" (subscript_expression "e[4]" identifier [ number_literal ]) = (subscript_expression "piVar2[4]" identifier [ number_literal ])) ;) })) }) (else_clause "else if (iVar1 == 3) {\n      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));\n      *(Filename **)(e + 4) = pFVar5;\n    }\n    else if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }" else (if_statement "if (iVar1 == 3) {\n      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));\n      *(Filename **)(e + 4) = pFVar5;\n    }\n    else if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n      pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));\n      *(Filename **)(e + 4) = pFVar5;\n    }" { (expression_statement "pFVar5 = filename_copy(*(Filename **)(piVar2 + 4));" (assignment_expression "pFVar5 = filename_copy(*(Filename **)(piVar2 + 4))" identifier = (call_expression "filename_copy(*(Filename **)(piVar2 + 4))" identifier (argument_list "(*(Filename **)(piVar2 + 4))" ( (pointer_expression "*(Filename **)(piVar2 + 4)" * (cast_expression "(Filename **)(piVar2 + 4)" ( (type_descriptor "Filename **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "*(Filename **)(e + 4) = pFVar5;" (assignment_expression "*(Filename **)(e + 4) = pFVar5" (pointer_expression "*(Filename **)(e + 4)" * (cast_expression "(Filename **)(e + 4)" ( (type_descriptor "Filename **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(e + 4)" ( (binary_expression "e + 4" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }" else (if_statement "if (iVar1 == 4) {\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }" if (parenthesized_expression "(iVar1 == 4)" ( (binary_expression "iVar1 == 4" identifier == number_literal) )) (compound_statement "{\n      pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));\n      *(FontSpec **)(e + 4) = pFVar3;\n    }" { (expression_statement "pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4));" (assignment_expression "pFVar3 = fontspec_copy(*(FontSpec **)(piVar2 + 4))" identifier = (call_expression "fontspec_copy(*(FontSpec **)(piVar2 + 4))" identifier (argument_list "(*(FontSpec **)(piVar2 + 4))" ( (pointer_expression "*(FontSpec **)(piVar2 + 4)" * (cast_expression "(FontSpec **)(piVar2 + 4)" ( (type_descriptor "FontSpec **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "*(FontSpec **)(e + 4) = pFVar3;" (assignment_expression "*(FontSpec **)(e + 4) = pFVar3" (pointer_expression "*(FontSpec **)(e + 4)" * (cast_expression "(FontSpec **)(e + 4)" ( (type_descriptor "FontSpec **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(e + 4)" ( (binary_expression "e + 4" identifier + number_literal) )))) = identifier) ;) })))))))) (expression_statement "add234(newconf->tree,e);" (call_expression "add234(newconf->tree,e)" identifier (argument_list "(newconf->tree,e)" ( (field_expression "newconf->tree" identifier -> field_identifier) , identifier ))) ;) (expression_statement "index = index + 1;" (assignment_expression "index = index + 1" identifier = (binary_expression "index + 1" identifier + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0010b1a9(undefined8 *param_1,undefined8 *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  int iVar5;\n  \n  FUN_0010b0dd();\n  iVar5 = 0;\n  while( true ) {\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010b1a9(undefined8 *param_1,undefined8 *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  int iVar5;\n  \n  FUN_0010b0dd();\n  iVar5 = 0;\n  while( true ) {\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010b1a9(undefined8 *param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  int iVar5;\n  \n  FUN_0010b0dd();\n  iVar5 = 0;\n  while( true ) {\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "FUN_0010b0dd();" (call_expression "FUN_0010b0dd()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }" { (expression_statement "piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);" (assignment_expression "piVar2 = (int *)FUN_0014fac6(*param_2,iVar5)" identifier = (cast_expression "(int *)FUN_0014fac6(*param_2,iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014fac6(*param_2,iVar5)" identifier (argument_list "(*param_2,iVar5)" ( (pointer_expression "*param_2" * identifier) , identifier ))))) ;) (if_statement "if (piVar2 == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "piVar3 = (int *)FUN_0010ea3d(1,0x18);" (assignment_expression "piVar3 = (int *)FUN_0010ea3d(1,0x18)" identifier = (cast_expression "(int *)FUN_0010ea3d(1,0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010ea3d(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (if_statement "if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" if (parenthesized_expression "(*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1)" ( (binary_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1" (pointer_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4)" * (cast_expression "(int *)(&DAT_0015da80 + (long)iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0015da80 + (long)iVar1 * 4)" ( (binary_expression "&DAT_0015da80 + (long)iVar1 * 4" (pointer_expression "&DAT_0015da80" & identifier) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) == number_literal) )) (compound_statement "{\n      piVar3[2] = piVar2[2];\n    }" { (expression_statement "piVar3[2] = piVar2[2];" (assignment_expression "piVar3[2] = piVar2[2]" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) }) (else_clause "else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" else (if_statement "if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" if (parenthesized_expression "(*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2)" ( (binary_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2" (pointer_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4)" * (cast_expression "(int *)(&DAT_0015da80 + (long)iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0015da80 + (long)iVar1 * 4)" ( (binary_expression "&DAT_0015da80 + (long)iVar1 * 4" (pointer_expression "&DAT_0015da80" & identifier) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) == number_literal) )) (compound_statement "{\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" { (expression_statement "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));" (assignment_expression "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2))" identifier = (call_expression "FUN_0010eb33(*(undefined8 *)(piVar2 + 2))" identifier (argument_list "(*(undefined8 *)(piVar2 + 2))" ( (pointer_expression "*(undefined8 *)(piVar2 + 2)" * (cast_expression "(undefined8 *)(piVar2 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined8 *)(piVar3 + 2) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 2) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 2)" * (cast_expression "(undefined8 *)(piVar3 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) )))) = identifier) ;) })))) (expression_statement "iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);" (assignment_expression "iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4)" identifier = (pointer_expression "*(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4)" * (cast_expression "(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0015d7a0 + (long)*piVar2 * 4)" ( (binary_expression "&DAT_0015d7a0 + (long)*piVar2 * 4" (pointer_expression "&DAT_0015d7a0" & identifier) + (binary_expression "(long)*piVar2 * 4" (cast_expression "(long)*piVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*piVar2" * identifier)) * number_literal)) ))))) ;) (if_statement "if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" { (expression_statement "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));" (assignment_expression "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4))" identifier = (call_expression "FUN_0010eb33(*(undefined8 *)(piVar2 + 4))" identifier (argument_list "(*(undefined8 *)(piVar2 + 4))" ( (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined8 *)(piVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 4)" * (cast_expression "(undefined8 *)(piVar3 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 4)" ( (binary_expression "piVar3 + 4" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" else (if_statement "if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" if (parenthesized_expression "(iVar1 < 3)" ( (binary_expression "iVar1 < 3" identifier < number_literal) )) (compound_statement "{\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }" { (if_statement "if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n        piVar3[4] = piVar2[4];\n      }" { (expression_statement "piVar3[4] = piVar2[4];" (assignment_expression "piVar3[4] = piVar2[4]" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = (subscript_expression "piVar2[4]" identifier [ number_literal ])) ;) })) }) (else_clause "else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" else (if_statement "if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" { (expression_statement "uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));" (assignment_expression "uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4))" identifier = (call_expression "FUN_0015136a(*(undefined8 *)(piVar2 + 4))" identifier (argument_list "(*(undefined8 *)(piVar2 + 4))" ( (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined8 *)(piVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 4)" * (cast_expression "(undefined8 *)(piVar3 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 4)" ( (binary_expression "piVar3 + 4" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" else (if_statement "if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" if (parenthesized_expression "(iVar1 == 4)" ( (binary_expression "iVar1 == 4" identifier == number_literal) )) (compound_statement "{\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" { (expression_statement "uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));" (assignment_expression "uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4))" identifier = (call_expression "FUN_001517ed(*(undefined8 *)(piVar2 + 4))" identifier (argument_list "(*(undefined8 *)(piVar2 + 4))" ( (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined8 *)(piVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 4)" * (cast_expression "(undefined8 *)(piVar3 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 4)" ( (binary_expression "piVar3 + 4" identifier + number_literal) )))) = identifier) ;) })))))))) (expression_statement "FUN_0014fa81(*param_1,piVar3);" (call_expression "FUN_0014fa81(*param_1,piVar3)" identifier (argument_list "(*param_1,piVar3)" ( (pointer_expression "*param_1" * identifier) , identifier ))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (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 (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_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 (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * IDENT)) * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })))))))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0010b1a9(undefined8 *param_1,undefined8 *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  int iVar5;\n  \n  FUN_0010b0dd();\n  iVar5 = 0;\n  while( true ) {\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0010b1a9(undefined8 *param_1,undefined8 *param_2)" (identifier "FUN_0010b1a9") (parameter_list "(undefined8 *param_1,undefined8 *param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  int iVar5;\n  \n  FUN_0010b0dd();\n  iVar5 = 0;\n  while( true ) {\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "FUN_0010b0dd();" (call_expression "FUN_0010b0dd()" (identifier "FUN_0010b0dd") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) break;\n    piVar3 = (int *)FUN_0010ea3d(1,0x18);\n    iVar1 = *piVar2;\n    *piVar3 = iVar1;\n    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }\n    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);\n    if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    FUN_0014fa81(*param_1,piVar3);\n    iVar5 = iVar5 + 1;\n  }" ({ "{") (expression_statement "piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);" (assignment_expression "piVar2 = (int *)FUN_0014fac6(*param_2,iVar5)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_0014fac6(*param_2,iVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0014fac6(*param_2,iVar5)" (identifier "FUN_0014fac6") (argument_list "(*param_2,iVar5)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "iVar5") () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) break;" (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"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "piVar3 = (int *)FUN_0010ea3d(1,0x18);" (assignment_expression "piVar3 = (int *)FUN_0010ea3d(1,0x18)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_0010ea3d(1,0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0010ea3d(1,0x18)" (identifier "FUN_0010ea3d") (argument_list "(1,0x18)" (( "(") (number_literal "1") (, ",") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {\n      piVar3[2] = piVar2[2];\n    }\n    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" (if "if") (parenthesized_expression "(*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1)" (( "(") (binary_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1" (pointer_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4)" (* "*") (cast_expression "(int *)(&DAT_0015da80 + (long)iVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0015da80 + (long)iVar1 * 4)" (( "(") (binary_expression "&DAT_0015da80 + (long)iVar1 * 4" (pointer_expression "&DAT_0015da80" (& "&") (identifier "DAT_0015da80")) (+ "+") (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1")) (* "*") (number_literal "4"))) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      piVar3[2] = piVar2[2];\n    }" ({ "{") (expression_statement "piVar3[2] = piVar2[2];" (assignment_expression "piVar3[2] = piVar2[2]" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")) (else_clause "else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" (else "else") (if_statement "if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" (if "if") (parenthesized_expression "(*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2)" (( "(") (binary_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2" (pointer_expression "*(int *)(&DAT_0015da80 + (long)iVar1 * 4)" (* "*") (cast_expression "(int *)(&DAT_0015da80 + (long)iVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0015da80 + (long)iVar1 * 4)" (( "(") (binary_expression "&DAT_0015da80 + (long)iVar1 * 4" (pointer_expression "&DAT_0015da80" (& "&") (identifier "DAT_0015da80")) (+ "+") (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1")) (* "*") (number_literal "4"))) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n    }" ({ "{") (expression_statement "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));" (assignment_expression "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2))" (identifier "uVar4") (= "=") (call_expression "FUN_0010eb33(*(undefined8 *)(piVar2 + 2))" (identifier "FUN_0010eb33") (argument_list "(*(undefined8 *)(piVar2 + 2))" (( "(") (pointer_expression "*(undefined8 *)(piVar2 + 2)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 2)" (( "(") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2")) () ")")))) () ")")))) (; ";")) (expression_statement "*(undefined8 *)(piVar3 + 2) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 2) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 2)" (* "*") (cast_expression "(undefined8 *)(piVar3 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3 + 2)" (( "(") (binary_expression "piVar3 + 2" (identifier "piVar3") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))))) (expression_statement "iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);" (assignment_expression "iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4)" (* "*") (cast_expression "(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0015d7a0 + (long)*piVar2 * 4)" (( "(") (binary_expression "&DAT_0015d7a0 + (long)*piVar2 * 4" (pointer_expression "&DAT_0015d7a0" (& "&") (identifier "DAT_0015d7a0")) (+ "+") (binary_expression "(long)*piVar2 * 4" (cast_expression "(long)*piVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (iVar1 == 2) {\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" (if "if") (parenthesized_expression "(iVar1 == 2)" (( "(") (binary_expression "iVar1 == 2" (identifier "iVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" ({ "{") (expression_statement "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));" (assignment_expression "uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4))" (identifier "uVar4") (= "=") (call_expression "FUN_0010eb33(*(undefined8 *)(piVar2 + 4))" (identifier "FUN_0010eb33") (argument_list "(*(undefined8 *)(piVar2 + 4))" (( "(") (pointer_expression "*(undefined8 *)(piVar2 + 4)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 4)" (( "(") (binary_expression "piVar2 + 4" (identifier "piVar2") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "*(undefined8 *)(piVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 4)" (* "*") (cast_expression "(undefined8 *)(piVar3 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3 + 4)" (( "(") (binary_expression "piVar3 + 4" (identifier "piVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}")) (else_clause "else if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" (else "else") (if_statement "if (iVar1 < 3) {\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }\n    else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" (if "if") (parenthesized_expression "(iVar1 < 3)" (( "(") (binary_expression "iVar1 < 3" (identifier "iVar1") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n      if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }\n    }" ({ "{") (if_statement "if (iVar1 == 1) {\n        piVar3[4] = piVar2[4];\n      }" (if "if") (parenthesized_expression "(iVar1 == 1)" (( "(") (binary_expression "iVar1 == 1" (identifier "iVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        piVar3[4] = piVar2[4];\n      }" ({ "{") (expression_statement "piVar3[4] = piVar2[4];" (assignment_expression "piVar3[4] = piVar2[4]" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (subscript_expression "piVar2[4]" (identifier "piVar2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" (else "else") (if_statement "if (iVar1 == 3) {\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }\n    else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" (if "if") (parenthesized_expression "(iVar1 == 3)" (( "(") (binary_expression "iVar1 == 3" (identifier "iVar1") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" ({ "{") (expression_statement "uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));" (assignment_expression "uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4))" (identifier "uVar4") (= "=") (call_expression "FUN_0015136a(*(undefined8 *)(piVar2 + 4))" (identifier "FUN_0015136a") (argument_list "(*(undefined8 *)(piVar2 + 4))" (( "(") (pointer_expression "*(undefined8 *)(piVar2 + 4)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 4)" (( "(") (binary_expression "piVar2 + 4" (identifier "piVar2") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "*(undefined8 *)(piVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 4)" (* "*") (cast_expression "(undefined8 *)(piVar3 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3 + 4)" (( "(") (binary_expression "piVar3 + 4" (identifier "piVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}")) (else_clause "else if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" (else "else") (if_statement "if (iVar1 == 4) {\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" (if "if") (parenthesized_expression "(iVar1 == 4)" (( "(") (binary_expression "iVar1 == 4" (identifier "iVar1") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));\n      *(undefined8 *)(piVar3 + 4) = uVar4;\n    }" ({ "{") (expression_statement "uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));" (assignment_expression "uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4))" (identifier "uVar4") (= "=") (call_expression "FUN_001517ed(*(undefined8 *)(piVar2 + 4))" (identifier "FUN_001517ed") (argument_list "(*(undefined8 *)(piVar2 + 4))" (( "(") (pointer_expression "*(undefined8 *)(piVar2 + 4)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 4)" (( "(") (binary_expression "piVar2 + 4" (identifier "piVar2") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "*(undefined8 *)(piVar3 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 4)" (* "*") (cast_expression "(undefined8 *)(piVar3 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3 + 4)" (( "(") (binary_expression "piVar3 + 4" (identifier "piVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))))))))) (expression_statement "FUN_0014fa81(*param_1,piVar3);" (call_expression "FUN_0014fa81(*param_1,piVar3)" (identifier "FUN_0014fa81") (argument_list "(*param_1,piVar3)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "piVar3") () ")"))) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *newconf,type_1 *oldconf)

{
  int var_7;
  int *var_3;
  int *var_6;
  type_2 *pFVar3;
  char *pcVar4;
  type_3 *pFVar5;
  int var_11;
  
  var_1(newconf);
  var_11 = 0;
  while( true ) {
    var_3 = (int *)var_2(oldconf->tree,var_11);
    if (var_3 == (int *)0x0) break;
    var_6 = (int *)var_4(1,0x18);
    var_7 = *var_3;
    *var_6 = var_7;
    if (subkeytypes[var_7] == 1) {
      var_6[2] = var_3[2];
    }
    else if (subkeytypes[var_7] == 2) {
      pcVar4 = var_5(*(char **)(var_3 + 2));
      *(char **)(var_6 + 2) = pcVar4;
    }
    var_7 = valuetypes[*var_3];
    if (var_7 == 2) {
      pcVar4 = var_5(*(char **)(var_3 + 4));
      *(char **)(var_6 + 4) = pcVar4;
    }
    else if (var_7 < 3) {
      if (var_7 == 1) {
        var_6[4] = var_3[4];
      }
    }
    else if (var_7 == 3) {
      pFVar5 = var_8(*(type_3 **)(var_3 + 4));
      *(type_3 **)(var_6 + 4) = pFVar5;
    }
    else if (var_7 == 4) {
      pFVar3 = var_9(*(type_2 **)(var_3 + 4));
      *(type_2 **)(var_6 + 4) = pFVar3;
    }
    var_10(newconf->tree,var_6);
    var_11 = var_11 + 1;
  }
  return;
}


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

void MASKED(undefined8 *param_1,undefined8 *param_2)

{
  int iVar1;
  int *piVar2;
  int *piVar3;
  undefined8 uVar4;
  int iVar5;
  
  FUN_0010b0dd();
  iVar5 = 0;
  while( true ) {
    piVar2 = (int *)FUN_0014fac6(*param_2,iVar5);
    if (piVar2 == (int *)0x0) break;
    piVar3 = (int *)FUN_0010ea3d(1,0x18);
    iVar1 = *piVar2;
    *piVar3 = iVar1;
    if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 1) {
      piVar3[2] = piVar2[2];
    }
    else if (*(int *)(&DAT_0015da80 + (long)iVar1 * 4) == 2) {
      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 2));
      *(undefined8 *)(piVar3 + 2) = uVar4;
    }
    iVar1 = *(int *)(&DAT_0015d7a0 + (long)*piVar2 * 4);
    if (iVar1 == 2) {
      uVar4 = FUN_0010eb33(*(undefined8 *)(piVar2 + 4));
      *(undefined8 *)(piVar3 + 4) = uVar4;
    }
    else if (iVar1 < 3) {
      if (iVar1 == 1) {
        piVar3[4] = piVar2[4];
      }
    }
    else if (iVar1 == 3) {
      uVar4 = FUN_0015136a(*(undefined8 *)(piVar2 + 4));
      *(undefined8 *)(piVar3 + 4) = uVar4;
    }
    else if (iVar1 == 4) {
      uVar4 = FUN_001517ed(*(undefined8 *)(piVar2 + 4));
      *(undefined8 *)(piVar3 + 4) = uVar4;
    }
    FUN_0014fa81(*param_1,piVar3);
    iVar5 = iVar5 + 1;
  }
  return;
}

