
void conf_copy_into(Conf *newconf,Conf *oldconf)

{
  int iVar1;
  
  conf_clear(newconf);
  iVar1 = (*(code *)PTR_index234_0006a160)(oldconf->tree,0);
  if (iVar1 != 0) {
                    /* WARNING: Subroutine does not return */
    safemalloc(1,0xc);
  }
  return;
}



void conf_copy_into(undefined4 *param_1,undefined4 *param_2)

{
  undefined *puVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  int iVar5;
  code *pcVar6;
  
  iVar5 = 0;
  FUN_00016d88();
  puVar1 = PTR_DAT_0006a068;
  do {
    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);
    if (piVar2 == (int *)0x0) {
      return;
    }
    piVar3 = (int *)safemalloc(1,0xc);
    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);
    *piVar3 = *piVar2;
    if (iVar4 == 1) {
      piVar3[1] = piVar2[1];
      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);
      if (iVar4 != 2) goto LAB_00017088;
LAB_000170ec:
      iVar4 = dupstr(piVar2[2]);
      piVar3[2] = iVar4;
      pcVar6 = (code *)PTR_add234_0006a14c;
    }
    else {
      if (iVar4 == 2) {
        iVar4 = dupstr(piVar2[1]);
        piVar3[1] = iVar4;
      }
      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);
      if (iVar4 == 2) goto LAB_000170ec;
LAB_00017088:
      pcVar6 = (code *)PTR_add234_0006a14c;
      if (iVar4 < 3) {
        if (iVar4 == 1) {
          piVar3[2] = piVar2[2];
        }
      }
      else if (iVar4 == 3) {
        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);
        piVar3[2] = iVar4;
        pcVar6 = (code *)PTR_add234_0006a14c;
      }
      else if (iVar4 == 4) {
        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);
        piVar3[2] = iVar4;
        pcVar6 = (code *)PTR_add234_0006a14c;
      }
    }
    iVar5 = iVar5 + 1;
    (*pcVar6)(*param_1,piVar3);
  } while( true );
}


lui gp,0x6
addiu gp,gp,-0x4f38
addu gp,gp,t9
lw t9,-0x7fcc(gp)
addiu sp,sp,-0x40
addiu t9,t9,0x6d88
sw gp,0x10(sp)
sw s5,0x30(sp)
or s5,a0,zero
sw s4,0x2c(sp)
or s4,a1,zero
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
li s1,0x2
sw s0,0x1c(sp)
or s0,zero,zero
sw ra,0x3c(sp)
sw s7,0x38(sp)
bal 0x00016d88
_sw s6,0x34(sp)
lw gp,0x10(sp)
lw s3,-0x7fc8(gp)
lw s2,-0x7fc8(gp)
addiu s3,s3,-0x23fc
b 0x00017004
_addiu s2,s2,-0x26dc
bne v0,v1,0x00016fec
_lw t9,-0x7ed4(gp)
jalr t9
_lw a0,0x8(s6)
lw gp,0x10(sp)
sw v0,0x8(s7)
lw t9,-0x7ee4(gp)
or a1,s7,zero
lw a0,0x0(s5)
jalr t9
_addiu s0,s0,0x1
lw gp,0x10(sp)
lw t9,-0x7ed0(gp)
or a1,s0,zero
jalr t9
_lw a0,0x0(s4)
lw gp,0x10(sp)
beq v0,zero,0x00017100
_or s6,v0,zero
lw t9,-0x7f6c(gp)
li a0,0x1
bal 0x0001f494
_li a1,0xc
li a0,0x1
lw v1,0x0(s6)
or s7,v0,zero
lw gp,0x10(sp)
sll v0,v1,0x2
addu v0,v0,s3
lw v0,0x0(v0)
beq v0,a0,0x000170c8
_sw v1,0x0(s7)
bne v0,s1,0x0001706c
_lw t9,-0x7fc0(gp)
bal 0x0001f5dc
_lw a0,0x4(s6)
lw gp,0x10(sp)
sw v0,0x4(s7)
lw v0,0x0(s6)
sll v0,v0,0x2
addu v0,v0,s2
lw v0,0x0(v0)
beq v0,s1,0x000170ec
_lw t9,-0x7fc0(gp)
slti v1,v0,0x3
bne v1,zero,0x000170b0
_li v1,0x3
bne v0,v1,0x00016fd4
_li v1,0x4
lw t9,-0x7ecc(gp)
jalr t9
_lw a0,0x8(s6)
lw gp,0x10(sp)
b 0x00016fec
_sw v0,0x8(s7)
li v1,0x1
bne v0,v1,0x00016ff0
_lw t9,-0x7ee4(gp)
lw v0,0x8(s6)
b 0x00016ff0
_sw v0,0x8(s7)
lw v0,0x4(s6)
sw v0,0x4(s7)
lw v0,0x0(s6)
sll v0,v0,0x2
addu v0,v0,s2
lw v0,0x0(v0)
bne v0,s1,0x00017088
_slti v1,v0,0x3
lw t9,-0x7fc0(gp)
bal 0x0001f5dc
_lw a0,0x8(s6)
lw gp,0x10(sp)
b 0x00016fec
_sw v0,0x8(s7)
lw ra,0x3c(sp)
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
(translation_unit "void conf_copy_into(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  iVar5 = 0;\n  FUN_00016d88();\n  puVar1 = PTR_DAT_0006a068;\n  do {\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  } while( true );\n}\n\n" (function_definition "void conf_copy_into(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  iVar5 = 0;\n  FUN_00016d88();\n  puVar1 = PTR_DAT_0006a068;\n  do {\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  } while( true );\n}" primitive_type (function_declarator "conf_copy_into(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  iVar5 = 0;\n  FUN_00016d88();\n  puVar1 = PTR_DAT_0006a068;\n  do {\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "FUN_00016d88();" (call_expression "FUN_00016d88()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = PTR_DAT_0006a068;" (assignment_expression "puVar1 = PTR_DAT_0006a068" identifier = identifier) ;) (do_statement "do {\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  } while( true );" do (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5)" identifier = (cast_expression "(int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_index234_0006a160)(*param_2,iVar5)" (parenthesized_expression "(*(code *)PTR_index234_0006a160)" ( (pointer_expression "*(code *)PTR_index234_0006a160" * (cast_expression "(code *)PTR_index234_0006a160" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_2,iVar5)" ( (pointer_expression "*param_2" * identifier) , identifier ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      return;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "piVar3 = (int *)safemalloc(1,0xc);" (assignment_expression "piVar3 = (int *)safemalloc(1,0xc)" identifier = (cast_expression "(int *)safemalloc(1,0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0xc)" identifier (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);" (assignment_expression "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc)" identifier = (pointer_expression "*(int *)(puVar1 + *piVar2 * 4 + -0x23fc)" * (cast_expression "(int *)(puVar1 + *piVar2 * 4 + -0x23fc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + *piVar2 * 4 + -0x23fc)" ( (binary_expression "puVar1 + *piVar2 * 4 + -0x23fc" (binary_expression "puVar1 + *piVar2 * 4" identifier + (binary_expression "*piVar2 * 4" (pointer_expression "*piVar2" * identifier) * number_literal)) + number_literal) ))))) ;) (expression_statement "*piVar3 = *piVar2;" (assignment_expression "*piVar3 = *piVar2" (pointer_expression "*piVar3" * identifier) = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }" { (expression_statement "piVar3[1] = piVar2[1];" (assignment_expression "piVar3[1] = piVar2[1]" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);" (assignment_expression "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" identifier = (pointer_expression "*(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" * (cast_expression "(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + *piVar2 * 4 + -0x26dc)" ( (binary_expression "puVar1 + *piVar2 * 4 + -0x26dc" (binary_expression "puVar1 + *piVar2 * 4" identifier + (binary_expression "*piVar2 * 4" (pointer_expression "*piVar2" * identifier) * number_literal)) + number_literal) ))))) ;) (if_statement "if (iVar4 != 2) goto LAB_00017088;" if (parenthesized_expression "(iVar4 != 2)" ( (binary_expression "iVar4 != 2" identifier != number_literal) )) (goto_statement "goto LAB_00017088;" goto statement_identifier ;)) (labeled_statement "LAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);" statement_identifier : (expression_statement "iVar4 = dupstr(piVar2[2]);" (assignment_expression "iVar4 = dupstr(piVar2[2])" identifier = (call_expression "dupstr(piVar2[2])" identifier (argument_list "(piVar2[2])" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) )))) ;)) (expression_statement "piVar3[2] = iVar4;" (assignment_expression "piVar3[2] = iVar4" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" identifier = (cast_expression "(code *)PTR_add234_0006a14c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }" else (compound_statement "{\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }" { (if_statement "if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (compound_statement "{\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }" { (expression_statement "iVar4 = dupstr(piVar2[1]);" (assignment_expression "iVar4 = dupstr(piVar2[1])" identifier = (call_expression "dupstr(piVar2[1])" identifier (argument_list "(piVar2[1])" ( (subscript_expression "piVar2[1]" identifier [ number_literal ]) )))) ;) (expression_statement "piVar3[1] = iVar4;" (assignment_expression "piVar3[1] = iVar4" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);" (assignment_expression "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" identifier = (pointer_expression "*(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" * (cast_expression "(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + *piVar2 * 4 + -0x26dc)" ( (binary_expression "puVar1 + *piVar2 * 4 + -0x26dc" (binary_expression "puVar1 + *piVar2 * 4" identifier + (binary_expression "*piVar2 * 4" (pointer_expression "*piVar2" * identifier) * number_literal)) + number_literal) ))))) ;) (if_statement "if (iVar4 == 2) goto LAB_000170ec;" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (goto_statement "goto LAB_000170ec;" goto statement_identifier ;)) (labeled_statement "LAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;" statement_identifier : (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" identifier = (cast_expression "(code *)PTR_add234_0006a14c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (if_statement "if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" if (parenthesized_expression "(iVar4 < 3)" ( (binary_expression "iVar4 < 3" identifier < number_literal) )) (compound_statement "{\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }" { (if_statement "if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == 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 (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" else (if_statement "if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" if (parenthesized_expression "(iVar4 == 3)" ( (binary_expression "iVar4 == 3" identifier == number_literal) )) (compound_statement "{\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" { (expression_statement "iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);" (assignment_expression "iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2])" identifier = (call_expression "(*(code *)PTR_filename_copy_0006a164)(piVar2[2])" (parenthesized_expression "(*(code *)PTR_filename_copy_0006a164)" ( (pointer_expression "*(code *)PTR_filename_copy_0006a164" * (cast_expression "(code *)PTR_filename_copy_0006a164" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2[2])" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) )))) ;) (expression_statement "piVar3[2] = iVar4;" (assignment_expression "piVar3[2] = iVar4" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" identifier = (cast_expression "(code *)PTR_add234_0006a14c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" else (if_statement "if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" if (parenthesized_expression "(iVar4 == 4)" ( (binary_expression "iVar4 == 4" identifier == number_literal) )) (compound_statement "{\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" { (expression_statement "iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);" (assignment_expression "iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2])" identifier = (call_expression "(*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2])" (parenthesized_expression "(*(code *)PTR_fontspec_copy_0006a15c)" ( (pointer_expression "*(code *)PTR_fontspec_copy_0006a15c" * (cast_expression "(code *)PTR_fontspec_copy_0006a15c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2[2])" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) )))) ;) (expression_statement "piVar3[2] = iVar4;" (assignment_expression "piVar3[2] = iVar4" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" identifier = (cast_expression "(code *)PTR_add234_0006a14c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })))))) }))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "(*pcVar6)(*param_1,piVar3);" (call_expression "(*pcVar6)(*param_1,piVar3)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(*param_1,piVar3)" ( (pointer_expression "*param_1" * identifier) , identifier ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void conf_copy_into(Conf *newconf,Conf *oldconf)\n\n{\n  int iVar1;\n  \n  conf_clear(newconf);\n  iVar1 = (*(code *)PTR_index234_0006a160)(oldconf->tree,0);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    safemalloc(1,0xc);\n  }\n  return;\n}\n\n" (function_definition "void conf_copy_into(Conf *newconf,Conf *oldconf)\n\n{\n  int iVar1;\n  \n  conf_clear(newconf);\n  iVar1 = (*(code *)PTR_index234_0006a160)(oldconf->tree,0);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    safemalloc(1,0xc);\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  \n  conf_clear(newconf);\n  iVar1 = (*(code *)PTR_index234_0006a160)(oldconf->tree,0);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    safemalloc(1,0xc);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "conf_clear(newconf);" (call_expression "conf_clear(newconf)" identifier (argument_list "(newconf)" ( identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_index234_0006a160)(oldconf->tree,0);" (assignment_expression "iVar1 = (*(code *)PTR_index234_0006a160)(oldconf->tree,0)" identifier = (call_expression "(*(code *)PTR_index234_0006a160)(oldconf->tree,0)" (parenthesized_expression "(*(code *)PTR_index234_0006a160)" ( (pointer_expression "*(code *)PTR_index234_0006a160" * (cast_expression "(code *)PTR_index234_0006a160" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(oldconf->tree,0)" ( (field_expression "oldconf->tree" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    safemalloc(1,0xc);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    safemalloc(1,0xc);\n  }" { comment (expression_statement "safemalloc(1,0xc);" (call_expression "safemalloc(1,0xc)" identifier (argument_list "(1,0xc)" ( number_literal , number_literal ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void conf_copy_into(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  iVar5 = 0;\n  FUN_00016d88();\n  puVar1 = PTR_DAT_0006a068;\n  do {\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  } while( true );\n}\n\n" (function_definition "void conf_copy_into(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  iVar5 = 0;\n  FUN_00016d88();\n  puVar1 = PTR_DAT_0006a068;\n  do {\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  } while( true );\n}" primitive_type (function_declarator "conf_copy_into(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  iVar5 = 0;\n  FUN_00016d88();\n  puVar1 = PTR_DAT_0006a068;\n  do {\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "FUN_00016d88();" (call_expression "FUN_00016d88()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = PTR_DAT_0006a068;" (assignment_expression "puVar1 = PTR_DAT_0006a068" identifier = identifier) ;) (do_statement "do {\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  } while( true );" do (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5)" identifier = (cast_expression "(int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_index234_0006a160)(*param_2,iVar5)" (parenthesized_expression "(*(code *)PTR_index234_0006a160)" ( (pointer_expression "*(code *)PTR_index234_0006a160" * (cast_expression "(code *)PTR_index234_0006a160" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_2,iVar5)" ( (pointer_expression "*param_2" * identifier) , identifier ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      return;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "piVar3 = (int *)safemalloc(1,0xc);" (assignment_expression "piVar3 = (int *)safemalloc(1,0xc)" identifier = (cast_expression "(int *)safemalloc(1,0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0xc)" identifier (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);" (assignment_expression "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc)" identifier = (pointer_expression "*(int *)(puVar1 + *piVar2 * 4 + -0x23fc)" * (cast_expression "(int *)(puVar1 + *piVar2 * 4 + -0x23fc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + *piVar2 * 4 + -0x23fc)" ( (binary_expression "puVar1 + *piVar2 * 4 + -0x23fc" (binary_expression "puVar1 + *piVar2 * 4" identifier + (binary_expression "*piVar2 * 4" (pointer_expression "*piVar2" * identifier) * number_literal)) + number_literal) ))))) ;) (expression_statement "*piVar3 = *piVar2;" (assignment_expression "*piVar3 = *piVar2" (pointer_expression "*piVar3" * identifier) = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }" { (expression_statement "piVar3[1] = piVar2[1];" (assignment_expression "piVar3[1] = piVar2[1]" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);" (assignment_expression "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" identifier = (pointer_expression "*(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" * (cast_expression "(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + *piVar2 * 4 + -0x26dc)" ( (binary_expression "puVar1 + *piVar2 * 4 + -0x26dc" (binary_expression "puVar1 + *piVar2 * 4" identifier + (binary_expression "*piVar2 * 4" (pointer_expression "*piVar2" * identifier) * number_literal)) + number_literal) ))))) ;) (if_statement "if (iVar4 != 2) goto LAB_00017088;" if (parenthesized_expression "(iVar4 != 2)" ( (binary_expression "iVar4 != 2" identifier != number_literal) )) (goto_statement "goto LAB_00017088;" goto statement_identifier ;)) (labeled_statement "LAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);" statement_identifier : (expression_statement "iVar4 = dupstr(piVar2[2]);" (assignment_expression "iVar4 = dupstr(piVar2[2])" identifier = (call_expression "dupstr(piVar2[2])" identifier (argument_list "(piVar2[2])" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) )))) ;)) (expression_statement "piVar3[2] = iVar4;" (assignment_expression "piVar3[2] = iVar4" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" identifier = (cast_expression "(code *)PTR_add234_0006a14c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }" else (compound_statement "{\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }" { (if_statement "if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (compound_statement "{\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }" { (expression_statement "iVar4 = dupstr(piVar2[1]);" (assignment_expression "iVar4 = dupstr(piVar2[1])" identifier = (call_expression "dupstr(piVar2[1])" identifier (argument_list "(piVar2[1])" ( (subscript_expression "piVar2[1]" identifier [ number_literal ]) )))) ;) (expression_statement "piVar3[1] = iVar4;" (assignment_expression "piVar3[1] = iVar4" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);" (assignment_expression "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" identifier = (pointer_expression "*(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" * (cast_expression "(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + *piVar2 * 4 + -0x26dc)" ( (binary_expression "puVar1 + *piVar2 * 4 + -0x26dc" (binary_expression "puVar1 + *piVar2 * 4" identifier + (binary_expression "*piVar2 * 4" (pointer_expression "*piVar2" * identifier) * number_literal)) + number_literal) ))))) ;) (if_statement "if (iVar4 == 2) goto LAB_000170ec;" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (goto_statement "goto LAB_000170ec;" goto statement_identifier ;)) (labeled_statement "LAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;" statement_identifier : (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" identifier = (cast_expression "(code *)PTR_add234_0006a14c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (if_statement "if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" if (parenthesized_expression "(iVar4 < 3)" ( (binary_expression "iVar4 < 3" identifier < number_literal) )) (compound_statement "{\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }" { (if_statement "if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == 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 (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" else (if_statement "if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" if (parenthesized_expression "(iVar4 == 3)" ( (binary_expression "iVar4 == 3" identifier == number_literal) )) (compound_statement "{\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" { (expression_statement "iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);" (assignment_expression "iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2])" identifier = (call_expression "(*(code *)PTR_filename_copy_0006a164)(piVar2[2])" (parenthesized_expression "(*(code *)PTR_filename_copy_0006a164)" ( (pointer_expression "*(code *)PTR_filename_copy_0006a164" * (cast_expression "(code *)PTR_filename_copy_0006a164" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2[2])" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) )))) ;) (expression_statement "piVar3[2] = iVar4;" (assignment_expression "piVar3[2] = iVar4" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" identifier = (cast_expression "(code *)PTR_add234_0006a14c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" else (if_statement "if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" if (parenthesized_expression "(iVar4 == 4)" ( (binary_expression "iVar4 == 4" identifier == number_literal) )) (compound_statement "{\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" { (expression_statement "iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);" (assignment_expression "iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2])" identifier = (call_expression "(*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2])" (parenthesized_expression "(*(code *)PTR_fontspec_copy_0006a15c)" ( (pointer_expression "*(code *)PTR_fontspec_copy_0006a15c" * (cast_expression "(code *)PTR_fontspec_copy_0006a15c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2[2])" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) )))) ;) (expression_statement "piVar3[2] = iVar4;" (assignment_expression "piVar3[2] = iVar4" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" identifier = (cast_expression "(code *)PTR_add234_0006a14c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })))))) }))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "(*pcVar6)(*param_1,piVar3);" (call_expression "(*pcVar6)(*param_1,piVar3)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(*param_1,piVar3)" ( (pointer_expression "*param_1" * identifier) , identifier ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (pointer_expression * IDENT) * LIT)) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (pointer_expression * IDENT) * LIT)) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (pointer_expression * IDENT) * LIT)) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;)) (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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })))))) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * IDENT) , IDENT ))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void conf_copy_into(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  iVar5 = 0;\n  FUN_00016d88();\n  puVar1 = PTR_DAT_0006a068;\n  do {\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  } while( true );\n}" (primitive_type "void") (function_declarator "conf_copy_into(undefined4 *param_1,undefined4 *param_2)" (identifier "conf_copy_into") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  code *pcVar6;\n  \n  iVar5 = 0;\n  FUN_00016d88();\n  puVar1 = PTR_DAT_0006a068;\n  do {\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  } while( true );\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00016d88();" (call_expression "FUN_00016d88()" (identifier "FUN_00016d88") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar1 = PTR_DAT_0006a068;" (assignment_expression "puVar1 = PTR_DAT_0006a068" (identifier "puVar1") (= "=") (identifier "PTR_DAT_0006a068")) (; ";")) (do_statement "do {\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  } while( true );" (do "do") (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);\n    if (piVar2 == (int *)0x0) {\n      return;\n    }\n    piVar3 = (int *)safemalloc(1,0xc);\n    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);\n    *piVar3 = *piVar2;\n    if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }\n    iVar5 = iVar5 + 1;\n    (*pcVar6)(*param_1,piVar3);\n  }" ({ "{") (expression_statement "piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_index234_0006a160)(*param_2,iVar5)" (parenthesized_expression "(*(code *)PTR_index234_0006a160)" (( "(") (pointer_expression "*(code *)PTR_index234_0006a160" (* "*") (cast_expression "(code *)PTR_index234_0006a160" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_index234_0006a160"))) () ")")) (argument_list "(*param_2,iVar5)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "iVar5") () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n      return;\n    }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)safemalloc(1,0xc);" (assignment_expression "piVar3 = (int *)safemalloc(1,0xc)" (identifier "piVar3") (= "=") (cast_expression "(int *)safemalloc(1,0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safemalloc(1,0xc)" (identifier "safemalloc") (argument_list "(1,0xc)" (( "(") (number_literal "1") (, ",") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);" (assignment_expression "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(puVar1 + *piVar2 * 4 + -0x23fc)" (* "*") (cast_expression "(int *)(puVar1 + *piVar2 * 4 + -0x23fc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + *piVar2 * 4 + -0x23fc)" (( "(") (binary_expression "puVar1 + *piVar2 * 4 + -0x23fc" (binary_expression "puVar1 + *piVar2 * 4" (identifier "puVar1") (+ "+") (binary_expression "*piVar2 * 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (* "*") (number_literal "4"))) (+ "+") (number_literal "-0x23fc")) () ")"))))) (; ";")) (expression_statement "*piVar3 = *piVar2;" (assignment_expression "*piVar3 = *piVar2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (if_statement "if (iVar4 == 1) {\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }\n    else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }" (if "if") (parenthesized_expression "(iVar4 == 1)" (( "(") (binary_expression "iVar4 == 1" (identifier "iVar4") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      piVar3[1] = piVar2[1];\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 != 2) goto LAB_00017088;\nLAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);\n      piVar3[2] = iVar4;\n      pcVar6 = (code *)PTR_add234_0006a14c;\n    }" ({ "{") (expression_statement "piVar3[1] = piVar2[1];" (assignment_expression "piVar3[1] = piVar2[1]" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);" (assignment_expression "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" (* "*") (cast_expression "(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + *piVar2 * 4 + -0x26dc)" (( "(") (binary_expression "puVar1 + *piVar2 * 4 + -0x26dc" (binary_expression "puVar1 + *piVar2 * 4" (identifier "puVar1") (+ "+") (binary_expression "*piVar2 * 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (* "*") (number_literal "4"))) (+ "+") (number_literal "-0x26dc")) () ")"))))) (; ";")) (if_statement "if (iVar4 != 2) goto LAB_00017088;" (if "if") (parenthesized_expression "(iVar4 != 2)" (( "(") (binary_expression "iVar4 != 2" (identifier "iVar4") (!= "!=") (number_literal "2")) () ")")) (goto_statement "goto LAB_00017088;" (goto "goto") (statement_identifier "LAB_00017088") (; ";"))) (labeled_statement "LAB_000170ec:\n      iVar4 = dupstr(piVar2[2]);" (statement_identifier "LAB_000170ec") (: ":") (expression_statement "iVar4 = dupstr(piVar2[2]);" (assignment_expression "iVar4 = dupstr(piVar2[2])" (identifier "iVar4") (= "=") (call_expression "dupstr(piVar2[2])" (identifier "dupstr") (argument_list "(piVar2[2])" (( "(") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";"))) (expression_statement "piVar3[2] = iVar4;" (assignment_expression "piVar3[2] = iVar4" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" (identifier "pcVar6") (= "=") (cast_expression "(code *)PTR_add234_0006a14c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_add234_0006a14c"))) (; ";")) (} "}")) (else_clause "else {\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }" (else "else") (compound_statement "{\n      if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }\n      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);\n      if (iVar4 == 2) goto LAB_000170ec;\nLAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;\n      if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n    }" ({ "{") (if_statement "if (iVar4 == 2) {\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }" (if "if") (parenthesized_expression "(iVar4 == 2)" (( "(") (binary_expression "iVar4 == 2" (identifier "iVar4") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        iVar4 = dupstr(piVar2[1]);\n        piVar3[1] = iVar4;\n      }" ({ "{") (expression_statement "iVar4 = dupstr(piVar2[1]);" (assignment_expression "iVar4 = dupstr(piVar2[1])" (identifier "iVar4") (= "=") (call_expression "dupstr(piVar2[1])" (identifier "dupstr") (argument_list "(piVar2[1])" (( "(") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "piVar3[1] = iVar4;" (assignment_expression "piVar3[1] = iVar4" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);" (assignment_expression "iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" (* "*") (cast_expression "(int *)(puVar1 + *piVar2 * 4 + -0x26dc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + *piVar2 * 4 + -0x26dc)" (( "(") (binary_expression "puVar1 + *piVar2 * 4 + -0x26dc" (binary_expression "puVar1 + *piVar2 * 4" (identifier "puVar1") (+ "+") (binary_expression "*piVar2 * 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (* "*") (number_literal "4"))) (+ "+") (number_literal "-0x26dc")) () ")"))))) (; ";")) (if_statement "if (iVar4 == 2) goto LAB_000170ec;" (if "if") (parenthesized_expression "(iVar4 == 2)" (( "(") (binary_expression "iVar4 == 2" (identifier "iVar4") (== "==") (number_literal "2")) () ")")) (goto_statement "goto LAB_000170ec;" (goto "goto") (statement_identifier "LAB_000170ec") (; ";"))) (labeled_statement "LAB_00017088:\n      pcVar6 = (code *)PTR_add234_0006a14c;" (statement_identifier "LAB_00017088") (: ":") (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" (identifier "pcVar6") (= "=") (cast_expression "(code *)PTR_add234_0006a14c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_add234_0006a14c"))) (; ";"))) (if_statement "if (iVar4 < 3) {\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }\n      else if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" (if "if") (parenthesized_expression "(iVar4 < 3)" (( "(") (binary_expression "iVar4 < 3" (identifier "iVar4") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n        if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }\n      }" ({ "{") (if_statement "if (iVar4 == 1) {\n          piVar3[2] = piVar2[2];\n        }" (if "if") (parenthesized_expression "(iVar4 == 1)" (( "(") (binary_expression "iVar4 == 1" (identifier "iVar4") (== "==") (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 (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" (else "else") (if_statement "if (iVar4 == 3) {\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }\n      else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" (if "if") (parenthesized_expression "(iVar4 == 3)" (( "(") (binary_expression "iVar4 == 3" (identifier "iVar4") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);" (assignment_expression "iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2])" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_filename_copy_0006a164)(piVar2[2])" (parenthesized_expression "(*(code *)PTR_filename_copy_0006a164)" (( "(") (pointer_expression "*(code *)PTR_filename_copy_0006a164" (* "*") (cast_expression "(code *)PTR_filename_copy_0006a164" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_filename_copy_0006a164"))) () ")")) (argument_list "(piVar2[2])" (( "(") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (expression_statement "piVar3[2] = iVar4;" (assignment_expression "piVar3[2] = iVar4" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" (identifier "pcVar6") (= "=") (cast_expression "(code *)PTR_add234_0006a14c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_add234_0006a14c"))) (; ";")) (} "}")) (else_clause "else if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" (else "else") (if_statement "if (iVar4 == 4) {\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" (if "if") (parenthesized_expression "(iVar4 == 4)" (( "(") (binary_expression "iVar4 == 4" (identifier "iVar4") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);\n        piVar3[2] = iVar4;\n        pcVar6 = (code *)PTR_add234_0006a14c;\n      }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);" (assignment_expression "iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2])" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2])" (parenthesized_expression "(*(code *)PTR_fontspec_copy_0006a15c)" (( "(") (pointer_expression "*(code *)PTR_fontspec_copy_0006a15c" (* "*") (cast_expression "(code *)PTR_fontspec_copy_0006a15c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fontspec_copy_0006a15c"))) () ")")) (argument_list "(piVar2[2])" (( "(") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (expression_statement "piVar3[2] = iVar4;" (assignment_expression "piVar3[2] = iVar4" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "pcVar6 = (code *)PTR_add234_0006a14c;" (assignment_expression "pcVar6 = (code *)PTR_add234_0006a14c" (identifier "pcVar6") (= "=") (cast_expression "(code *)PTR_add234_0006a14c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_add234_0006a14c"))) (; ";")) (} "}"))))))) (} "}")))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*pcVar6)(*param_1,piVar3);" (call_expression "(*pcVar6)(*param_1,piVar3)" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "(*param_1,piVar3)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "piVar3") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement 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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement))) (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (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)))) (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: (binary_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (binary_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier))))) condition: (parenthesized_expression (true))))))

void MASKED(undefined4 *param_1,undefined4 *param_2)

{
  undefined *puVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  int iVar5;
  code *pcVar6;
  
  iVar5 = 0;
  FUN_00016d88();
  puVar1 = PTR_DAT_0006a068;
  do {
    piVar2 = (int *)(*(code *)PTR_index234_0006a160)(*param_2,iVar5);
    if (piVar2 == (int *)0x0) {
      return;
    }
    piVar3 = (int *)safemalloc(1,0xc);
    iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x23fc);
    *piVar3 = *piVar2;
    if (iVar4 == 1) {
      piVar3[1] = piVar2[1];
      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);
      if (iVar4 != 2) goto LAB_00017088;
LAB_000170ec:
      iVar4 = dupstr(piVar2[2]);
      piVar3[2] = iVar4;
      pcVar6 = (code *)PTR_add234_0006a14c;
    }
    else {
      if (iVar4 == 2) {
        iVar4 = dupstr(piVar2[1]);
        piVar3[1] = iVar4;
      }
      iVar4 = *(int *)(puVar1 + *piVar2 * 4 + -0x26dc);
      if (iVar4 == 2) goto LAB_000170ec;
LAB_00017088:
      pcVar6 = (code *)PTR_add234_0006a14c;
      if (iVar4 < 3) {
        if (iVar4 == 1) {
          piVar3[2] = piVar2[2];
        }
      }
      else if (iVar4 == 3) {
        iVar4 = (*(code *)PTR_filename_copy_0006a164)(piVar2[2]);
        piVar3[2] = iVar4;
        pcVar6 = (code *)PTR_add234_0006a14c;
      }
      else if (iVar4 == 4) {
        iVar4 = (*(code *)PTR_fontspec_copy_0006a15c)(piVar2[2]);
        piVar3[2] = iVar4;
        pcVar6 = (code *)PTR_add234_0006a14c;
      }
    }
    iVar5 = iVar5 + 1;
    (*pcVar6)(*param_1,piVar3);
  } while( true );
}

