
char * xvasprintf(char *format,va_list args)

{
  char *pcVar1;
  char cVar2;
  undefined *puVar3;
  byte *pbVar4;
  undefined3 extraout_var;
  int iVar5;
  _Bool _Var6;
  size_t argcount;
  uint *puVar7;
  char *in_a2;
  int *piVar8;
  char *pcVar9;
  undefined *puVar10;
  uint uStack_48;
  int iStack_44;
  undefined *puStack_3c;
  char *result;
  uint *local_c;
  
  puVar3 = PTR___stack_chk_guard_0002a25c;
  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;
  if (*format == '\0') {
    argcount = 0;
    format = in_a2;
LAB_00016c58:
    result = xstrcat(argcount,args);
  }
  else {
    if ((*format == '%') && (format[1] == 's')) {
      argcount = 0;
      pcVar9 = format;
      do {
        cVar2 = pcVar9[2];
        argcount = argcount + 1;
        if (cVar2 == '\0') goto LAB_00016c58;
      } while ((cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'));
    }
    args = (byte *)0x1;
    iVar5 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&result);
    if (iVar5 < 0) {
      piVar8 = (int *)(*(code *)PTR___errno_location_0002a1f4)();
      result = (char *)0x0;
      if (*piVar8 == 0xc) {
                    /* WARNING: Subroutine does not return */
        xalloc_die();
      }
    }
  }
  if (local_c != *(uint **)puVar3) {
    puVar7 = local_c;
    puVar10 = PTR___stack_chk_fail_0002a24c;
    (*(code *)PTR___stack_chk_fail_0002a24c)();
    piVar8 = *(int **)(puVar10 + 0x1356c);
    puStack_3c = puVar3;
    iStack_44 = *piVar8;
    if ((byte *)args == (byte *)0x0) {
      puVar7 = &uStack_48;
      args = *(byte **)(puVar10 + 0x13400) + -0x7e8c;
    }
    else {
      pcVar9 = &SUB_fffffffe;
      pbVar4 = *(byte **)(puVar10 + 0x13400);
      if (format == (char *)0x0) goto LAB_00016d60;
      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;
    }
    while( true ) {
      pcVar9 = (char *)(**(code **)(puVar10 + 0x13538))(puVar7,args);
      pbVar4 = (byte *)args;
      if (((char *)0xfffffffd < pcVar9) &&
         (_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0)) {
                    /* WARNING: Load size is inaccurate */
        pcVar9 = (char *)0x1;
        *puVar7 = (uint)*args;
      }
LAB_00016d60:
      args = pbVar4;
      if (iStack_44 == *piVar8) break;
      (**(code **)(puVar10 + 0x1355c))();
LAB_00016dcc:
      puVar7 = &uStack_48;
    }
    return pcVar9;
  }
  return result;
}



uint xvasprintf(char *param_1,byte *param_2,char *param_3)

{
  char *pcVar1;
  char cVar2;
  undefined *puVar3;
  byte *pbVar4;
  char *pcVar5;
  int iVar6;
  uint *puVar7;
  byte *pbVar8;
  int *piVar9;
  uint uVar10;
  undefined *puVar11;
  uint uStack_48;
  int iStack_44;
  undefined *puStack_3c;
  uint local_10;
  uint *local_c;
  
  puVar3 = PTR___stack_chk_guard_0002a25c;
  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;
  if (*param_1 != '\0') {
    if ((*param_1 == '%') && (param_1[1] == 's')) {
      iVar6 = 0;
      pcVar5 = param_1;
      do {
        cVar2 = pcVar5[2];
        iVar6 = iVar6 + 1;
        pbVar8 = param_2;
        if (cVar2 == '\0') goto LAB_00016c58;
      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));
    }
    pbVar8 = (byte *)0x1;
    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);
    if (-1 < iVar6) goto LAB_00016c8c;
    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();
    local_10 = 0;
    if (*piVar9 != 0xc) goto LAB_00016c8c;
    xalloc_die();
    param_3 = param_1;
  }
  iVar6 = 0;
  param_1 = param_3;
  pbVar8 = param_2;
LAB_00016c58:
  local_10 = FUN_00016a80(iVar6);
LAB_00016c8c:
  if (local_c != *(uint **)puVar3) {
    puVar7 = local_c;
    puVar11 = PTR___stack_chk_fail_0002a24c;
    (*(code *)PTR___stack_chk_fail_0002a24c)();
    piVar9 = *(int **)(puVar11 + 0x1356c);
    puStack_3c = puVar3;
    iStack_44 = *piVar9;
    if (pbVar8 == (byte *)0x0) {
      puVar7 = &uStack_48;
      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;
    }
    else {
      uVar10 = 0xfffffffe;
      pbVar4 = *(byte **)(puVar11 + 0x13400);
      if (param_1 == (char *)0x0) goto LAB_00016d60;
      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;
    }
    while( true ) {
      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);
      pbVar4 = pbVar8;
      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {
        uVar10 = 1;
        *puVar7 = (uint)*pbVar8;
      }
LAB_00016d60:
      pbVar8 = pbVar4;
      if (iStack_44 == *piVar9) break;
      (**(code **)(puVar11 + 0x1355c))();
LAB_00016dcc:
      puVar7 = &uStack_48;
    }
    return uVar10;
  }
  return local_10;
}


lui gp,0x2
addiu gp,gp,-0x4b24
addu gp,gp,t9
addiu sp,sp,-0x28
or a3,a1,zero
sw s0,0x20(sp)
sw gp,0x10(sp)
sw ra,0x24(sp)
lw s0,-0x7e54(gp)
lb v0,0x0(a0)
lw v1,0x0(s0)
sw v1,0x1c(sp)
beq v0,zero,0x00016cd4
_li v1,0x25
bne v0,v1,0x00016c70
_or a2,a0,zero
lb v1,0x1(a0)
li v0,0x73
bne v1,v0,0x00016c70
_or v0,a0,zero
li a1,0x25
or a0,zero,zero
b 0x00016c48
_li t0,0x73
bne v1,a1,0x00016c74
_lw t9,-0x7eb4(gp)
lb v1,0x1(v0)
bne v1,t0,0x00016c74
_nop
addiu v0,v0,0x2
lb v1,0x0(v0)
bne v1,zero,0x00016c34
_addiu a0,a0,0x1
lw t9,-0x7fcc(gp)
addiu t9,t9,0x6a80
bal 0x00016a80
_or a1,a3,zero
b 0x00016c8c
_lw gp,0x10(sp)
lw t9,-0x7eb4(gp)
li a1,0x1
jalr t9
_addiu a0,sp,0x18
bltz v0,0x00016ca8
_lw gp,0x10(sp)
lw v0,0x18(sp)
lw a0,0x1c(sp)
lw v1,0x0(s0)
bne a0,v1,0x00016cdc
_lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7ebc(gp)
jalr t9
_nop
li v1,0xc
lw a0,0x0(v0)
or v0,zero,zero
bne a0,v1,0x00016c8c
_lw gp,0x10(sp)
lw t9,-0x7f7c(gp)
bal 0x00016a10
_nop
b 0x00016c58
_or a0,zero,zero
lw t9,-0x7e64(gp)
jalr t9
_nop
nop
nop
(translation_unit "uint xvasprintf(char *param_1,byte *param_2,char *param_3)\n\n{\n  char *pcVar1;\n  char cVar2;\n  undefined *puVar3;\n  byte *pbVar4;\n  char *pcVar5;\n  int iVar6;\n  uint *puVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  undefined *puVar11;\n  uint uStack_48;\n  int iStack_44;\n  undefined *puStack_3c;\n  uint local_10;\n  uint *local_c;\n  \n  puVar3 = PTR___stack_chk_guard_0002a25c;\n  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;\n  if (*param_1 != '\0') {\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }\n  iVar6 = 0;\n  param_1 = param_3;\n  pbVar8 = param_2;\nLAB_00016c58:\n  local_10 = FUN_00016a80(iVar6);\nLAB_00016c8c:\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }\n  return local_10;\n}\n\n" (function_definition "uint xvasprintf(char *param_1,byte *param_2,char *param_3)\n\n{\n  char *pcVar1;\n  char cVar2;\n  undefined *puVar3;\n  byte *pbVar4;\n  char *pcVar5;\n  int iVar6;\n  uint *puVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  undefined *puVar11;\n  uint uStack_48;\n  int iStack_44;\n  undefined *puStack_3c;\n  uint local_10;\n  uint *local_c;\n  \n  puVar3 = PTR___stack_chk_guard_0002a25c;\n  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;\n  if (*param_1 != '\0') {\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }\n  iVar6 = 0;\n  param_1 = param_3;\n  pbVar8 = param_2;\nLAB_00016c58:\n  local_10 = FUN_00016a80(iVar6);\nLAB_00016c8c:\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }\n  return local_10;\n}" type_identifier (function_declarator "xvasprintf(char *param_1,byte *param_2,char *param_3)" identifier (parameter_list "(char *param_1,byte *param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  undefined *puVar3;\n  byte *pbVar4;\n  char *pcVar5;\n  int iVar6;\n  uint *puVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  undefined *puVar11;\n  uint uStack_48;\n  int iStack_44;\n  undefined *puStack_3c;\n  uint local_10;\n  uint *local_c;\n  \n  puVar3 = PTR___stack_chk_guard_0002a25c;\n  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;\n  if (*param_1 != '\0') {\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }\n  iVar6 = 0;\n  param_1 = param_3;\n  pbVar8 = param_2;\nLAB_00016c58:\n  local_10 = FUN_00016a80(iVar6);\nLAB_00016c8c:\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }\n  return local_10;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "uint uStack_48;" type_identifier identifier ;) (declaration "int iStack_44;" primitive_type identifier ;) (declaration "undefined *puStack_3c;" type_identifier (pointer_declarator "*puStack_3c" * identifier) ;) (declaration "uint local_10;" type_identifier identifier ;) (declaration "uint *local_c;" type_identifier (pointer_declarator "*local_c" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_0002a25c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0002a25c" identifier = identifier) ;) (expression_statement "local_c = *(uint **)PTR___stack_chk_guard_0002a25c;" (assignment_expression "local_c = *(uint **)PTR___stack_chk_guard_0002a25c" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_0002a25c" * (cast_expression "(uint **)PTR___stack_chk_guard_0002a25c" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (*param_1 != '\0') {\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }" if (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }" { (if_statement "if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }" if (parenthesized_expression "((*param_1 == '%') && (param_1[1] == 's'))" ( (binary_expression "(*param_1 == '%') && (param_1[1] == 's')" (parenthesized_expression "(*param_1 == '%')" ( (binary_expression "*param_1 == '%'" (pointer_expression "*param_1" * identifier) == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(param_1[1] == 's')" ( (binary_expression "param_1[1] == 's'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'s'" ' character ')) ))) )) (compound_statement "{\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "pcVar5 = param_1;" (assignment_expression "pcVar5 = param_1" identifier = identifier) ;) (do_statement "do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));" do (compound_statement "{\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      }" { (expression_statement "cVar2 = pcVar5[2];" (assignment_expression "cVar2 = pcVar5[2]" identifier = (subscript_expression "pcVar5[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = param_2;" (assignment_expression "pbVar8 = param_2" identifier = identifier) ;) (if_statement "if (cVar2 == '\0') goto LAB_00016c58;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00016c58;" goto statement_identifier ;)) }) while (parenthesized_expression "((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'))" ( (binary_expression "(cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's')" (parenthesized_expression "(cVar2 == '%')" ( (binary_expression "cVar2 == '%'" identifier == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's')" ( (comma_expression "pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'" (assignment_expression "pcVar1 = pcVar5 + 3" identifier = (binary_expression "pcVar5 + 3" identifier + number_literal)) , (comma_expression "pcVar5 = pcVar5 + 2, *pcVar1 == 's'" (assignment_expression "pcVar5 = pcVar5 + 2" identifier = (binary_expression "pcVar5 + 2" identifier + number_literal)) , (binary_expression "*pcVar1 == 's'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'s'" ' character ')))) ))) )) ;) })) (expression_statement "pbVar8 = (byte *)0x1;" (assignment_expression "pbVar8 = (byte *)0x1" identifier = (cast_expression "(byte *)0x1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);" (assignment_expression "iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10)" identifier = (call_expression "(*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10)" (parenthesized_expression "(*(code *)PTR___vasprintf_chk_0002a1fc)" ( (pointer_expression "*(code *)PTR___vasprintf_chk_0002a1fc" * (cast_expression "(code *)PTR___vasprintf_chk_0002a1fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) )))) ;) (if_statement "if (-1 < iVar6) goto LAB_00016c8c;" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (goto_statement "goto LAB_00016c8c;" goto statement_identifier ;)) (expression_statement "piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();" (assignment_expression "piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0002a1f4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002a1f4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002a1f4)" ( (pointer_expression "*(code *)PTR___errno_location_0002a1f4" * (cast_expression "(code *)PTR___errno_location_0002a1f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" identifier = number_literal) ;) (if_statement "if (*piVar9 != 0xc) goto LAB_00016c8c;" if (parenthesized_expression "(*piVar9 != 0xc)" ( (binary_expression "*piVar9 != 0xc" (pointer_expression "*piVar9" * identifier) != number_literal) )) (goto_statement "goto LAB_00016c8c;" goto statement_identifier ;)) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_3 = param_1;" (assignment_expression "param_3 = param_1" identifier = identifier) ;) })) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "param_1 = param_3;" (assignment_expression "param_1 = param_3" identifier = identifier) ;) (expression_statement "pbVar8 = param_2;" (assignment_expression "pbVar8 = param_2" identifier = identifier) ;) (labeled_statement "LAB_00016c58:\n  local_10 = FUN_00016a80(iVar6);" statement_identifier : (expression_statement "local_10 = FUN_00016a80(iVar6);" (assignment_expression "local_10 = FUN_00016a80(iVar6)" identifier = (call_expression "FUN_00016a80(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;)) (labeled_statement "LAB_00016c8c:\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }" statement_identifier : (if_statement "if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }" if (parenthesized_expression "(local_c != *(uint **)puVar3)" ( (binary_expression "local_c != *(uint **)puVar3" identifier != (pointer_expression "*(uint **)puVar3" * (cast_expression "(uint **)puVar3" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }" { (expression_statement "puVar7 = local_c;" (assignment_expression "puVar7 = local_c" identifier = identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_0002a24c;" (assignment_expression "puVar11 = PTR___stack_chk_fail_0002a24c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0002a24c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002a24c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002a24c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002a24c" * (cast_expression "(code *)PTR___stack_chk_fail_0002a24c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar9 = *(int **)(puVar11 + 0x1356c);" (assignment_expression "piVar9 = *(int **)(puVar11 + 0x1356c)" identifier = (pointer_expression "*(int **)(puVar11 + 0x1356c)" * (cast_expression "(int **)(puVar11 + 0x1356c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1356c)" ( (binary_expression "puVar11 + 0x1356c" identifier + number_literal) ))))) ;) (expression_statement "puStack_3c = puVar3;" (assignment_expression "puStack_3c = puVar3" identifier = identifier) ;) (expression_statement "iStack_44 = *piVar9;" (assignment_expression "iStack_44 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (if_statement "if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" if (parenthesized_expression "(pbVar8 == (byte *)0x0)" ( (binary_expression "pbVar8 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }" { (expression_statement "puVar7 = &uStack_48;" (assignment_expression "puVar7 = &uStack_48" identifier = (pointer_expression "&uStack_48" & identifier)) ;) (expression_statement "pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;" (assignment_expression "pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c" identifier = (binary_expression "*(byte **)(puVar11 + 0x13400) + -0x7e8c" (pointer_expression "*(byte **)(puVar11 + 0x13400)" * (cast_expression "(byte **)(puVar11 + 0x13400)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x13400)" ( (binary_expression "puVar11 + 0x13400" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" else (compound_statement "{\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" { (expression_statement "uVar10 = 0xfffffffe;" (assignment_expression "uVar10 = 0xfffffffe" identifier = number_literal) ;) (expression_statement "pbVar4 = *(byte **)(puVar11 + 0x13400);" (assignment_expression "pbVar4 = *(byte **)(puVar11 + 0x13400)" identifier = (pointer_expression "*(byte **)(puVar11 + 0x13400)" * (cast_expression "(byte **)(puVar11 + 0x13400)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x13400)" ( (binary_expression "puVar11 + 0x13400" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == (char *)0x0) goto LAB_00016d60;" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00016d60;" goto statement_identifier ;)) (if_statement "if (puVar7 == (uint *)0x0) goto LAB_00016dcc;" if (parenthesized_expression "(puVar7 == (uint *)0x0)" ( (binary_expression "puVar7 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00016dcc;" goto statement_identifier ;)) }))) (while_statement "while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }" { (expression_statement "uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);" (assignment_expression "uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8)" identifier = (call_expression "(**(code **)(puVar11 + 0x13538))(puVar7,pbVar8)" (parenthesized_expression "(**(code **)(puVar11 + 0x13538))" ( (pointer_expression "**(code **)(puVar11 + 0x13538)" * (pointer_expression "*(code **)(puVar11 + 0x13538)" * (cast_expression "(code **)(puVar11 + 0x13538)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x13538)" ( (binary_expression "puVar11 + 0x13538" identifier + number_literal) ))))) )) (argument_list "(puVar7,pbVar8)" ( identifier , identifier )))) ;) (expression_statement "pbVar4 = pbVar8;" (assignment_expression "pbVar4 = pbVar8" identifier = identifier) ;) (if_statement "if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }" if (parenthesized_expression "((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0))" ( (binary_expression "(0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)" (parenthesized_expression "(0xfffffffd < uVar10)" ( (binary_expression "0xfffffffd < uVar10" number_literal < identifier) )) && (parenthesized_expression "(iVar6 = hard_locale(0), iVar6 == 0)" ( (comma_expression "iVar6 = hard_locale(0), iVar6 == 0" (assignment_expression "iVar6 = hard_locale(0)" identifier = (call_expression "hard_locale(0)" identifier (argument_list "(0)" ( number_literal )))) , (binary_expression "iVar6 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }" { (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" identifier = number_literal) ;) (expression_statement "*puVar7 = (uint)*pbVar8;" (assignment_expression "*puVar7 = (uint)*pbVar8" (pointer_expression "*puVar7" * identifier) = (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) })) (labeled_statement "LAB_00016d60:\n      pbVar8 = pbVar4;" statement_identifier : (expression_statement "pbVar8 = pbVar4;" (assignment_expression "pbVar8 = pbVar4" identifier = identifier) ;)) (if_statement "if (iStack_44 == *piVar9) break;" if (parenthesized_expression "(iStack_44 == *piVar9)" ( (binary_expression "iStack_44 == *piVar9" identifier == (pointer_expression "*piVar9" * identifier)) )) (break_statement "break;" break ;)) (expression_statement "(**(code **)(puVar11 + 0x1355c))();" (call_expression "(**(code **)(puVar11 + 0x1355c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1355c))" ( (pointer_expression "**(code **)(puVar11 + 0x1355c)" * (pointer_expression "*(code **)(puVar11 + 0x1355c)" * (cast_expression "(code **)(puVar11 + 0x1355c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1355c)" ( (binary_expression "puVar11 + 0x1355c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00016dcc:\n      puVar7 = &uStack_48;" statement_identifier : (expression_statement "puVar7 = &uStack_48;" (assignment_expression "puVar7 = &uStack_48" identifier = (pointer_expression "&uStack_48" & identifier)) ;)) })) (return_statement "return uVar10;" return identifier ;) }))) (return_statement "return local_10;" return identifier ;) })))
(translation_unit "char * xvasprintf(char *format,va_list args)\n\n{\n  char *pcVar1;\n  char cVar2;\n  undefined *puVar3;\n  byte *pbVar4;\n  undefined3 extraout_var;\n  int iVar5;\n  _Bool _Var6;\n  size_t argcount;\n  uint *puVar7;\n  char *in_a2;\n  int *piVar8;\n  char *pcVar9;\n  undefined *puVar10;\n  uint uStack_48;\n  int iStack_44;\n  undefined *puStack_3c;\n  char *result;\n  uint *local_c;\n  \n  puVar3 = PTR___stack_chk_guard_0002a25c;\n  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;\n  if (*format == '\0') {\n    argcount = 0;\n    format = in_a2;\nLAB_00016c58:\n    result = xstrcat(argcount,args);\n  }\n  else {\n    if ((*format == '%') && (format[1] == 's')) {\n      argcount = 0;\n      pcVar9 = format;\n      do {\n        cVar2 = pcVar9[2];\n        argcount = argcount + 1;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'));\n    }\n    args = (byte *)0x1;\n    iVar5 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&result);\n    if (iVar5 < 0) {\n      piVar8 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n      result = (char *)0x0;\n      if (*piVar8 == 0xc) {\n                    /* WARNING: Subroutine does not return */\n        xalloc_die();\n      }\n    }\n  }\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar10 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar8 = *(int **)(puVar10 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar8;\n    if ((byte *)args == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      args = *(byte **)(puVar10 + 0x13400) + -0x7e8c;\n    }\n    else {\n      pcVar9 = &SUB_fffffffe;\n      pbVar4 = *(byte **)(puVar10 + 0x13400);\n      if (format == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      pcVar9 = (char *)(**(code **)(puVar10 + 0x13538))(puVar7,args);\n      pbVar4 = (byte *)args;\n      if (((char *)0xfffffffd < pcVar9) &&\n         (_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0)) {\n                    /* WARNING: Load size is inaccurate */\n        pcVar9 = (char *)0x1;\n        *puVar7 = (uint)*args;\n      }\nLAB_00016d60:\n      args = pbVar4;\n      if (iStack_44 == *piVar8) break;\n      (**(code **)(puVar10 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return pcVar9;\n  }\n  return result;\n}\n\n" (function_definition "char * xvasprintf(char *format,va_list args)\n\n{\n  char *pcVar1;\n  char cVar2;\n  undefined *puVar3;\n  byte *pbVar4;\n  undefined3 extraout_var;\n  int iVar5;\n  _Bool _Var6;\n  size_t argcount;\n  uint *puVar7;\n  char *in_a2;\n  int *piVar8;\n  char *pcVar9;\n  undefined *puVar10;\n  uint uStack_48;\n  int iStack_44;\n  undefined *puStack_3c;\n  char *result;\n  uint *local_c;\n  \n  puVar3 = PTR___stack_chk_guard_0002a25c;\n  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;\n  if (*format == '\0') {\n    argcount = 0;\n    format = in_a2;\nLAB_00016c58:\n    result = xstrcat(argcount,args);\n  }\n  else {\n    if ((*format == '%') && (format[1] == 's')) {\n      argcount = 0;\n      pcVar9 = format;\n      do {\n        cVar2 = pcVar9[2];\n        argcount = argcount + 1;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'));\n    }\n    args = (byte *)0x1;\n    iVar5 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&result);\n    if (iVar5 < 0) {\n      piVar8 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n      result = (char *)0x0;\n      if (*piVar8 == 0xc) {\n                    /* WARNING: Subroutine does not return */\n        xalloc_die();\n      }\n    }\n  }\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar10 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar8 = *(int **)(puVar10 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar8;\n    if ((byte *)args == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      args = *(byte **)(puVar10 + 0x13400) + -0x7e8c;\n    }\n    else {\n      pcVar9 = &SUB_fffffffe;\n      pbVar4 = *(byte **)(puVar10 + 0x13400);\n      if (format == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      pcVar9 = (char *)(**(code **)(puVar10 + 0x13538))(puVar7,args);\n      pbVar4 = (byte *)args;\n      if (((char *)0xfffffffd < pcVar9) &&\n         (_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0)) {\n                    /* WARNING: Load size is inaccurate */\n        pcVar9 = (char *)0x1;\n        *puVar7 = (uint)*args;\n      }\nLAB_00016d60:\n      args = pbVar4;\n      if (iStack_44 == *piVar8) break;\n      (**(code **)(puVar10 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return pcVar9;\n  }\n  return result;\n}" primitive_type (pointer_declarator "* xvasprintf(char *format,va_list args)" * (function_declarator "xvasprintf(char *format,va_list args)" identifier (parameter_list "(char *format,va_list args)" ( (parameter_declaration "char *format" primitive_type (pointer_declarator "*format" * identifier)) , (parameter_declaration "va_list args" type_identifier identifier) )))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  undefined *puVar3;\n  byte *pbVar4;\n  undefined3 extraout_var;\n  int iVar5;\n  _Bool _Var6;\n  size_t argcount;\n  uint *puVar7;\n  char *in_a2;\n  int *piVar8;\n  char *pcVar9;\n  undefined *puVar10;\n  uint uStack_48;\n  int iStack_44;\n  undefined *puStack_3c;\n  char *result;\n  uint *local_c;\n  \n  puVar3 = PTR___stack_chk_guard_0002a25c;\n  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;\n  if (*format == '\0') {\n    argcount = 0;\n    format = in_a2;\nLAB_00016c58:\n    result = xstrcat(argcount,args);\n  }\n  else {\n    if ((*format == '%') && (format[1] == 's')) {\n      argcount = 0;\n      pcVar9 = format;\n      do {\n        cVar2 = pcVar9[2];\n        argcount = argcount + 1;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'));\n    }\n    args = (byte *)0x1;\n    iVar5 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&result);\n    if (iVar5 < 0) {\n      piVar8 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n      result = (char *)0x0;\n      if (*piVar8 == 0xc) {\n                    /* WARNING: Subroutine does not return */\n        xalloc_die();\n      }\n    }\n  }\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar10 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar8 = *(int **)(puVar10 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar8;\n    if ((byte *)args == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      args = *(byte **)(puVar10 + 0x13400) + -0x7e8c;\n    }\n    else {\n      pcVar9 = &SUB_fffffffe;\n      pbVar4 = *(byte **)(puVar10 + 0x13400);\n      if (format == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      pcVar9 = (char *)(**(code **)(puVar10 + 0x13538))(puVar7,args);\n      pbVar4 = (byte *)args;\n      if (((char *)0xfffffffd < pcVar9) &&\n         (_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0)) {\n                    /* WARNING: Load size is inaccurate */\n        pcVar9 = (char *)0x1;\n        *puVar7 = (uint)*args;\n      }\nLAB_00016d60:\n      args = pbVar4;\n      if (iStack_44 == *piVar8) break;\n      (**(code **)(puVar10 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return pcVar9;\n  }\n  return result;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "_Bool _Var6;" type_identifier identifier ;) (declaration "size_t argcount;" primitive_type identifier ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *in_a2;" primitive_type (pointer_declarator "*in_a2" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "uint uStack_48;" type_identifier identifier ;) (declaration "int iStack_44;" primitive_type identifier ;) (declaration "undefined *puStack_3c;" type_identifier (pointer_declarator "*puStack_3c" * identifier) ;) (declaration "char *result;" primitive_type (pointer_declarator "*result" * identifier) ;) (declaration "uint *local_c;" type_identifier (pointer_declarator "*local_c" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_0002a25c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0002a25c" identifier = identifier) ;) (expression_statement "local_c = *(uint **)PTR___stack_chk_guard_0002a25c;" (assignment_expression "local_c = *(uint **)PTR___stack_chk_guard_0002a25c" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_0002a25c" * (cast_expression "(uint **)PTR___stack_chk_guard_0002a25c" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (*format == '\0') {\n    argcount = 0;\n    format = in_a2;\nLAB_00016c58:\n    result = xstrcat(argcount,args);\n  }\n  else {\n    if ((*format == '%') && (format[1] == 's')) {\n      argcount = 0;\n      pcVar9 = format;\n      do {\n        cVar2 = pcVar9[2];\n        argcount = argcount + 1;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'));\n    }\n    args = (byte *)0x1;\n    iVar5 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&result);\n    if (iVar5 < 0) {\n      piVar8 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n      result = (char *)0x0;\n      if (*piVar8 == 0xc) {\n                    /* WARNING: Subroutine does not return */\n        xalloc_die();\n      }\n    }\n  }" if (parenthesized_expression "(*format == '\0')" ( (binary_expression "*format == '\0'" (pointer_expression "*format" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    argcount = 0;\n    format = in_a2;\nLAB_00016c58:\n    result = xstrcat(argcount,args);\n  }" { (expression_statement "argcount = 0;" (assignment_expression "argcount = 0" identifier = number_literal) ;) (expression_statement "format = in_a2;" (assignment_expression "format = in_a2" identifier = identifier) ;) (labeled_statement "LAB_00016c58:\n    result = xstrcat(argcount,args);" statement_identifier : (expression_statement "result = xstrcat(argcount,args);" (assignment_expression "result = xstrcat(argcount,args)" identifier = (call_expression "xstrcat(argcount,args)" identifier (argument_list "(argcount,args)" ( identifier , identifier )))) ;)) }) (else_clause "else {\n    if ((*format == '%') && (format[1] == 's')) {\n      argcount = 0;\n      pcVar9 = format;\n      do {\n        cVar2 = pcVar9[2];\n        argcount = argcount + 1;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'));\n    }\n    args = (byte *)0x1;\n    iVar5 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&result);\n    if (iVar5 < 0) {\n      piVar8 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n      result = (char *)0x0;\n      if (*piVar8 == 0xc) {\n                    /* WARNING: Subroutine does not return */\n        xalloc_die();\n      }\n    }\n  }" else (compound_statement "{\n    if ((*format == '%') && (format[1] == 's')) {\n      argcount = 0;\n      pcVar9 = format;\n      do {\n        cVar2 = pcVar9[2];\n        argcount = argcount + 1;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'));\n    }\n    args = (byte *)0x1;\n    iVar5 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&result);\n    if (iVar5 < 0) {\n      piVar8 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n      result = (char *)0x0;\n      if (*piVar8 == 0xc) {\n                    /* WARNING: Subroutine does not return */\n        xalloc_die();\n      }\n    }\n  }" { (if_statement "if ((*format == '%') && (format[1] == 's')) {\n      argcount = 0;\n      pcVar9 = format;\n      do {\n        cVar2 = pcVar9[2];\n        argcount = argcount + 1;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'));\n    }" if (parenthesized_expression "((*format == '%') && (format[1] == 's'))" ( (binary_expression "(*format == '%') && (format[1] == 's')" (parenthesized_expression "(*format == '%')" ( (binary_expression "*format == '%'" (pointer_expression "*format" * identifier) == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(format[1] == 's')" ( (binary_expression "format[1] == 's'" (subscript_expression "format[1]" identifier [ number_literal ]) == (char_literal "'s'" ' character ')) ))) )) (compound_statement "{\n      argcount = 0;\n      pcVar9 = format;\n      do {\n        cVar2 = pcVar9[2];\n        argcount = argcount + 1;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'));\n    }" { (expression_statement "argcount = 0;" (assignment_expression "argcount = 0" identifier = number_literal) ;) (expression_statement "pcVar9 = format;" (assignment_expression "pcVar9 = format" identifier = identifier) ;) (do_statement "do {\n        cVar2 = pcVar9[2];\n        argcount = argcount + 1;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'));" do (compound_statement "{\n        cVar2 = pcVar9[2];\n        argcount = argcount + 1;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      }" { (expression_statement "cVar2 = pcVar9[2];" (assignment_expression "cVar2 = pcVar9[2]" identifier = (subscript_expression "pcVar9[2]" identifier [ number_literal ])) ;) (expression_statement "argcount = argcount + 1;" (assignment_expression "argcount = argcount + 1" identifier = (binary_expression "argcount + 1" identifier + number_literal)) ;) (if_statement "if (cVar2 == '\0') goto LAB_00016c58;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00016c58;" goto statement_identifier ;)) }) while (parenthesized_expression "((cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'))" ( (binary_expression "(cVar2 == '%') && (pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's')" (parenthesized_expression "(cVar2 == '%')" ( (binary_expression "cVar2 == '%'" identifier == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's')" ( (comma_expression "pcVar1 = pcVar9 + 3, pcVar9 = pcVar9 + 2, *pcVar1 == 's'" (assignment_expression "pcVar1 = pcVar9 + 3" identifier = (binary_expression "pcVar9 + 3" identifier + number_literal)) , (comma_expression "pcVar9 = pcVar9 + 2, *pcVar1 == 's'" (assignment_expression "pcVar9 = pcVar9 + 2" identifier = (binary_expression "pcVar9 + 2" identifier + number_literal)) , (binary_expression "*pcVar1 == 's'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'s'" ' character ')))) ))) )) ;) })) (expression_statement "args = (byte *)0x1;" (assignment_expression "args = (byte *)0x1" identifier = (cast_expression "(byte *)0x1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar5 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&result);" (assignment_expression "iVar5 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&result)" identifier = (call_expression "(*(code *)PTR___vasprintf_chk_0002a1fc)(&result)" (parenthesized_expression "(*(code *)PTR___vasprintf_chk_0002a1fc)" ( (pointer_expression "*(code *)PTR___vasprintf_chk_0002a1fc" * (cast_expression "(code *)PTR___vasprintf_chk_0002a1fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&result)" ( (pointer_expression "&result" & identifier) )))) ;) (if_statement "if (iVar5 < 0) {\n      piVar8 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n      result = (char *)0x0;\n      if (*piVar8 == 0xc) {\n                    /* WARNING: Subroutine does not return */\n        xalloc_die();\n      }\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar8 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n      result = (char *)0x0;\n      if (*piVar8 == 0xc) {\n                    /* WARNING: Subroutine does not return */\n        xalloc_die();\n      }\n    }" { (expression_statement "piVar8 = (int *)(*(code *)PTR___errno_location_0002a1f4)();" (assignment_expression "piVar8 = (int *)(*(code *)PTR___errno_location_0002a1f4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0002a1f4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002a1f4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002a1f4)" ( (pointer_expression "*(code *)PTR___errno_location_0002a1f4" * (cast_expression "(code *)PTR___errno_location_0002a1f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "result = (char *)0x0;" (assignment_expression "result = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (*piVar8 == 0xc) {\n                    /* WARNING: Subroutine does not return */\n        xalloc_die();\n      }" if (parenthesized_expression "(*piVar8 == 0xc)" ( (binary_expression "*piVar8 == 0xc" (pointer_expression "*piVar8" * identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        xalloc_die();\n      }" { comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) })) }))) (if_statement "if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar10 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar8 = *(int **)(puVar10 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar8;\n    if ((byte *)args == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      args = *(byte **)(puVar10 + 0x13400) + -0x7e8c;\n    }\n    else {\n      pcVar9 = &SUB_fffffffe;\n      pbVar4 = *(byte **)(puVar10 + 0x13400);\n      if (format == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      pcVar9 = (char *)(**(code **)(puVar10 + 0x13538))(puVar7,args);\n      pbVar4 = (byte *)args;\n      if (((char *)0xfffffffd < pcVar9) &&\n         (_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0)) {\n                    /* WARNING: Load size is inaccurate */\n        pcVar9 = (char *)0x1;\n        *puVar7 = (uint)*args;\n      }\nLAB_00016d60:\n      args = pbVar4;\n      if (iStack_44 == *piVar8) break;\n      (**(code **)(puVar10 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return pcVar9;\n  }" if (parenthesized_expression "(local_c != *(uint **)puVar3)" ( (binary_expression "local_c != *(uint **)puVar3" identifier != (pointer_expression "*(uint **)puVar3" * (cast_expression "(uint **)puVar3" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    puVar7 = local_c;\n    puVar10 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar8 = *(int **)(puVar10 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar8;\n    if ((byte *)args == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      args = *(byte **)(puVar10 + 0x13400) + -0x7e8c;\n    }\n    else {\n      pcVar9 = &SUB_fffffffe;\n      pbVar4 = *(byte **)(puVar10 + 0x13400);\n      if (format == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      pcVar9 = (char *)(**(code **)(puVar10 + 0x13538))(puVar7,args);\n      pbVar4 = (byte *)args;\n      if (((char *)0xfffffffd < pcVar9) &&\n         (_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0)) {\n                    /* WARNING: Load size is inaccurate */\n        pcVar9 = (char *)0x1;\n        *puVar7 = (uint)*args;\n      }\nLAB_00016d60:\n      args = pbVar4;\n      if (iStack_44 == *piVar8) break;\n      (**(code **)(puVar10 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return pcVar9;\n  }" { (expression_statement "puVar7 = local_c;" (assignment_expression "puVar7 = local_c" identifier = identifier) ;) (expression_statement "puVar10 = PTR___stack_chk_fail_0002a24c;" (assignment_expression "puVar10 = PTR___stack_chk_fail_0002a24c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0002a24c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002a24c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002a24c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002a24c" * (cast_expression "(code *)PTR___stack_chk_fail_0002a24c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar8 = *(int **)(puVar10 + 0x1356c);" (assignment_expression "piVar8 = *(int **)(puVar10 + 0x1356c)" identifier = (pointer_expression "*(int **)(puVar10 + 0x1356c)" * (cast_expression "(int **)(puVar10 + 0x1356c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1356c)" ( (binary_expression "puVar10 + 0x1356c" identifier + number_literal) ))))) ;) (expression_statement "puStack_3c = puVar3;" (assignment_expression "puStack_3c = puVar3" identifier = identifier) ;) (expression_statement "iStack_44 = *piVar8;" (assignment_expression "iStack_44 = *piVar8" identifier = (pointer_expression "*piVar8" * identifier)) ;) (if_statement "if ((byte *)args == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      args = *(byte **)(puVar10 + 0x13400) + -0x7e8c;\n    }\n    else {\n      pcVar9 = &SUB_fffffffe;\n      pbVar4 = *(byte **)(puVar10 + 0x13400);\n      if (format == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" if (parenthesized_expression "((byte *)args == (byte *)0x0)" ( (binary_expression "(byte *)args == (byte *)0x0" (cast_expression "(byte *)args" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar7 = &uStack_48;\n      args = *(byte **)(puVar10 + 0x13400) + -0x7e8c;\n    }" { (expression_statement "puVar7 = &uStack_48;" (assignment_expression "puVar7 = &uStack_48" identifier = (pointer_expression "&uStack_48" & identifier)) ;) (expression_statement "args = *(byte **)(puVar10 + 0x13400) + -0x7e8c;" (assignment_expression "args = *(byte **)(puVar10 + 0x13400) + -0x7e8c" identifier = (binary_expression "*(byte **)(puVar10 + 0x13400) + -0x7e8c" (pointer_expression "*(byte **)(puVar10 + 0x13400)" * (cast_expression "(byte **)(puVar10 + 0x13400)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x13400)" ( (binary_expression "puVar10 + 0x13400" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n      pcVar9 = &SUB_fffffffe;\n      pbVar4 = *(byte **)(puVar10 + 0x13400);\n      if (format == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" else (compound_statement "{\n      pcVar9 = &SUB_fffffffe;\n      pbVar4 = *(byte **)(puVar10 + 0x13400);\n      if (format == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" { (expression_statement "pcVar9 = &SUB_fffffffe;" (assignment_expression "pcVar9 = &SUB_fffffffe" identifier = (pointer_expression "&SUB_fffffffe" & identifier)) ;) (expression_statement "pbVar4 = *(byte **)(puVar10 + 0x13400);" (assignment_expression "pbVar4 = *(byte **)(puVar10 + 0x13400)" identifier = (pointer_expression "*(byte **)(puVar10 + 0x13400)" * (cast_expression "(byte **)(puVar10 + 0x13400)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x13400)" ( (binary_expression "puVar10 + 0x13400" identifier + number_literal) ))))) ;) (if_statement "if (format == (char *)0x0) goto LAB_00016d60;" if (parenthesized_expression "(format == (char *)0x0)" ( (binary_expression "format == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00016d60;" goto statement_identifier ;)) (if_statement "if (puVar7 == (uint *)0x0) goto LAB_00016dcc;" if (parenthesized_expression "(puVar7 == (uint *)0x0)" ( (binary_expression "puVar7 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00016dcc;" goto statement_identifier ;)) }))) (while_statement "while( true ) {\n      pcVar9 = (char *)(**(code **)(puVar10 + 0x13538))(puVar7,args);\n      pbVar4 = (byte *)args;\n      if (((char *)0xfffffffd < pcVar9) &&\n         (_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0)) {\n                    /* WARNING: Load size is inaccurate */\n        pcVar9 = (char *)0x1;\n        *puVar7 = (uint)*args;\n      }\nLAB_00016d60:\n      args = pbVar4;\n      if (iStack_44 == *piVar8) break;\n      (**(code **)(puVar10 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pcVar9 = (char *)(**(code **)(puVar10 + 0x13538))(puVar7,args);\n      pbVar4 = (byte *)args;\n      if (((char *)0xfffffffd < pcVar9) &&\n         (_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0)) {\n                    /* WARNING: Load size is inaccurate */\n        pcVar9 = (char *)0x1;\n        *puVar7 = (uint)*args;\n      }\nLAB_00016d60:\n      args = pbVar4;\n      if (iStack_44 == *piVar8) break;\n      (**(code **)(puVar10 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }" { (expression_statement "pcVar9 = (char *)(**(code **)(puVar10 + 0x13538))(puVar7,args);" (assignment_expression "pcVar9 = (char *)(**(code **)(puVar10 + 0x13538))(puVar7,args)" identifier = (cast_expression "(char *)(**(code **)(puVar10 + 0x13538))(puVar7,args)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x13538))(puVar7,args)" (parenthesized_expression "(**(code **)(puVar10 + 0x13538))" ( (pointer_expression "**(code **)(puVar10 + 0x13538)" * (pointer_expression "*(code **)(puVar10 + 0x13538)" * (cast_expression "(code **)(puVar10 + 0x13538)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x13538)" ( (binary_expression "puVar10 + 0x13538" identifier + number_literal) ))))) )) (argument_list "(puVar7,args)" ( identifier , identifier ))))) ;) (expression_statement "pbVar4 = (byte *)args;" (assignment_expression "pbVar4 = (byte *)args" identifier = (cast_expression "(byte *)args" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (((char *)0xfffffffd < pcVar9) &&\n         (_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0)) {\n                    /* WARNING: Load size is inaccurate */\n        pcVar9 = (char *)0x1;\n        *puVar7 = (uint)*args;\n      }" if (parenthesized_expression "(((char *)0xfffffffd < pcVar9) &&\n         (_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0))" ( (binary_expression "((char *)0xfffffffd < pcVar9) &&\n         (_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0)" (parenthesized_expression "((char *)0xfffffffd < pcVar9)" ( (binary_expression "(char *)0xfffffffd < pcVar9" (cast_expression "(char *)0xfffffffd" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) )) && (parenthesized_expression "(_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0)" ( (comma_expression "_Var6 = hard_locale(0), CONCAT31(extraout_var,_Var6) == 0" (assignment_expression "_Var6 = hard_locale(0)" identifier = (call_expression "hard_locale(0)" identifier (argument_list "(0)" ( number_literal )))) , (binary_expression "CONCAT31(extraout_var,_Var6) == 0" (call_expression "CONCAT31(extraout_var,_Var6)" identifier (argument_list "(extraout_var,_Var6)" ( identifier , identifier ))) == number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n        pcVar9 = (char *)0x1;\n        *puVar7 = (uint)*args;\n      }" { comment (expression_statement "pcVar9 = (char *)0x1;" (assignment_expression "pcVar9 = (char *)0x1" identifier = (cast_expression "(char *)0x1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*puVar7 = (uint)*args;" (assignment_expression "*puVar7 = (uint)*args" (pointer_expression "*puVar7" * identifier) = (binary_expression "(uint)*args" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) })) (labeled_statement "LAB_00016d60:\n      args = pbVar4;" statement_identifier : (expression_statement "args = pbVar4;" (assignment_expression "args = pbVar4" identifier = identifier) ;)) (if_statement "if (iStack_44 == *piVar8) break;" if (parenthesized_expression "(iStack_44 == *piVar8)" ( (binary_expression "iStack_44 == *piVar8" identifier == (pointer_expression "*piVar8" * identifier)) )) (break_statement "break;" break ;)) (expression_statement "(**(code **)(puVar10 + 0x1355c))();" (call_expression "(**(code **)(puVar10 + 0x1355c))()" (parenthesized_expression "(**(code **)(puVar10 + 0x1355c))" ( (pointer_expression "**(code **)(puVar10 + 0x1355c)" * (pointer_expression "*(code **)(puVar10 + 0x1355c)" * (cast_expression "(code **)(puVar10 + 0x1355c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x1355c)" ( (binary_expression "puVar10 + 0x1355c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00016dcc:\n      puVar7 = &uStack_48;" statement_identifier : (expression_statement "puVar7 = &uStack_48;" (assignment_expression "puVar7 = &uStack_48" identifier = (pointer_expression "&uStack_48" & identifier)) ;)) })) (return_statement "return pcVar9;" return identifier ;) })) (return_statement "return result;" return identifier ;) })))
(translation_unit "uint xvasprintf(char *param_1,byte *param_2,char *param_3)\n\n{\n  char *pcVar1;\n  char cVar2;\n  undefined *puVar3;\n  byte *pbVar4;\n  char *pcVar5;\n  int iVar6;\n  uint *puVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  undefined *puVar11;\n  uint uStack_48;\n  int iStack_44;\n  undefined *puStack_3c;\n  uint local_10;\n  uint *local_c;\n  \n  puVar3 = PTR___stack_chk_guard_0002a25c;\n  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;\n  if (*param_1 != '\0') {\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }\n  iVar6 = 0;\n  param_1 = param_3;\n  pbVar8 = param_2;\nLAB_00016c58:\n  local_10 = FUN_00016a80(iVar6);\nLAB_00016c8c:\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }\n  return local_10;\n}\n\n" (function_definition "uint xvasprintf(char *param_1,byte *param_2,char *param_3)\n\n{\n  char *pcVar1;\n  char cVar2;\n  undefined *puVar3;\n  byte *pbVar4;\n  char *pcVar5;\n  int iVar6;\n  uint *puVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  undefined *puVar11;\n  uint uStack_48;\n  int iStack_44;\n  undefined *puStack_3c;\n  uint local_10;\n  uint *local_c;\n  \n  puVar3 = PTR___stack_chk_guard_0002a25c;\n  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;\n  if (*param_1 != '\0') {\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }\n  iVar6 = 0;\n  param_1 = param_3;\n  pbVar8 = param_2;\nLAB_00016c58:\n  local_10 = FUN_00016a80(iVar6);\nLAB_00016c8c:\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }\n  return local_10;\n}" type_identifier (function_declarator "xvasprintf(char *param_1,byte *param_2,char *param_3)" identifier (parameter_list "(char *param_1,byte *param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  undefined *puVar3;\n  byte *pbVar4;\n  char *pcVar5;\n  int iVar6;\n  uint *puVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  undefined *puVar11;\n  uint uStack_48;\n  int iStack_44;\n  undefined *puStack_3c;\n  uint local_10;\n  uint *local_c;\n  \n  puVar3 = PTR___stack_chk_guard_0002a25c;\n  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;\n  if (*param_1 != '\0') {\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }\n  iVar6 = 0;\n  param_1 = param_3;\n  pbVar8 = param_2;\nLAB_00016c58:\n  local_10 = FUN_00016a80(iVar6);\nLAB_00016c8c:\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }\n  return local_10;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "uint uStack_48;" type_identifier identifier ;) (declaration "int iStack_44;" primitive_type identifier ;) (declaration "undefined *puStack_3c;" type_identifier (pointer_declarator "*puStack_3c" * identifier) ;) (declaration "uint local_10;" type_identifier identifier ;) (declaration "uint *local_c;" type_identifier (pointer_declarator "*local_c" * identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_guard_0002a25c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0002a25c" identifier = identifier) ;) (expression_statement "local_c = *(uint **)PTR___stack_chk_guard_0002a25c;" (assignment_expression "local_c = *(uint **)PTR___stack_chk_guard_0002a25c" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_0002a25c" * (cast_expression "(uint **)PTR___stack_chk_guard_0002a25c" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (*param_1 != '\0') {\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }" if (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }" { (if_statement "if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }" if (parenthesized_expression "((*param_1 == '%') && (param_1[1] == 's'))" ( (binary_expression "(*param_1 == '%') && (param_1[1] == 's')" (parenthesized_expression "(*param_1 == '%')" ( (binary_expression "*param_1 == '%'" (pointer_expression "*param_1" * identifier) == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(param_1[1] == 's')" ( (binary_expression "param_1[1] == 's'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'s'" ' character ')) ))) )) (compound_statement "{\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "pcVar5 = param_1;" (assignment_expression "pcVar5 = param_1" identifier = identifier) ;) (do_statement "do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));" do (compound_statement "{\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      }" { (expression_statement "cVar2 = pcVar5[2];" (assignment_expression "cVar2 = pcVar5[2]" identifier = (subscript_expression "pcVar5[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = param_2;" (assignment_expression "pbVar8 = param_2" identifier = identifier) ;) (if_statement "if (cVar2 == '\0') goto LAB_00016c58;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00016c58;" goto statement_identifier ;)) }) while (parenthesized_expression "((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'))" ( (binary_expression "(cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's')" (parenthesized_expression "(cVar2 == '%')" ( (binary_expression "cVar2 == '%'" identifier == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's')" ( (comma_expression "pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'" (assignment_expression "pcVar1 = pcVar5 + 3" identifier = (binary_expression "pcVar5 + 3" identifier + number_literal)) , (comma_expression "pcVar5 = pcVar5 + 2, *pcVar1 == 's'" (assignment_expression "pcVar5 = pcVar5 + 2" identifier = (binary_expression "pcVar5 + 2" identifier + number_literal)) , (binary_expression "*pcVar1 == 's'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'s'" ' character ')))) ))) )) ;) })) (expression_statement "pbVar8 = (byte *)0x1;" (assignment_expression "pbVar8 = (byte *)0x1" identifier = (cast_expression "(byte *)0x1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);" (assignment_expression "iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10)" identifier = (call_expression "(*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10)" (parenthesized_expression "(*(code *)PTR___vasprintf_chk_0002a1fc)" ( (pointer_expression "*(code *)PTR___vasprintf_chk_0002a1fc" * (cast_expression "(code *)PTR___vasprintf_chk_0002a1fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) )))) ;) (if_statement "if (-1 < iVar6) goto LAB_00016c8c;" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (goto_statement "goto LAB_00016c8c;" goto statement_identifier ;)) (expression_statement "piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();" (assignment_expression "piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0002a1f4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0002a1f4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002a1f4)" ( (pointer_expression "*(code *)PTR___errno_location_0002a1f4" * (cast_expression "(code *)PTR___errno_location_0002a1f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" identifier = number_literal) ;) (if_statement "if (*piVar9 != 0xc) goto LAB_00016c8c;" if (parenthesized_expression "(*piVar9 != 0xc)" ( (binary_expression "*piVar9 != 0xc" (pointer_expression "*piVar9" * identifier) != number_literal) )) (goto_statement "goto LAB_00016c8c;" goto statement_identifier ;)) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_3 = param_1;" (assignment_expression "param_3 = param_1" identifier = identifier) ;) })) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "param_1 = param_3;" (assignment_expression "param_1 = param_3" identifier = identifier) ;) (expression_statement "pbVar8 = param_2;" (assignment_expression "pbVar8 = param_2" identifier = identifier) ;) (labeled_statement "LAB_00016c58:\n  local_10 = FUN_00016a80(iVar6);" statement_identifier : (expression_statement "local_10 = FUN_00016a80(iVar6);" (assignment_expression "local_10 = FUN_00016a80(iVar6)" identifier = (call_expression "FUN_00016a80(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;)) (labeled_statement "LAB_00016c8c:\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }" statement_identifier : (if_statement "if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }" if (parenthesized_expression "(local_c != *(uint **)puVar3)" ( (binary_expression "local_c != *(uint **)puVar3" identifier != (pointer_expression "*(uint **)puVar3" * (cast_expression "(uint **)puVar3" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }" { (expression_statement "puVar7 = local_c;" (assignment_expression "puVar7 = local_c" identifier = identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_0002a24c;" (assignment_expression "puVar11 = PTR___stack_chk_fail_0002a24c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0002a24c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002a24c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002a24c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002a24c" * (cast_expression "(code *)PTR___stack_chk_fail_0002a24c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar9 = *(int **)(puVar11 + 0x1356c);" (assignment_expression "piVar9 = *(int **)(puVar11 + 0x1356c)" identifier = (pointer_expression "*(int **)(puVar11 + 0x1356c)" * (cast_expression "(int **)(puVar11 + 0x1356c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1356c)" ( (binary_expression "puVar11 + 0x1356c" identifier + number_literal) ))))) ;) (expression_statement "puStack_3c = puVar3;" (assignment_expression "puStack_3c = puVar3" identifier = identifier) ;) (expression_statement "iStack_44 = *piVar9;" (assignment_expression "iStack_44 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (if_statement "if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" if (parenthesized_expression "(pbVar8 == (byte *)0x0)" ( (binary_expression "pbVar8 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }" { (expression_statement "puVar7 = &uStack_48;" (assignment_expression "puVar7 = &uStack_48" identifier = (pointer_expression "&uStack_48" & identifier)) ;) (expression_statement "pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;" (assignment_expression "pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c" identifier = (binary_expression "*(byte **)(puVar11 + 0x13400) + -0x7e8c" (pointer_expression "*(byte **)(puVar11 + 0x13400)" * (cast_expression "(byte **)(puVar11 + 0x13400)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x13400)" ( (binary_expression "puVar11 + 0x13400" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" else (compound_statement "{\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" { (expression_statement "uVar10 = 0xfffffffe;" (assignment_expression "uVar10 = 0xfffffffe" identifier = number_literal) ;) (expression_statement "pbVar4 = *(byte **)(puVar11 + 0x13400);" (assignment_expression "pbVar4 = *(byte **)(puVar11 + 0x13400)" identifier = (pointer_expression "*(byte **)(puVar11 + 0x13400)" * (cast_expression "(byte **)(puVar11 + 0x13400)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x13400)" ( (binary_expression "puVar11 + 0x13400" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == (char *)0x0) goto LAB_00016d60;" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00016d60;" goto statement_identifier ;)) (if_statement "if (puVar7 == (uint *)0x0) goto LAB_00016dcc;" if (parenthesized_expression "(puVar7 == (uint *)0x0)" ( (binary_expression "puVar7 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00016dcc;" goto statement_identifier ;)) }))) (while_statement "while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }" { (expression_statement "uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);" (assignment_expression "uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8)" identifier = (call_expression "(**(code **)(puVar11 + 0x13538))(puVar7,pbVar8)" (parenthesized_expression "(**(code **)(puVar11 + 0x13538))" ( (pointer_expression "**(code **)(puVar11 + 0x13538)" * (pointer_expression "*(code **)(puVar11 + 0x13538)" * (cast_expression "(code **)(puVar11 + 0x13538)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x13538)" ( (binary_expression "puVar11 + 0x13538" identifier + number_literal) ))))) )) (argument_list "(puVar7,pbVar8)" ( identifier , identifier )))) ;) (expression_statement "pbVar4 = pbVar8;" (assignment_expression "pbVar4 = pbVar8" identifier = identifier) ;) (if_statement "if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }" if (parenthesized_expression "((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0))" ( (binary_expression "(0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)" (parenthesized_expression "(0xfffffffd < uVar10)" ( (binary_expression "0xfffffffd < uVar10" number_literal < identifier) )) && (parenthesized_expression "(iVar6 = hard_locale(0), iVar6 == 0)" ( (comma_expression "iVar6 = hard_locale(0), iVar6 == 0" (assignment_expression "iVar6 = hard_locale(0)" identifier = (call_expression "hard_locale(0)" identifier (argument_list "(0)" ( number_literal )))) , (binary_expression "iVar6 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }" { (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" identifier = number_literal) ;) (expression_statement "*puVar7 = (uint)*pbVar8;" (assignment_expression "*puVar7 = (uint)*pbVar8" (pointer_expression "*puVar7" * identifier) = (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) })) (labeled_statement "LAB_00016d60:\n      pbVar8 = pbVar4;" statement_identifier : (expression_statement "pbVar8 = pbVar4;" (assignment_expression "pbVar8 = pbVar4" identifier = identifier) ;)) (if_statement "if (iStack_44 == *piVar9) break;" if (parenthesized_expression "(iStack_44 == *piVar9)" ( (binary_expression "iStack_44 == *piVar9" identifier == (pointer_expression "*piVar9" * identifier)) )) (break_statement "break;" break ;)) (expression_statement "(**(code **)(puVar11 + 0x1355c))();" (call_expression "(**(code **)(puVar11 + 0x1355c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1355c))" ( (pointer_expression "**(code **)(puVar11 + 0x1355c)" * (pointer_expression "*(code **)(puVar11 + 0x1355c)" * (cast_expression "(code **)(puVar11 + 0x1355c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1355c)" ( (binary_expression "puVar11 + 0x1355c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00016dcc:\n      puVar7 = &uStack_48;" statement_identifier : (expression_statement "puVar7 = &uStack_48;" (assignment_expression "puVar7 = &uStack_48" identifier = (pointer_expression "&uStack_48" & identifier)) ;)) })) (return_statement "return uVar10;" return identifier ;) }))) (return_statement "return local_10;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')))) ))) )) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (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 = (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 (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) }))) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (break_statement break ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;)) })) (return_statement return IDENT ;) }))) (return_statement return IDENT ;) })))
(function_definition "uint xvasprintf(char *param_1,byte *param_2,char *param_3)\n\n{\n  char *pcVar1;\n  char cVar2;\n  undefined *puVar3;\n  byte *pbVar4;\n  char *pcVar5;\n  int iVar6;\n  uint *puVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  undefined *puVar11;\n  uint uStack_48;\n  int iStack_44;\n  undefined *puStack_3c;\n  uint local_10;\n  uint *local_c;\n  \n  puVar3 = PTR___stack_chk_guard_0002a25c;\n  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;\n  if (*param_1 != '\0') {\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }\n  iVar6 = 0;\n  param_1 = param_3;\n  pbVar8 = param_2;\nLAB_00016c58:\n  local_10 = FUN_00016a80(iVar6);\nLAB_00016c8c:\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }\n  return local_10;\n}" (type_identifier "uint") (function_declarator "xvasprintf(char *param_1,byte *param_2,char *param_3)" (identifier "xvasprintf") (parameter_list "(char *param_1,byte *param_2,char *param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  undefined *puVar3;\n  byte *pbVar4;\n  char *pcVar5;\n  int iVar6;\n  uint *puVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  undefined *puVar11;\n  uint uStack_48;\n  int iStack_44;\n  undefined *puStack_3c;\n  uint local_10;\n  uint *local_c;\n  \n  puVar3 = PTR___stack_chk_guard_0002a25c;\n  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;\n  if (*param_1 != '\0') {\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }\n  iVar6 = 0;\n  param_1 = param_3;\n  pbVar8 = param_2;\nLAB_00016c58:\n  local_10 = FUN_00016a80(iVar6);\nLAB_00016c8c:\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }\n  return local_10;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint *puVar7;" (type_identifier "uint") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "undefined *puVar11;" (type_identifier "undefined") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "uint uStack_48;" (type_identifier "uint") (identifier "uStack_48") (; ";")) (declaration "int iStack_44;" (primitive_type "int") (identifier "iStack_44") (; ";")) (declaration "undefined *puStack_3c;" (type_identifier "undefined") (pointer_declarator "*puStack_3c" (* "*") (identifier "puStack_3c")) (; ";")) (declaration "uint local_10;" (type_identifier "uint") (identifier "local_10") (; ";")) (declaration "uint *local_c;" (type_identifier "uint") (pointer_declarator "*local_c" (* "*") (identifier "local_c")) (; ";")) (expression_statement "puVar3 = PTR___stack_chk_guard_0002a25c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0002a25c" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_guard_0002a25c")) (; ";")) (expression_statement "local_c = *(uint **)PTR___stack_chk_guard_0002a25c;" (assignment_expression "local_c = *(uint **)PTR___stack_chk_guard_0002a25c" (identifier "local_c") (= "=") (pointer_expression "*(uint **)PTR___stack_chk_guard_0002a25c" (* "*") (cast_expression "(uint **)PTR___stack_chk_guard_0002a25c" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_0002a25c")))) (; ";")) (if_statement "if (*param_1 != '\0') {\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }" (if "if") (parenthesized_expression "(*param_1 != '\0')" (( "(") (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }\n    pbVar8 = (byte *)0x1;\n    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);\n    if (-1 < iVar6) goto LAB_00016c8c;\n    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();\n    local_10 = 0;\n    if (*piVar9 != 0xc) goto LAB_00016c8c;\n    xalloc_die();\n    param_3 = param_1;\n  }" ({ "{") (if_statement "if ((*param_1 == '%') && (param_1[1] == 's')) {\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }" (if "if") (parenthesized_expression "((*param_1 == '%') && (param_1[1] == 's'))" (( "(") (binary_expression "(*param_1 == '%') && (param_1[1] == 's')" (parenthesized_expression "(*param_1 == '%')" (( "(") (binary_expression "*param_1 == '%'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'%'" (' "'") (character "%") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] == 's')" (( "(") (binary_expression "param_1[1] == 's'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'s'" (' "'") (character "s") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      iVar6 = 0;\n      pcVar5 = param_1;\n      do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));\n    }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar5 = param_1;" (assignment_expression "pcVar5 = param_1" (identifier "pcVar5") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));" (do "do") (compound_statement "{\n        cVar2 = pcVar5[2];\n        iVar6 = iVar6 + 1;\n        pbVar8 = param_2;\n        if (cVar2 == '\0') goto LAB_00016c58;\n      }" ({ "{") (expression_statement "cVar2 = pcVar5[2];" (assignment_expression "cVar2 = pcVar5[2]" (identifier "cVar2") (= "=") (subscript_expression "pcVar5[2]" (identifier "pcVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar8 = param_2;" (assignment_expression "pbVar8 = param_2" (identifier "pbVar8") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (cVar2 == '\0') goto LAB_00016c58;" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00016c58;" (goto "goto") (statement_identifier "LAB_00016c58") (; ";"))) (} "}")) (while "while") (parenthesized_expression "((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'))" (( "(") (binary_expression "(cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's')" (parenthesized_expression "(cVar2 == '%')" (( "(") (binary_expression "cVar2 == '%'" (identifier "cVar2") (== "==") (char_literal "'%'" (' "'") (character "%") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's')" (( "(") (comma_expression "pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'" (assignment_expression "pcVar1 = pcVar5 + 3" (identifier "pcVar1") (= "=") (binary_expression "pcVar5 + 3" (identifier "pcVar5") (+ "+") (number_literal "3"))) (, ",") (comma_expression "pcVar5 = pcVar5 + 2, *pcVar1 == 's'" (assignment_expression "pcVar5 = pcVar5 + 2" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 2" (identifier "pcVar5") (+ "+") (number_literal "2"))) (, ",") (binary_expression "*pcVar1 == 's'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'s'" (' "'") (character "s") (' "'"))))) () ")"))) () ")")) (; ";")) (} "}"))) (expression_statement "pbVar8 = (byte *)0x1;" (assignment_expression "pbVar8 = (byte *)0x1" (identifier "pbVar8") (= "=") (cast_expression "(byte *)0x1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1"))) (; ";")) (expression_statement "iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);" (assignment_expression "iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10)" (parenthesized_expression "(*(code *)PTR___vasprintf_chk_0002a1fc)" (( "(") (pointer_expression "*(code *)PTR___vasprintf_chk_0002a1fc" (* "*") (cast_expression "(code *)PTR___vasprintf_chk_0002a1fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___vasprintf_chk_0002a1fc"))) () ")")) (argument_list "(&local_10)" (( "(") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")")))) (; ";")) (if_statement "if (-1 < iVar6) goto LAB_00016c8c;" (if "if") (parenthesized_expression "(-1 < iVar6)" (( "(") (binary_expression "-1 < iVar6" (number_literal "-1") (< "<") (identifier "iVar6")) () ")")) (goto_statement "goto LAB_00016c8c;" (goto "goto") (statement_identifier "LAB_00016c8c") (; ";"))) (expression_statement "piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();" (assignment_expression "piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)()" (identifier "piVar9") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_0002a1f4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0002a1f4)()" (parenthesized_expression "(*(code *)PTR___errno_location_0002a1f4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0002a1f4" (* "*") (cast_expression "(code *)PTR___errno_location_0002a1f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0002a1f4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" (identifier "local_10") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*piVar9 != 0xc) goto LAB_00016c8c;" (if "if") (parenthesized_expression "(*piVar9 != 0xc)" (( "(") (binary_expression "*piVar9 != 0xc" (pointer_expression "*piVar9" (* "*") (identifier "piVar9")) (!= "!=") (number_literal "0xc")) () ")")) (goto_statement "goto LAB_00016c8c;" (goto "goto") (statement_identifier "LAB_00016c8c") (; ";"))) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_3 = param_1;" (assignment_expression "param_3 = param_1" (identifier "param_3") (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1 = param_3;" (assignment_expression "param_1 = param_3" (identifier "param_1") (= "=") (identifier "param_3")) (; ";")) (expression_statement "pbVar8 = param_2;" (assignment_expression "pbVar8 = param_2" (identifier "pbVar8") (= "=") (identifier "param_2")) (; ";")) (labeled_statement "LAB_00016c58:\n  local_10 = FUN_00016a80(iVar6);" (statement_identifier "LAB_00016c58") (: ":") (expression_statement "local_10 = FUN_00016a80(iVar6);" (assignment_expression "local_10 = FUN_00016a80(iVar6)" (identifier "local_10") (= "=") (call_expression "FUN_00016a80(iVar6)" (identifier "FUN_00016a80") (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")")))) (; ";"))) (labeled_statement "LAB_00016c8c:\n  if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }" (statement_identifier "LAB_00016c8c") (: ":") (if_statement "if (local_c != *(uint **)puVar3) {\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }" (if "if") (parenthesized_expression "(local_c != *(uint **)puVar3)" (( "(") (binary_expression "local_c != *(uint **)puVar3" (identifier "local_c") (!= "!=") (pointer_expression "*(uint **)puVar3" (* "*") (cast_expression "(uint **)puVar3" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n    puVar7 = local_c;\n    puVar11 = PTR___stack_chk_fail_0002a24c;\n    (*(code *)PTR___stack_chk_fail_0002a24c)();\n    piVar9 = *(int **)(puVar11 + 0x1356c);\n    puStack_3c = puVar3;\n    iStack_44 = *piVar9;\n    if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }\n    while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }\n    return uVar10;\n  }" ({ "{") (expression_statement "puVar7 = local_c;" (assignment_expression "puVar7 = local_c" (identifier "puVar7") (= "=") (identifier "local_c")) (; ";")) (expression_statement "puVar11 = PTR___stack_chk_fail_0002a24c;" (assignment_expression "puVar11 = PTR___stack_chk_fail_0002a24c" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_fail_0002a24c")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0002a24c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002a24c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002a24c)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0002a24c" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0002a24c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0002a24c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar9 = *(int **)(puVar11 + 0x1356c);" (assignment_expression "piVar9 = *(int **)(puVar11 + 0x1356c)" (identifier "piVar9") (= "=") (pointer_expression "*(int **)(puVar11 + 0x1356c)" (* "*") (cast_expression "(int **)(puVar11 + 0x1356c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x1356c)" (( "(") (binary_expression "puVar11 + 0x1356c" (identifier "puVar11") (+ "+") (number_literal "0x1356c")) () ")"))))) (; ";")) (expression_statement "puStack_3c = puVar3;" (assignment_expression "puStack_3c = puVar3" (identifier "puStack_3c") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "iStack_44 = *piVar9;" (assignment_expression "iStack_44 = *piVar9" (identifier "iStack_44") (= "=") (pointer_expression "*piVar9" (* "*") (identifier "piVar9"))) (; ";")) (if_statement "if (pbVar8 == (byte *)0x0) {\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }\n    else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" (if "if") (parenthesized_expression "(pbVar8 == (byte *)0x0)" (( "(") (binary_expression "pbVar8 == (byte *)0x0" (identifier "pbVar8") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar7 = &uStack_48;\n      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;\n    }" ({ "{") (expression_statement "puVar7 = &uStack_48;" (assignment_expression "puVar7 = &uStack_48" (identifier "puVar7") (= "=") (pointer_expression "&uStack_48" (& "&") (identifier "uStack_48"))) (; ";")) (expression_statement "pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;" (assignment_expression "pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c" (identifier "pbVar8") (= "=") (binary_expression "*(byte **)(puVar11 + 0x13400) + -0x7e8c" (pointer_expression "*(byte **)(puVar11 + 0x13400)" (* "*") (cast_expression "(byte **)(puVar11 + 0x13400)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x13400)" (( "(") (binary_expression "puVar11 + 0x13400" (identifier "puVar11") (+ "+") (number_literal "0x13400")) () ")")))) (+ "+") (number_literal "-0x7e8c"))) (; ";")) (} "}")) (else_clause "else {\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" (else "else") (compound_statement "{\n      uVar10 = 0xfffffffe;\n      pbVar4 = *(byte **)(puVar11 + 0x13400);\n      if (param_1 == (char *)0x0) goto LAB_00016d60;\n      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;\n    }" ({ "{") (expression_statement "uVar10 = 0xfffffffe;" (assignment_expression "uVar10 = 0xfffffffe" (identifier "uVar10") (= "=") (number_literal "0xfffffffe")) (; ";")) (expression_statement "pbVar4 = *(byte **)(puVar11 + 0x13400);" (assignment_expression "pbVar4 = *(byte **)(puVar11 + 0x13400)" (identifier "pbVar4") (= "=") (pointer_expression "*(byte **)(puVar11 + 0x13400)" (* "*") (cast_expression "(byte **)(puVar11 + 0x13400)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x13400)" (( "(") (binary_expression "puVar11 + 0x13400" (identifier "puVar11") (+ "+") (number_literal "0x13400")) () ")"))))) (; ";")) (if_statement "if (param_1 == (char *)0x0) goto LAB_00016d60;" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00016d60;" (goto "goto") (statement_identifier "LAB_00016d60") (; ";"))) (if_statement "if (puVar7 == (uint *)0x0) goto LAB_00016dcc;" (if "if") (parenthesized_expression "(puVar7 == (uint *)0x0)" (( "(") (binary_expression "puVar7 == (uint *)0x0" (identifier "puVar7") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00016dcc;" (goto "goto") (statement_identifier "LAB_00016dcc") (; ";"))) (} "}")))) (while_statement "while( true ) {\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);\n      pbVar4 = pbVar8;\n      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }\nLAB_00016d60:\n      pbVar8 = pbVar4;\n      if (iStack_44 == *piVar9) break;\n      (**(code **)(puVar11 + 0x1355c))();\nLAB_00016dcc:\n      puVar7 = &uStack_48;\n    }" ({ "{") (expression_statement "uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);" (assignment_expression "uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8)" (identifier "uVar10") (= "=") (call_expression "(**(code **)(puVar11 + 0x13538))(puVar7,pbVar8)" (parenthesized_expression "(**(code **)(puVar11 + 0x13538))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x13538)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x13538)" (* "*") (cast_expression "(code **)(puVar11 + 0x13538)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x13538)" (( "(") (binary_expression "puVar11 + 0x13538" (identifier "puVar11") (+ "+") (number_literal "0x13538")) () ")"))))) () ")")) (argument_list "(puVar7,pbVar8)" (( "(") (identifier "puVar7") (, ",") (identifier "pbVar8") () ")")))) (; ";")) (expression_statement "pbVar4 = pbVar8;" (assignment_expression "pbVar4 = pbVar8" (identifier "pbVar4") (= "=") (identifier "pbVar8")) (; ";")) (if_statement "if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }" (if "if") (parenthesized_expression "((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0))" (( "(") (binary_expression "(0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)" (parenthesized_expression "(0xfffffffd < uVar10)" (( "(") (binary_expression "0xfffffffd < uVar10" (number_literal "0xfffffffd") (< "<") (identifier "uVar10")) () ")")) (&& "&&") (parenthesized_expression "(iVar6 = hard_locale(0), iVar6 == 0)" (( "(") (comma_expression "iVar6 = hard_locale(0), iVar6 == 0" (assignment_expression "iVar6 = hard_locale(0)" (identifier "iVar6") (= "=") (call_expression "hard_locale(0)" (identifier "hard_locale") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        uVar10 = 1;\n        *puVar7 = (uint)*pbVar8;\n      }" ({ "{") (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" (identifier "uVar10") (= "=") (number_literal "1")) (; ";")) (expression_statement "*puVar7 = (uint)*pbVar8;" (assignment_expression "*puVar7 = (uint)*pbVar8" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar8"))) (; ";")) (} "}"))) (labeled_statement "LAB_00016d60:\n      pbVar8 = pbVar4;" (statement_identifier "LAB_00016d60") (: ":") (expression_statement "pbVar8 = pbVar4;" (assignment_expression "pbVar8 = pbVar4" (identifier "pbVar8") (= "=") (identifier "pbVar4")) (; ";"))) (if_statement "if (iStack_44 == *piVar9) break;" (if "if") (parenthesized_expression "(iStack_44 == *piVar9)" (( "(") (binary_expression "iStack_44 == *piVar9" (identifier "iStack_44") (== "==") (pointer_expression "*piVar9" (* "*") (identifier "piVar9"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "(**(code **)(puVar11 + 0x1355c))();" (call_expression "(**(code **)(puVar11 + 0x1355c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1355c))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x1355c)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x1355c)" (* "*") (cast_expression "(code **)(puVar11 + 0x1355c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x1355c)" (( "(") (binary_expression "puVar11 + 0x1355c" (identifier "puVar11") (+ "+") (number_literal "0x1355c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_00016dcc:\n      puVar7 = &uStack_48;" (statement_identifier "LAB_00016dcc") (: ":") (expression_statement "puVar7 = &uStack_48;" (assignment_expression "puVar7 = &uStack_48" (identifier "puVar7") (= "=") (pointer_expression "&uStack_48" (& "&") (identifier "uStack_48"))) (; ";"))) (} "}"))) (return_statement "return uVar10;" (return "return") (identifier "uVar10") (; ";")) (} "}")))) (return_statement "return local_10;" (return "return") (identifier "local_10") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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))) (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: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))))) consequence: (compound_statement (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character))))))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) consequence: (compound_statement (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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))))) right: (number_literal))))) alternative: (else_clause (compound_statement (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: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier)))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (break_statement)) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (return_statement (identifier))))) (return_statement (identifier)))))

uint MASKED(char *param_1,byte *param_2,char *param_3)

{
  char *pcVar1;
  char cVar2;
  undefined *puVar3;
  byte *pbVar4;
  char *pcVar5;
  int iVar6;
  uint *puVar7;
  byte *pbVar8;
  int *piVar9;
  uint uVar10;
  undefined *puVar11;
  uint uStack_48;
  int iStack_44;
  undefined *puStack_3c;
  uint local_10;
  uint *local_c;
  
  puVar3 = PTR___stack_chk_guard_0002a25c;
  local_c = *(uint **)PTR___stack_chk_guard_0002a25c;
  if (*param_1 != '\0') {
    if ((*param_1 == '%') && (param_1[1] == 's')) {
      iVar6 = 0;
      pcVar5 = param_1;
      do {
        cVar2 = pcVar5[2];
        iVar6 = iVar6 + 1;
        pbVar8 = param_2;
        if (cVar2 == '\0') goto LAB_00016c58;
      } while ((cVar2 == '%') && (pcVar1 = pcVar5 + 3, pcVar5 = pcVar5 + 2, *pcVar1 == 's'));
    }
    pbVar8 = (byte *)0x1;
    iVar6 = (*(code *)PTR___vasprintf_chk_0002a1fc)(&local_10);
    if (-1 < iVar6) goto LAB_00016c8c;
    piVar9 = (int *)(*(code *)PTR___errno_location_0002a1f4)();
    local_10 = 0;
    if (*piVar9 != 0xc) goto LAB_00016c8c;
    xalloc_die();
    param_3 = param_1;
  }
  iVar6 = 0;
  param_1 = param_3;
  pbVar8 = param_2;
LAB_00016c58:
  local_10 = FUN_00016a80(iVar6);
LAB_00016c8c:
  if (local_c != *(uint **)puVar3) {
    puVar7 = local_c;
    puVar11 = PTR___stack_chk_fail_0002a24c;
    (*(code *)PTR___stack_chk_fail_0002a24c)();
    piVar9 = *(int **)(puVar11 + 0x1356c);
    puStack_3c = puVar3;
    iStack_44 = *piVar9;
    if (pbVar8 == (byte *)0x0) {
      puVar7 = &uStack_48;
      pbVar8 = *(byte **)(puVar11 + 0x13400) + -0x7e8c;
    }
    else {
      uVar10 = 0xfffffffe;
      pbVar4 = *(byte **)(puVar11 + 0x13400);
      if (param_1 == (char *)0x0) goto LAB_00016d60;
      if (puVar7 == (uint *)0x0) goto LAB_00016dcc;
    }
    while( true ) {
      uVar10 = (**(code **)(puVar11 + 0x13538))(puVar7,pbVar8);
      pbVar4 = pbVar8;
      if ((0xfffffffd < uVar10) && (iVar6 = hard_locale(0), iVar6 == 0)) {
        uVar10 = 1;
        *puVar7 = (uint)*pbVar8;
      }
LAB_00016d60:
      pbVar8 = pbVar4;
      if (iStack_44 == *piVar9) break;
      (**(code **)(puVar11 + 0x1355c))();
LAB_00016dcc:
      puVar7 = &uStack_48;
    }
    return uVar10;
  }
  return local_10;
}

