
char * host_strchr(char *s,int c)

{
  undefined *puVar1;
  char *pcVar2;
  char *pcVar3;
  int iVar4;
  char *set_00;
  int *piVar5;
  uint uVar6;
  undefined *puVar7;
  code *pcVar8;
  char acStack_38 [4];
  int iStack_34;
  undefined *puStack_30;
  code *pcStack_2c;
  char set [2];
  
  puVar1 = PTR___stack_chk_guard_00112630;
  set[0] = (char)c;
  set_00 = set;
  set[1] = '\0';
  pcVar2 = *(char **)PTR___stack_chk_guard_00112630;
  pcVar3 = host_strchr_internal(s,set_00,1);
  acStack_38[0] = (char)set_00;
  if (pcVar2 == *(char **)puVar1) {
    return pcVar3;
  }
  pcVar8 = host_strrchr;
  puVar7 = PTR___stack_chk_fail_001122c8;
  (*(code *)PTR___stack_chk_fail_001122c8)();
  puStack_30 = puVar1;
  piVar5 = *(int **)(puVar7 + 0xd99a4);
  acStack_38[1] = 0;
  iStack_34 = *piVar5;
  pcStack_2c = pcVar8;
  pcVar2 = host_strchr_internal(pcVar2,acStack_38,0);
  if (iStack_34 == *piVar5) {
    return pcVar2;
  }
  pcVar8 = *(code **)(puVar7 + 0xd963c);
  iVar4 = iStack_34;
  (*pcVar8)();
  if (*(int *)(iVar4 + 0x14) != 0) {
    uVar6 = 0;
    do {
      piVar5 = *(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4);
      uVar6 = uVar6 + 1;
      if ((void *)piVar5[2] != (void *)0x0) {
        if (piVar5[3] == 0) {
          (**(code **)(pcVar8 + 0xd9568))();
        }
        else {
          smemclr((void *)piVar5[2],piVar5[3]);
          if (piVar5[2] != 0) {
            pcVar2 = (char *)FUN_00038d44();
            return pcVar2;
          }
        }
      }
      if (*piVar5 != 0) {
        (**(code **)(pcVar8 + 0xd9568))();
      }
      (**(code **)(pcVar8 + 0xd9568))(piVar5);
    } while (uVar6 < *(uint *)(iVar4 + 0x14));
  }
  if (*(int *)(iVar4 + 0x18) != 0) {
    (**(code **)(pcVar8 + 0xd9568))();
  }
  if (*(int *)(iVar4 + 4) != 0) {
    (**(code **)(pcVar8 + 0xd9568))();
  }
  if (*(int *)(iVar4 + 0xc) != 0) {
    (**(code **)(pcVar8 + 0xd9568))();
  }
                    /* WARNING: Could not recover jumptable at 0x00038e30. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  pcVar2 = (char *)(**(code **)(pcVar8 + 0xd9568))(iVar4);
  return pcVar2;
}



void host_strchr(undefined4 param_1,undefined1 param_2)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  undefined *puVar4;
  code *pcVar5;
  code *pcVar6;
  undefined1 local_10;
  undefined1 local_f;
  int local_c;
  
  puVar4 = PTR___stack_chk_guard_00112630;
  local_f = 0;
  local_c = *(int *)PTR___stack_chk_guard_00112630;
  local_10 = param_2;
  FUN_00038830(param_1,&local_10,1);
  if (local_c == *(int *)puVar4) {
    return;
  }
  puVar4 = PTR___stack_chk_fail_001122c8;
  (*(code *)PTR___stack_chk_fail_001122c8)();
  piVar2 = *(int **)(puVar4 + 0xd99a4);
  iVar1 = *piVar2;
  FUN_00038830();
  if (iVar1 == *piVar2) {
    return;
  }
  pcVar5 = *(code **)(puVar4 + 0xd963c);
  (*pcVar5)();
  if (*(int *)(iVar1 + 0x14) != 0) {
    uVar3 = 0;
    do {
      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);
      uVar3 = uVar3 + 1;
      if (piVar2[2] != 0) {
        pcVar6 = *(code **)(pcVar5 + 0xd9568);
        if (piVar2[3] != 0) {
          FUN_00038934();
          if (piVar2[2] == 0) goto LAB_00038d50;
          pcVar6 = *(code **)(pcVar5 + 0xd9568);
        }
        (*pcVar6)();
      }
LAB_00038d50:
      if (*piVar2 != 0) {
        (**(code **)(pcVar5 + 0xd9568))();
      }
      (**(code **)(pcVar5 + 0xd9568))(piVar2);
    } while (uVar3 < *(uint *)(iVar1 + 0x14));
  }
  if (*(int *)(iVar1 + 0x18) != 0) {
    (**(code **)(pcVar5 + 0xd9568))();
  }
  if (*(int *)(iVar1 + 4) != 0) {
    (**(code **)(pcVar5 + 0xd9568))();
  }
  if (*(int *)(iVar1 + 0xc) != 0) {
    (**(code **)(pcVar5 + 0xd9568))();
  }
                    /* WARNING: Could not recover jumptable at 0x00038e30. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(pcVar5 + 0xd9568))(iVar1);
  return;
}


lui gp,0xe
addiu gp,gp,0x698
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7ca0(gp)
li a2,0x1
sw s0,0x20(sp)
addiu t9,t9,-0x77d0
lw s0,-0x6c80(gp)
sb a1,0x18(sp)
addiu a1,sp,0x18
sw gp,0x10(sp)
sw ra,0x24(sp)
sb zero,0x19(sp)
lw v0,0x0(s0)
sw v0,0x1c(sp)
bal 0x00038830
_nop
lw a0,0x1c(sp)
lw v1,0x0(s0)
bne a0,v1,0x00038c80
_lw gp,0x10(sp)
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x6fe8(gp)
jalr t9
_nop
(translation_unit "void host_strchr(undefined4 param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  code *pcVar6;\n  undefined1 local_10;\n  undefined1 local_f;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00112630;\n  local_f = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  local_10 = param_2;\n  FUN_00038830(param_1,&local_10,1);\n  if (local_c == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  piVar2 = *(int **)(puVar4 + 0xd99a4);\n  iVar1 = *piVar2;\n  FUN_00038830();\n  if (iVar1 == *piVar2) {\n    return;\n  }\n  pcVar5 = *(code **)(puVar4 + 0xd963c);\n  (*pcVar5)();\n  if (*(int *)(iVar1 + 0x14) != 0) {\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }\n  if (*(int *)(iVar1 + 0x18) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 4) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 0xc) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n                    /* WARNING: Could not recover jumptable at 0x00038e30. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(pcVar5 + 0xd9568))(iVar1);\n  return;\n}\n\n" (function_definition "void host_strchr(undefined4 param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  code *pcVar6;\n  undefined1 local_10;\n  undefined1 local_f;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00112630;\n  local_f = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  local_10 = param_2;\n  FUN_00038830(param_1,&local_10,1);\n  if (local_c == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  piVar2 = *(int **)(puVar4 + 0xd99a4);\n  iVar1 = *piVar2;\n  FUN_00038830();\n  if (iVar1 == *piVar2) {\n    return;\n  }\n  pcVar5 = *(code **)(puVar4 + 0xd963c);\n  (*pcVar5)();\n  if (*(int *)(iVar1 + 0x14) != 0) {\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }\n  if (*(int *)(iVar1 + 0x18) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 4) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 0xc) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n                    /* WARNING: Could not recover jumptable at 0x00038e30. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(pcVar5 + 0xd9568))(iVar1);\n  return;\n}" primitive_type (function_declarator "host_strchr(undefined4 param_1,undefined1 param_2)" identifier (parameter_list "(undefined4 param_1,undefined1 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  code *pcVar6;\n  undefined1 local_10;\n  undefined1 local_f;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00112630;\n  local_f = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  local_10 = param_2;\n  FUN_00038830(param_1,&local_10,1);\n  if (local_c == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  piVar2 = *(int **)(puVar4 + 0xd99a4);\n  iVar1 = *piVar2;\n  FUN_00038830();\n  if (iVar1 == *piVar2) {\n    return;\n  }\n  pcVar5 = *(code **)(puVar4 + 0xd963c);\n  (*pcVar5)();\n  if (*(int *)(iVar1 + 0x14) != 0) {\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }\n  if (*(int *)(iVar1 + 0x18) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 4) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 0xc) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n                    /* WARNING: Could not recover jumptable at 0x00038e30. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(pcVar5 + 0xd9568))(iVar1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined1 local_10;" type_identifier identifier ;) (declaration "undefined1 local_f;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar4 = PTR___stack_chk_guard_00112630" identifier = identifier) ;) (expression_statement "local_f = 0;" (assignment_expression "local_f = 0" identifier = number_literal) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00112630" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" * (cast_expression "(int *)PTR___stack_chk_guard_00112630" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_10 = param_2;" (assignment_expression "local_10 = param_2" identifier = identifier) ;) (expression_statement "FUN_00038830(param_1,&local_10,1);" (call_expression "FUN_00038830(param_1,&local_10,1)" identifier (argument_list "(param_1,&local_10,1)" ( identifier , (pointer_expression "&local_10" & identifier) , number_literal ))) ;) (if_statement "if (local_c == *(int *)puVar4) {\n    return;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar4)" ( (binary_expression "local_c == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar4 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar4 = PTR___stack_chk_fail_001122c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" * (cast_expression "(code *)PTR___stack_chk_fail_001122c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar2 = *(int **)(puVar4 + 0xd99a4);" (assignment_expression "piVar2 = *(int **)(puVar4 + 0xd99a4)" identifier = (pointer_expression "*(int **)(puVar4 + 0xd99a4)" * (cast_expression "(int **)(puVar4 + 0xd99a4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0xd99a4)" ( (binary_expression "puVar4 + 0xd99a4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar1 == *piVar2) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *piVar2)" ( (binary_expression "iVar1 == *piVar2" identifier == (pointer_expression "*piVar2" * identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar5 = *(code **)(puVar4 + 0xd963c);" (assignment_expression "pcVar5 = *(code **)(puVar4 + 0xd963c)" identifier = (pointer_expression "*(code **)(puVar4 + 0xd963c)" * (cast_expression "(code **)(puVar4 + 0xd963c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0xd963c)" ( (binary_expression "puVar4 + 0xd963c" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar5)();" (call_expression "(*pcVar5)()" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(iVar1 + 0x14) != 0) {\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x14) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x14) != 0" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));" do (compound_statement "{\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    }" { (expression_statement "piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);" (assignment_expression "piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4)" * (cast_expression "(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar1 + 0x18) + uVar3 * 4)" ( (binary_expression "*(int *)(iVar1 + 0x18) + uVar3 * 4" (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) + (binary_expression "uVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }" if (parenthesized_expression "(piVar2[2] != 0)" ( (binary_expression "piVar2[2] != 0" (subscript_expression "piVar2[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }" { (expression_statement "pcVar6 = *(code **)(pcVar5 + 0xd9568);" (assignment_expression "pcVar6 = *(code **)(pcVar5 + 0xd9568)" identifier = (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) ;) (if_statement "if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }" if (parenthesized_expression "(piVar2[3] != 0)" ( (binary_expression "piVar2[3] != 0" (subscript_expression "piVar2[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }" { (expression_statement "FUN_00038934();" (call_expression "FUN_00038934()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piVar2[2] == 0) goto LAB_00038d50;" if (parenthesized_expression "(piVar2[2] == 0)" ( (binary_expression "piVar2[2] == 0" (subscript_expression "piVar2[2]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_00038d50;" goto statement_identifier ;)) (expression_statement "pcVar6 = *(code **)(pcVar5 + 0xd9568);" (assignment_expression "pcVar6 = *(code **)(pcVar5 + 0xd9568)" identifier = (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) ;) })) (expression_statement "(*pcVar6)();" (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "()" ( ))) ;) })) (labeled_statement "LAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }" statement_identifier : (if_statement "if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n        (**(code **)(pcVar5 + 0xd9568))();\n      }" { (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))) (expression_statement "(**(code **)(pcVar5 + 0xd9568))(piVar2);" (call_expression "(**(code **)(pcVar5 + 0xd9568))(piVar2)" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) }) while (parenthesized_expression "(uVar3 < *(uint *)(iVar1 + 0x14))" ( (binary_expression "uVar3 < *(uint *)(iVar1 + 0x14)" identifier < (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) )) ;) })) (if_statement "if (*(int *)(iVar1 + 0x18) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x18) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x18) != 0" (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" { (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar1 + 4) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 4) != 0)" ( (binary_expression "*(int *)(iVar1 + 4) != 0" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" { (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar1 + 0xc) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" { (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) comment comment (expression_statement "(**(code **)(pcVar5 + 0xd9568))(iVar1);" (call_expression "(**(code **)(pcVar5 + 0xd9568))(iVar1)" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "char * host_strchr(char *s,int c)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  char *set_00;\n  int *piVar5;\n  uint uVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  char acStack_38 [4];\n  int iStack_34;\n  undefined *puStack_30;\n  code *pcStack_2c;\n  char set [2];\n  \n  puVar1 = PTR___stack_chk_guard_00112630;\n  set[0] = (char)c;\n  set_00 = set;\n  set[1] = '\0';\n  pcVar2 = *(char **)PTR___stack_chk_guard_00112630;\n  pcVar3 = host_strchr_internal(s,set_00,1);\n  acStack_38[0] = (char)set_00;\n  if (pcVar2 == *(char **)puVar1) {\n    return pcVar3;\n  }\n  pcVar8 = host_strrchr;\n  puVar7 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  puStack_30 = puVar1;\n  piVar5 = *(int **)(puVar7 + 0xd99a4);\n  acStack_38[1] = 0;\n  iStack_34 = *piVar5;\n  pcStack_2c = pcVar8;\n  pcVar2 = host_strchr_internal(pcVar2,acStack_38,0);\n  if (iStack_34 == *piVar5) {\n    return pcVar2;\n  }\n  pcVar8 = *(code **)(puVar7 + 0xd963c);\n  iVar4 = iStack_34;\n  (*pcVar8)();\n  if (*(int *)(iVar4 + 0x14) != 0) {\n    uVar6 = 0;\n    do {\n      piVar5 = *(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4);\n      uVar6 = uVar6 + 1;\n      if ((void *)piVar5[2] != (void *)0x0) {\n        if (piVar5[3] == 0) {\n          (**(code **)(pcVar8 + 0xd9568))();\n        }\n        else {\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }\n      }\n      if (*piVar5 != 0) {\n        (**(code **)(pcVar8 + 0xd9568))();\n      }\n      (**(code **)(pcVar8 + 0xd9568))(piVar5);\n    } while (uVar6 < *(uint *)(iVar4 + 0x14));\n  }\n  if (*(int *)(iVar4 + 0x18) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }\n  if (*(int *)(iVar4 + 4) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }\n  if (*(int *)(iVar4 + 0xc) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }\n                    /* WARNING: Could not recover jumptable at 0x00038e30. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pcVar2 = (char *)(**(code **)(pcVar8 + 0xd9568))(iVar4);\n  return pcVar2;\n}\n\n" (function_definition "char * host_strchr(char *s,int c)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  char *set_00;\n  int *piVar5;\n  uint uVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  char acStack_38 [4];\n  int iStack_34;\n  undefined *puStack_30;\n  code *pcStack_2c;\n  char set [2];\n  \n  puVar1 = PTR___stack_chk_guard_00112630;\n  set[0] = (char)c;\n  set_00 = set;\n  set[1] = '\0';\n  pcVar2 = *(char **)PTR___stack_chk_guard_00112630;\n  pcVar3 = host_strchr_internal(s,set_00,1);\n  acStack_38[0] = (char)set_00;\n  if (pcVar2 == *(char **)puVar1) {\n    return pcVar3;\n  }\n  pcVar8 = host_strrchr;\n  puVar7 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  puStack_30 = puVar1;\n  piVar5 = *(int **)(puVar7 + 0xd99a4);\n  acStack_38[1] = 0;\n  iStack_34 = *piVar5;\n  pcStack_2c = pcVar8;\n  pcVar2 = host_strchr_internal(pcVar2,acStack_38,0);\n  if (iStack_34 == *piVar5) {\n    return pcVar2;\n  }\n  pcVar8 = *(code **)(puVar7 + 0xd963c);\n  iVar4 = iStack_34;\n  (*pcVar8)();\n  if (*(int *)(iVar4 + 0x14) != 0) {\n    uVar6 = 0;\n    do {\n      piVar5 = *(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4);\n      uVar6 = uVar6 + 1;\n      if ((void *)piVar5[2] != (void *)0x0) {\n        if (piVar5[3] == 0) {\n          (**(code **)(pcVar8 + 0xd9568))();\n        }\n        else {\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }\n      }\n      if (*piVar5 != 0) {\n        (**(code **)(pcVar8 + 0xd9568))();\n      }\n      (**(code **)(pcVar8 + 0xd9568))(piVar5);\n    } while (uVar6 < *(uint *)(iVar4 + 0x14));\n  }\n  if (*(int *)(iVar4 + 0x18) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }\n  if (*(int *)(iVar4 + 4) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }\n  if (*(int *)(iVar4 + 0xc) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }\n                    /* WARNING: Could not recover jumptable at 0x00038e30. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pcVar2 = (char *)(**(code **)(pcVar8 + 0xd9568))(iVar4);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* host_strchr(char *s,int c)" * (function_declarator "host_strchr(char *s,int c)" identifier (parameter_list "(char *s,int c)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "int c" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  char *set_00;\n  int *piVar5;\n  uint uVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  char acStack_38 [4];\n  int iStack_34;\n  undefined *puStack_30;\n  code *pcStack_2c;\n  char set [2];\n  \n  puVar1 = PTR___stack_chk_guard_00112630;\n  set[0] = (char)c;\n  set_00 = set;\n  set[1] = '\0';\n  pcVar2 = *(char **)PTR___stack_chk_guard_00112630;\n  pcVar3 = host_strchr_internal(s,set_00,1);\n  acStack_38[0] = (char)set_00;\n  if (pcVar2 == *(char **)puVar1) {\n    return pcVar3;\n  }\n  pcVar8 = host_strrchr;\n  puVar7 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  puStack_30 = puVar1;\n  piVar5 = *(int **)(puVar7 + 0xd99a4);\n  acStack_38[1] = 0;\n  iStack_34 = *piVar5;\n  pcStack_2c = pcVar8;\n  pcVar2 = host_strchr_internal(pcVar2,acStack_38,0);\n  if (iStack_34 == *piVar5) {\n    return pcVar2;\n  }\n  pcVar8 = *(code **)(puVar7 + 0xd963c);\n  iVar4 = iStack_34;\n  (*pcVar8)();\n  if (*(int *)(iVar4 + 0x14) != 0) {\n    uVar6 = 0;\n    do {\n      piVar5 = *(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4);\n      uVar6 = uVar6 + 1;\n      if ((void *)piVar5[2] != (void *)0x0) {\n        if (piVar5[3] == 0) {\n          (**(code **)(pcVar8 + 0xd9568))();\n        }\n        else {\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }\n      }\n      if (*piVar5 != 0) {\n        (**(code **)(pcVar8 + 0xd9568))();\n      }\n      (**(code **)(pcVar8 + 0xd9568))(piVar5);\n    } while (uVar6 < *(uint *)(iVar4 + 0x14));\n  }\n  if (*(int *)(iVar4 + 0x18) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }\n  if (*(int *)(iVar4 + 4) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }\n  if (*(int *)(iVar4 + 0xc) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }\n                    /* WARNING: Could not recover jumptable at 0x00038e30. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pcVar2 = (char *)(**(code **)(pcVar8 + 0xd9568))(iVar4);\n  return pcVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *set_00;" primitive_type (pointer_declarator "*set_00" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char acStack_38 [4];" primitive_type (array_declarator "acStack_38 [4]" identifier [ number_literal ]) ;) (declaration "int iStack_34;" primitive_type identifier ;) (declaration "undefined *puStack_30;" type_identifier (pointer_declarator "*puStack_30" * identifier) ;) (declaration "code *pcStack_2c;" type_identifier (pointer_declarator "*pcStack_2c" * identifier) ;) (declaration "char set [2];" primitive_type (array_declarator "set [2]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00112630" identifier = identifier) ;) (expression_statement "set[0] = (char)c;" (assignment_expression "set[0] = (char)c" (subscript_expression "set[0]" identifier [ number_literal ]) = (cast_expression "(char)c" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "set_00 = set;" (assignment_expression "set_00 = set" identifier = identifier) ;) (expression_statement "set[1] = '\0';" (assignment_expression "set[1] = '\0'" (subscript_expression "set[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar2 = *(char **)PTR___stack_chk_guard_00112630;" (assignment_expression "pcVar2 = *(char **)PTR___stack_chk_guard_00112630" identifier = (pointer_expression "*(char **)PTR___stack_chk_guard_00112630" * (cast_expression "(char **)PTR___stack_chk_guard_00112630" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar3 = host_strchr_internal(s,set_00,1);" (assignment_expression "pcVar3 = host_strchr_internal(s,set_00,1)" identifier = (call_expression "host_strchr_internal(s,set_00,1)" identifier (argument_list "(s,set_00,1)" ( identifier , identifier , number_literal )))) ;) (expression_statement "acStack_38[0] = (char)set_00;" (assignment_expression "acStack_38[0] = (char)set_00" (subscript_expression "acStack_38[0]" identifier [ number_literal ]) = (cast_expression "(char)set_00" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (pcVar2 == *(char **)puVar1) {\n    return pcVar3;\n  }" if (parenthesized_expression "(pcVar2 == *(char **)puVar1)" ( (binary_expression "pcVar2 == *(char **)puVar1" identifier == (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return pcVar3;\n  }" { (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "pcVar8 = host_strrchr;" (assignment_expression "pcVar8 = host_strrchr" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar7 = PTR___stack_chk_fail_001122c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" * (cast_expression "(code *)PTR___stack_chk_fail_001122c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puStack_30 = puVar1;" (assignment_expression "puStack_30 = puVar1" identifier = identifier) ;) (expression_statement "piVar5 = *(int **)(puVar7 + 0xd99a4);" (assignment_expression "piVar5 = *(int **)(puVar7 + 0xd99a4)" identifier = (pointer_expression "*(int **)(puVar7 + 0xd99a4)" * (cast_expression "(int **)(puVar7 + 0xd99a4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0xd99a4)" ( (binary_expression "puVar7 + 0xd99a4" identifier + number_literal) ))))) ;) (expression_statement "acStack_38[1] = 0;" (assignment_expression "acStack_38[1] = 0" (subscript_expression "acStack_38[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iStack_34 = *piVar5;" (assignment_expression "iStack_34 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "pcStack_2c = pcVar8;" (assignment_expression "pcStack_2c = pcVar8" identifier = identifier) ;) (expression_statement "pcVar2 = host_strchr_internal(pcVar2,acStack_38,0);" (assignment_expression "pcVar2 = host_strchr_internal(pcVar2,acStack_38,0)" identifier = (call_expression "host_strchr_internal(pcVar2,acStack_38,0)" identifier (argument_list "(pcVar2,acStack_38,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iStack_34 == *piVar5) {\n    return pcVar2;\n  }" if (parenthesized_expression "(iStack_34 == *piVar5)" ( (binary_expression "iStack_34 == *piVar5" identifier == (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n    return pcVar2;\n  }" { (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pcVar8 = *(code **)(puVar7 + 0xd963c);" (assignment_expression "pcVar8 = *(code **)(puVar7 + 0xd963c)" identifier = (pointer_expression "*(code **)(puVar7 + 0xd963c)" * (cast_expression "(code **)(puVar7 + 0xd963c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0xd963c)" ( (binary_expression "puVar7 + 0xd963c" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = iStack_34;" (assignment_expression "iVar4 = iStack_34" identifier = identifier) ;) (expression_statement "(*pcVar8)();" (call_expression "(*pcVar8)()" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(iVar4 + 0x14) != 0) {\n    uVar6 = 0;\n    do {\n      piVar5 = *(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4);\n      uVar6 = uVar6 + 1;\n      if ((void *)piVar5[2] != (void *)0x0) {\n        if (piVar5[3] == 0) {\n          (**(code **)(pcVar8 + 0xd9568))();\n        }\n        else {\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }\n      }\n      if (*piVar5 != 0) {\n        (**(code **)(pcVar8 + 0xd9568))();\n      }\n      (**(code **)(pcVar8 + 0xd9568))(piVar5);\n    } while (uVar6 < *(uint *)(iVar4 + 0x14));\n  }" if (parenthesized_expression "(*(int *)(iVar4 + 0x14) != 0)" ( (binary_expression "*(int *)(iVar4 + 0x14) != 0" (pointer_expression "*(int *)(iVar4 + 0x14)" * (cast_expression "(int *)(iVar4 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar6 = 0;\n    do {\n      piVar5 = *(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4);\n      uVar6 = uVar6 + 1;\n      if ((void *)piVar5[2] != (void *)0x0) {\n        if (piVar5[3] == 0) {\n          (**(code **)(pcVar8 + 0xd9568))();\n        }\n        else {\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }\n      }\n      if (*piVar5 != 0) {\n        (**(code **)(pcVar8 + 0xd9568))();\n      }\n      (**(code **)(pcVar8 + 0xd9568))(piVar5);\n    } while (uVar6 < *(uint *)(iVar4 + 0x14));\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar5 = *(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4);\n      uVar6 = uVar6 + 1;\n      if ((void *)piVar5[2] != (void *)0x0) {\n        if (piVar5[3] == 0) {\n          (**(code **)(pcVar8 + 0xd9568))();\n        }\n        else {\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }\n      }\n      if (*piVar5 != 0) {\n        (**(code **)(pcVar8 + 0xd9568))();\n      }\n      (**(code **)(pcVar8 + 0xd9568))(piVar5);\n    } while (uVar6 < *(uint *)(iVar4 + 0x14));" do (compound_statement "{\n      piVar5 = *(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4);\n      uVar6 = uVar6 + 1;\n      if ((void *)piVar5[2] != (void *)0x0) {\n        if (piVar5[3] == 0) {\n          (**(code **)(pcVar8 + 0xd9568))();\n        }\n        else {\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }\n      }\n      if (*piVar5 != 0) {\n        (**(code **)(pcVar8 + 0xd9568))();\n      }\n      (**(code **)(pcVar8 + 0xd9568))(piVar5);\n    }" { (expression_statement "piVar5 = *(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4);" (assignment_expression "piVar5 = *(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4)" * (cast_expression "(int **)(*(int *)(iVar4 + 0x18) + uVar6 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar4 + 0x18) + uVar6 * 4)" ( (binary_expression "*(int *)(iVar4 + 0x18) + uVar6 * 4" (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) + (binary_expression "uVar6 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((void *)piVar5[2] != (void *)0x0) {\n        if (piVar5[3] == 0) {\n          (**(code **)(pcVar8 + 0xd9568))();\n        }\n        else {\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }\n      }" if (parenthesized_expression "((void *)piVar5[2] != (void *)0x0)" ( (binary_expression "(void *)piVar5[2] != (void *)0x0" (cast_expression "(void *)piVar5[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[2]" identifier [ number_literal ])) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (piVar5[3] == 0) {\n          (**(code **)(pcVar8 + 0xd9568))();\n        }\n        else {\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }\n      }" { (if_statement "if (piVar5[3] == 0) {\n          (**(code **)(pcVar8 + 0xd9568))();\n        }\n        else {\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }" if (parenthesized_expression "(piVar5[3] == 0)" ( (binary_expression "piVar5[3] == 0" (subscript_expression "piVar5[3]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          (**(code **)(pcVar8 + 0xd9568))();\n        }" { (expression_statement "(**(code **)(pcVar8 + 0xd9568))();" (call_expression "(**(code **)(pcVar8 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar8 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar8 + 0xd9568)" * (pointer_expression "*(code **)(pcVar8 + 0xd9568)" * (cast_expression "(code **)(pcVar8 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xd9568)" ( (binary_expression "pcVar8 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }" else (compound_statement "{\n          smemclr((void *)piVar5[2],piVar5[3]);\n          if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }\n        }" { (expression_statement "smemclr((void *)piVar5[2],piVar5[3]);" (call_expression "smemclr((void *)piVar5[2],piVar5[3])" identifier (argument_list "((void *)piVar5[2],piVar5[3])" ( (cast_expression "(void *)piVar5[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[2]" identifier [ number_literal ])) , (subscript_expression "piVar5[3]" identifier [ number_literal ]) ))) ;) (if_statement "if (piVar5[2] != 0) {\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }" if (parenthesized_expression "(piVar5[2] != 0)" ( (binary_expression "piVar5[2] != 0" (subscript_expression "piVar5[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            pcVar2 = (char *)FUN_00038d44();\n            return pcVar2;\n          }" { (expression_statement "pcVar2 = (char *)FUN_00038d44();" (assignment_expression "pcVar2 = (char *)FUN_00038d44()" identifier = (cast_expression "(char *)FUN_00038d44()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00038d44()" identifier (argument_list "()" ( ))))) ;) (return_statement "return pcVar2;" return identifier ;) })) }))) })) (if_statement "if (*piVar5 != 0) {\n        (**(code **)(pcVar8 + 0xd9568))();\n      }" if (parenthesized_expression "(*piVar5 != 0)" ( (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" * identifier) != number_literal) )) (compound_statement "{\n        (**(code **)(pcVar8 + 0xd9568))();\n      }" { (expression_statement "(**(code **)(pcVar8 + 0xd9568))();" (call_expression "(**(code **)(pcVar8 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar8 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar8 + 0xd9568)" * (pointer_expression "*(code **)(pcVar8 + 0xd9568)" * (cast_expression "(code **)(pcVar8 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xd9568)" ( (binary_expression "pcVar8 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "(**(code **)(pcVar8 + 0xd9568))(piVar5);" (call_expression "(**(code **)(pcVar8 + 0xd9568))(piVar5)" (parenthesized_expression "(**(code **)(pcVar8 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar8 + 0xd9568)" * (pointer_expression "*(code **)(pcVar8 + 0xd9568)" * (cast_expression "(code **)(pcVar8 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xd9568)" ( (binary_expression "pcVar8 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "(piVar5)" ( identifier ))) ;) }) while (parenthesized_expression "(uVar6 < *(uint *)(iVar4 + 0x14))" ( (binary_expression "uVar6 < *(uint *)(iVar4 + 0x14)" identifier < (pointer_expression "*(uint *)(iVar4 + 0x14)" * (cast_expression "(uint *)(iVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) )) ;) })) (if_statement "if (*(int *)(iVar4 + 0x18) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }" if (parenthesized_expression "(*(int *)(iVar4 + 0x18) != 0)" ( (binary_expression "*(int *)(iVar4 + 0x18) != 0" (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(pcVar8 + 0xd9568))();\n  }" { (expression_statement "(**(code **)(pcVar8 + 0xd9568))();" (call_expression "(**(code **)(pcVar8 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar8 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar8 + 0xd9568)" * (pointer_expression "*(code **)(pcVar8 + 0xd9568)" * (cast_expression "(code **)(pcVar8 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xd9568)" ( (binary_expression "pcVar8 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar4 + 4) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }" if (parenthesized_expression "(*(int *)(iVar4 + 4) != 0)" ( (binary_expression "*(int *)(iVar4 + 4) != 0" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(pcVar8 + 0xd9568))();\n  }" { (expression_statement "(**(code **)(pcVar8 + 0xd9568))();" (call_expression "(**(code **)(pcVar8 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar8 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar8 + 0xd9568)" * (pointer_expression "*(code **)(pcVar8 + 0xd9568)" * (cast_expression "(code **)(pcVar8 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xd9568)" ( (binary_expression "pcVar8 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar4 + 0xc) != 0) {\n    (**(code **)(pcVar8 + 0xd9568))();\n  }" if (parenthesized_expression "(*(int *)(iVar4 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar4 + 0xc) != 0" (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(pcVar8 + 0xd9568))();\n  }" { (expression_statement "(**(code **)(pcVar8 + 0xd9568))();" (call_expression "(**(code **)(pcVar8 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar8 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar8 + 0xd9568)" * (pointer_expression "*(code **)(pcVar8 + 0xd9568)" * (cast_expression "(code **)(pcVar8 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xd9568)" ( (binary_expression "pcVar8 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) comment comment (expression_statement "pcVar2 = (char *)(**(code **)(pcVar8 + 0xd9568))(iVar4);" (assignment_expression "pcVar2 = (char *)(**(code **)(pcVar8 + 0xd9568))(iVar4)" identifier = (cast_expression "(char *)(**(code **)(pcVar8 + 0xd9568))(iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(pcVar8 + 0xd9568))(iVar4)" (parenthesized_expression "(**(code **)(pcVar8 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar8 + 0xd9568)" * (pointer_expression "*(code **)(pcVar8 + 0xd9568)" * (cast_expression "(code **)(pcVar8 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar8 + 0xd9568)" ( (binary_expression "pcVar8 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "(iVar4)" ( identifier ))))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "void host_strchr(undefined4 param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  code *pcVar6;\n  undefined1 local_10;\n  undefined1 local_f;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00112630;\n  local_f = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  local_10 = param_2;\n  FUN_00038830(param_1,&local_10,1);\n  if (local_c == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  piVar2 = *(int **)(puVar4 + 0xd99a4);\n  iVar1 = *piVar2;\n  FUN_00038830();\n  if (iVar1 == *piVar2) {\n    return;\n  }\n  pcVar5 = *(code **)(puVar4 + 0xd963c);\n  (*pcVar5)();\n  if (*(int *)(iVar1 + 0x14) != 0) {\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }\n  if (*(int *)(iVar1 + 0x18) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 4) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 0xc) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n                    \n                    \n  (**(code **)(pcVar5 + 0xd9568))(iVar1);\n  return;\n}\n\n" (function_definition "void host_strchr(undefined4 param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  code *pcVar6;\n  undefined1 local_10;\n  undefined1 local_f;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00112630;\n  local_f = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  local_10 = param_2;\n  FUN_00038830(param_1,&local_10,1);\n  if (local_c == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  piVar2 = *(int **)(puVar4 + 0xd99a4);\n  iVar1 = *piVar2;\n  FUN_00038830();\n  if (iVar1 == *piVar2) {\n    return;\n  }\n  pcVar5 = *(code **)(puVar4 + 0xd963c);\n  (*pcVar5)();\n  if (*(int *)(iVar1 + 0x14) != 0) {\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }\n  if (*(int *)(iVar1 + 0x18) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 4) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 0xc) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n                    \n                    \n  (**(code **)(pcVar5 + 0xd9568))(iVar1);\n  return;\n}" primitive_type (function_declarator "host_strchr(undefined4 param_1,undefined1 param_2)" identifier (parameter_list "(undefined4 param_1,undefined1 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  code *pcVar6;\n  undefined1 local_10;\n  undefined1 local_f;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00112630;\n  local_f = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  local_10 = param_2;\n  FUN_00038830(param_1,&local_10,1);\n  if (local_c == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  piVar2 = *(int **)(puVar4 + 0xd99a4);\n  iVar1 = *piVar2;\n  FUN_00038830();\n  if (iVar1 == *piVar2) {\n    return;\n  }\n  pcVar5 = *(code **)(puVar4 + 0xd963c);\n  (*pcVar5)();\n  if (*(int *)(iVar1 + 0x14) != 0) {\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }\n  if (*(int *)(iVar1 + 0x18) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 4) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 0xc) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n                    \n                    \n  (**(code **)(pcVar5 + 0xd9568))(iVar1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined1 local_10;" type_identifier identifier ;) (declaration "undefined1 local_f;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar4 = PTR___stack_chk_guard_00112630" identifier = identifier) ;) (expression_statement "local_f = 0;" (assignment_expression "local_f = 0" identifier = number_literal) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00112630" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" * (cast_expression "(int *)PTR___stack_chk_guard_00112630" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_10 = param_2;" (assignment_expression "local_10 = param_2" identifier = identifier) ;) (expression_statement "FUN_00038830(param_1,&local_10,1);" (call_expression "FUN_00038830(param_1,&local_10,1)" identifier (argument_list "(param_1,&local_10,1)" ( identifier , (pointer_expression "&local_10" & identifier) , number_literal ))) ;) (if_statement "if (local_c == *(int *)puVar4) {\n    return;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar4)" ( (binary_expression "local_c == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar4 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar4 = PTR___stack_chk_fail_001122c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" * (cast_expression "(code *)PTR___stack_chk_fail_001122c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar2 = *(int **)(puVar4 + 0xd99a4);" (assignment_expression "piVar2 = *(int **)(puVar4 + 0xd99a4)" identifier = (pointer_expression "*(int **)(puVar4 + 0xd99a4)" * (cast_expression "(int **)(puVar4 + 0xd99a4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0xd99a4)" ( (binary_expression "puVar4 + 0xd99a4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar1 == *piVar2) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *piVar2)" ( (binary_expression "iVar1 == *piVar2" identifier == (pointer_expression "*piVar2" * identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar5 = *(code **)(puVar4 + 0xd963c);" (assignment_expression "pcVar5 = *(code **)(puVar4 + 0xd963c)" identifier = (pointer_expression "*(code **)(puVar4 + 0xd963c)" * (cast_expression "(code **)(puVar4 + 0xd963c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0xd963c)" ( (binary_expression "puVar4 + 0xd963c" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar5)();" (call_expression "(*pcVar5)()" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(iVar1 + 0x14) != 0) {\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x14) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x14) != 0" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));" do (compound_statement "{\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    }" { (expression_statement "piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);" (assignment_expression "piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4)" * (cast_expression "(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar1 + 0x18) + uVar3 * 4)" ( (binary_expression "*(int *)(iVar1 + 0x18) + uVar3 * 4" (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) + (binary_expression "uVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (if_statement "if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }" if (parenthesized_expression "(piVar2[2] != 0)" ( (binary_expression "piVar2[2] != 0" (subscript_expression "piVar2[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }" { (expression_statement "pcVar6 = *(code **)(pcVar5 + 0xd9568);" (assignment_expression "pcVar6 = *(code **)(pcVar5 + 0xd9568)" identifier = (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) ;) (if_statement "if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }" if (parenthesized_expression "(piVar2[3] != 0)" ( (binary_expression "piVar2[3] != 0" (subscript_expression "piVar2[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }" { (expression_statement "FUN_00038934();" (call_expression "FUN_00038934()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piVar2[2] == 0) goto LAB_00038d50;" if (parenthesized_expression "(piVar2[2] == 0)" ( (binary_expression "piVar2[2] == 0" (subscript_expression "piVar2[2]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_00038d50;" goto statement_identifier ;)) (expression_statement "pcVar6 = *(code **)(pcVar5 + 0xd9568);" (assignment_expression "pcVar6 = *(code **)(pcVar5 + 0xd9568)" identifier = (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) ;) })) (expression_statement "(*pcVar6)();" (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "()" ( ))) ;) })) (labeled_statement "LAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }" statement_identifier : (if_statement "if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n        (**(code **)(pcVar5 + 0xd9568))();\n      }" { (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))) (expression_statement "(**(code **)(pcVar5 + 0xd9568))(piVar2);" (call_expression "(**(code **)(pcVar5 + 0xd9568))(piVar2)" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) }) while (parenthesized_expression "(uVar3 < *(uint *)(iVar1 + 0x14))" ( (binary_expression "uVar3 < *(uint *)(iVar1 + 0x14)" identifier < (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) )) ;) })) (if_statement "if (*(int *)(iVar1 + 0x18) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x18) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x18) != 0" (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" { (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar1 + 4) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 4) != 0)" ( (binary_expression "*(int *)(iVar1 + 4) != 0" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" { (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar1 + 0xc) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" { (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "(**(code **)(pcVar5 + 0xd9568))(iVar1);" (call_expression "(**(code **)(pcVar5 + 0xd9568))(iVar1)" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" ( (pointer_expression "**(code **)(pcVar5 + 0xd9568)" * (pointer_expression "*(code **)(pcVar5 + 0xd9568)" * (cast_expression "(code **)(pcVar5 + 0xd9568)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0xd9568)" ( (binary_expression "pcVar5 + 0xd9568" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void host_strchr(undefined4 param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  code *pcVar6;\n  undefined1 local_10;\n  undefined1 local_f;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00112630;\n  local_f = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  local_10 = param_2;\n  FUN_00038830(param_1,&local_10,1);\n  if (local_c == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  piVar2 = *(int **)(puVar4 + 0xd99a4);\n  iVar1 = *piVar2;\n  FUN_00038830();\n  if (iVar1 == *piVar2) {\n    return;\n  }\n  pcVar5 = *(code **)(puVar4 + 0xd963c);\n  (*pcVar5)();\n  if (*(int *)(iVar1 + 0x14) != 0) {\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }\n  if (*(int *)(iVar1 + 0x18) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 4) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 0xc) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n                    \n                    \n  (**(code **)(pcVar5 + 0xd9568))(iVar1);\n  return;\n}" (primitive_type "void") (function_declarator "host_strchr(undefined4 param_1,undefined1 param_2)" (identifier "host_strchr") (parameter_list "(undefined4 param_1,undefined1 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  code *pcVar6;\n  undefined1 local_10;\n  undefined1 local_f;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00112630;\n  local_f = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  local_10 = param_2;\n  FUN_00038830(param_1,&local_10,1);\n  if (local_c == *(int *)puVar4) {\n    return;\n  }\n  puVar4 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  piVar2 = *(int **)(puVar4 + 0xd99a4);\n  iVar1 = *piVar2;\n  FUN_00038830();\n  if (iVar1 == *piVar2) {\n    return;\n  }\n  pcVar5 = *(code **)(puVar4 + 0xd963c);\n  (*pcVar5)();\n  if (*(int *)(iVar1 + 0x14) != 0) {\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }\n  if (*(int *)(iVar1 + 0x18) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 4) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n  if (*(int *)(iVar1 + 0xc) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }\n                    \n                    \n  (**(code **)(pcVar5 + 0xd9568))(iVar1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "code *pcVar5;" (type_identifier "code") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined1 local_10;" (type_identifier "undefined1") (identifier "local_10") (; ";")) (declaration "undefined1 local_f;" (type_identifier "undefined1") (identifier "local_f") (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "puVar4 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar4 = PTR___stack_chk_guard_00112630" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_guard_00112630")) (; ";")) (expression_statement "local_f = 0;" (assignment_expression "local_f = 0" (identifier "local_f") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00112630" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00112630" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00112630")))) (; ";")) (expression_statement "local_10 = param_2;" (assignment_expression "local_10 = param_2" (identifier "local_10") (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_00038830(param_1,&local_10,1);" (call_expression "FUN_00038830(param_1,&local_10,1)" (identifier "FUN_00038830") (argument_list "(param_1,&local_10,1)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (local_c == *(int *)puVar4) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_c == *(int *)puVar4)" (( "(") (binary_expression "local_c == *(int *)puVar4" (identifier "local_c") (== "==") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar4 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar4 = PTR___stack_chk_fail_001122c8" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_fail_001122c8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_001122c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_001122c8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar2 = *(int **)(puVar4 + 0xd99a4);" (assignment_expression "piVar2 = *(int **)(puVar4 + 0xd99a4)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(puVar4 + 0xd99a4)" (* "*") (cast_expression "(int **)(puVar4 + 0xd99a4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0xd99a4)" (( "(") (binary_expression "puVar4 + 0xd99a4" (identifier "puVar4") (+ "+") (number_literal "0xd99a4")) () ")"))))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "FUN_00038830();" (call_expression "FUN_00038830()" (identifier "FUN_00038830") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar1 == *piVar2) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == *piVar2)" (( "(") (binary_expression "iVar1 == *piVar2" (identifier "iVar1") (== "==") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar5 = *(code **)(puVar4 + 0xd963c);" (assignment_expression "pcVar5 = *(code **)(puVar4 + 0xd963c)" (identifier "pcVar5") (= "=") (pointer_expression "*(code **)(puVar4 + 0xd963c)" (* "*") (cast_expression "(code **)(puVar4 + 0xd963c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0xd963c)" (( "(") (binary_expression "puVar4 + 0xd963c" (identifier "puVar4") (+ "+") (number_literal "0xd963c")) () ")"))))) (; ";")) (expression_statement "(*pcVar5)();" (call_expression "(*pcVar5)()" (parenthesized_expression "(*pcVar5)" (( "(") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x14) != 0) {\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x14) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x14) != 0" (pointer_expression "*(int *)(iVar1 + 0x14)" (* "*") (cast_expression "(int *)(iVar1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = 0;\n    do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    } while (uVar3 < *(uint *)(iVar1 + 0x14));" (do "do") (compound_statement "{\n      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);\n      uVar3 = uVar3 + 1;\n      if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }\nLAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }\n      (**(code **)(pcVar5 + 0xd9568))(piVar2);\n    }" ({ "{") (expression_statement "piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);" (assignment_expression "piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4)" (* "*") (cast_expression "(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0x18) + uVar3 * 4)" (( "(") (binary_expression "*(int *)(iVar1 + 0x18) + uVar3 * 4" (pointer_expression "*(int *)(iVar1 + 0x18)" (* "*") (cast_expression "(int *)(iVar1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (piVar2[2] != 0) {\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }" (if "if") (parenthesized_expression "(piVar2[2] != 0)" (( "(") (binary_expression "piVar2[2] != 0" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }\n        (*pcVar6)();\n      }" ({ "{") (expression_statement "pcVar6 = *(code **)(pcVar5 + 0xd9568);" (assignment_expression "pcVar6 = *(code **)(pcVar5 + 0xd9568)" (identifier "pcVar6") (= "=") (pointer_expression "*(code **)(pcVar5 + 0xd9568)" (* "*") (cast_expression "(code **)(pcVar5 + 0xd9568)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar5 + 0xd9568)" (( "(") (binary_expression "pcVar5 + 0xd9568" (identifier "pcVar5") (+ "+") (number_literal "0xd9568")) () ")"))))) (; ";")) (if_statement "if (piVar2[3] != 0) {\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }" (if "if") (parenthesized_expression "(piVar2[3] != 0)" (( "(") (binary_expression "piVar2[3] != 0" (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_00038934();\n          if (piVar2[2] == 0) goto LAB_00038d50;\n          pcVar6 = *(code **)(pcVar5 + 0xd9568);\n        }" ({ "{") (expression_statement "FUN_00038934();" (call_expression "FUN_00038934()" (identifier "FUN_00038934") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (piVar2[2] == 0) goto LAB_00038d50;" (if "if") (parenthesized_expression "(piVar2[2] == 0)" (( "(") (binary_expression "piVar2[2] == 0" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00038d50;" (goto "goto") (statement_identifier "LAB_00038d50") (; ";"))) (expression_statement "pcVar6 = *(code **)(pcVar5 + 0xd9568);" (assignment_expression "pcVar6 = *(code **)(pcVar5 + 0xd9568)" (identifier "pcVar6") (= "=") (pointer_expression "*(code **)(pcVar5 + 0xd9568)" (* "*") (cast_expression "(code **)(pcVar5 + 0xd9568)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar5 + 0xd9568)" (( "(") (binary_expression "pcVar5 + 0xd9568" (identifier "pcVar5") (+ "+") (number_literal "0xd9568")) () ")"))))) (; ";")) (} "}"))) (expression_statement "(*pcVar6)();" (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00038d50:\n      if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }" (statement_identifier "LAB_00038d50") (: ":") (if_statement "if (*piVar2 != 0) {\n        (**(code **)(pcVar5 + 0xd9568))();\n      }" (if "if") (parenthesized_expression "(*piVar2 != 0)" (( "(") (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)(pcVar5 + 0xd9568))();\n      }" ({ "{") (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" (( "(") (pointer_expression "**(code **)(pcVar5 + 0xd9568)" (* "*") (pointer_expression "*(code **)(pcVar5 + 0xd9568)" (* "*") (cast_expression "(code **)(pcVar5 + 0xd9568)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar5 + 0xd9568)" (( "(") (binary_expression "pcVar5 + 0xd9568" (identifier "pcVar5") (+ "+") (number_literal "0xd9568")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "(**(code **)(pcVar5 + 0xd9568))(piVar2);" (call_expression "(**(code **)(pcVar5 + 0xd9568))(piVar2)" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" (( "(") (pointer_expression "**(code **)(pcVar5 + 0xd9568)" (* "*") (pointer_expression "*(code **)(pcVar5 + 0xd9568)" (* "*") (cast_expression "(code **)(pcVar5 + 0xd9568)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar5 + 0xd9568)" (( "(") (binary_expression "pcVar5 + 0xd9568" (identifier "pcVar5") (+ "+") (number_literal "0xd9568")) () ")"))))) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 < *(uint *)(iVar1 + 0x14))" (( "(") (binary_expression "uVar3 < *(uint *)(iVar1 + 0x14)" (identifier "uVar3") (< "<") (pointer_expression "*(uint *)(iVar1 + 0x14)" (* "*") (cast_expression "(uint *)(iVar1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar1 + 0x18) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x18) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x18) != 0" (pointer_expression "*(int *)(iVar1 + 0x18)" (* "*") (cast_expression "(int *)(iVar1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" ({ "{") (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" (( "(") (pointer_expression "**(code **)(pcVar5 + 0xd9568)" (* "*") (pointer_expression "*(code **)(pcVar5 + 0xd9568)" (* "*") (cast_expression "(code **)(pcVar5 + 0xd9568)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar5 + 0xd9568)" (( "(") (binary_expression "pcVar5 + 0xd9568" (identifier "pcVar5") (+ "+") (number_literal "0xd9568")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar1 + 4) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 4) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 4) != 0" (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" ({ "{") (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" (( "(") (pointer_expression "**(code **)(pcVar5 + 0xd9568)" (* "*") (pointer_expression "*(code **)(pcVar5 + 0xd9568)" (* "*") (cast_expression "(code **)(pcVar5 + 0xd9568)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar5 + 0xd9568)" (( "(") (binary_expression "pcVar5 + 0xd9568" (identifier "pcVar5") (+ "+") (number_literal "0xd9568")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar1 + 0xc) != 0) {\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(pcVar5 + 0xd9568))();\n  }" ({ "{") (expression_statement "(**(code **)(pcVar5 + 0xd9568))();" (call_expression "(**(code **)(pcVar5 + 0xd9568))()" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" (( "(") (pointer_expression "**(code **)(pcVar5 + 0xd9568)" (* "*") (pointer_expression "*(code **)(pcVar5 + 0xd9568)" (* "*") (cast_expression "(code **)(pcVar5 + 0xd9568)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar5 + 0xd9568)" (( "(") (binary_expression "pcVar5 + 0xd9568" (identifier "pcVar5") (+ "+") (number_literal "0xd9568")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "(**(code **)(pcVar5 + 0xd9568))(iVar1);" (call_expression "(**(code **)(pcVar5 + 0xd9568))(iVar1)" (parenthesized_expression "(**(code **)(pcVar5 + 0xd9568))" (( "(") (pointer_expression "**(code **)(pcVar5 + 0xd9568)" (* "*") (pointer_expression "*(code **)(pcVar5 + 0xd9568)" (* "*") (cast_expression "(code **)(pcVar5 + 0xd9568)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar5 + 0xd9568)" (( "(") (binary_expression "pcVar5 + 0xd9568" (identifier "pcVar5") (+ "+") (number_literal "0xd9568")) () ")"))))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

char * function_1(char *s,int c)

{
  type_1 *puVar1;
  char *var_2;
  char *pcVar3;
  int var_5;
  char *set_00;
  int *piVar5;
  type_2 var_6;
  type_1 *var_3;
  type_3 *var_7;
  char acStack_38 [4];
  int var_4;
  type_1 *puStack_30;
  type_3 *pcStack_2c;
  char set [2];
  
  puVar1 = PTR___stack_chk_guard_00112630;
  set[0] = (char)c;
  set_00 = set;
  set[1] = '\0';
  var_2 = *(char **)PTR___stack_chk_guard_00112630;
  pcVar3 = var_1(s,set_00,1);
  acStack_38[0] = (char)set_00;
  if (var_2 == *(char **)puVar1) {
    return pcVar3;
  }
  var_7 = host_strrchr;
  var_3 = PTR___stack_chk_fail_001122c8;
  (*(type_3 *)PTR___stack_chk_fail_001122c8)();
  puStack_30 = puVar1;
  piVar5 = *(int **)(var_3 + 0xd99a4);
  acStack_38[1] = 0;
  var_4 = *piVar5;
  pcStack_2c = var_7;
  var_2 = var_1(var_2,acStack_38,0);
  if (var_4 == *piVar5) {
    return var_2;
  }
  var_7 = *(type_3 **)(var_3 + 0xd963c);
  var_5 = var_4;
  (*var_7)();
  if (*(int *)(var_5 + 0x14) != 0) {
    var_6 = 0;
    do {
      piVar5 = *(int **)(*(int *)(var_5 + 0x18) + var_6 * 4);
      var_6 = var_6 + 1;
      if ((void *)piVar5[2] != (void *)0x0) {
        if (piVar5[3] == 0) {
          (**(type_3 **)(var_7 + 0xd9568))();
        }
        else {
          var_8((void *)piVar5[2],piVar5[3]);
          if (piVar5[2] != 0) {
            var_2 = (char *)var_9();
            return var_2;
          }
        }
      }
      if (*piVar5 != 0) {
        (**(type_3 **)(var_7 + 0xd9568))();
      }
      (**(type_3 **)(var_7 + 0xd9568))(piVar5);
    } while (var_6 < *(type_2 *)(var_5 + 0x14));
  }
  if (*(int *)(var_5 + 0x18) != 0) {
    (**(type_3 **)(var_7 + 0xd9568))();
  }
  if (*(int *)(var_5 + 4) != 0) {
    (**(type_3 **)(var_7 + 0xd9568))();
  }
  if (*(int *)(var_5 + 0xc) != 0) {
    (**(type_3 **)(var_7 + 0xd9568))();
  }
                    /* WARNING: Could not recover jumptable at 0x00038e30. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  var_2 = (char *)(**(type_3 **)(var_7 + 0xd9568))(var_5);
  return var_2;
}


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

void MASKED(undefined4 param_1,undefined1 param_2)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  undefined *puVar4;
  code *pcVar5;
  code *pcVar6;
  undefined1 local_10;
  undefined1 local_f;
  int local_c;
  
  puVar4 = PTR___stack_chk_guard_00112630;
  local_f = 0;
  local_c = *(int *)PTR___stack_chk_guard_00112630;
  local_10 = param_2;
  FUN_00038830(param_1,&local_10,1);
  if (local_c == *(int *)puVar4) {
    return;
  }
  puVar4 = PTR___stack_chk_fail_001122c8;
  (*(code *)PTR___stack_chk_fail_001122c8)();
  piVar2 = *(int **)(puVar4 + 0xd99a4);
  iVar1 = *piVar2;
  FUN_00038830();
  if (iVar1 == *piVar2) {
    return;
  }
  pcVar5 = *(code **)(puVar4 + 0xd963c);
  (*pcVar5)();
  if (*(int *)(iVar1 + 0x14) != 0) {
    uVar3 = 0;
    do {
      piVar2 = *(int **)(*(int *)(iVar1 + 0x18) + uVar3 * 4);
      uVar3 = uVar3 + 1;
      if (piVar2[2] != 0) {
        pcVar6 = *(code **)(pcVar5 + 0xd9568);
        if (piVar2[3] != 0) {
          FUN_00038934();
          if (piVar2[2] == 0) goto LAB_00038d50;
          pcVar6 = *(code **)(pcVar5 + 0xd9568);
        }
        (*pcVar6)();
      }
LAB_00038d50:
      if (*piVar2 != 0) {
        (**(code **)(pcVar5 + 0xd9568))();
      }
      (**(code **)(pcVar5 + 0xd9568))(piVar2);
    } while (uVar3 < *(uint *)(iVar1 + 0x14));
  }
  if (*(int *)(iVar1 + 0x18) != 0) {
    (**(code **)(pcVar5 + 0xd9568))();
  }
  if (*(int *)(iVar1 + 4) != 0) {
    (**(code **)(pcVar5 + 0xd9568))();
  }
  if (*(int *)(iVar1 + 0xc) != 0) {
    (**(code **)(pcVar5 + 0xd9568))();
  }
                    /* WARNING: Could not recover jumptable at 0x00038e30. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(pcVar5 + 0xd9568))(iVar1);
  return;
}

