
int parse_module(char *fname,stat *sb,void *data,int depth)

{
  char cVar1;
  int iVar2;
  char *pcVar3;
  llist_t **llist;
  char *pcVar4;
  char *unaff_s1;
  llist_t **unaff_s3;
  char *unaff_s4;
  llist_t **unaff_s5;
  llist_t **pplVar5;
  char *unaff_s6;
  undefined *unaff_s7;
  size_t len;
  int local_2c;
  
  local_2c = *(int *)PTR___stack_chk_guard_00132164;
  len = 0x3fff000;
  iVar2 = (*(code *)PTR_strrstr_00131444)(fname,PTR_bdcommands_4__name_4__001311a4 + -0x6cd8);
  pplVar5 = (llist_t **)&len;
  pcVar3 = fname;
  if (iVar2 == 0) goto LAB_00036f80;
  pcVar3 = (char *)(*(code *)PTR_xmalloc_open_zipped_read_close_00131448)(fname);
  llist = (llist_t **)bb_get_last_path_component_nostrip(fname);
  data = moddb_get_or_create((module_db *)data,(char *)llist);
  pcVar4 = xstrdup(fname + 2);
  ((module_entry *)data)->name = pcVar4;
  unaff_s1 = pcVar3;
  if (pcVar3 + (len - 10) <= pcVar3) goto LAB_00036f70;
  unaff_s6 = PTR_bdcommands_4__name_4__001311a4 + -0x6cd4;
  pplVar5 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cc8);
  unaff_s4 = PTR_bdcommands_4__name_4__001311a4 + -0x6cc0;
  unaff_s3 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cb4);
  unaff_s7 = PTR_bdcommands_4__name_4__001311a4;
  do {
    pcVar4 = is_prefixed_with(pcVar3,unaff_s6);
    unaff_s5 = pplVar5;
    if (pcVar4 == (char *)0x0) goto LAB_00036fa0;
    pcVar4 = pcVar3 + 8;
    cVar1 = pcVar3[8];
    pcVar3 = pcVar4;
    while (cVar1 != '\0') {
      if (cVar1 == '-') {
        *pcVar3 = '_';
      }
      pcVar3 = pcVar3 + 1;
      cVar1 = *pcVar3;
    }
    llist = &((module_entry *)data)->deps;
    iVar2 = string_to_llist(pcVar4,llist,PTR_bdcommands_4__name_4__001311a4 + 0xc98);
    pcVar3 = pcVar4 + iVar2;
    while (pcVar3 = pcVar3 + 1, fname = pcVar3, unaff_s5 = pplVar5, unaff_s1 + (len - 10) <= pcVar3)
    {
LAB_00036f70:
      (*(code *)PTR_free_00132180)(unaff_s1);
      pplVar5 = llist;
      pcVar3 = fname;
LAB_00036f80:
      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {
        return 1;
      }
      (*(code *)PTR___stack_chk_fail_001320e4)();
LAB_00036fa0:
      pcVar4 = is_prefixed_with(pcVar3,(char *)pplVar5);
      pplVar5 = unaff_s5;
      if (pcVar4 == (char *)0x0) {
        pcVar4 = is_prefixed_with(pcVar3,unaff_s4);
        llist = unaff_s3;
        if (pcVar4 != (char *)0x0) {
          pcVar3 = pcVar3 + 10;
          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);
          llist = (llist_t **)(unaff_s7 + -0x6cb0);
          if ((pcVar4 == (char *)0x0) &&
             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {
            llist = (llist_t **)xstrdup(pcVar3);
            llist_add_to(&((module_entry *)data)->symbols,llist);
            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);
            pcVar3 = pcVar3 + iVar2;
          }
        }
      }
      else {
        llist = (llist_t **)xstrdup(pcVar3 + 6);
        llist_add_to(&((module_entry *)data)->aliases,llist);
        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);
        pcVar3 = pcVar3 + iVar2;
      }
    }
  } while( true );
}



undefined4 FUN_00036dc0(char *param_1,undefined4 param_2,int param_3)

{
  char cVar1;
  int iVar2;
  char *pcVar3;
  undefined4 uVar4;
  char *unaff_s1;
  undefined *unaff_s3;
  undefined *unaff_s4;
  undefined *unaff_s6;
  undefined *unaff_s7;
  char *pcVar5;
  int local_30;
  int local_2c;
  
  local_2c = *(int *)PTR___stack_chk_guard_00132164;
  local_30 = 0x3fff000;
  iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);
  pcVar3 = param_1;
  if (iVar2 == 0) goto LAB_00036f80;
  pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);
  uVar4 = FUN_00018b68(param_1);
  param_3 = FUN_0003967c(param_3,uVar4);
  uVar4 = FUN_0001a640(param_1 + 2);
  *(undefined4 *)(param_3 + 4) = uVar4;
  unaff_s1 = pcVar3;
  if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;
  unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;
  unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;
  unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;
  unaff_s7 = PTR_FUN_001311a4;
  do {
    iVar2 = FUN_00018778(pcVar3,unaff_s6);
    if (iVar2 == 0) goto LAB_00036fa0;
    pcVar5 = pcVar3 + 8;
    cVar1 = pcVar3[8];
    pcVar3 = pcVar5;
    while (cVar1 != '\0') {
      if (cVar1 == '-') {
        *pcVar3 = '_';
      }
      pcVar3 = pcVar3 + 1;
      cVar1 = *pcVar3;
    }
    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);
    pcVar3 = pcVar5 + iVar2;
    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {
LAB_00036f70:
      (*(code *)PTR_free_00132180)(unaff_s1);
      pcVar3 = param_1;
LAB_00036f80:
      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {
        return 1;
      }
      (*(code *)PTR___stack_chk_fail_001320e4)();
LAB_00036fa0:
      iVar2 = FUN_00018778(pcVar3);
      if (iVar2 == 0) {
        iVar2 = FUN_00018778(pcVar3,unaff_s4);
        if (iVar2 != 0) {
          pcVar3 = pcVar3 + 10;
          iVar2 = FUN_00018778(pcVar3,unaff_s3);
          if ((iVar2 == 0) &&
             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {
            uVar4 = FUN_0001a640(pcVar3);
            FUN_00018cd8(param_3 + 0x24,uVar4);
            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);
            pcVar3 = pcVar3 + iVar2;
          }
        }
      }
      else {
        uVar4 = FUN_0001a640(pcVar3 + 6);
        FUN_00018cd8(param_3 + 0x20,uVar4);
        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);
        pcVar3 = pcVar3 + iVar2;
      }
    }
  } while( true );
}


lui gp,0x10
addiu gp,gp,0x2390
addu gp,gp,t9
addiu sp,sp,-0x48
sw ra,0x44(sp)
sw s8,0x40(sp)
sw s7,0x3c(sp)
sw s6,0x38(sp)
sw s5,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x10(sp)
or s0,a0,zero
or s2,a2,zero
lw v0,-0x6fec(gp)
lw v0,0x0(v0)
sw v0,0x1c(sp)
lui v0,0x3ff
ori v0,v0,0xf000
sw v0,0x18(sp)
lw a1,-0x7fac(gp)
addiu a1,a1,-0x6cd8
lw t9,-0x7d0c(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x00036f80
_addiu a1,sp,0x18
or a0,s0,zero
lw t9,-0x7d08(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s1,v0,zero
or a0,s0,zero
lw t9,-0x7f2c(gp)
bal 0x00018b68
_nop
lw gp,0x10(sp)
or a1,v0,zero
or a0,s2,zero
lw t9,-0x7d04(gp)
bal 0x0003967c
_nop
lw gp,0x10(sp)
or s2,v0,zero
addiu a0,s0,0x2
lw t9,-0x7e98(gp)
bal 0x0001a640
_nop
lw gp,0x10(sp)
sw v0,0x4(s2)
lw v0,0x18(sp)
addiu v0,v0,-0xa
addu v0,s1,v0
sltu v0,s1,v0
beq v0,zero,0x00036f70
_or a0,s1,zero
or s0,s1,zero
lw s6,-0x7fac(gp)
addiu s6,s6,-0x6cd4
lw s5,-0x7fac(gp)
addiu s5,s5,-0x6cc8
lw s4,-0x7fac(gp)
addiu s4,s4,-0x6cc0
lw s3,-0x7fac(gp)
addiu s3,s3,-0x6cb4
lw s7,-0x7fac(gp)
or a1,s6,zero
or a0,s0,zero
lw t9,-0x7f54(gp)
bal 0x00018778
_nop
lw gp,0x10(sp)
beq v0,zero,0x00036fa0
_or a1,s5,zero
lbu v1,0x8(s0)
beq v1,zero,0x00036f30
_addiu s8,s0,0x8
or v0,s8,zero
li a1,0x2d
li a0,0x5f
bne v1,a1,0x00036f20
_nop
sb a0,0x0(v0)
addiu v0,v0,0x1
lbu v1,0x0(v0)
bne v1,zero,0x00036f14
_nop
lw a2,-0x7fac(gp)
addiu a2,a2,0xc98
addiu a1,s2,0xc
or a0,s8,zero
lw t9,-0x7d00(gp)
bal 0x00039304
_nop
lw gp,0x10(sp)
addu s0,s8,v0
addiu s0,s0,0x1
lw v0,0x18(sp)
addiu v0,v0,-0xa
addu v0,s1,v0
sltu v0,s0,v0
bne v0,zero,0x00036edc
_or a0,s1,zero
lw t9,-0x6fd0(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v0,0x1
lw a0,0x1c(sp)
lw v1,-0x6fec(gp)
lw v1,0x0(v1)
beq a0,v1,0x000370a0
_lw t9,-0x706c(gp)
jalr t9
_nop
or a0,s0,zero
lw t9,-0x7f54(gp)
bal 0x00018778
_nop
lw gp,0x10(sp)
beq v0,zero,0x00037000
_addiu a0,s0,0x6
lw t9,-0x7e98(gp)
bal 0x0001a640
_nop
lw gp,0x10(sp)
or a1,v0,zero
addiu a0,s2,0x20
lw t9,-0x7cfc(gp)
bal 0x00018cd8
_nop
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x71f8(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00036f54
_addu s0,s0,v0
or a1,s4,zero
or a0,s0,zero
lw t9,-0x7f54(gp)
bal 0x00018778
_nop
lw gp,0x10(sp)
beq v0,zero,0x00036f54
_or a1,s3,zero
addiu s0,s0,0xa
or a0,s0,zero
lw t9,-0x7f54(gp)
bal 0x00018778
_nop
lw gp,0x10(sp)
bne v0,zero,0x00036f54
_addiu a1,s7,-0x6cb0
or a0,s0,zero
lw t9,-0x6f70(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x00036f54
_or a0,s0,zero
lw t9,-0x7e98(gp)
bal 0x0001a640
_nop
lw gp,0x10(sp)
or a1,v0,zero
addiu a0,s2,0x24
lw t9,-0x7cfc(gp)
bal 0x00018cd8
_nop
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x71f8(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00036f54
_addu s0,s0,v0
lw ra,0x44(sp)
lw s8,0x40(sp)
lw s7,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x48
(translation_unit "undefined4 FUN_00036dc0(char *param_1,undefined4 param_2,int param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char *unaff_s1;\n  undefined *unaff_s3;\n  undefined *unaff_s4;\n  undefined *unaff_s6;\n  undefined *unaff_s7;\n  char *pcVar5;\n  int local_30;\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_00132164;\n  local_30 = 0x3fff000;\n  iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);\n  pcVar3 = param_1;\n  if (iVar2 == 0) goto LAB_00036f80;\n  pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);\n  uVar4 = FUN_00018b68(param_1);\n  param_3 = FUN_0003967c(param_3,uVar4);\n  uVar4 = FUN_0001a640(param_1 + 2);\n  *(undefined4 *)(param_3 + 4) = uVar4;\n  unaff_s1 = pcVar3;\n  if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;\n  unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;\n  unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;\n  unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;\n  unaff_s7 = PTR_FUN_001311a4;\n  do {\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_00036dc0(char *param_1,undefined4 param_2,int param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char *unaff_s1;\n  undefined *unaff_s3;\n  undefined *unaff_s4;\n  undefined *unaff_s6;\n  undefined *unaff_s7;\n  char *pcVar5;\n  int local_30;\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_00132164;\n  local_30 = 0x3fff000;\n  iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);\n  pcVar3 = param_1;\n  if (iVar2 == 0) goto LAB_00036f80;\n  pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);\n  uVar4 = FUN_00018b68(param_1);\n  param_3 = FUN_0003967c(param_3,uVar4);\n  uVar4 = FUN_0001a640(param_1 + 2);\n  *(undefined4 *)(param_3 + 4) = uVar4;\n  unaff_s1 = pcVar3;\n  if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;\n  unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;\n  unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;\n  unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;\n  unaff_s7 = PTR_FUN_001311a4;\n  do {\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_00036dc0(char *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(char *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char *unaff_s1;\n  undefined *unaff_s3;\n  undefined *unaff_s4;\n  undefined *unaff_s6;\n  undefined *unaff_s7;\n  char *pcVar5;\n  int local_30;\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_00132164;\n  local_30 = 0x3fff000;\n  iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);\n  pcVar3 = param_1;\n  if (iVar2 == 0) goto LAB_00036f80;\n  pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);\n  uVar4 = FUN_00018b68(param_1);\n  param_3 = FUN_0003967c(param_3,uVar4);\n  uVar4 = FUN_0001a640(param_1 + 2);\n  *(undefined4 *)(param_3 + 4) = uVar4;\n  unaff_s1 = pcVar3;\n  if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;\n  unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;\n  unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;\n  unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;\n  unaff_s7 = PTR_FUN_001311a4;\n  do {\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *unaff_s1;" primitive_type (pointer_declarator "*unaff_s1" * identifier) ;) (declaration "undefined *unaff_s3;" type_identifier (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "undefined *unaff_s4;" type_identifier (pointer_declarator "*unaff_s4" * identifier) ;) (declaration "undefined *unaff_s6;" type_identifier (pointer_declarator "*unaff_s6" * identifier) ;) (declaration "undefined *unaff_s7;" type_identifier (pointer_declarator "*unaff_s7" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00132164;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00132164" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_30 = 0x3fff000;" (assignment_expression "local_30 = 0x3fff000" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8)" identifier = (call_expression "(*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8)" (parenthesized_expression "(*(code *)PTR_FUN_00131444)" ( (pointer_expression "*(code *)PTR_FUN_00131444" * (cast_expression "(code *)PTR_FUN_00131444" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_FUN_001311a4 + -0x6cd8)" ( identifier , (binary_expression "PTR_FUN_001311a4 + -0x6cd8" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (if_statement "if (iVar2 == 0) goto LAB_00036f80;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00036f80;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30)" identifier = (cast_expression "(char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_00131448)(param_1,&local_30)" (parenthesized_expression "(*(code *)PTR_FUN_00131448)" ( (pointer_expression "*(code *)PTR_FUN_00131448" * (cast_expression "(code *)PTR_FUN_00131448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,&local_30)" ( identifier , (pointer_expression "&local_30" & identifier) ))))) ;) (expression_statement "uVar4 = FUN_00018b68(param_1);" (assignment_expression "uVar4 = FUN_00018b68(param_1)" identifier = (call_expression "FUN_00018b68(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "param_3 = FUN_0003967c(param_3,uVar4);" (assignment_expression "param_3 = FUN_0003967c(param_3,uVar4)" identifier = (call_expression "FUN_0003967c(param_3,uVar4)" identifier (argument_list "(param_3,uVar4)" ( identifier , identifier )))) ;) (expression_statement "uVar4 = FUN_0001a640(param_1 + 2);" (assignment_expression "uVar4 = FUN_0001a640(param_1 + 2)" identifier = (call_expression "FUN_0001a640(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(param_3 + 4) = uVar4;" (assignment_expression "*(undefined4 *)(param_3 + 4) = uVar4" (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "unaff_s1 = pcVar3;" (assignment_expression "unaff_s1 = pcVar3" identifier = identifier) ;) (if_statement "if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;" if (parenthesized_expression "(pcVar3 + local_30 + -10 <= pcVar3)" ( (binary_expression "pcVar3 + local_30 + -10 <= pcVar3" (binary_expression "pcVar3 + local_30 + -10" (binary_expression "pcVar3 + local_30" identifier + identifier) + number_literal) <= identifier) )) (goto_statement "goto LAB_00036f70;" goto statement_identifier ;)) (expression_statement "unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;" (assignment_expression "unaff_s6 = PTR_FUN_001311a4 + -0x6cd4" identifier = (binary_expression "PTR_FUN_001311a4 + -0x6cd4" identifier + number_literal)) ;) (expression_statement "unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;" (assignment_expression "unaff_s4 = PTR_FUN_001311a4 + -0x6cc0" identifier = (binary_expression "PTR_FUN_001311a4 + -0x6cc0" identifier + number_literal)) ;) (expression_statement "unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;" (assignment_expression "unaff_s3 = PTR_FUN_001311a4 + -0x6cb4" identifier = (binary_expression "PTR_FUN_001311a4 + -0x6cb4" identifier + number_literal)) ;) (expression_statement "unaff_s7 = PTR_FUN_001311a4;" (assignment_expression "unaff_s7 = PTR_FUN_001311a4" identifier = identifier) ;) (do_statement "do {\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  }" { (expression_statement "iVar2 = FUN_00018778(pcVar3,unaff_s6);" (assignment_expression "iVar2 = FUN_00018778(pcVar3,unaff_s6)" identifier = (call_expression "FUN_00018778(pcVar3,unaff_s6)" identifier (argument_list "(pcVar3,unaff_s6)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) goto LAB_00036fa0;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00036fa0;" goto statement_identifier ;)) (expression_statement "pcVar5 = pcVar3 + 8;" (assignment_expression "pcVar5 = pcVar3 + 8" identifier = (binary_expression "pcVar3 + 8" identifier + number_literal)) ;) (expression_statement "cVar1 = pcVar3[8];" (assignment_expression "cVar1 = pcVar3[8]" identifier = (subscript_expression "pcVar3[8]" identifier [ number_literal ])) ;) (expression_statement "pcVar3 = pcVar5;" (assignment_expression "pcVar3 = pcVar5" identifier = identifier) ;) (while_statement "while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" { (if_statement "if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }" if (parenthesized_expression "(cVar1 == '-')" ( (binary_expression "cVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) (compound_statement "{\n        *pcVar3 = '_';\n      }" { (expression_statement "*pcVar3 = '_';" (assignment_expression "*pcVar3 = '_'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'_'" ' character ')) ;) })) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) })) (expression_statement "iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);" (assignment_expression "iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98)" identifier = (call_expression "FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98)" identifier (argument_list "(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98)" ( identifier , (binary_expression "param_3 + 0xc" identifier + number_literal) , (binary_expression "PTR_FUN_001311a4 + 0xc98" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = pcVar5 + iVar2;" (assignment_expression "pcVar3 = pcVar5 + iVar2" identifier = (binary_expression "pcVar5 + iVar2" identifier + identifier)) ;) (while_statement "while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }" while (parenthesized_expression "(pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3)" ( (comma_expression "pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) , (comma_expression "param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3" (assignment_expression "param_1 = pcVar3" identifier = identifier) , (binary_expression "unaff_s1 + local_30 + -10 <= pcVar3" (binary_expression "unaff_s1 + local_30 + -10" (binary_expression "unaff_s1 + local_30" identifier + identifier) + number_literal) <= identifier))) )) (compound_statement "{\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }" { (labeled_statement "LAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);" statement_identifier : (expression_statement "(*(code *)PTR_free_00132180)(unaff_s1);" (call_expression "(*(code *)PTR_free_00132180)(unaff_s1)" (parenthesized_expression "(*(code *)PTR_free_00132180)" ( (pointer_expression "*(code *)PTR_free_00132180" * (cast_expression "(code *)PTR_free_00132180" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s1)" ( identifier ))) ;)) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (labeled_statement "LAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }" statement_identifier : (if_statement "if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }" if (parenthesized_expression "(local_2c == *(int *)PTR___stack_chk_guard_00132164)" ( (binary_expression "local_2c == *(int *)PTR___stack_chk_guard_00132164" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_001320e4)();" (call_expression "(*(code *)PTR___stack_chk_fail_001320e4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001320e4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001320e4" * (cast_expression "(code *)PTR___stack_chk_fail_001320e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);" statement_identifier : (expression_statement "iVar2 = FUN_00018778(pcVar3);" (assignment_expression "iVar2 = FUN_00018778(pcVar3)" identifier = (call_expression "FUN_00018778(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;)) (if_statement "if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }" { (expression_statement "iVar2 = FUN_00018778(pcVar3,unaff_s4);" (assignment_expression "iVar2 = FUN_00018778(pcVar3,unaff_s4)" identifier = (call_expression "FUN_00018778(pcVar3,unaff_s4)" identifier (argument_list "(pcVar3,unaff_s4)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }" { (expression_statement "pcVar3 = pcVar3 + 10;" (assignment_expression "pcVar3 = pcVar3 + 10" identifier = (binary_expression "pcVar3 + 10" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_00018778(pcVar3,unaff_s3);" (assignment_expression "iVar2 = FUN_00018778(pcVar3,unaff_s3)" identifier = (call_expression "FUN_00018778(pcVar3,unaff_s3)" identifier (argument_list "(pcVar3,unaff_s3)" ( identifier , identifier )))) ;) (if_statement "if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }" if (parenthesized_expression "((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0))" ( (binary_expression "(iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)" ( (comma_expression "iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0)" identifier = (call_expression "(*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0)" (parenthesized_expression "(*(code *)PTR_strcmp_001321e0)" ( (pointer_expression "*(code *)PTR_strcmp_001321e0" * (cast_expression "(code *)PTR_strcmp_001321e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3,unaff_s7 + -0x6cb0)" ( identifier , (binary_expression "unaff_s7 + -0x6cb0" identifier + number_literal) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }" { (expression_statement "uVar4 = FUN_0001a640(pcVar3);" (assignment_expression "uVar4 = FUN_0001a640(pcVar3)" identifier = (call_expression "FUN_0001a640(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "FUN_00018cd8(param_3 + 0x24,uVar4);" (call_expression "FUN_00018cd8(param_3 + 0x24,uVar4)" identifier (argument_list "(param_3 + 0x24,uVar4)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00131f58)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" ( (pointer_expression "*(code *)PTR_strlen_00131f58" * (cast_expression "(code *)PTR_strlen_00131f58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "pcVar3 = pcVar3 + iVar2;" (assignment_expression "pcVar3 = pcVar3 + iVar2" identifier = (binary_expression "pcVar3 + iVar2" identifier + identifier)) ;) })) })) }) (else_clause "else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" else (compound_statement "{\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" { (expression_statement "uVar4 = FUN_0001a640(pcVar3 + 6);" (assignment_expression "uVar4 = FUN_0001a640(pcVar3 + 6)" identifier = (call_expression "FUN_0001a640(pcVar3 + 6)" identifier (argument_list "(pcVar3 + 6)" ( (binary_expression "pcVar3 + 6" identifier + number_literal) )))) ;) (expression_statement "FUN_00018cd8(param_3 + 0x20,uVar4);" (call_expression "FUN_00018cd8(param_3 + 0x20,uVar4)" identifier (argument_list "(param_3 + 0x20,uVar4)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00131f58)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" ( (pointer_expression "*(code *)PTR_strlen_00131f58" * (cast_expression "(code *)PTR_strlen_00131f58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "pcVar3 = pcVar3 + iVar2;" (assignment_expression "pcVar3 = pcVar3 + iVar2" identifier = (binary_expression "pcVar3 + iVar2" identifier + identifier)) ;) }))) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int parse_module(char *fname,stat *sb,void *data,int depth)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  llist_t **llist;\n  char *pcVar4;\n  char *unaff_s1;\n  llist_t **unaff_s3;\n  char *unaff_s4;\n  llist_t **unaff_s5;\n  llist_t **pplVar5;\n  char *unaff_s6;\n  undefined *unaff_s7;\n  size_t len;\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_00132164;\n  len = 0x3fff000;\n  iVar2 = (*(code *)PTR_strrstr_00131444)(fname,PTR_bdcommands_4__name_4__001311a4 + -0x6cd8);\n  pplVar5 = (llist_t **)&len;\n  pcVar3 = fname;\n  if (iVar2 == 0) goto LAB_00036f80;\n  pcVar3 = (char *)(*(code *)PTR_xmalloc_open_zipped_read_close_00131448)(fname);\n  llist = (llist_t **)bb_get_last_path_component_nostrip(fname);\n  data = moddb_get_or_create((module_db *)data,(char *)llist);\n  pcVar4 = xstrdup(fname + 2);\n  ((module_entry *)data)->name = pcVar4;\n  unaff_s1 = pcVar3;\n  if (pcVar3 + (len - 10) <= pcVar3) goto LAB_00036f70;\n  unaff_s6 = PTR_bdcommands_4__name_4__001311a4 + -0x6cd4;\n  pplVar5 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cc8);\n  unaff_s4 = PTR_bdcommands_4__name_4__001311a4 + -0x6cc0;\n  unaff_s3 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cb4);\n  unaff_s7 = PTR_bdcommands_4__name_4__001311a4;\n  do {\n    pcVar4 = is_prefixed_with(pcVar3,unaff_s6);\n    unaff_s5 = pplVar5;\n    if (pcVar4 == (char *)0x0) goto LAB_00036fa0;\n    pcVar4 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar4;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    llist = &((module_entry *)data)->deps;\n    iVar2 = string_to_llist(pcVar4,llist,PTR_bdcommands_4__name_4__001311a4 + 0xc98);\n    pcVar3 = pcVar4 + iVar2;\n    while (pcVar3 = pcVar3 + 1, fname = pcVar3, unaff_s5 = pplVar5, unaff_s1 + (len - 10) <= pcVar3)\n    {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pplVar5 = llist;\n      pcVar3 = fname;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      pcVar4 = is_prefixed_with(pcVar3,(char *)pplVar5);\n      pplVar5 = unaff_s5;\n      if (pcVar4 == (char *)0x0) {\n        pcVar4 = is_prefixed_with(pcVar3,unaff_s4);\n        llist = unaff_s3;\n        if (pcVar4 != (char *)0x0) {\n          pcVar3 = pcVar3 + 10;\n          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);\n          llist = (llist_t **)(unaff_s7 + -0x6cb0);\n          if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        llist = (llist_t **)xstrdup(pcVar3 + 6);\n        llist_add_to(&((module_entry *)data)->aliases,llist);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );\n}\n\n" (function_definition "int parse_module(char *fname,stat *sb,void *data,int depth)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  llist_t **llist;\n  char *pcVar4;\n  char *unaff_s1;\n  llist_t **unaff_s3;\n  char *unaff_s4;\n  llist_t **unaff_s5;\n  llist_t **pplVar5;\n  char *unaff_s6;\n  undefined *unaff_s7;\n  size_t len;\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_00132164;\n  len = 0x3fff000;\n  iVar2 = (*(code *)PTR_strrstr_00131444)(fname,PTR_bdcommands_4__name_4__001311a4 + -0x6cd8);\n  pplVar5 = (llist_t **)&len;\n  pcVar3 = fname;\n  if (iVar2 == 0) goto LAB_00036f80;\n  pcVar3 = (char *)(*(code *)PTR_xmalloc_open_zipped_read_close_00131448)(fname);\n  llist = (llist_t **)bb_get_last_path_component_nostrip(fname);\n  data = moddb_get_or_create((module_db *)data,(char *)llist);\n  pcVar4 = xstrdup(fname + 2);\n  ((module_entry *)data)->name = pcVar4;\n  unaff_s1 = pcVar3;\n  if (pcVar3 + (len - 10) <= pcVar3) goto LAB_00036f70;\n  unaff_s6 = PTR_bdcommands_4__name_4__001311a4 + -0x6cd4;\n  pplVar5 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cc8);\n  unaff_s4 = PTR_bdcommands_4__name_4__001311a4 + -0x6cc0;\n  unaff_s3 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cb4);\n  unaff_s7 = PTR_bdcommands_4__name_4__001311a4;\n  do {\n    pcVar4 = is_prefixed_with(pcVar3,unaff_s6);\n    unaff_s5 = pplVar5;\n    if (pcVar4 == (char *)0x0) goto LAB_00036fa0;\n    pcVar4 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar4;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    llist = &((module_entry *)data)->deps;\n    iVar2 = string_to_llist(pcVar4,llist,PTR_bdcommands_4__name_4__001311a4 + 0xc98);\n    pcVar3 = pcVar4 + iVar2;\n    while (pcVar3 = pcVar3 + 1, fname = pcVar3, unaff_s5 = pplVar5, unaff_s1 + (len - 10) <= pcVar3)\n    {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pplVar5 = llist;\n      pcVar3 = fname;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      pcVar4 = is_prefixed_with(pcVar3,(char *)pplVar5);\n      pplVar5 = unaff_s5;\n      if (pcVar4 == (char *)0x0) {\n        pcVar4 = is_prefixed_with(pcVar3,unaff_s4);\n        llist = unaff_s3;\n        if (pcVar4 != (char *)0x0) {\n          pcVar3 = pcVar3 + 10;\n          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);\n          llist = (llist_t **)(unaff_s7 + -0x6cb0);\n          if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        llist = (llist_t **)xstrdup(pcVar3 + 6);\n        llist_add_to(&((module_entry *)data)->aliases,llist);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );\n}" primitive_type (function_declarator "parse_module(char *fname,stat *sb,void *data,int depth)" identifier (parameter_list "(char *fname,stat *sb,void *data,int depth)" ( (parameter_declaration "char *fname" primitive_type (pointer_declarator "*fname" * identifier)) , (parameter_declaration "stat *sb" type_identifier (pointer_declarator "*sb" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int depth" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  llist_t **llist;\n  char *pcVar4;\n  char *unaff_s1;\n  llist_t **unaff_s3;\n  char *unaff_s4;\n  llist_t **unaff_s5;\n  llist_t **pplVar5;\n  char *unaff_s6;\n  undefined *unaff_s7;\n  size_t len;\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_00132164;\n  len = 0x3fff000;\n  iVar2 = (*(code *)PTR_strrstr_00131444)(fname,PTR_bdcommands_4__name_4__001311a4 + -0x6cd8);\n  pplVar5 = (llist_t **)&len;\n  pcVar3 = fname;\n  if (iVar2 == 0) goto LAB_00036f80;\n  pcVar3 = (char *)(*(code *)PTR_xmalloc_open_zipped_read_close_00131448)(fname);\n  llist = (llist_t **)bb_get_last_path_component_nostrip(fname);\n  data = moddb_get_or_create((module_db *)data,(char *)llist);\n  pcVar4 = xstrdup(fname + 2);\n  ((module_entry *)data)->name = pcVar4;\n  unaff_s1 = pcVar3;\n  if (pcVar3 + (len - 10) <= pcVar3) goto LAB_00036f70;\n  unaff_s6 = PTR_bdcommands_4__name_4__001311a4 + -0x6cd4;\n  pplVar5 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cc8);\n  unaff_s4 = PTR_bdcommands_4__name_4__001311a4 + -0x6cc0;\n  unaff_s3 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cb4);\n  unaff_s7 = PTR_bdcommands_4__name_4__001311a4;\n  do {\n    pcVar4 = is_prefixed_with(pcVar3,unaff_s6);\n    unaff_s5 = pplVar5;\n    if (pcVar4 == (char *)0x0) goto LAB_00036fa0;\n    pcVar4 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar4;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    llist = &((module_entry *)data)->deps;\n    iVar2 = string_to_llist(pcVar4,llist,PTR_bdcommands_4__name_4__001311a4 + 0xc98);\n    pcVar3 = pcVar4 + iVar2;\n    while (pcVar3 = pcVar3 + 1, fname = pcVar3, unaff_s5 = pplVar5, unaff_s1 + (len - 10) <= pcVar3)\n    {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pplVar5 = llist;\n      pcVar3 = fname;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      pcVar4 = is_prefixed_with(pcVar3,(char *)pplVar5);\n      pplVar5 = unaff_s5;\n      if (pcVar4 == (char *)0x0) {\n        pcVar4 = is_prefixed_with(pcVar3,unaff_s4);\n        llist = unaff_s3;\n        if (pcVar4 != (char *)0x0) {\n          pcVar3 = pcVar3 + 10;\n          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);\n          llist = (llist_t **)(unaff_s7 + -0x6cb0);\n          if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        llist = (llist_t **)xstrdup(pcVar3 + 6);\n        llist_add_to(&((module_entry *)data)->aliases,llist);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "llist_t **llist;" type_identifier (pointer_declarator "**llist" * (pointer_declarator "*llist" * identifier)) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *unaff_s1;" primitive_type (pointer_declarator "*unaff_s1" * identifier) ;) (declaration "llist_t **unaff_s3;" type_identifier (pointer_declarator "**unaff_s3" * (pointer_declarator "*unaff_s3" * identifier)) ;) (declaration "char *unaff_s4;" primitive_type (pointer_declarator "*unaff_s4" * identifier) ;) (declaration "llist_t **unaff_s5;" type_identifier (pointer_declarator "**unaff_s5" * (pointer_declarator "*unaff_s5" * identifier)) ;) (declaration "llist_t **pplVar5;" type_identifier (pointer_declarator "**pplVar5" * (pointer_declarator "*pplVar5" * identifier)) ;) (declaration "char *unaff_s6;" primitive_type (pointer_declarator "*unaff_s6" * identifier) ;) (declaration "undefined *unaff_s7;" type_identifier (pointer_declarator "*unaff_s7" * identifier) ;) (declaration "size_t len;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00132164;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00132164" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "len = 0x3fff000;" (assignment_expression "len = 0x3fff000" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_strrstr_00131444)(fname,PTR_bdcommands_4__name_4__001311a4 + -0x6cd8);" (assignment_expression "iVar2 = (*(code *)PTR_strrstr_00131444)(fname,PTR_bdcommands_4__name_4__001311a4 + -0x6cd8)" identifier = (call_expression "(*(code *)PTR_strrstr_00131444)(fname,PTR_bdcommands_4__name_4__001311a4 + -0x6cd8)" (parenthesized_expression "(*(code *)PTR_strrstr_00131444)" ( (pointer_expression "*(code *)PTR_strrstr_00131444" * (cast_expression "(code *)PTR_strrstr_00131444" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fname,PTR_bdcommands_4__name_4__001311a4 + -0x6cd8)" ( identifier , (binary_expression "PTR_bdcommands_4__name_4__001311a4 + -0x6cd8" identifier + number_literal) )))) ;) (expression_statement "pplVar5 = (llist_t **)&len;" (assignment_expression "pplVar5 = (llist_t **)&len" identifier = (cast_expression "(llist_t **)&len" ( (type_descriptor "llist_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&len" & identifier))) ;) (expression_statement "pcVar3 = fname;" (assignment_expression "pcVar3 = fname" identifier = identifier) ;) (if_statement "if (iVar2 == 0) goto LAB_00036f80;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00036f80;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_xmalloc_open_zipped_read_close_00131448)(fname);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_xmalloc_open_zipped_read_close_00131448)(fname)" identifier = (cast_expression "(char *)(*(code *)PTR_xmalloc_open_zipped_read_close_00131448)(fname)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_open_zipped_read_close_00131448)(fname)" (parenthesized_expression "(*(code *)PTR_xmalloc_open_zipped_read_close_00131448)" ( (pointer_expression "*(code *)PTR_xmalloc_open_zipped_read_close_00131448" * (cast_expression "(code *)PTR_xmalloc_open_zipped_read_close_00131448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fname)" ( identifier ))))) ;) (expression_statement "llist = (llist_t **)bb_get_last_path_component_nostrip(fname);" (assignment_expression "llist = (llist_t **)bb_get_last_path_component_nostrip(fname)" identifier = (cast_expression "(llist_t **)bb_get_last_path_component_nostrip(fname)" ( (type_descriptor "llist_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "bb_get_last_path_component_nostrip(fname)" identifier (argument_list "(fname)" ( identifier ))))) ;) (expression_statement "data = moddb_get_or_create((module_db *)data,(char *)llist);" (assignment_expression "data = moddb_get_or_create((module_db *)data,(char *)llist)" identifier = (call_expression "moddb_get_or_create((module_db *)data,(char *)llist)" identifier (argument_list "((module_db *)data,(char *)llist)" ( (cast_expression "(module_db *)data" ( (type_descriptor "module_db *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)llist" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "pcVar4 = xstrdup(fname + 2);" (assignment_expression "pcVar4 = xstrdup(fname + 2)" identifier = (call_expression "xstrdup(fname + 2)" identifier (argument_list "(fname + 2)" ( (binary_expression "fname + 2" identifier + number_literal) )))) ;) (expression_statement "((module_entry *)data)->name = pcVar4;" (assignment_expression "((module_entry *)data)->name = pcVar4" (field_expression "((module_entry *)data)->name" (parenthesized_expression "((module_entry *)data)" ( (cast_expression "(module_entry *)data" ( (type_descriptor "module_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) = identifier) ;) (expression_statement "unaff_s1 = pcVar3;" (assignment_expression "unaff_s1 = pcVar3" identifier = identifier) ;) (if_statement "if (pcVar3 + (len - 10) <= pcVar3) goto LAB_00036f70;" if (parenthesized_expression "(pcVar3 + (len - 10) <= pcVar3)" ( (binary_expression "pcVar3 + (len - 10) <= pcVar3" (binary_expression "pcVar3 + (len - 10)" identifier + (parenthesized_expression "(len - 10)" ( (binary_expression "len - 10" identifier - number_literal) ))) <= identifier) )) (goto_statement "goto LAB_00036f70;" goto statement_identifier ;)) (expression_statement "unaff_s6 = PTR_bdcommands_4__name_4__001311a4 + -0x6cd4;" (assignment_expression "unaff_s6 = PTR_bdcommands_4__name_4__001311a4 + -0x6cd4" identifier = (binary_expression "PTR_bdcommands_4__name_4__001311a4 + -0x6cd4" identifier + number_literal)) ;) (expression_statement "pplVar5 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cc8);" (assignment_expression "pplVar5 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cc8)" identifier = (cast_expression "(llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cc8)" ( (type_descriptor "llist_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_bdcommands_4__name_4__001311a4 + -0x6cc8)" ( (binary_expression "PTR_bdcommands_4__name_4__001311a4 + -0x6cc8" identifier + number_literal) )))) ;) (expression_statement "unaff_s4 = PTR_bdcommands_4__name_4__001311a4 + -0x6cc0;" (assignment_expression "unaff_s4 = PTR_bdcommands_4__name_4__001311a4 + -0x6cc0" identifier = (binary_expression "PTR_bdcommands_4__name_4__001311a4 + -0x6cc0" identifier + number_literal)) ;) (expression_statement "unaff_s3 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cb4);" (assignment_expression "unaff_s3 = (llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cb4)" identifier = (cast_expression "(llist_t **)(PTR_bdcommands_4__name_4__001311a4 + -0x6cb4)" ( (type_descriptor "llist_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_bdcommands_4__name_4__001311a4 + -0x6cb4)" ( (binary_expression "PTR_bdcommands_4__name_4__001311a4 + -0x6cb4" identifier + number_literal) )))) ;) (expression_statement "unaff_s7 = PTR_bdcommands_4__name_4__001311a4;" (assignment_expression "unaff_s7 = PTR_bdcommands_4__name_4__001311a4" identifier = identifier) ;) (do_statement "do {\n    pcVar4 = is_prefixed_with(pcVar3,unaff_s6);\n    unaff_s5 = pplVar5;\n    if (pcVar4 == (char *)0x0) goto LAB_00036fa0;\n    pcVar4 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar4;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    llist = &((module_entry *)data)->deps;\n    iVar2 = string_to_llist(pcVar4,llist,PTR_bdcommands_4__name_4__001311a4 + 0xc98);\n    pcVar3 = pcVar4 + iVar2;\n    while (pcVar3 = pcVar3 + 1, fname = pcVar3, unaff_s5 = pplVar5, unaff_s1 + (len - 10) <= pcVar3)\n    {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pplVar5 = llist;\n      pcVar3 = fname;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      pcVar4 = is_prefixed_with(pcVar3,(char *)pplVar5);\n      pplVar5 = unaff_s5;\n      if (pcVar4 == (char *)0x0) {\n        pcVar4 = is_prefixed_with(pcVar3,unaff_s4);\n        llist = unaff_s3;\n        if (pcVar4 != (char *)0x0) {\n          pcVar3 = pcVar3 + 10;\n          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);\n          llist = (llist_t **)(unaff_s7 + -0x6cb0);\n          if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        llist = (llist_t **)xstrdup(pcVar3 + 6);\n        llist_add_to(&((module_entry *)data)->aliases,llist);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    pcVar4 = is_prefixed_with(pcVar3,unaff_s6);\n    unaff_s5 = pplVar5;\n    if (pcVar4 == (char *)0x0) goto LAB_00036fa0;\n    pcVar4 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar4;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    llist = &((module_entry *)data)->deps;\n    iVar2 = string_to_llist(pcVar4,llist,PTR_bdcommands_4__name_4__001311a4 + 0xc98);\n    pcVar3 = pcVar4 + iVar2;\n    while (pcVar3 = pcVar3 + 1, fname = pcVar3, unaff_s5 = pplVar5, unaff_s1 + (len - 10) <= pcVar3)\n    {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pplVar5 = llist;\n      pcVar3 = fname;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      pcVar4 = is_prefixed_with(pcVar3,(char *)pplVar5);\n      pplVar5 = unaff_s5;\n      if (pcVar4 == (char *)0x0) {\n        pcVar4 = is_prefixed_with(pcVar3,unaff_s4);\n        llist = unaff_s3;\n        if (pcVar4 != (char *)0x0) {\n          pcVar3 = pcVar3 + 10;\n          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);\n          llist = (llist_t **)(unaff_s7 + -0x6cb0);\n          if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        llist = (llist_t **)xstrdup(pcVar3 + 6);\n        llist_add_to(&((module_entry *)data)->aliases,llist);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  }" { (expression_statement "pcVar4 = is_prefixed_with(pcVar3,unaff_s6);" (assignment_expression "pcVar4 = is_prefixed_with(pcVar3,unaff_s6)" identifier = (call_expression "is_prefixed_with(pcVar3,unaff_s6)" identifier (argument_list "(pcVar3,unaff_s6)" ( identifier , identifier )))) ;) (expression_statement "unaff_s5 = pplVar5;" (assignment_expression "unaff_s5 = pplVar5" identifier = identifier) ;) (if_statement "if (pcVar4 == (char *)0x0) goto LAB_00036fa0;" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00036fa0;" goto statement_identifier ;)) (expression_statement "pcVar4 = pcVar3 + 8;" (assignment_expression "pcVar4 = pcVar3 + 8" identifier = (binary_expression "pcVar3 + 8" identifier + number_literal)) ;) (expression_statement "cVar1 = pcVar3[8];" (assignment_expression "cVar1 = pcVar3[8]" identifier = (subscript_expression "pcVar3[8]" identifier [ number_literal ])) ;) (expression_statement "pcVar3 = pcVar4;" (assignment_expression "pcVar3 = pcVar4" identifier = identifier) ;) (while_statement "while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" { (if_statement "if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }" if (parenthesized_expression "(cVar1 == '-')" ( (binary_expression "cVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) (compound_statement "{\n        *pcVar3 = '_';\n      }" { (expression_statement "*pcVar3 = '_';" (assignment_expression "*pcVar3 = '_'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'_'" ' character ')) ;) })) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) })) (expression_statement "llist = &((module_entry *)data)->deps;" (assignment_expression "llist = &((module_entry *)data)->deps" identifier = (pointer_expression "&((module_entry *)data)->deps" & (field_expression "((module_entry *)data)->deps" (parenthesized_expression "((module_entry *)data)" ( (cast_expression "(module_entry *)data" ( (type_descriptor "module_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier))) ;) (expression_statement "iVar2 = string_to_llist(pcVar4,llist,PTR_bdcommands_4__name_4__001311a4 + 0xc98);" (assignment_expression "iVar2 = string_to_llist(pcVar4,llist,PTR_bdcommands_4__name_4__001311a4 + 0xc98)" identifier = (call_expression "string_to_llist(pcVar4,llist,PTR_bdcommands_4__name_4__001311a4 + 0xc98)" identifier (argument_list "(pcVar4,llist,PTR_bdcommands_4__name_4__001311a4 + 0xc98)" ( identifier , identifier , (binary_expression "PTR_bdcommands_4__name_4__001311a4 + 0xc98" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = pcVar4 + iVar2;" (assignment_expression "pcVar3 = pcVar4 + iVar2" identifier = (binary_expression "pcVar4 + iVar2" identifier + identifier)) ;) (while_statement "while (pcVar3 = pcVar3 + 1, fname = pcVar3, unaff_s5 = pplVar5, unaff_s1 + (len - 10) <= pcVar3)\n    {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pplVar5 = llist;\n      pcVar3 = fname;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      pcVar4 = is_prefixed_with(pcVar3,(char *)pplVar5);\n      pplVar5 = unaff_s5;\n      if (pcVar4 == (char *)0x0) {\n        pcVar4 = is_prefixed_with(pcVar3,unaff_s4);\n        llist = unaff_s3;\n        if (pcVar4 != (char *)0x0) {\n          pcVar3 = pcVar3 + 10;\n          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);\n          llist = (llist_t **)(unaff_s7 + -0x6cb0);\n          if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        llist = (llist_t **)xstrdup(pcVar3 + 6);\n        llist_add_to(&((module_entry *)data)->aliases,llist);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }" while (parenthesized_expression "(pcVar3 = pcVar3 + 1, fname = pcVar3, unaff_s5 = pplVar5, unaff_s1 + (len - 10) <= pcVar3)" ( (comma_expression "pcVar3 = pcVar3 + 1, fname = pcVar3, unaff_s5 = pplVar5, unaff_s1 + (len - 10) <= pcVar3" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) , (comma_expression "fname = pcVar3, unaff_s5 = pplVar5, unaff_s1 + (len - 10) <= pcVar3" (assignment_expression "fname = pcVar3" identifier = identifier) , (comma_expression "unaff_s5 = pplVar5, unaff_s1 + (len - 10) <= pcVar3" (assignment_expression "unaff_s5 = pplVar5" identifier = identifier) , (binary_expression "unaff_s1 + (len - 10) <= pcVar3" (binary_expression "unaff_s1 + (len - 10)" identifier + (parenthesized_expression "(len - 10)" ( (binary_expression "len - 10" identifier - number_literal) ))) <= identifier)))) )) (compound_statement "{\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pplVar5 = llist;\n      pcVar3 = fname;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      pcVar4 = is_prefixed_with(pcVar3,(char *)pplVar5);\n      pplVar5 = unaff_s5;\n      if (pcVar4 == (char *)0x0) {\n        pcVar4 = is_prefixed_with(pcVar3,unaff_s4);\n        llist = unaff_s3;\n        if (pcVar4 != (char *)0x0) {\n          pcVar3 = pcVar3 + 10;\n          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);\n          llist = (llist_t **)(unaff_s7 + -0x6cb0);\n          if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        llist = (llist_t **)xstrdup(pcVar3 + 6);\n        llist_add_to(&((module_entry *)data)->aliases,llist);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }" { (labeled_statement "LAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);" statement_identifier : (expression_statement "(*(code *)PTR_free_00132180)(unaff_s1);" (call_expression "(*(code *)PTR_free_00132180)(unaff_s1)" (parenthesized_expression "(*(code *)PTR_free_00132180)" ( (pointer_expression "*(code *)PTR_free_00132180" * (cast_expression "(code *)PTR_free_00132180" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s1)" ( identifier ))) ;)) (expression_statement "pplVar5 = llist;" (assignment_expression "pplVar5 = llist" identifier = identifier) ;) (expression_statement "pcVar3 = fname;" (assignment_expression "pcVar3 = fname" identifier = identifier) ;) (labeled_statement "LAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }" statement_identifier : (if_statement "if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }" if (parenthesized_expression "(local_2c == *(int *)PTR___stack_chk_guard_00132164)" ( (binary_expression "local_2c == *(int *)PTR___stack_chk_guard_00132164" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_001320e4)();" (call_expression "(*(code *)PTR___stack_chk_fail_001320e4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001320e4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001320e4" * (cast_expression "(code *)PTR___stack_chk_fail_001320e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00036fa0:\n      pcVar4 = is_prefixed_with(pcVar3,(char *)pplVar5);" statement_identifier : (expression_statement "pcVar4 = is_prefixed_with(pcVar3,(char *)pplVar5);" (assignment_expression "pcVar4 = is_prefixed_with(pcVar3,(char *)pplVar5)" identifier = (call_expression "is_prefixed_with(pcVar3,(char *)pplVar5)" identifier (argument_list "(pcVar3,(char *)pplVar5)" ( identifier , (cast_expression "(char *)pplVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;)) (expression_statement "pplVar5 = unaff_s5;" (assignment_expression "pplVar5 = unaff_s5" identifier = identifier) ;) (if_statement "if (pcVar4 == (char *)0x0) {\n        pcVar4 = is_prefixed_with(pcVar3,unaff_s4);\n        llist = unaff_s3;\n        if (pcVar4 != (char *)0x0) {\n          pcVar3 = pcVar3 + 10;\n          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);\n          llist = (llist_t **)(unaff_s7 + -0x6cb0);\n          if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        llist = (llist_t **)xstrdup(pcVar3 + 6);\n        llist_add_to(&((module_entry *)data)->aliases,llist);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar4 = is_prefixed_with(pcVar3,unaff_s4);\n        llist = unaff_s3;\n        if (pcVar4 != (char *)0x0) {\n          pcVar3 = pcVar3 + 10;\n          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);\n          llist = (llist_t **)(unaff_s7 + -0x6cb0);\n          if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }" { (expression_statement "pcVar4 = is_prefixed_with(pcVar3,unaff_s4);" (assignment_expression "pcVar4 = is_prefixed_with(pcVar3,unaff_s4)" identifier = (call_expression "is_prefixed_with(pcVar3,unaff_s4)" identifier (argument_list "(pcVar3,unaff_s4)" ( identifier , identifier )))) ;) (expression_statement "llist = unaff_s3;" (assignment_expression "llist = unaff_s3" identifier = identifier) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n          pcVar3 = pcVar3 + 10;\n          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);\n          llist = (llist_t **)(unaff_s7 + -0x6cb0);\n          if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar3 = pcVar3 + 10;\n          pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);\n          llist = (llist_t **)(unaff_s7 + -0x6cb0);\n          if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }" { (expression_statement "pcVar3 = pcVar3 + 10;" (assignment_expression "pcVar3 = pcVar3 + 10" identifier = (binary_expression "pcVar3 + 10" identifier + number_literal)) ;) (expression_statement "pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3);" (assignment_expression "pcVar4 = is_prefixed_with(pcVar3,(char *)unaff_s3)" identifier = (call_expression "is_prefixed_with(pcVar3,(char *)unaff_s3)" identifier (argument_list "(pcVar3,(char *)unaff_s3)" ( identifier , (cast_expression "(char *)unaff_s3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "llist = (llist_t **)(unaff_s7 + -0x6cb0);" (assignment_expression "llist = (llist_t **)(unaff_s7 + -0x6cb0)" identifier = (cast_expression "(llist_t **)(unaff_s7 + -0x6cb0)" ( (type_descriptor "llist_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_s7 + -0x6cb0)" ( (binary_expression "unaff_s7 + -0x6cb0" identifier + number_literal) )))) ;) (if_statement "if ((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)) {\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }" if (parenthesized_expression "((pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0))" ( (binary_expression "(pcVar4 == (char *)0x0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)" (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0)" ( (comma_expression "iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3), iVar2 != 0" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strcmp_001321e0)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strcmp_001321e0)" ( (pointer_expression "*(code *)PTR_strcmp_001321e0" * (cast_expression "(code *)PTR_strcmp_001321e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n            llist = (llist_t **)xstrdup(pcVar3);\n            llist_add_to(&((module_entry *)data)->symbols,llist);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }" { (expression_statement "llist = (llist_t **)xstrdup(pcVar3);" (assignment_expression "llist = (llist_t **)xstrdup(pcVar3)" identifier = (cast_expression "(llist_t **)xstrdup(pcVar3)" ( (type_descriptor "llist_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xstrdup(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))))) ;) (expression_statement "llist_add_to(&((module_entry *)data)->symbols,llist);" (call_expression "llist_add_to(&((module_entry *)data)->symbols,llist)" identifier (argument_list "(&((module_entry *)data)->symbols,llist)" ( (pointer_expression "&((module_entry *)data)->symbols" & (field_expression "((module_entry *)data)->symbols" (parenthesized_expression "((module_entry *)data)" ( (cast_expression "(module_entry *)data" ( (type_descriptor "module_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier)) , identifier ))) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00131f58)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" ( (pointer_expression "*(code *)PTR_strlen_00131f58" * (cast_expression "(code *)PTR_strlen_00131f58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "pcVar3 = pcVar3 + iVar2;" (assignment_expression "pcVar3 = pcVar3 + iVar2" identifier = (binary_expression "pcVar3 + iVar2" identifier + identifier)) ;) })) })) }) (else_clause "else {\n        llist = (llist_t **)xstrdup(pcVar3 + 6);\n        llist_add_to(&((module_entry *)data)->aliases,llist);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" else (compound_statement "{\n        llist = (llist_t **)xstrdup(pcVar3 + 6);\n        llist_add_to(&((module_entry *)data)->aliases,llist);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" { (expression_statement "llist = (llist_t **)xstrdup(pcVar3 + 6);" (assignment_expression "llist = (llist_t **)xstrdup(pcVar3 + 6)" identifier = (cast_expression "(llist_t **)xstrdup(pcVar3 + 6)" ( (type_descriptor "llist_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xstrdup(pcVar3 + 6)" identifier (argument_list "(pcVar3 + 6)" ( (binary_expression "pcVar3 + 6" identifier + number_literal) ))))) ;) (expression_statement "llist_add_to(&((module_entry *)data)->aliases,llist);" (call_expression "llist_add_to(&((module_entry *)data)->aliases,llist)" identifier (argument_list "(&((module_entry *)data)->aliases,llist)" ( (pointer_expression "&((module_entry *)data)->aliases" & (field_expression "((module_entry *)data)->aliases" (parenthesized_expression "((module_entry *)data)" ( (cast_expression "(module_entry *)data" ( (type_descriptor "module_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier)) , identifier ))) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00131f58)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" ( (pointer_expression "*(code *)PTR_strlen_00131f58" * (cast_expression "(code *)PTR_strlen_00131f58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "pcVar3 = pcVar3 + iVar2;" (assignment_expression "pcVar3 = pcVar3 + iVar2" identifier = (binary_expression "pcVar3 + iVar2" identifier + identifier)) ;) }))) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 FUN_00036dc0(char *param_1,undefined4 param_2,int param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char *unaff_s1;\n  undefined *unaff_s3;\n  undefined *unaff_s4;\n  undefined *unaff_s6;\n  undefined *unaff_s7;\n  char *pcVar5;\n  int local_30;\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_00132164;\n  local_30 = 0x3fff000;\n  iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);\n  pcVar3 = param_1;\n  if (iVar2 == 0) goto LAB_00036f80;\n  pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);\n  uVar4 = FUN_00018b68(param_1);\n  param_3 = FUN_0003967c(param_3,uVar4);\n  uVar4 = FUN_0001a640(param_1 + 2);\n  *(undefined4 *)(param_3 + 4) = uVar4;\n  unaff_s1 = pcVar3;\n  if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;\n  unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;\n  unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;\n  unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;\n  unaff_s7 = PTR_FUN_001311a4;\n  do {\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_00036dc0(char *param_1,undefined4 param_2,int param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char *unaff_s1;\n  undefined *unaff_s3;\n  undefined *unaff_s4;\n  undefined *unaff_s6;\n  undefined *unaff_s7;\n  char *pcVar5;\n  int local_30;\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_00132164;\n  local_30 = 0x3fff000;\n  iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);\n  pcVar3 = param_1;\n  if (iVar2 == 0) goto LAB_00036f80;\n  pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);\n  uVar4 = FUN_00018b68(param_1);\n  param_3 = FUN_0003967c(param_3,uVar4);\n  uVar4 = FUN_0001a640(param_1 + 2);\n  *(undefined4 *)(param_3 + 4) = uVar4;\n  unaff_s1 = pcVar3;\n  if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;\n  unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;\n  unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;\n  unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;\n  unaff_s7 = PTR_FUN_001311a4;\n  do {\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_00036dc0(char *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(char *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char *unaff_s1;\n  undefined *unaff_s3;\n  undefined *unaff_s4;\n  undefined *unaff_s6;\n  undefined *unaff_s7;\n  char *pcVar5;\n  int local_30;\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_00132164;\n  local_30 = 0x3fff000;\n  iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);\n  pcVar3 = param_1;\n  if (iVar2 == 0) goto LAB_00036f80;\n  pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);\n  uVar4 = FUN_00018b68(param_1);\n  param_3 = FUN_0003967c(param_3,uVar4);\n  uVar4 = FUN_0001a640(param_1 + 2);\n  *(undefined4 *)(param_3 + 4) = uVar4;\n  unaff_s1 = pcVar3;\n  if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;\n  unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;\n  unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;\n  unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;\n  unaff_s7 = PTR_FUN_001311a4;\n  do {\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *unaff_s1;" primitive_type (pointer_declarator "*unaff_s1" * identifier) ;) (declaration "undefined *unaff_s3;" type_identifier (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "undefined *unaff_s4;" type_identifier (pointer_declarator "*unaff_s4" * identifier) ;) (declaration "undefined *unaff_s6;" type_identifier (pointer_declarator "*unaff_s6" * identifier) ;) (declaration "undefined *unaff_s7;" type_identifier (pointer_declarator "*unaff_s7" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00132164;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00132164" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_30 = 0x3fff000;" (assignment_expression "local_30 = 0x3fff000" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8)" identifier = (call_expression "(*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8)" (parenthesized_expression "(*(code *)PTR_FUN_00131444)" ( (pointer_expression "*(code *)PTR_FUN_00131444" * (cast_expression "(code *)PTR_FUN_00131444" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_FUN_001311a4 + -0x6cd8)" ( identifier , (binary_expression "PTR_FUN_001311a4 + -0x6cd8" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (if_statement "if (iVar2 == 0) goto LAB_00036f80;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00036f80;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30)" identifier = (cast_expression "(char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_00131448)(param_1,&local_30)" (parenthesized_expression "(*(code *)PTR_FUN_00131448)" ( (pointer_expression "*(code *)PTR_FUN_00131448" * (cast_expression "(code *)PTR_FUN_00131448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,&local_30)" ( identifier , (pointer_expression "&local_30" & identifier) ))))) ;) (expression_statement "uVar4 = FUN_00018b68(param_1);" (assignment_expression "uVar4 = FUN_00018b68(param_1)" identifier = (call_expression "FUN_00018b68(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "param_3 = FUN_0003967c(param_3,uVar4);" (assignment_expression "param_3 = FUN_0003967c(param_3,uVar4)" identifier = (call_expression "FUN_0003967c(param_3,uVar4)" identifier (argument_list "(param_3,uVar4)" ( identifier , identifier )))) ;) (expression_statement "uVar4 = FUN_0001a640(param_1 + 2);" (assignment_expression "uVar4 = FUN_0001a640(param_1 + 2)" identifier = (call_expression "FUN_0001a640(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(param_3 + 4) = uVar4;" (assignment_expression "*(undefined4 *)(param_3 + 4) = uVar4" (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "unaff_s1 = pcVar3;" (assignment_expression "unaff_s1 = pcVar3" identifier = identifier) ;) (if_statement "if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;" if (parenthesized_expression "(pcVar3 + local_30 + -10 <= pcVar3)" ( (binary_expression "pcVar3 + local_30 + -10 <= pcVar3" (binary_expression "pcVar3 + local_30 + -10" (binary_expression "pcVar3 + local_30" identifier + identifier) + number_literal) <= identifier) )) (goto_statement "goto LAB_00036f70;" goto statement_identifier ;)) (expression_statement "unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;" (assignment_expression "unaff_s6 = PTR_FUN_001311a4 + -0x6cd4" identifier = (binary_expression "PTR_FUN_001311a4 + -0x6cd4" identifier + number_literal)) ;) (expression_statement "unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;" (assignment_expression "unaff_s4 = PTR_FUN_001311a4 + -0x6cc0" identifier = (binary_expression "PTR_FUN_001311a4 + -0x6cc0" identifier + number_literal)) ;) (expression_statement "unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;" (assignment_expression "unaff_s3 = PTR_FUN_001311a4 + -0x6cb4" identifier = (binary_expression "PTR_FUN_001311a4 + -0x6cb4" identifier + number_literal)) ;) (expression_statement "unaff_s7 = PTR_FUN_001311a4;" (assignment_expression "unaff_s7 = PTR_FUN_001311a4" identifier = identifier) ;) (do_statement "do {\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  }" { (expression_statement "iVar2 = FUN_00018778(pcVar3,unaff_s6);" (assignment_expression "iVar2 = FUN_00018778(pcVar3,unaff_s6)" identifier = (call_expression "FUN_00018778(pcVar3,unaff_s6)" identifier (argument_list "(pcVar3,unaff_s6)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) goto LAB_00036fa0;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00036fa0;" goto statement_identifier ;)) (expression_statement "pcVar5 = pcVar3 + 8;" (assignment_expression "pcVar5 = pcVar3 + 8" identifier = (binary_expression "pcVar3 + 8" identifier + number_literal)) ;) (expression_statement "cVar1 = pcVar3[8];" (assignment_expression "cVar1 = pcVar3[8]" identifier = (subscript_expression "pcVar3[8]" identifier [ number_literal ])) ;) (expression_statement "pcVar3 = pcVar5;" (assignment_expression "pcVar3 = pcVar5" identifier = identifier) ;) (while_statement "while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" { (if_statement "if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }" if (parenthesized_expression "(cVar1 == '-')" ( (binary_expression "cVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) (compound_statement "{\n        *pcVar3 = '_';\n      }" { (expression_statement "*pcVar3 = '_';" (assignment_expression "*pcVar3 = '_'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'_'" ' character ')) ;) })) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) })) (expression_statement "iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);" (assignment_expression "iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98)" identifier = (call_expression "FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98)" identifier (argument_list "(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98)" ( identifier , (binary_expression "param_3 + 0xc" identifier + number_literal) , (binary_expression "PTR_FUN_001311a4 + 0xc98" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = pcVar5 + iVar2;" (assignment_expression "pcVar3 = pcVar5 + iVar2" identifier = (binary_expression "pcVar5 + iVar2" identifier + identifier)) ;) (while_statement "while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }" while (parenthesized_expression "(pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3)" ( (comma_expression "pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) , (comma_expression "param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3" (assignment_expression "param_1 = pcVar3" identifier = identifier) , (binary_expression "unaff_s1 + local_30 + -10 <= pcVar3" (binary_expression "unaff_s1 + local_30 + -10" (binary_expression "unaff_s1 + local_30" identifier + identifier) + number_literal) <= identifier))) )) (compound_statement "{\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }" { (labeled_statement "LAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);" statement_identifier : (expression_statement "(*(code *)PTR_free_00132180)(unaff_s1);" (call_expression "(*(code *)PTR_free_00132180)(unaff_s1)" (parenthesized_expression "(*(code *)PTR_free_00132180)" ( (pointer_expression "*(code *)PTR_free_00132180" * (cast_expression "(code *)PTR_free_00132180" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s1)" ( identifier ))) ;)) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (labeled_statement "LAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }" statement_identifier : (if_statement "if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }" if (parenthesized_expression "(local_2c == *(int *)PTR___stack_chk_guard_00132164)" ( (binary_expression "local_2c == *(int *)PTR___stack_chk_guard_00132164" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_001320e4)();" (call_expression "(*(code *)PTR___stack_chk_fail_001320e4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001320e4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001320e4" * (cast_expression "(code *)PTR___stack_chk_fail_001320e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);" statement_identifier : (expression_statement "iVar2 = FUN_00018778(pcVar3);" (assignment_expression "iVar2 = FUN_00018778(pcVar3)" identifier = (call_expression "FUN_00018778(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;)) (if_statement "if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }" { (expression_statement "iVar2 = FUN_00018778(pcVar3,unaff_s4);" (assignment_expression "iVar2 = FUN_00018778(pcVar3,unaff_s4)" identifier = (call_expression "FUN_00018778(pcVar3,unaff_s4)" identifier (argument_list "(pcVar3,unaff_s4)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }" { (expression_statement "pcVar3 = pcVar3 + 10;" (assignment_expression "pcVar3 = pcVar3 + 10" identifier = (binary_expression "pcVar3 + 10" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_00018778(pcVar3,unaff_s3);" (assignment_expression "iVar2 = FUN_00018778(pcVar3,unaff_s3)" identifier = (call_expression "FUN_00018778(pcVar3,unaff_s3)" identifier (argument_list "(pcVar3,unaff_s3)" ( identifier , identifier )))) ;) (if_statement "if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }" if (parenthesized_expression "((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0))" ( (binary_expression "(iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)" ( (comma_expression "iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0)" identifier = (call_expression "(*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0)" (parenthesized_expression "(*(code *)PTR_strcmp_001321e0)" ( (pointer_expression "*(code *)PTR_strcmp_001321e0" * (cast_expression "(code *)PTR_strcmp_001321e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3,unaff_s7 + -0x6cb0)" ( identifier , (binary_expression "unaff_s7 + -0x6cb0" identifier + number_literal) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }" { (expression_statement "uVar4 = FUN_0001a640(pcVar3);" (assignment_expression "uVar4 = FUN_0001a640(pcVar3)" identifier = (call_expression "FUN_0001a640(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "FUN_00018cd8(param_3 + 0x24,uVar4);" (call_expression "FUN_00018cd8(param_3 + 0x24,uVar4)" identifier (argument_list "(param_3 + 0x24,uVar4)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00131f58)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" ( (pointer_expression "*(code *)PTR_strlen_00131f58" * (cast_expression "(code *)PTR_strlen_00131f58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "pcVar3 = pcVar3 + iVar2;" (assignment_expression "pcVar3 = pcVar3 + iVar2" identifier = (binary_expression "pcVar3 + iVar2" identifier + identifier)) ;) })) })) }) (else_clause "else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" else (compound_statement "{\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" { (expression_statement "uVar4 = FUN_0001a640(pcVar3 + 6);" (assignment_expression "uVar4 = FUN_0001a640(pcVar3 + 6)" identifier = (call_expression "FUN_0001a640(pcVar3 + 6)" identifier (argument_list "(pcVar3 + 6)" ( (binary_expression "pcVar3 + 6" identifier + number_literal) )))) ;) (expression_statement "FUN_00018cd8(param_3 + 0x20,uVar4);" (call_expression "FUN_00018cd8(param_3 + 0x20,uVar4)" identifier (argument_list "(param_3 + 0x20,uVar4)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00131f58)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" ( (pointer_expression "*(code *)PTR_strlen_00131f58" * (cast_expression "(code *)PTR_strlen_00131f58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "pcVar3 = pcVar3 + iVar2;" (assignment_expression "pcVar3 = pcVar3 + iVar2" identifier = (binary_expression "pcVar3 + iVar2" identifier + identifier)) ;) }))) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + IDENT) + LIT) <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (binary_expression (binary_expression IDENT + IDENT) + LIT) <= IDENT))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return LIT ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 FUN_00036dc0(char *param_1,undefined4 param_2,int param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char *unaff_s1;\n  undefined *unaff_s3;\n  undefined *unaff_s4;\n  undefined *unaff_s6;\n  undefined *unaff_s7;\n  char *pcVar5;\n  int local_30;\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_00132164;\n  local_30 = 0x3fff000;\n  iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);\n  pcVar3 = param_1;\n  if (iVar2 == 0) goto LAB_00036f80;\n  pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);\n  uVar4 = FUN_00018b68(param_1);\n  param_3 = FUN_0003967c(param_3,uVar4);\n  uVar4 = FUN_0001a640(param_1 + 2);\n  *(undefined4 *)(param_3 + 4) = uVar4;\n  unaff_s1 = pcVar3;\n  if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;\n  unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;\n  unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;\n  unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;\n  unaff_s7 = PTR_FUN_001311a4;\n  do {\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );\n}" (type_identifier "undefined4") (function_declarator "FUN_00036dc0(char *param_1,undefined4 param_2,int param_3)" (identifier "FUN_00036dc0") (parameter_list "(char *param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char *unaff_s1;\n  undefined *unaff_s3;\n  undefined *unaff_s4;\n  undefined *unaff_s6;\n  undefined *unaff_s7;\n  char *pcVar5;\n  int local_30;\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_00132164;\n  local_30 = 0x3fff000;\n  iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);\n  pcVar3 = param_1;\n  if (iVar2 == 0) goto LAB_00036f80;\n  pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);\n  uVar4 = FUN_00018b68(param_1);\n  param_3 = FUN_0003967c(param_3,uVar4);\n  uVar4 = FUN_0001a640(param_1 + 2);\n  *(undefined4 *)(param_3 + 4) = uVar4;\n  unaff_s1 = pcVar3;\n  if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;\n  unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;\n  unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;\n  unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;\n  unaff_s7 = PTR_FUN_001311a4;\n  do {\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "char *unaff_s1;" (primitive_type "char") (pointer_declarator "*unaff_s1" (* "*") (identifier "unaff_s1")) (; ";")) (declaration "undefined *unaff_s3;" (type_identifier "undefined") (pointer_declarator "*unaff_s3" (* "*") (identifier "unaff_s3")) (; ";")) (declaration "undefined *unaff_s4;" (type_identifier "undefined") (pointer_declarator "*unaff_s4" (* "*") (identifier "unaff_s4")) (; ";")) (declaration "undefined *unaff_s6;" (type_identifier "undefined") (pointer_declarator "*unaff_s6" (* "*") (identifier "unaff_s6")) (; ";")) (declaration "undefined *unaff_s7;" (type_identifier "undefined") (pointer_declarator "*unaff_s7" (* "*") (identifier "unaff_s7")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00132164;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00132164" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00132164" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00132164")))) (; ";")) (expression_statement "local_30 = 0x3fff000;" (assignment_expression "local_30 = 0x3fff000" (identifier "local_30") (= "=") (number_literal "0x3fff000")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8)" (parenthesized_expression "(*(code *)PTR_FUN_00131444)" (( "(") (pointer_expression "*(code *)PTR_FUN_00131444" (* "*") (cast_expression "(code *)PTR_FUN_00131444" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_00131444"))) () ")")) (argument_list "(param_1,PTR_FUN_001311a4 + -0x6cd8)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_FUN_001311a4 + -0x6cd8" (identifier "PTR_FUN_001311a4") (+ "+") (number_literal "-0x6cd8")) () ")")))) (; ";")) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" (identifier "pcVar3") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (iVar2 == 0) goto LAB_00036f80;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00036f80;" (goto "goto") (statement_identifier "LAB_00036f80") (; ";"))) (expression_statement "pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30)" (identifier "pcVar3") (= "=") (cast_expression "(char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_FUN_00131448)(param_1,&local_30)" (parenthesized_expression "(*(code *)PTR_FUN_00131448)" (( "(") (pointer_expression "*(code *)PTR_FUN_00131448" (* "*") (cast_expression "(code *)PTR_FUN_00131448" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_00131448"))) () ")")) (argument_list "(param_1,&local_30)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) () ")"))))) (; ";")) (expression_statement "uVar4 = FUN_00018b68(param_1);" (assignment_expression "uVar4 = FUN_00018b68(param_1)" (identifier "uVar4") (= "=") (call_expression "FUN_00018b68(param_1)" (identifier "FUN_00018b68") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "param_3 = FUN_0003967c(param_3,uVar4);" (assignment_expression "param_3 = FUN_0003967c(param_3,uVar4)" (identifier "param_3") (= "=") (call_expression "FUN_0003967c(param_3,uVar4)" (identifier "FUN_0003967c") (argument_list "(param_3,uVar4)" (( "(") (identifier "param_3") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "uVar4 = FUN_0001a640(param_1 + 2);" (assignment_expression "uVar4 = FUN_0001a640(param_1 + 2)" (identifier "uVar4") (= "=") (call_expression "FUN_0001a640(param_1 + 2)" (identifier "FUN_0001a640") (argument_list "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 4) = uVar4;" (assignment_expression "*(undefined4 *)(param_3 + 4) = uVar4" (pointer_expression "*(undefined4 *)(param_3 + 4)" (* "*") (cast_expression "(undefined4 *)(param_3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "unaff_s1 = pcVar3;" (assignment_expression "unaff_s1 = pcVar3" (identifier "unaff_s1") (= "=") (identifier "pcVar3")) (; ";")) (if_statement "if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;" (if "if") (parenthesized_expression "(pcVar3 + local_30 + -10 <= pcVar3)" (( "(") (binary_expression "pcVar3 + local_30 + -10 <= pcVar3" (binary_expression "pcVar3 + local_30 + -10" (binary_expression "pcVar3 + local_30" (identifier "pcVar3") (+ "+") (identifier "local_30")) (+ "+") (number_literal "-10")) (<= "<=") (identifier "pcVar3")) () ")")) (goto_statement "goto LAB_00036f70;" (goto "goto") (statement_identifier "LAB_00036f70") (; ";"))) (expression_statement "unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;" (assignment_expression "unaff_s6 = PTR_FUN_001311a4 + -0x6cd4" (identifier "unaff_s6") (= "=") (binary_expression "PTR_FUN_001311a4 + -0x6cd4" (identifier "PTR_FUN_001311a4") (+ "+") (number_literal "-0x6cd4"))) (; ";")) (expression_statement "unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;" (assignment_expression "unaff_s4 = PTR_FUN_001311a4 + -0x6cc0" (identifier "unaff_s4") (= "=") (binary_expression "PTR_FUN_001311a4 + -0x6cc0" (identifier "PTR_FUN_001311a4") (+ "+") (number_literal "-0x6cc0"))) (; ";")) (expression_statement "unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;" (assignment_expression "unaff_s3 = PTR_FUN_001311a4 + -0x6cb4" (identifier "unaff_s3") (= "=") (binary_expression "PTR_FUN_001311a4 + -0x6cb4" (identifier "PTR_FUN_001311a4") (+ "+") (number_literal "-0x6cb4"))) (; ";")) (expression_statement "unaff_s7 = PTR_FUN_001311a4;" (assignment_expression "unaff_s7 = PTR_FUN_001311a4" (identifier "unaff_s7") (= "=") (identifier "PTR_FUN_001311a4")) (; ";")) (do_statement "do {\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  } while( true );" (do "do") (compound_statement "{\n    iVar2 = FUN_00018778(pcVar3,unaff_s6);\n    if (iVar2 == 0) goto LAB_00036fa0;\n    pcVar5 = pcVar3 + 8;\n    cVar1 = pcVar3[8];\n    pcVar3 = pcVar5;\n    while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }\n    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);\n    pcVar3 = pcVar5 + iVar2;\n    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = FUN_00018778(pcVar3,unaff_s6);" (assignment_expression "iVar2 = FUN_00018778(pcVar3,unaff_s6)" (identifier "iVar2") (= "=") (call_expression "FUN_00018778(pcVar3,unaff_s6)" (identifier "FUN_00018778") (argument_list "(pcVar3,unaff_s6)" (( "(") (identifier "pcVar3") (, ",") (identifier "unaff_s6") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) goto LAB_00036fa0;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00036fa0;" (goto "goto") (statement_identifier "LAB_00036fa0") (; ";"))) (expression_statement "pcVar5 = pcVar3 + 8;" (assignment_expression "pcVar5 = pcVar3 + 8" (identifier "pcVar5") (= "=") (binary_expression "pcVar3 + 8" (identifier "pcVar3") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "cVar1 = pcVar3[8];" (assignment_expression "cVar1 = pcVar3[8]" (identifier "cVar1") (= "=") (subscript_expression "pcVar3[8]" (identifier "pcVar3") ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "pcVar3 = pcVar5;" (assignment_expression "pcVar3 = pcVar5" (identifier "pcVar3") (= "=") (identifier "pcVar5")) (; ";")) (while_statement "while (cVar1 != '\0') {\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" ({ "{") (if_statement "if (cVar1 == '-') {\n        *pcVar3 = '_';\n      }" (if "if") (parenthesized_expression "(cVar1 == '-')" (( "(") (binary_expression "cVar1 == '-'" (identifier "cVar1") (== "==") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (compound_statement "{\n        *pcVar3 = '_';\n      }" ({ "{") (expression_statement "*pcVar3 = '_';" (assignment_expression "*pcVar3 = '_'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'_'" (' "'") (character "_") (' "'"))) (; ";")) (} "}"))) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" (identifier "cVar1") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);" (assignment_expression "iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98)" (identifier "iVar2") (= "=") (call_expression "FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98)" (identifier "FUN_00039304") (argument_list "(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98)" (( "(") (identifier "pcVar5") (, ",") (binary_expression "param_3 + 0xc" (identifier "param_3") (+ "+") (number_literal "0xc")) (, ",") (binary_expression "PTR_FUN_001311a4 + 0xc98" (identifier "PTR_FUN_001311a4") (+ "+") (number_literal "0xc98")) () ")")))) (; ";")) (expression_statement "pcVar3 = pcVar5 + iVar2;" (assignment_expression "pcVar3 = pcVar5 + iVar2" (identifier "pcVar3") (= "=") (binary_expression "pcVar5 + iVar2" (identifier "pcVar5") (+ "+") (identifier "iVar2"))) (; ";")) (while_statement "while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }" (while "while") (parenthesized_expression "(pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3)" (( "(") (comma_expression "pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3" (assignment_expression "pcVar3 = pcVar3 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (, ",") (comma_expression "param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3" (assignment_expression "param_1 = pcVar3" (identifier "param_1") (= "=") (identifier "pcVar3")) (, ",") (binary_expression "unaff_s1 + local_30 + -10 <= pcVar3" (binary_expression "unaff_s1 + local_30 + -10" (binary_expression "unaff_s1 + local_30" (identifier "unaff_s1") (+ "+") (identifier "local_30")) (+ "+") (number_literal "-10")) (<= "<=") (identifier "pcVar3")))) () ")")) (compound_statement "{\nLAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);\n      pcVar3 = param_1;\nLAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }\n      (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);\n      if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }\n    }" ({ "{") (labeled_statement "LAB_00036f70:\n      (*(code *)PTR_free_00132180)(unaff_s1);" (statement_identifier "LAB_00036f70") (: ":") (expression_statement "(*(code *)PTR_free_00132180)(unaff_s1);" (call_expression "(*(code *)PTR_free_00132180)(unaff_s1)" (parenthesized_expression "(*(code *)PTR_free_00132180)" (( "(") (pointer_expression "*(code *)PTR_free_00132180" (* "*") (cast_expression "(code *)PTR_free_00132180" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00132180"))) () ")")) (argument_list "(unaff_s1)" (( "(") (identifier "unaff_s1") () ")"))) (; ";"))) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" (identifier "pcVar3") (= "=") (identifier "param_1")) (; ";")) (labeled_statement "LAB_00036f80:\n      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }" (statement_identifier "LAB_00036f80") (: ":") (if_statement "if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {\n        return 1;\n      }" (if "if") (parenthesized_expression "(local_2c == *(int *)PTR___stack_chk_guard_00132164)" (( "(") (binary_expression "local_2c == *(int *)PTR___stack_chk_guard_00132164" (identifier "local_2c") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00132164" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00132164")))) () ")")) (compound_statement "{\n        return 1;\n      }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___stack_chk_fail_001320e4)();" (call_expression "(*(code *)PTR___stack_chk_fail_001320e4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001320e4)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_001320e4" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_001320e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_001320e4"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_00036fa0:\n      iVar2 = FUN_00018778(pcVar3);" (statement_identifier "LAB_00036fa0") (: ":") (expression_statement "iVar2 = FUN_00018778(pcVar3);" (assignment_expression "iVar2 = FUN_00018778(pcVar3)" (identifier "iVar2") (= "=") (call_expression "FUN_00018778(pcVar3)" (identifier "FUN_00018778") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")")))) (; ";"))) (if_statement "if (iVar2 == 0) {\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }\n      else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = FUN_00018778(pcVar3,unaff_s4);\n        if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }\n      }" ({ "{") (expression_statement "iVar2 = FUN_00018778(pcVar3,unaff_s4);" (assignment_expression "iVar2 = FUN_00018778(pcVar3,unaff_s4)" (identifier "iVar2") (= "=") (call_expression "FUN_00018778(pcVar3,unaff_s4)" (identifier "FUN_00018778") (argument_list "(pcVar3,unaff_s4)" (( "(") (identifier "pcVar3") (, ",") (identifier "unaff_s4") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          pcVar3 = pcVar3 + 10;\n          iVar2 = FUN_00018778(pcVar3,unaff_s3);\n          if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }\n        }" ({ "{") (expression_statement "pcVar3 = pcVar3 + 10;" (assignment_expression "pcVar3 = pcVar3 + 10" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + 10" (identifier "pcVar3") (+ "+") (number_literal "10"))) (; ";")) (expression_statement "iVar2 = FUN_00018778(pcVar3,unaff_s3);" (assignment_expression "iVar2 = FUN_00018778(pcVar3,unaff_s3)" (identifier "iVar2") (= "=") (call_expression "FUN_00018778(pcVar3,unaff_s3)" (identifier "FUN_00018778") (argument_list "(pcVar3,unaff_s3)" (( "(") (identifier "pcVar3") (, ",") (identifier "unaff_s3") () ")")))) (; ";")) (if_statement "if ((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }" (if "if") (parenthesized_expression "((iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0))" (( "(") (binary_expression "(iVar2 == 0) &&\n             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)" (( "(") (comma_expression "iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0)" (parenthesized_expression "(*(code *)PTR_strcmp_001321e0)" (( "(") (pointer_expression "*(code *)PTR_strcmp_001321e0" (* "*") (cast_expression "(code *)PTR_strcmp_001321e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_001321e0"))) () ")")) (argument_list "(pcVar3,unaff_s7 + -0x6cb0)" (( "(") (identifier "pcVar3") (, ",") (binary_expression "unaff_s7 + -0x6cb0" (identifier "unaff_s7") (+ "+") (number_literal "-0x6cb0")) () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n            uVar4 = FUN_0001a640(pcVar3);\n            FUN_00018cd8(param_3 + 0x24,uVar4);\n            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n            pcVar3 = pcVar3 + iVar2;\n          }" ({ "{") (expression_statement "uVar4 = FUN_0001a640(pcVar3);" (assignment_expression "uVar4 = FUN_0001a640(pcVar3)" (identifier "uVar4") (= "=") (call_expression "FUN_0001a640(pcVar3)" (identifier "FUN_0001a640") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")")))) (; ";")) (expression_statement "FUN_00018cd8(param_3 + 0x24,uVar4);" (call_expression "FUN_00018cd8(param_3 + 0x24,uVar4)" (identifier "FUN_00018cd8") (argument_list "(param_3 + 0x24,uVar4)" (( "(") (binary_expression "param_3 + 0x24" (identifier "param_3") (+ "+") (number_literal "0x24")) (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_00131f58)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" (( "(") (pointer_expression "*(code *)PTR_strlen_00131f58" (* "*") (cast_expression "(code *)PTR_strlen_00131f58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00131f58"))) () ")")) (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")")))) (; ";")) (expression_statement "pcVar3 = pcVar3 + iVar2;" (assignment_expression "pcVar3 = pcVar3 + iVar2" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + iVar2" (identifier "pcVar3") (+ "+") (identifier "iVar2"))) (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" (else "else") (compound_statement "{\n        uVar4 = FUN_0001a640(pcVar3 + 6);\n        FUN_00018cd8(param_3 + 0x20,uVar4);\n        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);\n        pcVar3 = pcVar3 + iVar2;\n      }" ({ "{") (expression_statement "uVar4 = FUN_0001a640(pcVar3 + 6);" (assignment_expression "uVar4 = FUN_0001a640(pcVar3 + 6)" (identifier "uVar4") (= "=") (call_expression "FUN_0001a640(pcVar3 + 6)" (identifier "FUN_0001a640") (argument_list "(pcVar3 + 6)" (( "(") (binary_expression "pcVar3 + 6" (identifier "pcVar3") (+ "+") (number_literal "6")) () ")")))) (; ";")) (expression_statement "FUN_00018cd8(param_3 + 0x20,uVar4);" (call_expression "FUN_00018cd8(param_3 + 0x20,uVar4)" (identifier "FUN_00018cd8") (argument_list "(param_3 + 0x20,uVar4)" (( "(") (binary_expression "param_3 + 0x20" (identifier "param_3") (+ "+") (number_literal "0x20")) (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_00131f58)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" (( "(") (pointer_expression "*(code *)PTR_strlen_00131f58" (* "*") (cast_expression "(code *)PTR_strlen_00131f58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00131f58"))) () ")")) (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")")))) (; ";")) (expression_statement "pcVar3 = pcVar3 + iVar2;" (assignment_expression "pcVar3 = pcVar3 + iVar2" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + iVar2" (identifier "pcVar3") (+ "+") (identifier "iVar2"))) (; ";")) (} "}")))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

int function_1(char *var_6,type_1 *sb,void *data,int depth)

{
  char var_11;
  int var_2;
  char *var_7;
  type_2 **llist;
  char *var_10;
  char *var_13;
  type_2 **unaff_s3;
  char *unaff_s4;
  type_2 **unaff_s5;
  type_2 **pplVar5;
  char *unaff_s6;
  type_3 *var_15;
  size_t var_8;
  int var_14;
  
  var_14 = *(int *)PTR___stack_chk_guard_00132164;
  var_8 = 0x3fff000;
  var_2 = (*(type_4 *)PTR_strrstr_00131444)(var_6,var_1 + -0x6cd8);
  pplVar5 = (type_2 **)&var_8;
  var_7 = var_6;
  if (var_2 == 0) goto LAB_00036f80;
  var_7 = (char *)(*(type_4 *)PTR_xmalloc_open_zipped_read_close_00131448)(var_6);
  llist = (type_2 **)var_3(var_6);
  data = var_4((type_5 *)data,(char *)llist);
  var_10 = var_5(var_6 + 2);
  ((type_6 *)data)->name = var_10;
  var_13 = var_7;
  if (var_7 + (var_8 - 10) <= var_7) goto LAB_00036f70;
  unaff_s6 = var_1 + -0x6cd4;
  pplVar5 = (type_2 **)(var_1 + -0x6cc8);
  unaff_s4 = var_1 + -0x6cc0;
  unaff_s3 = (type_2 **)(var_1 + -0x6cb4);
  var_15 = var_1;
  do {
    var_10 = var_9(var_7,unaff_s6);
    unaff_s5 = pplVar5;
    if (var_10 == (char *)0x0) goto LAB_00036fa0;
    var_10 = var_7 + 8;
    var_11 = var_7[8];
    var_7 = var_10;
    while (var_11 != '\0') {
      if (var_11 == '-') {
        *var_7 = '_';
      }
      var_7 = var_7 + 1;
      var_11 = *var_7;
    }
    llist = &((type_6 *)data)->deps;
    var_2 = var_12(var_10,llist,var_1 + 0xc98);
    var_7 = var_10 + var_2;
    while (var_7 = var_7 + 1, var_6 = var_7, unaff_s5 = pplVar5, var_13 + (var_8 - 10) <= var_7)
    {
LAB_00036f70:
      (*(type_4 *)PTR_free_00132180)(var_13);
      pplVar5 = llist;
      var_7 = var_6;
LAB_00036f80:
      if (var_14 == *(int *)PTR___stack_chk_guard_00132164) {
        return 1;
      }
      (*(type_4 *)PTR___stack_chk_fail_001320e4)();
LAB_00036fa0:
      var_10 = var_9(var_7,(char *)pplVar5);
      pplVar5 = unaff_s5;
      if (var_10 == (char *)0x0) {
        var_10 = var_9(var_7,unaff_s4);
        llist = unaff_s3;
        if (var_10 != (char *)0x0) {
          var_7 = var_7 + 10;
          var_10 = var_9(var_7,(char *)unaff_s3);
          llist = (type_2 **)(var_15 + -0x6cb0);
          if ((var_10 == (char *)0x0) &&
             (var_2 = (*(type_4 *)PTR_strcmp_001321e0)(var_7), var_2 != 0)) {
            llist = (type_2 **)var_5(var_7);
            var_16(&((type_6 *)data)->symbols,llist);
            var_2 = (*(type_4 *)PTR_strlen_00131f58)(var_7);
            var_7 = var_7 + var_2;
          }
        }
      }
      else {
        llist = (type_2 **)var_5(var_7 + 6);
        var_16(&((type_6 *)data)->aliases,llist);
        var_2 = (*(type_4 *)PTR_strlen_00131f58)(var_7);
        var_7 = var_7 + var_2;
      }
    }
  } while( true );
}


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

undefined4 MASKED(char *param_1,undefined4 param_2,int param_3)

{
  char cVar1;
  int iVar2;
  char *pcVar3;
  undefined4 uVar4;
  char *unaff_s1;
  undefined *unaff_s3;
  undefined *unaff_s4;
  undefined *unaff_s6;
  undefined *unaff_s7;
  char *pcVar5;
  int local_30;
  int local_2c;
  
  local_2c = *(int *)PTR___stack_chk_guard_00132164;
  local_30 = 0x3fff000;
  iVar2 = (*(code *)PTR_FUN_00131444)(param_1,PTR_FUN_001311a4 + -0x6cd8);
  pcVar3 = param_1;
  if (iVar2 == 0) goto LAB_00036f80;
  pcVar3 = (char *)(*(code *)PTR_FUN_00131448)(param_1,&local_30);
  uVar4 = FUN_00018b68(param_1);
  param_3 = FUN_0003967c(param_3,uVar4);
  uVar4 = FUN_0001a640(param_1 + 2);
  *(undefined4 *)(param_3 + 4) = uVar4;
  unaff_s1 = pcVar3;
  if (pcVar3 + local_30 + -10 <= pcVar3) goto LAB_00036f70;
  unaff_s6 = PTR_FUN_001311a4 + -0x6cd4;
  unaff_s4 = PTR_FUN_001311a4 + -0x6cc0;
  unaff_s3 = PTR_FUN_001311a4 + -0x6cb4;
  unaff_s7 = PTR_FUN_001311a4;
  do {
    iVar2 = FUN_00018778(pcVar3,unaff_s6);
    if (iVar2 == 0) goto LAB_00036fa0;
    pcVar5 = pcVar3 + 8;
    cVar1 = pcVar3[8];
    pcVar3 = pcVar5;
    while (cVar1 != '\0') {
      if (cVar1 == '-') {
        *pcVar3 = '_';
      }
      pcVar3 = pcVar3 + 1;
      cVar1 = *pcVar3;
    }
    iVar2 = FUN_00039304(pcVar5,param_3 + 0xc,PTR_FUN_001311a4 + 0xc98);
    pcVar3 = pcVar5 + iVar2;
    while (pcVar3 = pcVar3 + 1, param_1 = pcVar3, unaff_s1 + local_30 + -10 <= pcVar3) {
LAB_00036f70:
      (*(code *)PTR_free_00132180)(unaff_s1);
      pcVar3 = param_1;
LAB_00036f80:
      if (local_2c == *(int *)PTR___stack_chk_guard_00132164) {
        return 1;
      }
      (*(code *)PTR___stack_chk_fail_001320e4)();
LAB_00036fa0:
      iVar2 = FUN_00018778(pcVar3);
      if (iVar2 == 0) {
        iVar2 = FUN_00018778(pcVar3,unaff_s4);
        if (iVar2 != 0) {
          pcVar3 = pcVar3 + 10;
          iVar2 = FUN_00018778(pcVar3,unaff_s3);
          if ((iVar2 == 0) &&
             (iVar2 = (*(code *)PTR_strcmp_001321e0)(pcVar3,unaff_s7 + -0x6cb0), iVar2 != 0)) {
            uVar4 = FUN_0001a640(pcVar3);
            FUN_00018cd8(param_3 + 0x24,uVar4);
            iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);
            pcVar3 = pcVar3 + iVar2;
          }
        }
      }
      else {
        uVar4 = FUN_0001a640(pcVar3 + 6);
        FUN_00018cd8(param_3 + 0x20,uVar4);
        iVar2 = (*(code *)PTR_strlen_00131f58)(pcVar3);
        pcVar3 = pcVar3 + iVar2;
      }
    }
  } while( true );
}

