
char * dupvprintf(char *fmt,va_list ap)

{
  undefined *puVar1;
  char *pcVar2;
  int *piVar3;
  int iVar4;
  undefined4 uVar5;
  char *pcVar6;
  char *pcVar7;
  int *piVar8;
  uint uVar9;
  char *pcVar10;
  undefined *puVar11;
  code *pcVar12;
  int iStack_40;
  char *pcStack_3c;
  undefined *puStack_38;
  code *pcStack_34;
  undefined4 uStack_2c;
  int *piStack_28;
  char *pcStack_24;
  int size;
  char *pcStack_c;
  
  puVar1 = PTR___stack_chk_guard_00079930;
  piVar3 = &size;
  uVar5 = 0;
  size = 0;
  pcStack_c = *(char **)PTR___stack_chk_guard_00079930;
  pcVar2 = dupvprintf_inner((char *)0x0,0,piVar3,fmt,ap);
  if (pcStack_c == *(char **)puVar1) {
    return pcVar2;
  }
  pcVar12 = dupprintf;
  pcVar2 = pcStack_c;
  puVar11 = PTR___stack_chk_fail_000797f0;
  (*(code *)PTR___stack_chk_fail_000797f0)();
  puStack_38 = puVar1;
  piVar8 = *(int **)(puVar11 + 0x5c328);
  iStack_40 = 0;
  pcStack_3c = (char *)*piVar8;
  pcStack_34 = pcVar12;
  uStack_2c = uVar5;
  piStack_28 = piVar3;
  pcStack_24 = fmt;
  pcVar2 = dupvprintf_inner((char *)0x0,0,&iStack_40,pcVar2,&uStack_2c);
  if (pcStack_3c == (char *)*piVar8) {
    return pcVar2;
  }
  pcVar12 = *(code **)(puVar11 + 0x5c1e8);
  pcVar2 = pcStack_3c;
  (*pcVar12)();
  if (*pcVar2 == '[') {
    uVar9 = (uint)pcVar2[1];
    pcVar10 = pcVar2 + 1;
    if ((uVar9 != 0) && (uVar9 != 0x5d)) {
      piVar3 = (int *)(**(code **)(pcVar12 + 0x5c164))();
      iVar4 = 0;
      pcVar7 = pcVar10;
      do {
        pcVar6 = pcVar7;
        pcVar7 = pcVar6 + 1;
        if ((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&
            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))
        goto LAB_0001d744;
      } while (uVar9 != 0x5d);
      if ((pcVar6[2] == '\0') && (1 < iVar4)) {
        pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),
                           (int)pcVar7 - (int)pcVar10,pcVar10);
        return pcVar2;
      }
    }
  }
LAB_0001d744:
                    /* WARNING: Subroutine does not return */
  dupstr(pcVar2);
}



void dupvprintf(undefined4 param_1,undefined4 param_2)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  char *pcVar5;
  char *pcVar6;
  undefined4 *puVar7;
  undefined4 *puVar8;
  uint uVar9;
  char *pcVar10;
  undefined *puVar11;
  code *pcVar12;
  undefined4 uStack_40;
  char *pcStack_3c;
  undefined *puStack_38;
  code *pcStack_34;
  undefined4 uStack_2c;
  undefined4 *puStack_28;
  undefined4 uStack_24;
  undefined4 local_20;
  undefined4 local_10;
  int local_c;
  
  puVar1 = PTR___stack_chk_guard_00079930;
  puVar7 = &local_10;
  uVar4 = 0;
  local_10 = 0;
  local_c = *(int *)PTR___stack_chk_guard_00079930;
  local_20 = param_2;
  FUN_0001d44c(0);
  if (local_c == *(int *)puVar1) {
    return;
  }
  pcVar12 = dupprintf;
  iVar3 = local_c;
  puVar11 = PTR___stack_chk_fail_000797f0;
  (*(code *)PTR___stack_chk_fail_000797f0)();
  puStack_38 = puVar1;
  puVar8 = *(undefined4 **)(puVar11 + 0x5c328);
  uStack_40 = 0;
  pcStack_3c = (char *)*puVar8;
  pcStack_34 = pcVar12;
  uStack_2c = uVar4;
  puStack_28 = puVar7;
  uStack_24 = param_1;
  FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);
  if (pcStack_3c == (char *)*puVar8) {
    return;
  }
  pcVar12 = *(code **)(puVar11 + 0x5c1e8);
  pcVar10 = pcStack_3c;
  (*pcVar12)();
  if (*pcVar10 == '[') {
    uVar9 = (uint)pcVar10[1];
    pcVar10 = pcVar10 + 1;
    if ((uVar9 != 0) && (uVar9 != 0x5d)) {
      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();
      iVar3 = 0;
      pcVar6 = pcVar10;
      do {
        pcVar5 = pcVar6;
        pcVar6 = pcVar5 + 1;
        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&
            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))
        goto LAB_0001d744;
      } while (uVar9 != 0x5d);
      if ((pcVar5[2] == '\0') && (1 < iVar3)) {
        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);
        return;
      }
    }
  }
LAB_0001d744:
  dupstr();
  return;
}


lui gp,0x6
addiu gp,gp,0x3ae4
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7dec(gp)
or a3,a0,zero
addiu a2,sp,0x20
sw s0,0x28(sp)
or a0,zero,zero
sw a1,0x10(sp)
addiu t9,t9,-0x2bb4
lw s0,-0x7740(gp)
or a1,zero,zero
sw gp,0x18(sp)
sw ra,0x2c(sp)
sw zero,0x20(sp)
lw v0,0x0(s0)
sw v0,0x24(sp)
bal 0x0001d44c
_nop
lw a0,0x24(sp)
lw v1,0x0(s0)
bne a0,v1,0x0001d5fc
_lw gp,0x18(sp)
lw ra,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7880(gp)
jalr t9
_nop
(translation_unit "void dupvprintf(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined4 uStack_40;\n  char *pcStack_3c;\n  undefined *puStack_38;\n  code *pcStack_34;\n  undefined4 uStack_2c;\n  undefined4 *puStack_28;\n  undefined4 uStack_24;\n  undefined4 local_20;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  puVar7 = &local_10;\n  uVar4 = 0;\n  local_10 = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00079930;\n  local_20 = param_2;\n  FUN_0001d44c(0);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  pcVar12 = dupprintf;\n  iVar3 = local_c;\n  puVar11 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  puStack_38 = puVar1;\n  puVar8 = *(undefined4 **)(puVar11 + 0x5c328);\n  uStack_40 = 0;\n  pcStack_3c = (char *)*puVar8;\n  pcStack_34 = pcVar12;\n  uStack_2c = uVar4;\n  puStack_28 = puVar7;\n  uStack_24 = param_1;\n  FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);\n  if (pcStack_3c == (char *)*puVar8) {\n    return;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x5c1e8);\n  pcVar10 = pcStack_3c;\n  (*pcVar12)();\n  if (*pcVar10 == '[') {\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }\nLAB_0001d744:\n  dupstr();\n  return;\n}\n\n" (function_definition "void dupvprintf(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined4 uStack_40;\n  char *pcStack_3c;\n  undefined *puStack_38;\n  code *pcStack_34;\n  undefined4 uStack_2c;\n  undefined4 *puStack_28;\n  undefined4 uStack_24;\n  undefined4 local_20;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  puVar7 = &local_10;\n  uVar4 = 0;\n  local_10 = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00079930;\n  local_20 = param_2;\n  FUN_0001d44c(0);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  pcVar12 = dupprintf;\n  iVar3 = local_c;\n  puVar11 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  puStack_38 = puVar1;\n  puVar8 = *(undefined4 **)(puVar11 + 0x5c328);\n  uStack_40 = 0;\n  pcStack_3c = (char *)*puVar8;\n  pcStack_34 = pcVar12;\n  uStack_2c = uVar4;\n  puStack_28 = puVar7;\n  uStack_24 = param_1;\n  FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);\n  if (pcStack_3c == (char *)*puVar8) {\n    return;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x5c1e8);\n  pcVar10 = pcStack_3c;\n  (*pcVar12)();\n  if (*pcVar10 == '[') {\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }\nLAB_0001d744:\n  dupstr();\n  return;\n}" primitive_type (function_declarator "dupvprintf(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined4 uStack_40;\n  char *pcStack_3c;\n  undefined *puStack_38;\n  code *pcStack_34;\n  undefined4 uStack_2c;\n  undefined4 *puStack_28;\n  undefined4 uStack_24;\n  undefined4 local_20;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  puVar7 = &local_10;\n  uVar4 = 0;\n  local_10 = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00079930;\n  local_20 = param_2;\n  FUN_0001d44c(0);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  pcVar12 = dupprintf;\n  iVar3 = local_c;\n  puVar11 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  puStack_38 = puVar1;\n  puVar8 = *(undefined4 **)(puVar11 + 0x5c328);\n  uStack_40 = 0;\n  pcStack_3c = (char *)*puVar8;\n  pcStack_34 = pcVar12;\n  uStack_2c = uVar4;\n  puStack_28 = puVar7;\n  uStack_24 = param_1;\n  FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);\n  if (pcStack_3c == (char *)*puVar8) {\n    return;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x5c1e8);\n  pcVar10 = pcStack_3c;\n  (*pcVar12)();\n  if (*pcVar10 == '[') {\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }\nLAB_0001d744:\n  dupstr();\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "undefined4 uStack_40;" type_identifier identifier ;) (declaration "char *pcStack_3c;" primitive_type (pointer_declarator "*pcStack_3c" * identifier) ;) (declaration "undefined *puStack_38;" type_identifier (pointer_declarator "*puStack_38" * identifier) ;) (declaration "code *pcStack_34;" type_identifier (pointer_declarator "*pcStack_34" * identifier) ;) (declaration "undefined4 uStack_2c;" type_identifier identifier ;) (declaration "undefined4 *puStack_28;" type_identifier (pointer_declarator "*puStack_28" * identifier) ;) (declaration "undefined4 uStack_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00079930;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00079930" identifier = identifier) ;) (expression_statement "puVar7 = &local_10;" (assignment_expression "puVar7 = &local_10" identifier = (pointer_expression "&local_10" & identifier)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" identifier = number_literal) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00079930;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00079930" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00079930" * (cast_expression "(int *)PTR___stack_chk_guard_00079930" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" identifier = identifier) ;) (expression_statement "FUN_0001d44c(0);" (call_expression "FUN_0001d44c(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (if_statement "if (local_c == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar1)" ( (binary_expression "local_c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar12 = dupprintf;" (assignment_expression "pcVar12 = dupprintf" identifier = identifier) ;) (expression_statement "iVar3 = local_c;" (assignment_expression "iVar3 = local_c" identifier = identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_000797f0;" (assignment_expression "puVar11 = PTR___stack_chk_fail_000797f0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000797f0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000797f0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000797f0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000797f0" * (cast_expression "(code *)PTR___stack_chk_fail_000797f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puStack_38 = puVar1;" (assignment_expression "puStack_38 = puVar1" identifier = identifier) ;) (expression_statement "puVar8 = *(undefined4 **)(puVar11 + 0x5c328);" (assignment_expression "puVar8 = *(undefined4 **)(puVar11 + 0x5c328)" identifier = (pointer_expression "*(undefined4 **)(puVar11 + 0x5c328)" * (cast_expression "(undefined4 **)(puVar11 + 0x5c328)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5c328)" ( (binary_expression "puVar11 + 0x5c328" identifier + number_literal) ))))) ;) (expression_statement "uStack_40 = 0;" (assignment_expression "uStack_40 = 0" identifier = number_literal) ;) (expression_statement "pcStack_3c = (char *)*puVar8;" (assignment_expression "pcStack_3c = (char *)*puVar8" identifier = (cast_expression "(char *)*puVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar8" * identifier))) ;) (expression_statement "pcStack_34 = pcVar12;" (assignment_expression "pcStack_34 = pcVar12" identifier = identifier) ;) (expression_statement "uStack_2c = uVar4;" (assignment_expression "uStack_2c = uVar4" identifier = identifier) ;) (expression_statement "puStack_28 = puVar7;" (assignment_expression "puStack_28 = puVar7" identifier = identifier) ;) (expression_statement "uStack_24 = param_1;" (assignment_expression "uStack_24 = param_1" identifier = identifier) ;) (expression_statement "FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);" (call_expression "FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c)" identifier (argument_list "(0,0,&uStack_40,iVar3,&uStack_2c)" ( number_literal , number_literal , (pointer_expression "&uStack_40" & identifier) , identifier , (pointer_expression "&uStack_2c" & identifier) ))) ;) (if_statement "if (pcStack_3c == (char *)*puVar8) {\n    return;\n  }" if (parenthesized_expression "(pcStack_3c == (char *)*puVar8)" ( (binary_expression "pcStack_3c == (char *)*puVar8" identifier == (cast_expression "(char *)*puVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar8" * identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x5c1e8);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x5c1e8)" identifier = (pointer_expression "*(code **)(puVar11 + 0x5c1e8)" * (cast_expression "(code **)(puVar11 + 0x5c1e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5c1e8)" ( (binary_expression "puVar11 + 0x5c1e8" identifier + number_literal) ))))) ;) (expression_statement "pcVar10 = pcStack_3c;" (assignment_expression "pcVar10 = pcStack_3c" identifier = identifier) ;) (expression_statement "(*pcVar12)();" (call_expression "(*pcVar12)()" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (*pcVar10 == '[') {\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(*pcVar10 == '[')" ( (binary_expression "*pcVar10 == '['" (pointer_expression "*pcVar10" * identifier) == (char_literal "'['" ' character ')) )) (compound_statement "{\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }" { (expression_statement "uVar9 = (uint)pcVar10[1];" (assignment_expression "uVar9 = (uint)pcVar10[1]" identifier = (cast_expression "(uint)pcVar10[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pcVar10[1]" identifier [ number_literal ]))) ;) (expression_statement "pcVar10 = pcVar10 + 1;" (assignment_expression "pcVar10 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }" if (parenthesized_expression "((uVar9 != 0) && (uVar9 != 0x5d))" ( (binary_expression "(uVar9 != 0) && (uVar9 != 0x5d)" (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar9 != 0x5d)" ( (binary_expression "uVar9 != 0x5d" identifier != number_literal) ))) )) (compound_statement "{\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }" { (expression_statement "piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();" (assignment_expression "piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))()" identifier = (cast_expression "(int *)(**(code **)(pcVar12 + 0x5c164))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(pcVar12 + 0x5c164))()" (parenthesized_expression "(**(code **)(pcVar12 + 0x5c164))" ( (pointer_expression "**(code **)(pcVar12 + 0x5c164)" * (pointer_expression "*(code **)(pcVar12 + 0x5c164)" * (cast_expression "(code **)(pcVar12 + 0x5c164)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x5c164)" ( (binary_expression "pcVar12 + 0x5c164" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "pcVar6 = pcVar10;" (assignment_expression "pcVar6 = pcVar10" identifier = identifier) ;) (do_statement "do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);" do (compound_statement "{\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      }" { (expression_statement "pcVar5 = pcVar6;" (assignment_expression "pcVar5 = pcVar6" identifier = identifier) ;) (expression_statement "pcVar6 = pcVar5 + 1;" (assignment_expression "pcVar6 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (if_statement "if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;" if (parenthesized_expression "((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))" ( (binary_expression "(((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0)" (parenthesized_expression "(((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a))" ( (binary_expression "((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)" (parenthesized_expression "((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0)" ( (binary_expression "(*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0" (parenthesized_expression "(*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10)" ( (binary_expression "*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10" (pointer_expression "*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2)" * (cast_expression "(ushort *)(*piVar2 + (uVar9 & 0xff) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + (uVar9 & 0xff) * 2)" ( (binary_expression "*piVar2 + (uVar9 & 0xff) * 2" (pointer_expression "*piVar2" * identifier) + (binary_expression "(uVar9 & 0xff) * 2" (parenthesized_expression "(uVar9 & 0xff)" ( (binary_expression "uVar9 & 0xff" identifier & number_literal) )) * number_literal)) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(iVar3 = iVar3 + 1, uVar9 != 0x3a)" ( (comma_expression "iVar3 = iVar3 + 1, uVar9 != 0x3a" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) , (binary_expression "uVar9 != 0x3a" identifier != number_literal)) ))) )) || (parenthesized_expression "(uVar9 = (uint)*pcVar6, uVar9 == 0)" ( (comma_expression "uVar9 = (uint)*pcVar6, uVar9 == 0" (assignment_expression "uVar9 = (uint)*pcVar6" identifier = (binary_expression "(uint)*pcVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) , (binary_expression "uVar9 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0001d744;" goto statement_identifier ;)) }) while (parenthesized_expression "(uVar9 != 0x5d)" ( (binary_expression "uVar9 != 0x5d" identifier != number_literal) )) ;) (if_statement "if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }" if (parenthesized_expression "((pcVar5[2] == '\0') && (1 < iVar3))" ( (binary_expression "(pcVar5[2] == '\0') && (1 < iVar3)" (parenthesized_expression "(pcVar5[2] == '\0')" ( (binary_expression "pcVar5[2] == '\0'" (subscript_expression "pcVar5[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(1 < iVar3)" ( (binary_expression "1 < iVar3" number_literal < identifier) ))) )) (compound_statement "{\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }" { (expression_statement "dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);" (call_expression "dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10)" identifier (argument_list "(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10)" ( (binary_expression "*(int *)(pcVar12 + 0x5ba10) + -0x26d0" (pointer_expression "*(int *)(pcVar12 + 0x5ba10)" * (cast_expression "(int *)(pcVar12 + 0x5ba10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar12 + 0x5ba10)" ( (binary_expression "pcVar12 + 0x5ba10" identifier + number_literal) )))) + number_literal) , (binary_expression "(int)pcVar6 - (int)pcVar10" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier ))) ;) (return_statement "return;" return ;) })) })) })) (labeled_statement "LAB_0001d744:\n  dupstr();" statement_identifier : (expression_statement "dupstr();" (call_expression "dupstr()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "char * dupvprintf(char *fmt,va_list ap)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int *piVar8;\n  uint uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  int iStack_40;\n  char *pcStack_3c;\n  undefined *puStack_38;\n  code *pcStack_34;\n  undefined4 uStack_2c;\n  int *piStack_28;\n  char *pcStack_24;\n  int size;\n  char *pcStack_c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  piVar3 = &size;\n  uVar5 = 0;\n  size = 0;\n  pcStack_c = *(char **)PTR___stack_chk_guard_00079930;\n  pcVar2 = dupvprintf_inner((char *)0x0,0,piVar3,fmt,ap);\n  if (pcStack_c == *(char **)puVar1) {\n    return pcVar2;\n  }\n  pcVar12 = dupprintf;\n  pcVar2 = pcStack_c;\n  puVar11 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  puStack_38 = puVar1;\n  piVar8 = *(int **)(puVar11 + 0x5c328);\n  iStack_40 = 0;\n  pcStack_3c = (char *)*piVar8;\n  pcStack_34 = pcVar12;\n  uStack_2c = uVar5;\n  piStack_28 = piVar3;\n  pcStack_24 = fmt;\n  pcVar2 = dupvprintf_inner((char *)0x0,0,&iStack_40,pcVar2,&uStack_2c);\n  if (pcStack_3c == (char *)*piVar8) {\n    return pcVar2;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x5c1e8);\n  pcVar2 = pcStack_3c;\n  (*pcVar12)();\n  if (*pcVar2 == '[') {\n    uVar9 = (uint)pcVar2[1];\n    pcVar10 = pcVar2 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar3 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar4 = 0;\n      pcVar7 = pcVar10;\n      do {\n        pcVar6 = pcVar7;\n        pcVar7 = pcVar6 + 1;\n        if ((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar6[2] == '\0') && (1 < iVar4)) {\n        pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10);\n        return pcVar2;\n      }\n    }\n  }\nLAB_0001d744:\n                    /* WARNING: Subroutine does not return */\n  dupstr(pcVar2);\n}\n\n" (function_definition "char * dupvprintf(char *fmt,va_list ap)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int *piVar8;\n  uint uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  int iStack_40;\n  char *pcStack_3c;\n  undefined *puStack_38;\n  code *pcStack_34;\n  undefined4 uStack_2c;\n  int *piStack_28;\n  char *pcStack_24;\n  int size;\n  char *pcStack_c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  piVar3 = &size;\n  uVar5 = 0;\n  size = 0;\n  pcStack_c = *(char **)PTR___stack_chk_guard_00079930;\n  pcVar2 = dupvprintf_inner((char *)0x0,0,piVar3,fmt,ap);\n  if (pcStack_c == *(char **)puVar1) {\n    return pcVar2;\n  }\n  pcVar12 = dupprintf;\n  pcVar2 = pcStack_c;\n  puVar11 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  puStack_38 = puVar1;\n  piVar8 = *(int **)(puVar11 + 0x5c328);\n  iStack_40 = 0;\n  pcStack_3c = (char *)*piVar8;\n  pcStack_34 = pcVar12;\n  uStack_2c = uVar5;\n  piStack_28 = piVar3;\n  pcStack_24 = fmt;\n  pcVar2 = dupvprintf_inner((char *)0x0,0,&iStack_40,pcVar2,&uStack_2c);\n  if (pcStack_3c == (char *)*piVar8) {\n    return pcVar2;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x5c1e8);\n  pcVar2 = pcStack_3c;\n  (*pcVar12)();\n  if (*pcVar2 == '[') {\n    uVar9 = (uint)pcVar2[1];\n    pcVar10 = pcVar2 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar3 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar4 = 0;\n      pcVar7 = pcVar10;\n      do {\n        pcVar6 = pcVar7;\n        pcVar7 = pcVar6 + 1;\n        if ((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar6[2] == '\0') && (1 < iVar4)) {\n        pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10);\n        return pcVar2;\n      }\n    }\n  }\nLAB_0001d744:\n                    /* WARNING: Subroutine does not return */\n  dupstr(pcVar2);\n}" primitive_type (pointer_declarator "* dupvprintf(char *fmt,va_list ap)" * (function_declarator "dupvprintf(char *fmt,va_list ap)" identifier (parameter_list "(char *fmt,va_list ap)" ( (parameter_declaration "char *fmt" primitive_type (pointer_declarator "*fmt" * identifier)) , (parameter_declaration "va_list ap" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int *piVar8;\n  uint uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  int iStack_40;\n  char *pcStack_3c;\n  undefined *puStack_38;\n  code *pcStack_34;\n  undefined4 uStack_2c;\n  int *piStack_28;\n  char *pcStack_24;\n  int size;\n  char *pcStack_c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  piVar3 = &size;\n  uVar5 = 0;\n  size = 0;\n  pcStack_c = *(char **)PTR___stack_chk_guard_00079930;\n  pcVar2 = dupvprintf_inner((char *)0x0,0,piVar3,fmt,ap);\n  if (pcStack_c == *(char **)puVar1) {\n    return pcVar2;\n  }\n  pcVar12 = dupprintf;\n  pcVar2 = pcStack_c;\n  puVar11 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  puStack_38 = puVar1;\n  piVar8 = *(int **)(puVar11 + 0x5c328);\n  iStack_40 = 0;\n  pcStack_3c = (char *)*piVar8;\n  pcStack_34 = pcVar12;\n  uStack_2c = uVar5;\n  piStack_28 = piVar3;\n  pcStack_24 = fmt;\n  pcVar2 = dupvprintf_inner((char *)0x0,0,&iStack_40,pcVar2,&uStack_2c);\n  if (pcStack_3c == (char *)*piVar8) {\n    return pcVar2;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x5c1e8);\n  pcVar2 = pcStack_3c;\n  (*pcVar12)();\n  if (*pcVar2 == '[') {\n    uVar9 = (uint)pcVar2[1];\n    pcVar10 = pcVar2 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar3 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar4 = 0;\n      pcVar7 = pcVar10;\n      do {\n        pcVar6 = pcVar7;\n        pcVar7 = pcVar6 + 1;\n        if ((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar6[2] == '\0') && (1 < iVar4)) {\n        pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10);\n        return pcVar2;\n      }\n    }\n  }\nLAB_0001d744:\n                    /* WARNING: Subroutine does not return */\n  dupstr(pcVar2);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "int iStack_40;" primitive_type identifier ;) (declaration "char *pcStack_3c;" primitive_type (pointer_declarator "*pcStack_3c" * identifier) ;) (declaration "undefined *puStack_38;" type_identifier (pointer_declarator "*puStack_38" * identifier) ;) (declaration "code *pcStack_34;" type_identifier (pointer_declarator "*pcStack_34" * identifier) ;) (declaration "undefined4 uStack_2c;" type_identifier identifier ;) (declaration "int *piStack_28;" primitive_type (pointer_declarator "*piStack_28" * identifier) ;) (declaration "char *pcStack_24;" primitive_type (pointer_declarator "*pcStack_24" * identifier) ;) (declaration "int size;" primitive_type identifier ;) (declaration "char *pcStack_c;" primitive_type (pointer_declarator "*pcStack_c" * identifier) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00079930;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00079930" identifier = identifier) ;) (expression_statement "piVar3 = &size;" (assignment_expression "piVar3 = &size" identifier = (pointer_expression "&size" & identifier)) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "size = 0;" (assignment_expression "size = 0" identifier = number_literal) ;) (expression_statement "pcStack_c = *(char **)PTR___stack_chk_guard_00079930;" (assignment_expression "pcStack_c = *(char **)PTR___stack_chk_guard_00079930" identifier = (pointer_expression "*(char **)PTR___stack_chk_guard_00079930" * (cast_expression "(char **)PTR___stack_chk_guard_00079930" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar2 = dupvprintf_inner((char *)0x0,0,piVar3,fmt,ap);" (assignment_expression "pcVar2 = dupvprintf_inner((char *)0x0,0,piVar3,fmt,ap)" identifier = (call_expression "dupvprintf_inner((char *)0x0,0,piVar3,fmt,ap)" identifier (argument_list "((char *)0x0,0,piVar3,fmt,ap)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (pcStack_c == *(char **)puVar1) {\n    return pcVar2;\n  }" if (parenthesized_expression "(pcStack_c == *(char **)puVar1)" ( (binary_expression "pcStack_c == *(char **)puVar1" identifier == (pointer_expression "*(char **)puVar1" * (cast_expression "(char **)puVar1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return pcVar2;\n  }" { (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pcVar12 = dupprintf;" (assignment_expression "pcVar12 = dupprintf" identifier = identifier) ;) (expression_statement "pcVar2 = pcStack_c;" (assignment_expression "pcVar2 = pcStack_c" identifier = identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_000797f0;" (assignment_expression "puVar11 = PTR___stack_chk_fail_000797f0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000797f0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000797f0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000797f0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000797f0" * (cast_expression "(code *)PTR___stack_chk_fail_000797f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puStack_38 = puVar1;" (assignment_expression "puStack_38 = puVar1" identifier = identifier) ;) (expression_statement "piVar8 = *(int **)(puVar11 + 0x5c328);" (assignment_expression "piVar8 = *(int **)(puVar11 + 0x5c328)" identifier = (pointer_expression "*(int **)(puVar11 + 0x5c328)" * (cast_expression "(int **)(puVar11 + 0x5c328)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5c328)" ( (binary_expression "puVar11 + 0x5c328" identifier + number_literal) ))))) ;) (expression_statement "iStack_40 = 0;" (assignment_expression "iStack_40 = 0" identifier = number_literal) ;) (expression_statement "pcStack_3c = (char *)*piVar8;" (assignment_expression "pcStack_3c = (char *)*piVar8" identifier = (cast_expression "(char *)*piVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar8" * identifier))) ;) (expression_statement "pcStack_34 = pcVar12;" (assignment_expression "pcStack_34 = pcVar12" identifier = identifier) ;) (expression_statement "uStack_2c = uVar5;" (assignment_expression "uStack_2c = uVar5" identifier = identifier) ;) (expression_statement "piStack_28 = piVar3;" (assignment_expression "piStack_28 = piVar3" identifier = identifier) ;) (expression_statement "pcStack_24 = fmt;" (assignment_expression "pcStack_24 = fmt" identifier = identifier) ;) (expression_statement "pcVar2 = dupvprintf_inner((char *)0x0,0,&iStack_40,pcVar2,&uStack_2c);" (assignment_expression "pcVar2 = dupvprintf_inner((char *)0x0,0,&iStack_40,pcVar2,&uStack_2c)" identifier = (call_expression "dupvprintf_inner((char *)0x0,0,&iStack_40,pcVar2,&uStack_2c)" identifier (argument_list "((char *)0x0,0,&iStack_40,pcVar2,&uStack_2c)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal , (pointer_expression "&iStack_40" & identifier) , identifier , (pointer_expression "&uStack_2c" & identifier) )))) ;) (if_statement "if (pcStack_3c == (char *)*piVar8) {\n    return pcVar2;\n  }" if (parenthesized_expression "(pcStack_3c == (char *)*piVar8)" ( (binary_expression "pcStack_3c == (char *)*piVar8" identifier == (cast_expression "(char *)*piVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar8" * identifier))) )) (compound_statement "{\n    return pcVar2;\n  }" { (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x5c1e8);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x5c1e8)" identifier = (pointer_expression "*(code **)(puVar11 + 0x5c1e8)" * (cast_expression "(code **)(puVar11 + 0x5c1e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5c1e8)" ( (binary_expression "puVar11 + 0x5c1e8" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = pcStack_3c;" (assignment_expression "pcVar2 = pcStack_3c" identifier = identifier) ;) (expression_statement "(*pcVar12)();" (call_expression "(*pcVar12)()" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (*pcVar2 == '[') {\n    uVar9 = (uint)pcVar2[1];\n    pcVar10 = pcVar2 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar3 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar4 = 0;\n      pcVar7 = pcVar10;\n      do {\n        pcVar6 = pcVar7;\n        pcVar7 = pcVar6 + 1;\n        if ((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar6[2] == '\0') && (1 < iVar4)) {\n        pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10);\n        return pcVar2;\n      }\n    }\n  }" if (parenthesized_expression "(*pcVar2 == '[')" ( (binary_expression "*pcVar2 == '['" (pointer_expression "*pcVar2" * identifier) == (char_literal "'['" ' character ')) )) (compound_statement "{\n    uVar9 = (uint)pcVar2[1];\n    pcVar10 = pcVar2 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar3 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar4 = 0;\n      pcVar7 = pcVar10;\n      do {\n        pcVar6 = pcVar7;\n        pcVar7 = pcVar6 + 1;\n        if ((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar6[2] == '\0') && (1 < iVar4)) {\n        pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10);\n        return pcVar2;\n      }\n    }\n  }" { (expression_statement "uVar9 = (uint)pcVar2[1];" (assignment_expression "uVar9 = (uint)pcVar2[1]" identifier = (cast_expression "(uint)pcVar2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pcVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "pcVar10 = pcVar2 + 1;" (assignment_expression "pcVar10 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar3 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar4 = 0;\n      pcVar7 = pcVar10;\n      do {\n        pcVar6 = pcVar7;\n        pcVar7 = pcVar6 + 1;\n        if ((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar6[2] == '\0') && (1 < iVar4)) {\n        pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10);\n        return pcVar2;\n      }\n    }" if (parenthesized_expression "((uVar9 != 0) && (uVar9 != 0x5d))" ( (binary_expression "(uVar9 != 0) && (uVar9 != 0x5d)" (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar9 != 0x5d)" ( (binary_expression "uVar9 != 0x5d" identifier != number_literal) ))) )) (compound_statement "{\n      piVar3 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar4 = 0;\n      pcVar7 = pcVar10;\n      do {\n        pcVar6 = pcVar7;\n        pcVar7 = pcVar6 + 1;\n        if ((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar6[2] == '\0') && (1 < iVar4)) {\n        pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10);\n        return pcVar2;\n      }\n    }" { (expression_statement "piVar3 = (int *)(**(code **)(pcVar12 + 0x5c164))();" (assignment_expression "piVar3 = (int *)(**(code **)(pcVar12 + 0x5c164))()" identifier = (cast_expression "(int *)(**(code **)(pcVar12 + 0x5c164))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(pcVar12 + 0x5c164))()" (parenthesized_expression "(**(code **)(pcVar12 + 0x5c164))" ( (pointer_expression "**(code **)(pcVar12 + 0x5c164)" * (pointer_expression "*(code **)(pcVar12 + 0x5c164)" * (cast_expression "(code **)(pcVar12 + 0x5c164)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x5c164)" ( (binary_expression "pcVar12 + 0x5c164" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar10;" (assignment_expression "pcVar7 = pcVar10" identifier = identifier) ;) (do_statement "do {\n        pcVar6 = pcVar7;\n        pcVar7 = pcVar6 + 1;\n        if ((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);" do (compound_statement "{\n        pcVar6 = pcVar7;\n        pcVar7 = pcVar6 + 1;\n        if ((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))\n        goto LAB_0001d744;\n      }" { (expression_statement "pcVar6 = pcVar7;" (assignment_expression "pcVar6 = pcVar7" identifier = identifier) ;) (expression_statement "pcVar7 = pcVar6 + 1;" (assignment_expression "pcVar7 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))\n        goto LAB_0001d744;" if (parenthesized_expression "((((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0))" ( (binary_expression "(((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar7, uVar9 == 0)" (parenthesized_expression "(((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a))" ( (binary_expression "((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar4 = iVar4 + 1, uVar9 != 0x3a)" (parenthesized_expression "((*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0)" ( (binary_expression "(*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10) == 0" (parenthesized_expression "(*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10)" ( (binary_expression "*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2) & 0x10" (pointer_expression "*(ushort *)(*piVar3 + (uVar9 & 0xff) * 2)" * (cast_expression "(ushort *)(*piVar3 + (uVar9 & 0xff) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + (uVar9 & 0xff) * 2)" ( (binary_expression "*piVar3 + (uVar9 & 0xff) * 2" (pointer_expression "*piVar3" * identifier) + (binary_expression "(uVar9 & 0xff) * 2" (parenthesized_expression "(uVar9 & 0xff)" ( (binary_expression "uVar9 & 0xff" identifier & number_literal) )) * number_literal)) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(iVar4 = iVar4 + 1, uVar9 != 0x3a)" ( (comma_expression "iVar4 = iVar4 + 1, uVar9 != 0x3a" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) , (binary_expression "uVar9 != 0x3a" identifier != number_literal)) ))) )) || (parenthesized_expression "(uVar9 = (uint)*pcVar7, uVar9 == 0)" ( (comma_expression "uVar9 = (uint)*pcVar7, uVar9 == 0" (assignment_expression "uVar9 = (uint)*pcVar7" identifier = (binary_expression "(uint)*pcVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) , (binary_expression "uVar9 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0001d744;" goto statement_identifier ;)) }) while (parenthesized_expression "(uVar9 != 0x5d)" ( (binary_expression "uVar9 != 0x5d" identifier != number_literal) )) ;) (if_statement "if ((pcVar6[2] == '\0') && (1 < iVar4)) {\n        pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10);\n        return pcVar2;\n      }" if (parenthesized_expression "((pcVar6[2] == '\0') && (1 < iVar4))" ( (binary_expression "(pcVar6[2] == '\0') && (1 < iVar4)" (parenthesized_expression "(pcVar6[2] == '\0')" ( (binary_expression "pcVar6[2] == '\0'" (subscript_expression "pcVar6[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(1 < iVar4)" ( (binary_expression "1 < iVar4" number_literal < identifier) ))) )) (compound_statement "{\n        pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10);\n        return pcVar2;\n      }" { (expression_statement "pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10);" (assignment_expression "pcVar2 = dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10)" identifier = (call_expression "dupprintf((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10)" identifier (argument_list "((char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0),\n                           (int)pcVar7 - (int)pcVar10,pcVar10)" ( (cast_expression "(char *)(*(int *)(pcVar12 + 0x5ba10) + -0x26d0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar12 + 0x5ba10) + -0x26d0)" ( (binary_expression "*(int *)(pcVar12 + 0x5ba10) + -0x26d0" (pointer_expression "*(int *)(pcVar12 + 0x5ba10)" * (cast_expression "(int *)(pcVar12 + 0x5ba10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar12 + 0x5ba10)" ( (binary_expression "pcVar12 + 0x5ba10" identifier + number_literal) )))) + number_literal) ))) , (binary_expression "(int)pcVar7 - (int)pcVar10" (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier )))) ;) (return_statement "return pcVar2;" return identifier ;) })) })) })) (labeled_statement "LAB_0001d744:\n                    /* WARNING: Subroutine does not return */\n  dupstr(pcVar2);" statement_identifier : comment (expression_statement "dupstr(pcVar2);" (call_expression "dupstr(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;)) })))
(translation_unit "void dupvprintf(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined4 uStack_40;\n  char *pcStack_3c;\n  undefined *puStack_38;\n  code *pcStack_34;\n  undefined4 uStack_2c;\n  undefined4 *puStack_28;\n  undefined4 uStack_24;\n  undefined4 local_20;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  puVar7 = &local_10;\n  uVar4 = 0;\n  local_10 = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00079930;\n  local_20 = param_2;\n  FUN_0001d44c(0);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  pcVar12 = dupprintf;\n  iVar3 = local_c;\n  puVar11 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  puStack_38 = puVar1;\n  puVar8 = *(undefined4 **)(puVar11 + 0x5c328);\n  uStack_40 = 0;\n  pcStack_3c = (char *)*puVar8;\n  pcStack_34 = pcVar12;\n  uStack_2c = uVar4;\n  puStack_28 = puVar7;\n  uStack_24 = param_1;\n  FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);\n  if (pcStack_3c == (char *)*puVar8) {\n    return;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x5c1e8);\n  pcVar10 = pcStack_3c;\n  (*pcVar12)();\n  if (*pcVar10 == '[') {\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }\nLAB_0001d744:\n  dupstr();\n  return;\n}\n\n" (function_definition "void dupvprintf(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined4 uStack_40;\n  char *pcStack_3c;\n  undefined *puStack_38;\n  code *pcStack_34;\n  undefined4 uStack_2c;\n  undefined4 *puStack_28;\n  undefined4 uStack_24;\n  undefined4 local_20;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  puVar7 = &local_10;\n  uVar4 = 0;\n  local_10 = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00079930;\n  local_20 = param_2;\n  FUN_0001d44c(0);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  pcVar12 = dupprintf;\n  iVar3 = local_c;\n  puVar11 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  puStack_38 = puVar1;\n  puVar8 = *(undefined4 **)(puVar11 + 0x5c328);\n  uStack_40 = 0;\n  pcStack_3c = (char *)*puVar8;\n  pcStack_34 = pcVar12;\n  uStack_2c = uVar4;\n  puStack_28 = puVar7;\n  uStack_24 = param_1;\n  FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);\n  if (pcStack_3c == (char *)*puVar8) {\n    return;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x5c1e8);\n  pcVar10 = pcStack_3c;\n  (*pcVar12)();\n  if (*pcVar10 == '[') {\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }\nLAB_0001d744:\n  dupstr();\n  return;\n}" primitive_type (function_declarator "dupvprintf(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined4 uStack_40;\n  char *pcStack_3c;\n  undefined *puStack_38;\n  code *pcStack_34;\n  undefined4 uStack_2c;\n  undefined4 *puStack_28;\n  undefined4 uStack_24;\n  undefined4 local_20;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  puVar7 = &local_10;\n  uVar4 = 0;\n  local_10 = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00079930;\n  local_20 = param_2;\n  FUN_0001d44c(0);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  pcVar12 = dupprintf;\n  iVar3 = local_c;\n  puVar11 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  puStack_38 = puVar1;\n  puVar8 = *(undefined4 **)(puVar11 + 0x5c328);\n  uStack_40 = 0;\n  pcStack_3c = (char *)*puVar8;\n  pcStack_34 = pcVar12;\n  uStack_2c = uVar4;\n  puStack_28 = puVar7;\n  uStack_24 = param_1;\n  FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);\n  if (pcStack_3c == (char *)*puVar8) {\n    return;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x5c1e8);\n  pcVar10 = pcStack_3c;\n  (*pcVar12)();\n  if (*pcVar10 == '[') {\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }\nLAB_0001d744:\n  dupstr();\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "undefined4 uStack_40;" type_identifier identifier ;) (declaration "char *pcStack_3c;" primitive_type (pointer_declarator "*pcStack_3c" * identifier) ;) (declaration "undefined *puStack_38;" type_identifier (pointer_declarator "*puStack_38" * identifier) ;) (declaration "code *pcStack_34;" type_identifier (pointer_declarator "*pcStack_34" * identifier) ;) (declaration "undefined4 uStack_2c;" type_identifier identifier ;) (declaration "undefined4 *puStack_28;" type_identifier (pointer_declarator "*puStack_28" * identifier) ;) (declaration "undefined4 uStack_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00079930;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00079930" identifier = identifier) ;) (expression_statement "puVar7 = &local_10;" (assignment_expression "puVar7 = &local_10" identifier = (pointer_expression "&local_10" & identifier)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" identifier = number_literal) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00079930;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00079930" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00079930" * (cast_expression "(int *)PTR___stack_chk_guard_00079930" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" identifier = identifier) ;) (expression_statement "FUN_0001d44c(0);" (call_expression "FUN_0001d44c(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (if_statement "if (local_c == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar1)" ( (binary_expression "local_c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar12 = dupprintf;" (assignment_expression "pcVar12 = dupprintf" identifier = identifier) ;) (expression_statement "iVar3 = local_c;" (assignment_expression "iVar3 = local_c" identifier = identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_000797f0;" (assignment_expression "puVar11 = PTR___stack_chk_fail_000797f0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000797f0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000797f0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000797f0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000797f0" * (cast_expression "(code *)PTR___stack_chk_fail_000797f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puStack_38 = puVar1;" (assignment_expression "puStack_38 = puVar1" identifier = identifier) ;) (expression_statement "puVar8 = *(undefined4 **)(puVar11 + 0x5c328);" (assignment_expression "puVar8 = *(undefined4 **)(puVar11 + 0x5c328)" identifier = (pointer_expression "*(undefined4 **)(puVar11 + 0x5c328)" * (cast_expression "(undefined4 **)(puVar11 + 0x5c328)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5c328)" ( (binary_expression "puVar11 + 0x5c328" identifier + number_literal) ))))) ;) (expression_statement "uStack_40 = 0;" (assignment_expression "uStack_40 = 0" identifier = number_literal) ;) (expression_statement "pcStack_3c = (char *)*puVar8;" (assignment_expression "pcStack_3c = (char *)*puVar8" identifier = (cast_expression "(char *)*puVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar8" * identifier))) ;) (expression_statement "pcStack_34 = pcVar12;" (assignment_expression "pcStack_34 = pcVar12" identifier = identifier) ;) (expression_statement "uStack_2c = uVar4;" (assignment_expression "uStack_2c = uVar4" identifier = identifier) ;) (expression_statement "puStack_28 = puVar7;" (assignment_expression "puStack_28 = puVar7" identifier = identifier) ;) (expression_statement "uStack_24 = param_1;" (assignment_expression "uStack_24 = param_1" identifier = identifier) ;) (expression_statement "FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);" (call_expression "FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c)" identifier (argument_list "(0,0,&uStack_40,iVar3,&uStack_2c)" ( number_literal , number_literal , (pointer_expression "&uStack_40" & identifier) , identifier , (pointer_expression "&uStack_2c" & identifier) ))) ;) (if_statement "if (pcStack_3c == (char *)*puVar8) {\n    return;\n  }" if (parenthesized_expression "(pcStack_3c == (char *)*puVar8)" ( (binary_expression "pcStack_3c == (char *)*puVar8" identifier == (cast_expression "(char *)*puVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar8" * identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x5c1e8);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x5c1e8)" identifier = (pointer_expression "*(code **)(puVar11 + 0x5c1e8)" * (cast_expression "(code **)(puVar11 + 0x5c1e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x5c1e8)" ( (binary_expression "puVar11 + 0x5c1e8" identifier + number_literal) ))))) ;) (expression_statement "pcVar10 = pcStack_3c;" (assignment_expression "pcVar10 = pcStack_3c" identifier = identifier) ;) (expression_statement "(*pcVar12)();" (call_expression "(*pcVar12)()" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (*pcVar10 == '[') {\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(*pcVar10 == '[')" ( (binary_expression "*pcVar10 == '['" (pointer_expression "*pcVar10" * identifier) == (char_literal "'['" ' character ')) )) (compound_statement "{\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }" { (expression_statement "uVar9 = (uint)pcVar10[1];" (assignment_expression "uVar9 = (uint)pcVar10[1]" identifier = (cast_expression "(uint)pcVar10[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pcVar10[1]" identifier [ number_literal ]))) ;) (expression_statement "pcVar10 = pcVar10 + 1;" (assignment_expression "pcVar10 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }" if (parenthesized_expression "((uVar9 != 0) && (uVar9 != 0x5d))" ( (binary_expression "(uVar9 != 0) && (uVar9 != 0x5d)" (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar9 != 0x5d)" ( (binary_expression "uVar9 != 0x5d" identifier != number_literal) ))) )) (compound_statement "{\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }" { (expression_statement "piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();" (assignment_expression "piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))()" identifier = (cast_expression "(int *)(**(code **)(pcVar12 + 0x5c164))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(pcVar12 + 0x5c164))()" (parenthesized_expression "(**(code **)(pcVar12 + 0x5c164))" ( (pointer_expression "**(code **)(pcVar12 + 0x5c164)" * (pointer_expression "*(code **)(pcVar12 + 0x5c164)" * (cast_expression "(code **)(pcVar12 + 0x5c164)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x5c164)" ( (binary_expression "pcVar12 + 0x5c164" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "pcVar6 = pcVar10;" (assignment_expression "pcVar6 = pcVar10" identifier = identifier) ;) (do_statement "do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);" do (compound_statement "{\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      }" { (expression_statement "pcVar5 = pcVar6;" (assignment_expression "pcVar5 = pcVar6" identifier = identifier) ;) (expression_statement "pcVar6 = pcVar5 + 1;" (assignment_expression "pcVar6 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (if_statement "if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;" if (parenthesized_expression "((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))" ( (binary_expression "(((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0)" (parenthesized_expression "(((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a))" ( (binary_expression "((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)" (parenthesized_expression "((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0)" ( (binary_expression "(*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0" (parenthesized_expression "(*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10)" ( (binary_expression "*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10" (pointer_expression "*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2)" * (cast_expression "(ushort *)(*piVar2 + (uVar9 & 0xff) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + (uVar9 & 0xff) * 2)" ( (binary_expression "*piVar2 + (uVar9 & 0xff) * 2" (pointer_expression "*piVar2" * identifier) + (binary_expression "(uVar9 & 0xff) * 2" (parenthesized_expression "(uVar9 & 0xff)" ( (binary_expression "uVar9 & 0xff" identifier & number_literal) )) * number_literal)) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(iVar3 = iVar3 + 1, uVar9 != 0x3a)" ( (comma_expression "iVar3 = iVar3 + 1, uVar9 != 0x3a" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) , (binary_expression "uVar9 != 0x3a" identifier != number_literal)) ))) )) || (parenthesized_expression "(uVar9 = (uint)*pcVar6, uVar9 == 0)" ( (comma_expression "uVar9 = (uint)*pcVar6, uVar9 == 0" (assignment_expression "uVar9 = (uint)*pcVar6" identifier = (binary_expression "(uint)*pcVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) , (binary_expression "uVar9 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0001d744;" goto statement_identifier ;)) }) while (parenthesized_expression "(uVar9 != 0x5d)" ( (binary_expression "uVar9 != 0x5d" identifier != number_literal) )) ;) (if_statement "if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }" if (parenthesized_expression "((pcVar5[2] == '\0') && (1 < iVar3))" ( (binary_expression "(pcVar5[2] == '\0') && (1 < iVar3)" (parenthesized_expression "(pcVar5[2] == '\0')" ( (binary_expression "pcVar5[2] == '\0'" (subscript_expression "pcVar5[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(1 < iVar3)" ( (binary_expression "1 < iVar3" number_literal < identifier) ))) )) (compound_statement "{\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }" { (expression_statement "dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);" (call_expression "dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10)" identifier (argument_list "(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10)" ( (binary_expression "*(int *)(pcVar12 + 0x5ba10) + -0x26d0" (pointer_expression "*(int *)(pcVar12 + 0x5ba10)" * (cast_expression "(int *)(pcVar12 + 0x5ba10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar12 + 0x5ba10)" ( (binary_expression "pcVar12 + 0x5ba10" identifier + number_literal) )))) + number_literal) , (binary_expression "(int)pcVar6 - (int)pcVar10" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier ))) ;) (return_statement "return;" return ;) })) })) })) (labeled_statement "LAB_0001d744:\n  dupstr();" statement_identifier : (expression_statement "dupstr();" (call_expression "dupstr()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT , (pointer_expression & IDENT) , IDENT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) )))) & LIT) )) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT != LIT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) , (binary_expression IDENT == LIT)) ))) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) , IDENT ))) ;) (return_statement return ;) })) })) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (return_statement return ;) })))
(function_definition "void dupvprintf(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined4 uStack_40;\n  char *pcStack_3c;\n  undefined *puStack_38;\n  code *pcStack_34;\n  undefined4 uStack_2c;\n  undefined4 *puStack_28;\n  undefined4 uStack_24;\n  undefined4 local_20;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  puVar7 = &local_10;\n  uVar4 = 0;\n  local_10 = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00079930;\n  local_20 = param_2;\n  FUN_0001d44c(0);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  pcVar12 = dupprintf;\n  iVar3 = local_c;\n  puVar11 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  puStack_38 = puVar1;\n  puVar8 = *(undefined4 **)(puVar11 + 0x5c328);\n  uStack_40 = 0;\n  pcStack_3c = (char *)*puVar8;\n  pcStack_34 = pcVar12;\n  uStack_2c = uVar4;\n  puStack_28 = puVar7;\n  uStack_24 = param_1;\n  FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);\n  if (pcStack_3c == (char *)*puVar8) {\n    return;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x5c1e8);\n  pcVar10 = pcStack_3c;\n  (*pcVar12)();\n  if (*pcVar10 == '[') {\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }\nLAB_0001d744:\n  dupstr();\n  return;\n}" (primitive_type "void") (function_declarator "dupvprintf(undefined4 param_1,undefined4 param_2)" (identifier "dupvprintf") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  uint uVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined4 uStack_40;\n  char *pcStack_3c;\n  undefined *puStack_38;\n  code *pcStack_34;\n  undefined4 uStack_2c;\n  undefined4 *puStack_28;\n  undefined4 uStack_24;\n  undefined4 local_20;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  puVar7 = &local_10;\n  uVar4 = 0;\n  local_10 = 0;\n  local_c = *(int *)PTR___stack_chk_guard_00079930;\n  local_20 = param_2;\n  FUN_0001d44c(0);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  pcVar12 = dupprintf;\n  iVar3 = local_c;\n  puVar11 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  puStack_38 = puVar1;\n  puVar8 = *(undefined4 **)(puVar11 + 0x5c328);\n  uStack_40 = 0;\n  pcStack_3c = (char *)*puVar8;\n  pcStack_34 = pcVar12;\n  uStack_2c = uVar4;\n  puStack_28 = puVar7;\n  uStack_24 = param_1;\n  FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);\n  if (pcStack_3c == (char *)*puVar8) {\n    return;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x5c1e8);\n  pcVar10 = pcStack_3c;\n  (*pcVar12)();\n  if (*pcVar10 == '[') {\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }\nLAB_0001d744:\n  dupstr();\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "undefined *puVar11;" (type_identifier "undefined") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "code *pcVar12;" (type_identifier "code") (pointer_declarator "*pcVar12" (* "*") (identifier "pcVar12")) (; ";")) (declaration "undefined4 uStack_40;" (type_identifier "undefined4") (identifier "uStack_40") (; ";")) (declaration "char *pcStack_3c;" (primitive_type "char") (pointer_declarator "*pcStack_3c" (* "*") (identifier "pcStack_3c")) (; ";")) (declaration "undefined *puStack_38;" (type_identifier "undefined") (pointer_declarator "*puStack_38" (* "*") (identifier "puStack_38")) (; ";")) (declaration "code *pcStack_34;" (type_identifier "code") (pointer_declarator "*pcStack_34" (* "*") (identifier "pcStack_34")) (; ";")) (declaration "undefined4 uStack_2c;" (type_identifier "undefined4") (identifier "uStack_2c") (; ";")) (declaration "undefined4 *puStack_28;" (type_identifier "undefined4") (pointer_declarator "*puStack_28" (* "*") (identifier "puStack_28")) (; ";")) (declaration "undefined4 uStack_24;" (type_identifier "undefined4") (identifier "uStack_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 local_10;" (type_identifier "undefined4") (identifier "local_10") (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_00079930;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00079930" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_00079930")) (; ";")) (expression_statement "puVar7 = &local_10;" (assignment_expression "puVar7 = &local_10" (identifier "puVar7") (= "=") (pointer_expression "&local_10" (& "&") (identifier "local_10"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" (identifier "local_10") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00079930;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00079930" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00079930" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00079930" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00079930")))) (; ";")) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" (identifier "local_20") (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_0001d44c(0);" (call_expression "FUN_0001d44c(0)" (identifier "FUN_0001d44c") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (if_statement "if (local_c == *(int *)puVar1) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_c == *(int *)puVar1)" (( "(") (binary_expression "local_c == *(int *)puVar1" (identifier "local_c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar12 = dupprintf;" (assignment_expression "pcVar12 = dupprintf" (identifier "pcVar12") (= "=") (identifier "dupprintf")) (; ";")) (expression_statement "iVar3 = local_c;" (assignment_expression "iVar3 = local_c" (identifier "iVar3") (= "=") (identifier "local_c")) (; ";")) (expression_statement "puVar11 = PTR___stack_chk_fail_000797f0;" (assignment_expression "puVar11 = PTR___stack_chk_fail_000797f0" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_fail_000797f0")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000797f0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000797f0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000797f0)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000797f0" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000797f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000797f0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puStack_38 = puVar1;" (assignment_expression "puStack_38 = puVar1" (identifier "puStack_38") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "puVar8 = *(undefined4 **)(puVar11 + 0x5c328);" (assignment_expression "puVar8 = *(undefined4 **)(puVar11 + 0x5c328)" (identifier "puVar8") (= "=") (pointer_expression "*(undefined4 **)(puVar11 + 0x5c328)" (* "*") (cast_expression "(undefined4 **)(puVar11 + 0x5c328)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x5c328)" (( "(") (binary_expression "puVar11 + 0x5c328" (identifier "puVar11") (+ "+") (number_literal "0x5c328")) () ")"))))) (; ";")) (expression_statement "uStack_40 = 0;" (assignment_expression "uStack_40 = 0" (identifier "uStack_40") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcStack_3c = (char *)*puVar8;" (assignment_expression "pcStack_3c = (char *)*puVar8" (identifier "pcStack_3c") (= "=") (cast_expression "(char *)*puVar8" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar8" (* "*") (identifier "puVar8")))) (; ";")) (expression_statement "pcStack_34 = pcVar12;" (assignment_expression "pcStack_34 = pcVar12" (identifier "pcStack_34") (= "=") (identifier "pcVar12")) (; ";")) (expression_statement "uStack_2c = uVar4;" (assignment_expression "uStack_2c = uVar4" (identifier "uStack_2c") (= "=") (identifier "uVar4")) (; ";")) (expression_statement "puStack_28 = puVar7;" (assignment_expression "puStack_28 = puVar7" (identifier "puStack_28") (= "=") (identifier "puVar7")) (; ";")) (expression_statement "uStack_24 = param_1;" (assignment_expression "uStack_24 = param_1" (identifier "uStack_24") (= "=") (identifier "param_1")) (; ";")) (expression_statement "FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);" (call_expression "FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c)" (identifier "FUN_0001d44c") (argument_list "(0,0,&uStack_40,iVar3,&uStack_2c)" (( "(") (number_literal "0") (, ",") (number_literal "0") (, ",") (pointer_expression "&uStack_40" (& "&") (identifier "uStack_40")) (, ",") (identifier "iVar3") (, ",") (pointer_expression "&uStack_2c" (& "&") (identifier "uStack_2c")) () ")"))) (; ";")) (if_statement "if (pcStack_3c == (char *)*puVar8) {\n    return;\n  }" (if "if") (parenthesized_expression "(pcStack_3c == (char *)*puVar8)" (( "(") (binary_expression "pcStack_3c == (char *)*puVar8" (identifier "pcStack_3c") (== "==") (cast_expression "(char *)*puVar8" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar8" (* "*") (identifier "puVar8")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x5c1e8);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x5c1e8)" (identifier "pcVar12") (= "=") (pointer_expression "*(code **)(puVar11 + 0x5c1e8)" (* "*") (cast_expression "(code **)(puVar11 + 0x5c1e8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x5c1e8)" (( "(") (binary_expression "puVar11 + 0x5c1e8" (identifier "puVar11") (+ "+") (number_literal "0x5c1e8")) () ")"))))) (; ";")) (expression_statement "pcVar10 = pcStack_3c;" (assignment_expression "pcVar10 = pcStack_3c" (identifier "pcVar10") (= "=") (identifier "pcStack_3c")) (; ";")) (expression_statement "(*pcVar12)();" (call_expression "(*pcVar12)()" (parenthesized_expression "(*pcVar12)" (( "(") (pointer_expression "*pcVar12" (* "*") (identifier "pcVar12")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*pcVar10 == '[') {\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(*pcVar10 == '[')" (( "(") (binary_expression "*pcVar10 == '['" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (== "==") (char_literal "'['" (' "'") (character "[") (' "'"))) () ")")) (compound_statement "{\n    uVar9 = (uint)pcVar10[1];\n    pcVar10 = pcVar10 + 1;\n    if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar9 = (uint)pcVar10[1];" (assignment_expression "uVar9 = (uint)pcVar10[1]" (identifier "uVar9") (= "=") (cast_expression "(uint)pcVar10[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pcVar10[1]" (identifier "pcVar10") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "pcVar10 = pcVar10 + 1;" (assignment_expression "pcVar10 = pcVar10 + 1" (identifier "pcVar10") (= "=") (binary_expression "pcVar10 + 1" (identifier "pcVar10") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((uVar9 != 0) && (uVar9 != 0x5d)) {\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }" (if "if") (parenthesized_expression "((uVar9 != 0) && (uVar9 != 0x5d))" (( "(") (binary_expression "(uVar9 != 0) && (uVar9 != 0x5d)" (parenthesized_expression "(uVar9 != 0)" (( "(") (binary_expression "uVar9 != 0" (identifier "uVar9") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar9 != 0x5d)" (( "(") (binary_expression "uVar9 != 0x5d" (identifier "uVar9") (!= "!=") (number_literal "0x5d")) () ")"))) () ")")) (compound_statement "{\n      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();\n      iVar3 = 0;\n      pcVar6 = pcVar10;\n      do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);\n      if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }\n    }" ({ "{") (expression_statement "piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();" (assignment_expression "piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))()" (identifier "piVar2") (= "=") (cast_expression "(int *)(**(code **)(pcVar12 + 0x5c164))()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(pcVar12 + 0x5c164))()" (parenthesized_expression "(**(code **)(pcVar12 + 0x5c164))" (( "(") (pointer_expression "**(code **)(pcVar12 + 0x5c164)" (* "*") (pointer_expression "*(code **)(pcVar12 + 0x5c164)" (* "*") (cast_expression "(code **)(pcVar12 + 0x5c164)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar12 + 0x5c164)" (( "(") (binary_expression "pcVar12 + 0x5c164" (identifier "pcVar12") (+ "+") (number_literal "0x5c164")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar6 = pcVar10;" (assignment_expression "pcVar6 = pcVar10" (identifier "pcVar6") (= "=") (identifier "pcVar10")) (; ";")) (do_statement "do {\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      } while (uVar9 != 0x5d);" (do "do") (compound_statement "{\n        pcVar5 = pcVar6;\n        pcVar6 = pcVar5 + 1;\n        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;\n      }" ({ "{") (expression_statement "pcVar5 = pcVar6;" (assignment_expression "pcVar5 = pcVar6" (identifier "pcVar5") (= "=") (identifier "pcVar6")) (; ";")) (expression_statement "pcVar6 = pcVar5 + 1;" (assignment_expression "pcVar6 = pcVar5 + 1" (identifier "pcVar6") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))\n        goto LAB_0001d744;" (if "if") (parenthesized_expression "((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))" (( "(") (binary_expression "(((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0)" (parenthesized_expression "(((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a))" (( "(") (binary_expression "((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&\n            (iVar3 = iVar3 + 1, uVar9 != 0x3a)" (parenthesized_expression "((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0)" (( "(") (binary_expression "(*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0" (parenthesized_expression "(*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10)" (( "(") (binary_expression "*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10" (pointer_expression "*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2)" (* "*") (cast_expression "(ushort *)(*piVar2 + (uVar9 & 0xff) * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + (uVar9 & 0xff) * 2)" (( "(") (binary_expression "*piVar2 + (uVar9 & 0xff) * 2" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (binary_expression "(uVar9 & 0xff) * 2" (parenthesized_expression "(uVar9 & 0xff)" (( "(") (binary_expression "uVar9 & 0xff" (identifier "uVar9") (& "&") (number_literal "0xff")) () ")")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = iVar3 + 1, uVar9 != 0x3a)" (( "(") (comma_expression "iVar3 = iVar3 + 1, uVar9 != 0x3a" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (, ",") (binary_expression "uVar9 != 0x3a" (identifier "uVar9") (!= "!=") (number_literal "0x3a"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(uVar9 = (uint)*pcVar6, uVar9 == 0)" (( "(") (comma_expression "uVar9 = (uint)*pcVar6, uVar9 == 0" (assignment_expression "uVar9 = (uint)*pcVar6" (identifier "uVar9") (= "=") (binary_expression "(uint)*pcVar6" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pcVar6"))) (, ",") (binary_expression "uVar9 == 0" (identifier "uVar9") (== "==") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_0001d744;" (goto "goto") (statement_identifier "LAB_0001d744") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(uVar9 != 0x5d)" (( "(") (binary_expression "uVar9 != 0x5d" (identifier "uVar9") (!= "!=") (number_literal "0x5d")) () ")")) (; ";")) (if_statement "if ((pcVar5[2] == '\0') && (1 < iVar3)) {\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }" (if "if") (parenthesized_expression "((pcVar5[2] == '\0') && (1 < iVar3))" (( "(") (binary_expression "(pcVar5[2] == '\0') && (1 < iVar3)" (parenthesized_expression "(pcVar5[2] == '\0')" (( "(") (binary_expression "pcVar5[2] == '\0'" (subscript_expression "pcVar5[2]" (identifier "pcVar5") ([ "[") (number_literal "2") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(1 < iVar3)" (( "(") (binary_expression "1 < iVar3" (number_literal "1") (< "<") (identifier "iVar3")) () ")"))) () ")")) (compound_statement "{\n        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);\n        return;\n      }" ({ "{") (expression_statement "dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);" (call_expression "dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10)" (identifier "dupprintf") (argument_list "(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10)" (( "(") (binary_expression "*(int *)(pcVar12 + 0x5ba10) + -0x26d0" (pointer_expression "*(int *)(pcVar12 + 0x5ba10)" (* "*") (cast_expression "(int *)(pcVar12 + 0x5ba10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar12 + 0x5ba10)" (( "(") (binary_expression "pcVar12 + 0x5ba10" (identifier "pcVar12") (+ "+") (number_literal "0x5ba10")) () ")")))) (+ "+") (number_literal "-0x26d0")) (, ",") (binary_expression "(int)pcVar6 - (int)pcVar10" (cast_expression "(int)pcVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar6")) (- "-") (cast_expression "(int)pcVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar10"))) (, ",") (identifier "pcVar10") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (} "}"))) (labeled_statement "LAB_0001d744:\n  dupstr();" (statement_identifier "LAB_0001d744") (: ":") (expression_statement "dupstr();" (call_expression "dupstr()" (identifier "dupstr") (argument_list "()" (( "(") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

char * function_1(char *fmt,type_1 ap)

{
  type_2 *puVar1;
  char *var_5;
  int *piVar3;
  int var_9;
  type_3 uVar5;
  char *var_8;
  char *var_10;
  int *piVar8;
  type_4 var_6;
  char *pcVar10;
  type_2 *var_3;
  type_5 *var_7;
  int iStack_40;
  char *var_4;
  type_2 *puStack_38;
  type_5 *pcStack_34;
  type_3 uStack_2c;
  int *piStack_28;
  char *pcStack_24;
  int size;
  char *var_2;
  
  puVar1 = PTR___stack_chk_guard_00079930;
  piVar3 = &size;
  uVar5 = 0;
  size = 0;
  var_2 = *(char **)PTR___stack_chk_guard_00079930;
  var_5 = var_1((char *)0x0,0,piVar3,fmt,ap);
  if (var_2 == *(char **)puVar1) {
    return var_5;
  }
  var_7 = var_11;
  var_5 = var_2;
  var_3 = PTR___stack_chk_fail_000797f0;
  (*(type_5 *)PTR___stack_chk_fail_000797f0)();
  puStack_38 = puVar1;
  piVar8 = *(int **)(var_3 + 0x5c328);
  iStack_40 = 0;
  var_4 = (char *)*piVar8;
  pcStack_34 = var_7;
  uStack_2c = uVar5;
  piStack_28 = piVar3;
  pcStack_24 = fmt;
  var_5 = var_1((char *)0x0,0,&iStack_40,var_5,&uStack_2c);
  if (var_4 == (char *)*piVar8) {
    return var_5;
  }
  var_7 = *(type_5 **)(var_3 + 0x5c1e8);
  var_5 = var_4;
  (*var_7)();
  if (*var_5 == '[') {
    var_6 = (type_4)var_5[1];
    pcVar10 = var_5 + 1;
    if ((var_6 != 0) && (var_6 != 0x5d)) {
      piVar3 = (int *)(**(type_5 **)(var_7 + 0x5c164))();
      var_9 = 0;
      var_10 = pcVar10;
      do {
        var_8 = var_10;
        var_10 = var_8 + 1;
        if ((((*(type_6 *)(*piVar3 + (var_6 & 0xff) * 2) & 0x10) == 0) &&
            (var_9 = var_9 + 1, var_6 != 0x3a)) || (var_6 = (type_4)*var_10, var_6 == 0))
        goto LAB_0001d744;
      } while (var_6 != 0x5d);
      if ((var_8[2] == '\0') && (1 < var_9)) {
        var_5 = var_11((char *)(*(int *)(var_7 + 0x5ba10) + -0x26d0),
                           (int)var_10 - (int)pcVar10,pcVar10);
        return var_5;
      }
    }
  }
LAB_0001d744:
                    /* WARNING: Subroutine does not return */
  var_12(var_5);
}


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

void MASKED(undefined4 param_1,undefined4 param_2)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  char *pcVar5;
  char *pcVar6;
  undefined4 *puVar7;
  undefined4 *puVar8;
  uint uVar9;
  char *pcVar10;
  undefined *puVar11;
  code *pcVar12;
  undefined4 uStack_40;
  char *pcStack_3c;
  undefined *puStack_38;
  code *pcStack_34;
  undefined4 uStack_2c;
  undefined4 *puStack_28;
  undefined4 uStack_24;
  undefined4 local_20;
  undefined4 local_10;
  int local_c;
  
  puVar1 = PTR___stack_chk_guard_00079930;
  puVar7 = &local_10;
  uVar4 = 0;
  local_10 = 0;
  local_c = *(int *)PTR___stack_chk_guard_00079930;
  local_20 = param_2;
  FUN_0001d44c(0);
  if (local_c == *(int *)puVar1) {
    return;
  }
  pcVar12 = dupprintf;
  iVar3 = local_c;
  puVar11 = PTR___stack_chk_fail_000797f0;
  (*(code *)PTR___stack_chk_fail_000797f0)();
  puStack_38 = puVar1;
  puVar8 = *(undefined4 **)(puVar11 + 0x5c328);
  uStack_40 = 0;
  pcStack_3c = (char *)*puVar8;
  pcStack_34 = pcVar12;
  uStack_2c = uVar4;
  puStack_28 = puVar7;
  uStack_24 = param_1;
  FUN_0001d44c(0,0,&uStack_40,iVar3,&uStack_2c);
  if (pcStack_3c == (char *)*puVar8) {
    return;
  }
  pcVar12 = *(code **)(puVar11 + 0x5c1e8);
  pcVar10 = pcStack_3c;
  (*pcVar12)();
  if (*pcVar10 == '[') {
    uVar9 = (uint)pcVar10[1];
    pcVar10 = pcVar10 + 1;
    if ((uVar9 != 0) && (uVar9 != 0x5d)) {
      piVar2 = (int *)(**(code **)(pcVar12 + 0x5c164))();
      iVar3 = 0;
      pcVar6 = pcVar10;
      do {
        pcVar5 = pcVar6;
        pcVar6 = pcVar5 + 1;
        if ((((*(ushort *)(*piVar2 + (uVar9 & 0xff) * 2) & 0x10) == 0) &&
            (iVar3 = iVar3 + 1, uVar9 != 0x3a)) || (uVar9 = (uint)*pcVar6, uVar9 == 0))
        goto LAB_0001d744;
      } while (uVar9 != 0x5d);
      if ((pcVar5[2] == '\0') && (1 < iVar3)) {
        dupprintf(*(int *)(pcVar12 + 0x5ba10) + -0x26d0,(int)pcVar6 - (int)pcVar10,pcVar10);
        return;
      }
    }
  }
LAB_0001d744:
  dupstr();
  return;
}

