
ssize_t argp_fmtstream_printf(argp_fmtstream *fs,char *fmt,...)

{
  byte bVar1;
  uint *puVar2;
  int iVar3;
  uint uVar4;
  uint *puVar5;
  uint uVar6;
  uint in_a2;
  undefined4 in_a3;
  uint uVar7;
  uint local_res8;
  undefined4 local_resc;
  va_list args;
  
  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;
  uVar6 = 0x96;
  local_res8 = in_a2;
  local_resc = in_a3;
  do {
    iVar3 = _argp_fmtstream_ensure(fs,uVar6);
    if (iVar3 == 0) {
      uVar4 = 0xffffffff;
      goto LAB_00031098;
    }
    uVar7 = (int)fs->end - (int)fs->p;
    in_a2 = 1;
    uVar4 = (*(code *)PTR___vsnprintf_chk_00046c70)(fs->p,uVar7,1,0xffffffff,fmt,&local_res8);
    uVar6 = uVar4 + 1;
  } while (uVar7 <= uVar4);
  fs->p = fs->p + uVar4;
LAB_00031098:
  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {
    return uVar4;
  }
  (*(code *)PTR___stack_chk_fail_00046cdc)();
  uVar4 = uVar6 & 0xff;
  if (in_a2 == 0) {
    return 0;
  }
  if (((uint)puVar2 & 3) != 0) {
    if (*(byte *)puVar2 == uVar4) {
      return (ssize_t)puVar2;
    }
    while( true ) {
      in_a2 = in_a2 - 1;
      puVar2 = (uint *)((int)puVar2 + 1);
      if (in_a2 == 0) {
        return 0;
      }
      if (((uint)puVar2 & 3) == 0) break;
      if (*(byte *)puVar2 == uVar4) {
        return (ssize_t)puVar2;
      }
    }
  }
  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;
  uVar6 = uVar6 << 0x10 | uVar6;
  if ((in_a2 < 4) || (uVar7 = uVar6 ^ *puVar2, (uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) != 0)) {
LAB_000311d0:
    bVar1 = *(byte *)puVar2;
  }
  else {
    do {
      in_a2 = in_a2 - 4;
      puVar2 = puVar2 + 1;
      if (in_a2 < 4) {
        if (in_a2 == 0) {
          return 0;
        }
        goto LAB_000311d0;
      }
      uVar7 = uVar6 ^ *puVar2;
    } while ((uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) == 0);
    bVar1 = *(byte *)puVar2;
  }
  if (bVar1 == uVar4) {
    return (ssize_t)puVar2;
  }
  puVar5 = (uint *)((int)puVar2 + in_a2);
  do {
    puVar2 = (uint *)((int)puVar2 + 1);
    if (puVar2 == puVar5) {
      return 0;
    }
  } while (*(byte *)puVar2 != uVar4);
  return (ssize_t)puVar2;
}



uint * argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)

{
  byte bVar1;
  uint *puVar2;
  int iVar3;
  uint *puVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  uint *puVar8;
  uint local_res8;
  undefined4 local_resc;
  
  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;
  uVar6 = 0x96;
  local_res8 = param_3;
  local_resc = param_4;
  do {
    iVar3 = _argp_fmtstream_ensure(param_1);
    if (iVar3 == 0) {
      puVar4 = (uint *)0xffffffff;
      goto LAB_00031098;
    }
    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));
    param_3 = 1;
    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)
                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);
    uVar6 = (int)puVar4 + 1;
  } while (puVar8 <= puVar4);
  *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;
LAB_00031098:
  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {
    return puVar4;
  }
  (*(code *)PTR___stack_chk_fail_00046cdc)();
  uVar7 = uVar6 & 0xff;
  if (param_3 == 0) {
    return (uint *)0x0;
  }
  if (((uint)puVar2 & 3) != 0) {
    if (*(byte *)puVar2 == uVar7) {
      return puVar2;
    }
    while( true ) {
      param_3 = param_3 - 1;
      puVar2 = (uint *)((int)puVar2 + 1);
      if (param_3 == 0) {
        return (uint *)0x0;
      }
      if (((uint)puVar2 & 3) == 0) break;
      if (*(byte *)puVar2 == uVar7) {
        return puVar2;
      }
    }
  }
  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;
  uVar6 = uVar6 << 0x10 | uVar6;
  if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {
LAB_000311d0:
    bVar1 = *(byte *)puVar2;
  }
  else {
    do {
      param_3 = param_3 - 4;
      puVar2 = puVar2 + 1;
      if (param_3 < 4) {
        if (param_3 == 0) {
          return (uint *)0x0;
        }
        goto LAB_000311d0;
      }
      uVar5 = uVar6 ^ *puVar2;
    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);
    bVar1 = *(byte *)puVar2;
  }
  if (bVar1 == uVar7) {
    return puVar2;
  }
  puVar4 = (uint *)((int)puVar2 + param_3);
  do {
    puVar2 = (uint *)((int)puVar2 + 1);
    if (puVar2 == puVar4) {
      return (uint *)0x0;
    }
  } while (*(byte *)puVar2 != uVar7);
  return puVar2;
}


lui gp,0x2
addiu gp,gp,-0x27b0
addu gp,gp,t9
addiu sp,sp,-0x40
sw ra,0x3c(sp)
sw s4,0x38(sp)
sw s3,0x34(sp)
sw s2,0x30(sp)
sw s1,0x2c(sp)
sw s0,0x28(sp)
sw gp,0x18(sp)
or s1,a0,zero
or s4,a1,zero
sw a2,0x48(sp)
sw a3,0x4c(sp)
lw v0,-0x7b38(gp)
lw v0,0x0(v0)
sw v0,0x24(sp)
li a1,0x96
lw s3,-0x7c78(gp)
addiu s2,sp,0x48
or a0,s1,zero
or t9,s3,zero
bal 0x00030e94
_nop
lw gp,0x18(sp)
beq v0,zero,0x00031094
_li a3,-0x1
sw s2,0x20(sp)
lw a0,0x1c(s1)
lw s0,0x20(s1)
subu s0,s0,a0
sw s2,0x14(sp)
sw s4,0x10(sp)
li a2,0x1
or a1,s0,zero
lw t9,-0x7bc0(gp)
jalr t9
_nop
lw gp,0x18(sp)
sltu s0,v0,s0
bne s0,zero,0x000310c8
_addiu a1,v0,0x1
b 0x00031038
_or a0,s1,zero
li v0,-0x1
lw a0,0x24(sp)
lw v1,-0x7b38(gp)
lw v1,0x0(v1)
bne a0,v1,0x000310d8
_lw ra,0x3c(sp)
lw s4,0x38(sp)
lw s3,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x40
lw a0,0x1c(s1)
addu v1,a0,v0
b 0x00031098
_sw v1,0x1c(s1)
lw t9,-0x7b54(gp)
jalr t9
_nop
nop
nop
nop
(translation_unit "uint * argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_res8;\n  undefined4 local_resc;\n  \n  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;\n  uVar6 = 0x96;\n  local_res8 = param_3;\n  local_resc = param_4;\n  do {\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  } while (puVar8 <= puVar4);\n  *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;\nLAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00046cdc)();\n  uVar7 = uVar6 & 0xff;\n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }\n  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;\n  uVar6 = uVar6 << 0x10 | uVar6;\n  if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }\n  if (bVar1 == uVar7) {\n    return puVar2;\n  }\n  puVar4 = (uint *)((int)puVar2 + param_3);\n  do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  } while (*(byte *)puVar2 != uVar7);\n  return puVar2;\n}\n\n" (function_definition "uint * argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_res8;\n  undefined4 local_resc;\n  \n  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;\n  uVar6 = 0x96;\n  local_res8 = param_3;\n  local_resc = param_4;\n  do {\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  } while (puVar8 <= puVar4);\n  *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;\nLAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00046cdc)();\n  uVar7 = uVar6 & 0xff;\n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }\n  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;\n  uVar6 = uVar6 << 0x10 | uVar6;\n  if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }\n  if (bVar1 == uVar7) {\n    return puVar2;\n  }\n  puVar4 = (uint *)((int)puVar2 + param_3);\n  do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  } while (*(byte *)puVar2 != uVar7);\n  return puVar2;\n}" type_identifier (pointer_declarator "* argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)" * (function_declarator "argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) )))) (compound_statement "{\n  byte bVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_res8;\n  undefined4 local_resc;\n  \n  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;\n  uVar6 = 0x96;\n  local_res8 = param_3;\n  local_resc = param_4;\n  do {\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  } while (puVar8 <= puVar4);\n  *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;\nLAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00046cdc)();\n  uVar7 = uVar6 & 0xff;\n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }\n  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;\n  uVar6 = uVar6 << 0x10 | uVar6;\n  if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }\n  if (bVar1 == uVar7) {\n    return puVar2;\n  }\n  puVar4 = (uint *)((int)puVar2 + param_3);\n  do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  } while (*(byte *)puVar2 != uVar7);\n  return puVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;" (assignment_expression "puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_00046cf8" * (cast_expression "(uint **)PTR___stack_chk_guard_00046cf8" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar6 = 0x96;" (assignment_expression "uVar6 = 0x96" identifier = number_literal) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (do_statement "do {\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  } while (puVar8 <= puVar4);" do (compound_statement "{\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  }" { (expression_statement "iVar3 = _argp_fmtstream_ensure(param_1);" (assignment_expression "iVar3 = _argp_fmtstream_ensure(param_1)" identifier = (call_expression "_argp_fmtstream_ensure(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }" { (expression_statement "puVar4 = (uint *)0xffffffff;" (assignment_expression "puVar4 = (uint *)0xffffffff" identifier = (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00031098;" goto statement_identifier ;) })) (expression_statement "puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));" (assignment_expression "puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c))" identifier = (cast_expression "(uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c))" ( (binary_expression "*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c)" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )))) ;) (expression_statement "param_3 = 1;" (assignment_expression "param_3 = 1" identifier = number_literal) ;) (expression_statement "puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);" (assignment_expression "puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" identifier = (cast_expression "(uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" (parenthesized_expression "(*(code *)PTR___vsnprintf_chk_00046c70)" ( (pointer_expression "*(code *)PTR___vsnprintf_chk_00046c70" * (cast_expression "(code *)PTR___vsnprintf_chk_00046c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" ( (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) , identifier , number_literal , number_literal , identifier , (pointer_expression "&local_res8" & identifier) ))))) ;) (expression_statement "uVar6 = (int)puVar4 + 1;" (assignment_expression "uVar6 = (int)puVar4 + 1" identifier = (binary_expression "(int)puVar4 + 1" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) }) while (parenthesized_expression "(puVar8 <= puVar4)" ( (binary_expression "puVar8 <= puVar4" identifier <= identifier) )) ;) (expression_statement "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;" (assignment_expression "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x1c) + (int)puVar4" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) + (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (labeled_statement "LAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }" statement_identifier : (if_statement "if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }" if (parenthesized_expression "(puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8)" ( (binary_expression "puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8" identifier == (pointer_expression "*(uint **)PTR___stack_chk_guard_00046cf8" * (cast_expression "(uint **)PTR___stack_chk_guard_00046cf8" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return puVar4;\n  }" { (return_statement "return puVar4;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_00046cdc)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046cdc)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046cdc)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00046cdc" * (cast_expression "(code *)PTR___stack_chk_fail_00046cdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar7 = uVar6 & 0xff;" (assignment_expression "uVar7 = uVar6 & 0xff" identifier = (binary_expression "uVar6 & 0xff" identifier & number_literal)) ;) (if_statement "if (param_3 == 0) {\n    return (uint *)0x0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return (uint *)0x0;\n  }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }" if (parenthesized_expression "(((uint)puVar2 & 3) != 0)" ( (binary_expression "((uint)puVar2 & 3) != 0" (parenthesized_expression "((uint)puVar2 & 3)" ( (binary_expression "(uint)puVar2 & 3" (cast_expression "(uint)puVar2" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }" { (if_statement "if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }" if (parenthesized_expression "(*(byte *)puVar2 == uVar7)" ( (binary_expression "*(byte *)puVar2 == uVar7" (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) == identifier) )) (compound_statement "{\n      return puVar2;\n    }" { (return_statement "return puVar2;" return identifier ;) })) (while_statement "while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }" { (expression_statement "param_3 = param_3 - 1;" (assignment_expression "param_3 = param_3 - 1" identifier = (binary_expression "param_3 - 1" identifier - number_literal)) ;) (expression_statement "puVar2 = (uint *)((int)puVar2 + 1);" (assignment_expression "puVar2 = (uint *)((int)puVar2 + 1)" identifier = (cast_expression "(uint *)((int)puVar2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 1)" ( (binary_expression "(int)puVar2 + 1" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (param_3 == 0) {\n        return (uint *)0x0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        return (uint *)0x0;\n      }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (((uint)puVar2 & 3) == 0) break;" if (parenthesized_expression "(((uint)puVar2 & 3) == 0)" ( (binary_expression "((uint)puVar2 & 3) == 0" (parenthesized_expression "((uint)puVar2 & 3)" ( (binary_expression "(uint)puVar2 & 3" (cast_expression "(uint)puVar2" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }" if (parenthesized_expression "(*(byte *)puVar2 == uVar7)" ( (binary_expression "*(byte *)puVar2 == uVar7" (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) == identifier) )) (compound_statement "{\n        return puVar2;\n      }" { (return_statement "return puVar2;" return identifier ;) })) })) })) (expression_statement "uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;" (assignment_expression "uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff" identifier = (binary_expression "(uVar6 & 0xff) << 8 | uVar6 & 0xff" (binary_expression "(uVar6 & 0xff) << 8" (parenthesized_expression "(uVar6 & 0xff)" ( (binary_expression "uVar6 & 0xff" identifier & number_literal) )) << number_literal) | (binary_expression "uVar6 & 0xff" identifier & number_literal))) ;) (expression_statement "uVar6 = uVar6 << 0x10 | uVar6;" (assignment_expression "uVar6 = uVar6 << 0x10 | uVar6" identifier = (binary_expression "uVar6 << 0x10 | uVar6" (binary_expression "uVar6 << 0x10" identifier << number_literal) | identifier)) ;) (if_statement "if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" if (parenthesized_expression "((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0))" ( (binary_expression "(param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)" (parenthesized_expression "(param_3 < 4)" ( (binary_expression "param_3 < 4" identifier < number_literal) )) || (parenthesized_expression "(uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)" ( (comma_expression "uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0" (assignment_expression "uVar5 = uVar6 ^ *puVar2" identifier = (binary_expression "uVar6 ^ *puVar2" identifier ^ (pointer_expression "*puVar2" * identifier))) , (binary_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0" (parenthesized_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080)" ( (binary_expression "uVar5 + 0xfefefeff & ~uVar5 & 0x80808080" (binary_expression "uVar5 + 0xfefefeff & ~uVar5" (binary_expression "uVar5 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar5" ~ identifier)) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }" { (labeled_statement "LAB_000311d0:\n    bVar1 = *(byte *)puVar2;" statement_identifier : (expression_statement "bVar1 = *(byte *)puVar2;" (assignment_expression "bVar1 = *(byte *)puVar2" identifier = (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;)) }) (else_clause "else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" else (compound_statement "{\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" { (do_statement "do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);" do (compound_statement "{\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    }" { (expression_statement "param_3 = param_3 - 4;" (assignment_expression "param_3 = param_3 - 4" identifier = (binary_expression "param_3 - 4" identifier - number_literal)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }" if (parenthesized_expression "(param_3 < 4)" ( (binary_expression "param_3 < 4" identifier < number_literal) )) (compound_statement "{\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }" { (if_statement "if (param_3 == 0) {\n          return (uint *)0x0;\n        }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n          return (uint *)0x0;\n        }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (goto_statement "goto LAB_000311d0;" goto statement_identifier ;) })) (expression_statement "uVar5 = uVar6 ^ *puVar2;" (assignment_expression "uVar5 = uVar6 ^ *puVar2" identifier = (binary_expression "uVar6 ^ *puVar2" identifier ^ (pointer_expression "*puVar2" * identifier))) ;) }) while (parenthesized_expression "((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0)" ( (binary_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0" (parenthesized_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080)" ( (binary_expression "uVar5 + 0xfefefeff & ~uVar5 & 0x80808080" (binary_expression "uVar5 + 0xfefefeff & ~uVar5" (binary_expression "uVar5 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar5" ~ identifier)) & number_literal) )) == number_literal) )) ;) (expression_statement "bVar1 = *(byte *)puVar2;" (assignment_expression "bVar1 = *(byte *)puVar2" identifier = (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) (if_statement "if (bVar1 == uVar7) {\n    return puVar2;\n  }" if (parenthesized_expression "(bVar1 == uVar7)" ( (binary_expression "bVar1 == uVar7" identifier == identifier) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar4 = (uint *)((int)puVar2 + param_3);" (assignment_expression "puVar4 = (uint *)((int)puVar2 + param_3)" identifier = (cast_expression "(uint *)((int)puVar2 + param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + param_3)" ( (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  } while (*(byte *)puVar2 != uVar7);" do (compound_statement "{\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  }" { (expression_statement "puVar2 = (uint *)((int)puVar2 + 1);" (assignment_expression "puVar2 = (uint *)((int)puVar2 + 1)" identifier = (cast_expression "(uint *)((int)puVar2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 1)" ( (binary_expression "(int)puVar2 + 1" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }" if (parenthesized_expression "(puVar2 == puVar4)" ( (binary_expression "puVar2 == puVar4" identifier == identifier) )) (compound_statement "{\n      return (uint *)0x0;\n    }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) while (parenthesized_expression "(*(byte *)puVar2 != uVar7)" ( (binary_expression "*(byte *)puVar2 != uVar7" (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) != identifier) )) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "ssize_t argp_fmtstream_printf(argp_fmtstream *fs,char *fmt,...)\n\n{\n  byte bVar1;\n  uint *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint in_a2;\n  undefined4 in_a3;\n  uint uVar7;\n  uint local_res8;\n  undefined4 local_resc;\n  va_list args;\n  \n  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;\n  uVar6 = 0x96;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  do {\n    iVar3 = _argp_fmtstream_ensure(fs,uVar6);\n    if (iVar3 == 0) {\n      uVar4 = 0xffffffff;\n      goto LAB_00031098;\n    }\n    uVar7 = (int)fs->end - (int)fs->p;\n    in_a2 = 1;\n    uVar4 = (*(code *)PTR___vsnprintf_chk_00046c70)(fs->p,uVar7,1,0xffffffff,fmt,&local_res8);\n    uVar6 = uVar4 + 1;\n  } while (uVar7 <= uVar4);\n  fs->p = fs->p + uVar4;\nLAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return uVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00046cdc)();\n  uVar4 = uVar6 & 0xff;\n  if (in_a2 == 0) {\n    return 0;\n  }\n  if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar4) {\n      return (ssize_t)puVar2;\n    }\n    while( true ) {\n      in_a2 = in_a2 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (in_a2 == 0) {\n        return 0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar4) {\n        return (ssize_t)puVar2;\n      }\n    }\n  }\n  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;\n  uVar6 = uVar6 << 0x10 | uVar6;\n  if ((in_a2 < 4) || (uVar7 = uVar6 ^ *puVar2, (uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      in_a2 = in_a2 - 4;\n      puVar2 = puVar2 + 1;\n      if (in_a2 < 4) {\n        if (in_a2 == 0) {\n          return 0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar7 = uVar6 ^ *puVar2;\n    } while ((uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }\n  if (bVar1 == uVar4) {\n    return (ssize_t)puVar2;\n  }\n  puVar5 = (uint *)((int)puVar2 + in_a2);\n  do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar5) {\n      return 0;\n    }\n  } while (*(byte *)puVar2 != uVar4);\n  return (ssize_t)puVar2;\n}\n\n" (function_definition "ssize_t argp_fmtstream_printf(argp_fmtstream *fs,char *fmt,...)\n\n{\n  byte bVar1;\n  uint *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint in_a2;\n  undefined4 in_a3;\n  uint uVar7;\n  uint local_res8;\n  undefined4 local_resc;\n  va_list args;\n  \n  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;\n  uVar6 = 0x96;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  do {\n    iVar3 = _argp_fmtstream_ensure(fs,uVar6);\n    if (iVar3 == 0) {\n      uVar4 = 0xffffffff;\n      goto LAB_00031098;\n    }\n    uVar7 = (int)fs->end - (int)fs->p;\n    in_a2 = 1;\n    uVar4 = (*(code *)PTR___vsnprintf_chk_00046c70)(fs->p,uVar7,1,0xffffffff,fmt,&local_res8);\n    uVar6 = uVar4 + 1;\n  } while (uVar7 <= uVar4);\n  fs->p = fs->p + uVar4;\nLAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return uVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00046cdc)();\n  uVar4 = uVar6 & 0xff;\n  if (in_a2 == 0) {\n    return 0;\n  }\n  if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar4) {\n      return (ssize_t)puVar2;\n    }\n    while( true ) {\n      in_a2 = in_a2 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (in_a2 == 0) {\n        return 0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar4) {\n        return (ssize_t)puVar2;\n      }\n    }\n  }\n  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;\n  uVar6 = uVar6 << 0x10 | uVar6;\n  if ((in_a2 < 4) || (uVar7 = uVar6 ^ *puVar2, (uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      in_a2 = in_a2 - 4;\n      puVar2 = puVar2 + 1;\n      if (in_a2 < 4) {\n        if (in_a2 == 0) {\n          return 0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar7 = uVar6 ^ *puVar2;\n    } while ((uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }\n  if (bVar1 == uVar4) {\n    return (ssize_t)puVar2;\n  }\n  puVar5 = (uint *)((int)puVar2 + in_a2);\n  do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar5) {\n      return 0;\n    }\n  } while (*(byte *)puVar2 != uVar4);\n  return (ssize_t)puVar2;\n}" primitive_type (function_declarator "argp_fmtstream_printf(argp_fmtstream *fs,char *fmt,...)" identifier (parameter_list "(argp_fmtstream *fs,char *fmt,...)" ( (parameter_declaration "argp_fmtstream *fs" type_identifier (pointer_declarator "*fs" * identifier)) , (parameter_declaration "char *fmt" primitive_type (pointer_declarator "*fmt" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  byte bVar1;\n  uint *puVar2;\n  int iVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint in_a2;\n  undefined4 in_a3;\n  uint uVar7;\n  uint local_res8;\n  undefined4 local_resc;\n  va_list args;\n  \n  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;\n  uVar6 = 0x96;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  do {\n    iVar3 = _argp_fmtstream_ensure(fs,uVar6);\n    if (iVar3 == 0) {\n      uVar4 = 0xffffffff;\n      goto LAB_00031098;\n    }\n    uVar7 = (int)fs->end - (int)fs->p;\n    in_a2 = 1;\n    uVar4 = (*(code *)PTR___vsnprintf_chk_00046c70)(fs->p,uVar7,1,0xffffffff,fmt,&local_res8);\n    uVar6 = uVar4 + 1;\n  } while (uVar7 <= uVar4);\n  fs->p = fs->p + uVar4;\nLAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return uVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00046cdc)();\n  uVar4 = uVar6 & 0xff;\n  if (in_a2 == 0) {\n    return 0;\n  }\n  if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar4) {\n      return (ssize_t)puVar2;\n    }\n    while( true ) {\n      in_a2 = in_a2 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (in_a2 == 0) {\n        return 0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar4) {\n        return (ssize_t)puVar2;\n      }\n    }\n  }\n  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;\n  uVar6 = uVar6 << 0x10 | uVar6;\n  if ((in_a2 < 4) || (uVar7 = uVar6 ^ *puVar2, (uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      in_a2 = in_a2 - 4;\n      puVar2 = puVar2 + 1;\n      if (in_a2 < 4) {\n        if (in_a2 == 0) {\n          return 0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar7 = uVar6 ^ *puVar2;\n    } while ((uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }\n  if (bVar1 == uVar4) {\n    return (ssize_t)puVar2;\n  }\n  puVar5 = (uint *)((int)puVar2 + in_a2);\n  do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar5) {\n      return 0;\n    }\n  } while (*(byte *)puVar2 != uVar4);\n  return (ssize_t)puVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint in_a2;" type_identifier identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (declaration "va_list args;" type_identifier identifier ;) (expression_statement "puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;" (assignment_expression "puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_00046cf8" * (cast_expression "(uint **)PTR___stack_chk_guard_00046cf8" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar6 = 0x96;" (assignment_expression "uVar6 = 0x96" identifier = number_literal) ;) (expression_statement "local_res8 = in_a2;" (assignment_expression "local_res8 = in_a2" identifier = identifier) ;) (expression_statement "local_resc = in_a3;" (assignment_expression "local_resc = in_a3" identifier = identifier) ;) (do_statement "do {\n    iVar3 = _argp_fmtstream_ensure(fs,uVar6);\n    if (iVar3 == 0) {\n      uVar4 = 0xffffffff;\n      goto LAB_00031098;\n    }\n    uVar7 = (int)fs->end - (int)fs->p;\n    in_a2 = 1;\n    uVar4 = (*(code *)PTR___vsnprintf_chk_00046c70)(fs->p,uVar7,1,0xffffffff,fmt,&local_res8);\n    uVar6 = uVar4 + 1;\n  } while (uVar7 <= uVar4);" do (compound_statement "{\n    iVar3 = _argp_fmtstream_ensure(fs,uVar6);\n    if (iVar3 == 0) {\n      uVar4 = 0xffffffff;\n      goto LAB_00031098;\n    }\n    uVar7 = (int)fs->end - (int)fs->p;\n    in_a2 = 1;\n    uVar4 = (*(code *)PTR___vsnprintf_chk_00046c70)(fs->p,uVar7,1,0xffffffff,fmt,&local_res8);\n    uVar6 = uVar4 + 1;\n  }" { (expression_statement "iVar3 = _argp_fmtstream_ensure(fs,uVar6);" (assignment_expression "iVar3 = _argp_fmtstream_ensure(fs,uVar6)" identifier = (call_expression "_argp_fmtstream_ensure(fs,uVar6)" identifier (argument_list "(fs,uVar6)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      uVar4 = 0xffffffff;\n      goto LAB_00031098;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0xffffffff;\n      goto LAB_00031098;\n    }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_00031098;" goto statement_identifier ;) })) (expression_statement "uVar7 = (int)fs->end - (int)fs->p;" (assignment_expression "uVar7 = (int)fs->end - (int)fs->p" identifier = (binary_expression "(int)fs->end - (int)fs->p" (cast_expression "(int)fs->end" ( (type_descriptor "int" primitive_type) ) (field_expression "fs->end" identifier -> field_identifier)) - (cast_expression "(int)fs->p" ( (type_descriptor "int" primitive_type) ) (field_expression "fs->p" identifier -> field_identifier)))) ;) (expression_statement "in_a2 = 1;" (assignment_expression "in_a2 = 1" identifier = number_literal) ;) (expression_statement "uVar4 = (*(code *)PTR___vsnprintf_chk_00046c70)(fs->p,uVar7,1,0xffffffff,fmt,&local_res8);" (assignment_expression "uVar4 = (*(code *)PTR___vsnprintf_chk_00046c70)(fs->p,uVar7,1,0xffffffff,fmt,&local_res8)" identifier = (call_expression "(*(code *)PTR___vsnprintf_chk_00046c70)(fs->p,uVar7,1,0xffffffff,fmt,&local_res8)" (parenthesized_expression "(*(code *)PTR___vsnprintf_chk_00046c70)" ( (pointer_expression "*(code *)PTR___vsnprintf_chk_00046c70" * (cast_expression "(code *)PTR___vsnprintf_chk_00046c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fs->p,uVar7,1,0xffffffff,fmt,&local_res8)" ( (field_expression "fs->p" identifier -> field_identifier) , identifier , number_literal , number_literal , identifier , (pointer_expression "&local_res8" & identifier) )))) ;) (expression_statement "uVar6 = uVar4 + 1;" (assignment_expression "uVar6 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar7 <= uVar4)" ( (binary_expression "uVar7 <= uVar4" identifier <= identifier) )) ;) (expression_statement "fs->p = fs->p + uVar4;" (assignment_expression "fs->p = fs->p + uVar4" (field_expression "fs->p" identifier -> field_identifier) = (binary_expression "fs->p + uVar4" (field_expression "fs->p" identifier -> field_identifier) + identifier)) ;) (labeled_statement "LAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return uVar4;\n  }" statement_identifier : (if_statement "if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return uVar4;\n  }" if (parenthesized_expression "(puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8)" ( (binary_expression "puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8" identifier == (pointer_expression "*(uint **)PTR___stack_chk_guard_00046cf8" * (cast_expression "(uint **)PTR___stack_chk_guard_00046cf8" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_00046cdc)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046cdc)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046cdc)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00046cdc" * (cast_expression "(code *)PTR___stack_chk_fail_00046cdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar4 = uVar6 & 0xff;" (assignment_expression "uVar4 = uVar6 & 0xff" identifier = (binary_expression "uVar6 & 0xff" identifier & number_literal)) ;) (if_statement "if (in_a2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(in_a2 == 0)" ( (binary_expression "in_a2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar4) {\n      return (ssize_t)puVar2;\n    }\n    while( true ) {\n      in_a2 = in_a2 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (in_a2 == 0) {\n        return 0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar4) {\n        return (ssize_t)puVar2;\n      }\n    }\n  }" if (parenthesized_expression "(((uint)puVar2 & 3) != 0)" ( (binary_expression "((uint)puVar2 & 3) != 0" (parenthesized_expression "((uint)puVar2 & 3)" ( (binary_expression "(uint)puVar2 & 3" (cast_expression "(uint)puVar2" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(byte *)puVar2 == uVar4) {\n      return (ssize_t)puVar2;\n    }\n    while( true ) {\n      in_a2 = in_a2 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (in_a2 == 0) {\n        return 0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar4) {\n        return (ssize_t)puVar2;\n      }\n    }\n  }" { (if_statement "if (*(byte *)puVar2 == uVar4) {\n      return (ssize_t)puVar2;\n    }" if (parenthesized_expression "(*(byte *)puVar2 == uVar4)" ( (binary_expression "*(byte *)puVar2 == uVar4" (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) == identifier) )) (compound_statement "{\n      return (ssize_t)puVar2;\n    }" { (return_statement "return (ssize_t)puVar2;" return (cast_expression "(ssize_t)puVar2" ( (type_descriptor "ssize_t" primitive_type) ) identifier) ;) })) (while_statement "while( true ) {\n      in_a2 = in_a2 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (in_a2 == 0) {\n        return 0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar4) {\n        return (ssize_t)puVar2;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      in_a2 = in_a2 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (in_a2 == 0) {\n        return 0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar4) {\n        return (ssize_t)puVar2;\n      }\n    }" { (expression_statement "in_a2 = in_a2 - 1;" (assignment_expression "in_a2 = in_a2 - 1" identifier = (binary_expression "in_a2 - 1" identifier - number_literal)) ;) (expression_statement "puVar2 = (uint *)((int)puVar2 + 1);" (assignment_expression "puVar2 = (uint *)((int)puVar2 + 1)" identifier = (cast_expression "(uint *)((int)puVar2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 1)" ( (binary_expression "(int)puVar2 + 1" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (in_a2 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(in_a2 == 0)" ( (binary_expression "in_a2 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((uint)puVar2 & 3) == 0) break;" if (parenthesized_expression "(((uint)puVar2 & 3) == 0)" ( (binary_expression "((uint)puVar2 & 3) == 0" (parenthesized_expression "((uint)puVar2 & 3)" ( (binary_expression "(uint)puVar2 & 3" (cast_expression "(uint)puVar2" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (*(byte *)puVar2 == uVar4) {\n        return (ssize_t)puVar2;\n      }" if (parenthesized_expression "(*(byte *)puVar2 == uVar4)" ( (binary_expression "*(byte *)puVar2 == uVar4" (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) == identifier) )) (compound_statement "{\n        return (ssize_t)puVar2;\n      }" { (return_statement "return (ssize_t)puVar2;" return (cast_expression "(ssize_t)puVar2" ( (type_descriptor "ssize_t" primitive_type) ) identifier) ;) })) })) })) (expression_statement "uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;" (assignment_expression "uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff" identifier = (binary_expression "(uVar6 & 0xff) << 8 | uVar6 & 0xff" (binary_expression "(uVar6 & 0xff) << 8" (parenthesized_expression "(uVar6 & 0xff)" ( (binary_expression "uVar6 & 0xff" identifier & number_literal) )) << number_literal) | (binary_expression "uVar6 & 0xff" identifier & number_literal))) ;) (expression_statement "uVar6 = uVar6 << 0x10 | uVar6;" (assignment_expression "uVar6 = uVar6 << 0x10 | uVar6" identifier = (binary_expression "uVar6 << 0x10 | uVar6" (binary_expression "uVar6 << 0x10" identifier << number_literal) | identifier)) ;) (if_statement "if ((in_a2 < 4) || (uVar7 = uVar6 ^ *puVar2, (uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      in_a2 = in_a2 - 4;\n      puVar2 = puVar2 + 1;\n      if (in_a2 < 4) {\n        if (in_a2 == 0) {\n          return 0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar7 = uVar6 ^ *puVar2;\n    } while ((uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" if (parenthesized_expression "((in_a2 < 4) || (uVar7 = uVar6 ^ *puVar2, (uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) != 0))" ( (binary_expression "(in_a2 < 4) || (uVar7 = uVar6 ^ *puVar2, (uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) != 0)" (parenthesized_expression "(in_a2 < 4)" ( (binary_expression "in_a2 < 4" identifier < number_literal) )) || (parenthesized_expression "(uVar7 = uVar6 ^ *puVar2, (uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) != 0)" ( (comma_expression "uVar7 = uVar6 ^ *puVar2, (uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) != 0" (assignment_expression "uVar7 = uVar6 ^ *puVar2" identifier = (binary_expression "uVar6 ^ *puVar2" identifier ^ (pointer_expression "*puVar2" * identifier))) , (binary_expression "(uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) != 0" (parenthesized_expression "(uVar7 + 0xfefefeff & ~uVar7 & 0x80808080)" ( (binary_expression "uVar7 + 0xfefefeff & ~uVar7 & 0x80808080" (binary_expression "uVar7 + 0xfefefeff & ~uVar7" (binary_expression "uVar7 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar7" ~ identifier)) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }" { (labeled_statement "LAB_000311d0:\n    bVar1 = *(byte *)puVar2;" statement_identifier : (expression_statement "bVar1 = *(byte *)puVar2;" (assignment_expression "bVar1 = *(byte *)puVar2" identifier = (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;)) }) (else_clause "else {\n    do {\n      in_a2 = in_a2 - 4;\n      puVar2 = puVar2 + 1;\n      if (in_a2 < 4) {\n        if (in_a2 == 0) {\n          return 0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar7 = uVar6 ^ *puVar2;\n    } while ((uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" else (compound_statement "{\n    do {\n      in_a2 = in_a2 - 4;\n      puVar2 = puVar2 + 1;\n      if (in_a2 < 4) {\n        if (in_a2 == 0) {\n          return 0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar7 = uVar6 ^ *puVar2;\n    } while ((uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" { (do_statement "do {\n      in_a2 = in_a2 - 4;\n      puVar2 = puVar2 + 1;\n      if (in_a2 < 4) {\n        if (in_a2 == 0) {\n          return 0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar7 = uVar6 ^ *puVar2;\n    } while ((uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) == 0);" do (compound_statement "{\n      in_a2 = in_a2 - 4;\n      puVar2 = puVar2 + 1;\n      if (in_a2 < 4) {\n        if (in_a2 == 0) {\n          return 0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar7 = uVar6 ^ *puVar2;\n    }" { (expression_statement "in_a2 = in_a2 - 4;" (assignment_expression "in_a2 = in_a2 - 4" identifier = (binary_expression "in_a2 - 4" identifier - number_literal)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (if_statement "if (in_a2 < 4) {\n        if (in_a2 == 0) {\n          return 0;\n        }\n        goto LAB_000311d0;\n      }" if (parenthesized_expression "(in_a2 < 4)" ( (binary_expression "in_a2 < 4" identifier < number_literal) )) (compound_statement "{\n        if (in_a2 == 0) {\n          return 0;\n        }\n        goto LAB_000311d0;\n      }" { (if_statement "if (in_a2 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(in_a2 == 0)" ( (binary_expression "in_a2 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_000311d0;" goto statement_identifier ;) })) (expression_statement "uVar7 = uVar6 ^ *puVar2;" (assignment_expression "uVar7 = uVar6 ^ *puVar2" identifier = (binary_expression "uVar6 ^ *puVar2" identifier ^ (pointer_expression "*puVar2" * identifier))) ;) }) while (parenthesized_expression "((uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) == 0)" ( (binary_expression "(uVar7 + 0xfefefeff & ~uVar7 & 0x80808080) == 0" (parenthesized_expression "(uVar7 + 0xfefefeff & ~uVar7 & 0x80808080)" ( (binary_expression "uVar7 + 0xfefefeff & ~uVar7 & 0x80808080" (binary_expression "uVar7 + 0xfefefeff & ~uVar7" (binary_expression "uVar7 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar7" ~ identifier)) & number_literal) )) == number_literal) )) ;) (expression_statement "bVar1 = *(byte *)puVar2;" (assignment_expression "bVar1 = *(byte *)puVar2" identifier = (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) (if_statement "if (bVar1 == uVar4) {\n    return (ssize_t)puVar2;\n  }" if (parenthesized_expression "(bVar1 == uVar4)" ( (binary_expression "bVar1 == uVar4" identifier == identifier) )) (compound_statement "{\n    return (ssize_t)puVar2;\n  }" { (return_statement "return (ssize_t)puVar2;" return (cast_expression "(ssize_t)puVar2" ( (type_descriptor "ssize_t" primitive_type) ) identifier) ;) })) (expression_statement "puVar5 = (uint *)((int)puVar2 + in_a2);" (assignment_expression "puVar5 = (uint *)((int)puVar2 + in_a2)" identifier = (cast_expression "(uint *)((int)puVar2 + in_a2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + in_a2)" ( (binary_expression "(int)puVar2 + in_a2" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar5) {\n      return 0;\n    }\n  } while (*(byte *)puVar2 != uVar4);" do (compound_statement "{\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar5) {\n      return 0;\n    }\n  }" { (expression_statement "puVar2 = (uint *)((int)puVar2 + 1);" (assignment_expression "puVar2 = (uint *)((int)puVar2 + 1)" identifier = (cast_expression "(uint *)((int)puVar2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 1)" ( (binary_expression "(int)puVar2 + 1" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (puVar2 == puVar5) {\n      return 0;\n    }" if (parenthesized_expression "(puVar2 == puVar5)" ( (binary_expression "puVar2 == puVar5" identifier == identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(*(byte *)puVar2 != uVar4)" ( (binary_expression "*(byte *)puVar2 != uVar4" (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) != identifier) )) ;) (return_statement "return (ssize_t)puVar2;" return (cast_expression "(ssize_t)puVar2" ( (type_descriptor "ssize_t" primitive_type) ) identifier) ;) })))
(translation_unit "uint * argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_res8;\n  undefined4 local_resc;\n  \n  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;\n  uVar6 = 0x96;\n  local_res8 = param_3;\n  local_resc = param_4;\n  do {\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  } while (puVar8 <= puVar4);\n  *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;\nLAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00046cdc)();\n  uVar7 = uVar6 & 0xff;\n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }\n  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;\n  uVar6 = uVar6 << 0x10 | uVar6;\n  if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }\n  if (bVar1 == uVar7) {\n    return puVar2;\n  }\n  puVar4 = (uint *)((int)puVar2 + param_3);\n  do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  } while (*(byte *)puVar2 != uVar7);\n  return puVar2;\n}\n\n" (function_definition "uint * argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_res8;\n  undefined4 local_resc;\n  \n  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;\n  uVar6 = 0x96;\n  local_res8 = param_3;\n  local_resc = param_4;\n  do {\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  } while (puVar8 <= puVar4);\n  *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;\nLAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00046cdc)();\n  uVar7 = uVar6 & 0xff;\n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }\n  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;\n  uVar6 = uVar6 << 0x10 | uVar6;\n  if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }\n  if (bVar1 == uVar7) {\n    return puVar2;\n  }\n  puVar4 = (uint *)((int)puVar2 + param_3);\n  do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  } while (*(byte *)puVar2 != uVar7);\n  return puVar2;\n}" type_identifier (pointer_declarator "* argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)" * (function_declarator "argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) )))) (compound_statement "{\n  byte bVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_res8;\n  undefined4 local_resc;\n  \n  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;\n  uVar6 = 0x96;\n  local_res8 = param_3;\n  local_resc = param_4;\n  do {\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  } while (puVar8 <= puVar4);\n  *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;\nLAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00046cdc)();\n  uVar7 = uVar6 & 0xff;\n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }\n  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;\n  uVar6 = uVar6 << 0x10 | uVar6;\n  if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }\n  if (bVar1 == uVar7) {\n    return puVar2;\n  }\n  puVar4 = (uint *)((int)puVar2 + param_3);\n  do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  } while (*(byte *)puVar2 != uVar7);\n  return puVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;" (assignment_expression "puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_00046cf8" * (cast_expression "(uint **)PTR___stack_chk_guard_00046cf8" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar6 = 0x96;" (assignment_expression "uVar6 = 0x96" identifier = number_literal) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (do_statement "do {\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  } while (puVar8 <= puVar4);" do (compound_statement "{\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  }" { (expression_statement "iVar3 = _argp_fmtstream_ensure(param_1);" (assignment_expression "iVar3 = _argp_fmtstream_ensure(param_1)" identifier = (call_expression "_argp_fmtstream_ensure(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }" { (expression_statement "puVar4 = (uint *)0xffffffff;" (assignment_expression "puVar4 = (uint *)0xffffffff" identifier = (cast_expression "(uint *)0xffffffff" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00031098;" goto statement_identifier ;) })) (expression_statement "puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));" (assignment_expression "puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c))" identifier = (cast_expression "(uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c))" ( (binary_expression "*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c)" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )))) ;) (expression_statement "param_3 = 1;" (assignment_expression "param_3 = 1" identifier = number_literal) ;) (expression_statement "puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);" (assignment_expression "puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" identifier = (cast_expression "(uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" (parenthesized_expression "(*(code *)PTR___vsnprintf_chk_00046c70)" ( (pointer_expression "*(code *)PTR___vsnprintf_chk_00046c70" * (cast_expression "(code *)PTR___vsnprintf_chk_00046c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" ( (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) , identifier , number_literal , number_literal , identifier , (pointer_expression "&local_res8" & identifier) ))))) ;) (expression_statement "uVar6 = (int)puVar4 + 1;" (assignment_expression "uVar6 = (int)puVar4 + 1" identifier = (binary_expression "(int)puVar4 + 1" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) }) while (parenthesized_expression "(puVar8 <= puVar4)" ( (binary_expression "puVar8 <= puVar4" identifier <= identifier) )) ;) (expression_statement "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;" (assignment_expression "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x1c) + (int)puVar4" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) + (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (labeled_statement "LAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }" statement_identifier : (if_statement "if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }" if (parenthesized_expression "(puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8)" ( (binary_expression "puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8" identifier == (pointer_expression "*(uint **)PTR___stack_chk_guard_00046cf8" * (cast_expression "(uint **)PTR___stack_chk_guard_00046cf8" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return puVar4;\n  }" { (return_statement "return puVar4;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_00046cdc)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046cdc)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046cdc)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00046cdc" * (cast_expression "(code *)PTR___stack_chk_fail_00046cdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar7 = uVar6 & 0xff;" (assignment_expression "uVar7 = uVar6 & 0xff" identifier = (binary_expression "uVar6 & 0xff" identifier & number_literal)) ;) (if_statement "if (param_3 == 0) {\n    return (uint *)0x0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return (uint *)0x0;\n  }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }" if (parenthesized_expression "(((uint)puVar2 & 3) != 0)" ( (binary_expression "((uint)puVar2 & 3) != 0" (parenthesized_expression "((uint)puVar2 & 3)" ( (binary_expression "(uint)puVar2 & 3" (cast_expression "(uint)puVar2" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }" { (if_statement "if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }" if (parenthesized_expression "(*(byte *)puVar2 == uVar7)" ( (binary_expression "*(byte *)puVar2 == uVar7" (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) == identifier) )) (compound_statement "{\n      return puVar2;\n    }" { (return_statement "return puVar2;" return identifier ;) })) (while_statement "while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }" { (expression_statement "param_3 = param_3 - 1;" (assignment_expression "param_3 = param_3 - 1" identifier = (binary_expression "param_3 - 1" identifier - number_literal)) ;) (expression_statement "puVar2 = (uint *)((int)puVar2 + 1);" (assignment_expression "puVar2 = (uint *)((int)puVar2 + 1)" identifier = (cast_expression "(uint *)((int)puVar2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 1)" ( (binary_expression "(int)puVar2 + 1" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (param_3 == 0) {\n        return (uint *)0x0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        return (uint *)0x0;\n      }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (((uint)puVar2 & 3) == 0) break;" if (parenthesized_expression "(((uint)puVar2 & 3) == 0)" ( (binary_expression "((uint)puVar2 & 3) == 0" (parenthesized_expression "((uint)puVar2 & 3)" ( (binary_expression "(uint)puVar2 & 3" (cast_expression "(uint)puVar2" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }" if (parenthesized_expression "(*(byte *)puVar2 == uVar7)" ( (binary_expression "*(byte *)puVar2 == uVar7" (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) == identifier) )) (compound_statement "{\n        return puVar2;\n      }" { (return_statement "return puVar2;" return identifier ;) })) })) })) (expression_statement "uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;" (assignment_expression "uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff" identifier = (binary_expression "(uVar6 & 0xff) << 8 | uVar6 & 0xff" (binary_expression "(uVar6 & 0xff) << 8" (parenthesized_expression "(uVar6 & 0xff)" ( (binary_expression "uVar6 & 0xff" identifier & number_literal) )) << number_literal) | (binary_expression "uVar6 & 0xff" identifier & number_literal))) ;) (expression_statement "uVar6 = uVar6 << 0x10 | uVar6;" (assignment_expression "uVar6 = uVar6 << 0x10 | uVar6" identifier = (binary_expression "uVar6 << 0x10 | uVar6" (binary_expression "uVar6 << 0x10" identifier << number_literal) | identifier)) ;) (if_statement "if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" if (parenthesized_expression "((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0))" ( (binary_expression "(param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)" (parenthesized_expression "(param_3 < 4)" ( (binary_expression "param_3 < 4" identifier < number_literal) )) || (parenthesized_expression "(uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)" ( (comma_expression "uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0" (assignment_expression "uVar5 = uVar6 ^ *puVar2" identifier = (binary_expression "uVar6 ^ *puVar2" identifier ^ (pointer_expression "*puVar2" * identifier))) , (binary_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0" (parenthesized_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080)" ( (binary_expression "uVar5 + 0xfefefeff & ~uVar5 & 0x80808080" (binary_expression "uVar5 + 0xfefefeff & ~uVar5" (binary_expression "uVar5 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar5" ~ identifier)) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }" { (labeled_statement "LAB_000311d0:\n    bVar1 = *(byte *)puVar2;" statement_identifier : (expression_statement "bVar1 = *(byte *)puVar2;" (assignment_expression "bVar1 = *(byte *)puVar2" identifier = (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;)) }) (else_clause "else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" else (compound_statement "{\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" { (do_statement "do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);" do (compound_statement "{\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    }" { (expression_statement "param_3 = param_3 - 4;" (assignment_expression "param_3 = param_3 - 4" identifier = (binary_expression "param_3 - 4" identifier - number_literal)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }" if (parenthesized_expression "(param_3 < 4)" ( (binary_expression "param_3 < 4" identifier < number_literal) )) (compound_statement "{\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }" { (if_statement "if (param_3 == 0) {\n          return (uint *)0x0;\n        }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n          return (uint *)0x0;\n        }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (goto_statement "goto LAB_000311d0;" goto statement_identifier ;) })) (expression_statement "uVar5 = uVar6 ^ *puVar2;" (assignment_expression "uVar5 = uVar6 ^ *puVar2" identifier = (binary_expression "uVar6 ^ *puVar2" identifier ^ (pointer_expression "*puVar2" * identifier))) ;) }) while (parenthesized_expression "((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0)" ( (binary_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0" (parenthesized_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080)" ( (binary_expression "uVar5 + 0xfefefeff & ~uVar5 & 0x80808080" (binary_expression "uVar5 + 0xfefefeff & ~uVar5" (binary_expression "uVar5 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar5" ~ identifier)) & number_literal) )) == number_literal) )) ;) (expression_statement "bVar1 = *(byte *)puVar2;" (assignment_expression "bVar1 = *(byte *)puVar2" identifier = (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) (if_statement "if (bVar1 == uVar7) {\n    return puVar2;\n  }" if (parenthesized_expression "(bVar1 == uVar7)" ( (binary_expression "bVar1 == uVar7" identifier == identifier) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar4 = (uint *)((int)puVar2 + param_3);" (assignment_expression "puVar4 = (uint *)((int)puVar2 + param_3)" identifier = (cast_expression "(uint *)((int)puVar2 + param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + param_3)" ( (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  } while (*(byte *)puVar2 != uVar7);" do (compound_statement "{\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  }" { (expression_statement "puVar2 = (uint *)((int)puVar2 + 1);" (assignment_expression "puVar2 = (uint *)((int)puVar2 + 1)" identifier = (cast_expression "(uint *)((int)puVar2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 1)" ( (binary_expression "(int)puVar2 + 1" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }" if (parenthesized_expression "(puVar2 == puVar4)" ( (binary_expression "puVar2 == puVar4" identifier == identifier) )) (compound_statement "{\n      return (uint *)0x0;\n    }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) while (parenthesized_expression "(*(byte *)puVar2 != uVar7)" ( (binary_expression "*(byte *)puVar2 != uVar7" (pointer_expression "*(byte *)puVar2" * (cast_expression "(byte *)puVar2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) != identifier) )) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT , LIT , IDENT , (pointer_expression & IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) 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 { (return_statement return 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 = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) == LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) })) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT) | (binary_expression IDENT & LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << LIT) | IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT ^ (pointer_expression * IDENT))) , (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + LIT) & (unary_expression ~ IDENT)) & LIT) )) != LIT)) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;)) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + LIT) & (unary_expression ~ IDENT)) & LIT) )) == LIT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) != IDENT) )) ;) (return_statement return IDENT ;) })))
(function_definition "uint * argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_res8;\n  undefined4 local_resc;\n  \n  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;\n  uVar6 = 0x96;\n  local_res8 = param_3;\n  local_resc = param_4;\n  do {\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  } while (puVar8 <= puVar4);\n  *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;\nLAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00046cdc)();\n  uVar7 = uVar6 & 0xff;\n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }\n  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;\n  uVar6 = uVar6 << 0x10 | uVar6;\n  if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }\n  if (bVar1 == uVar7) {\n    return puVar2;\n  }\n  puVar4 = (uint *)((int)puVar2 + param_3);\n  do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  } while (*(byte *)puVar2 != uVar7);\n  return puVar2;\n}" (type_identifier "uint") (pointer_declarator "* argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)" (* "*") (function_declarator "argp_fmtstream_printf(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)" (identifier "argp_fmtstream_printf") (parameter_list "(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")")))) (compound_statement "{\n  byte bVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint local_res8;\n  undefined4 local_resc;\n  \n  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;\n  uVar6 = 0x96;\n  local_res8 = param_3;\n  local_resc = param_4;\n  do {\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  } while (puVar8 <= puVar4);\n  *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;\nLAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }\n  (*(code *)PTR___stack_chk_fail_00046cdc)();\n  uVar7 = uVar6 & 0xff;\n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }\n  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;\n  uVar6 = uVar6 << 0x10 | uVar6;\n  if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }\n  if (bVar1 == uVar7) {\n    return puVar2;\n  }\n  puVar4 = (uint *)((int)puVar2 + param_3);\n  do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  } while (*(byte *)puVar2 != uVar7);\n  return puVar2;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint *puVar8;" (type_identifier "uint") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "uint local_res8;" (type_identifier "uint") (identifier "local_res8") (; ";")) (declaration "undefined4 local_resc;" (type_identifier "undefined4") (identifier "local_resc") (; ";")) (expression_statement "puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;" (assignment_expression "puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8" (identifier "puVar2") (= "=") (pointer_expression "*(uint **)PTR___stack_chk_guard_00046cf8" (* "*") (cast_expression "(uint **)PTR___stack_chk_guard_00046cf8" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00046cf8")))) (; ";")) (expression_statement "uVar6 = 0x96;" (assignment_expression "uVar6 = 0x96" (identifier "uVar6") (= "=") (number_literal "0x96")) (; ";")) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" (identifier "local_res8") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" (identifier "local_resc") (= "=") (identifier "param_4")) (; ";")) (do_statement "do {\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  } while (puVar8 <= puVar4);" (do "do") (compound_statement "{\n    iVar3 = _argp_fmtstream_ensure(param_1);\n    if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }\n    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));\n    param_3 = 1;\n    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);\n    uVar6 = (int)puVar4 + 1;\n  }" ({ "{") (expression_statement "iVar3 = _argp_fmtstream_ensure(param_1);" (assignment_expression "iVar3 = _argp_fmtstream_ensure(param_1)" (identifier "iVar3") (= "=") (call_expression "_argp_fmtstream_ensure(param_1)" (identifier "_argp_fmtstream_ensure") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar4 = (uint *)0xffffffff;\n      goto LAB_00031098;\n    }" ({ "{") (expression_statement "puVar4 = (uint *)0xffffffff;" (assignment_expression "puVar4 = (uint *)0xffffffff" (identifier "puVar4") (= "=") (cast_expression "(uint *)0xffffffff" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) (; ";")) (goto_statement "goto LAB_00031098;" (goto "goto") (statement_identifier "LAB_00031098") (; ";")) (} "}"))) (expression_statement "puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));" (assignment_expression "puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c))" (identifier "puVar8") (= "=") (cast_expression "(uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c))" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c))" (( "(") (binary_expression "*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c)" (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (- "-") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")))) (; ";")) (expression_statement "param_3 = 1;" (assignment_expression "param_3 = 1" (identifier "param_3") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);" (assignment_expression "puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" (identifier "puVar4") (= "=") (cast_expression "(uint *)(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___vsnprintf_chk_00046c70)\n                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" (parenthesized_expression "(*(code *)PTR___vsnprintf_chk_00046c70)" (( "(") (pointer_expression "*(code *)PTR___vsnprintf_chk_00046c70" (* "*") (cast_expression "(code *)PTR___vsnprintf_chk_00046c70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___vsnprintf_chk_00046c70"))) () ")")) (argument_list "(*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8)" (( "(") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (, ",") (identifier "puVar8") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_res8" (& "&") (identifier "local_res8")) () ")"))))) (; ";")) (expression_statement "uVar6 = (int)puVar4 + 1;" (assignment_expression "uVar6 = (int)puVar4 + 1" (identifier "uVar6") (= "=") (binary_expression "(int)puVar4 + 1" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar8 <= puVar4)" (( "(") (binary_expression "puVar8 <= puVar4" (identifier "puVar8") (<= "<=") (identifier "puVar4")) () ")")) (; ";")) (expression_statement "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;" (assignment_expression "*(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x1c) + (int)puVar4" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")))) (; ";")) (labeled_statement "LAB_00031098:\n  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }" (statement_identifier "LAB_00031098") (: ":") (if_statement "if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {\n    return puVar4;\n  }" (if "if") (parenthesized_expression "(puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8)" (( "(") (binary_expression "puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8" (identifier "puVar2") (== "==") (pointer_expression "*(uint **)PTR___stack_chk_guard_00046cf8" (* "*") (cast_expression "(uint **)PTR___stack_chk_guard_00046cf8" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00046cf8")))) () ")")) (compound_statement "{\n    return puVar4;\n  }" ({ "{") (return_statement "return puVar4;" (return "return") (identifier "puVar4") (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___stack_chk_fail_00046cdc)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046cdc)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046cdc)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00046cdc" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00046cdc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00046cdc"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar7 = uVar6 & 0xff;" (assignment_expression "uVar7 = uVar6 & 0xff" (identifier "uVar7") (= "=") (binary_expression "uVar6 & 0xff" (identifier "uVar6") (& "&") (number_literal "0xff"))) (; ";")) (if_statement "if (param_3 == 0) {\n    return (uint *)0x0;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return (uint *)0x0;\n  }" ({ "{") (return_statement "return (uint *)0x0;" (return "return") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (if_statement "if (((uint)puVar2 & 3) != 0) {\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(((uint)puVar2 & 3) != 0)" (( "(") (binary_expression "((uint)puVar2 & 3) != 0" (parenthesized_expression "((uint)puVar2 & 3)" (( "(") (binary_expression "(uint)puVar2 & 3" (cast_expression "(uint)puVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar2")) (& "&") (number_literal "3")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }\n    while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }\n  }" ({ "{") (if_statement "if (*(byte *)puVar2 == uVar7) {\n      return puVar2;\n    }" (if "if") (parenthesized_expression "(*(byte *)puVar2 == uVar7)" (( "(") (binary_expression "*(byte *)puVar2 == uVar7" (pointer_expression "*(byte *)puVar2" (* "*") (cast_expression "(byte *)puVar2" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (== "==") (identifier "uVar7")) () ")")) (compound_statement "{\n      return puVar2;\n    }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (while_statement "while( true ) {\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      param_3 = param_3 - 1;\n      puVar2 = (uint *)((int)puVar2 + 1);\n      if (param_3 == 0) {\n        return (uint *)0x0;\n      }\n      if (((uint)puVar2 & 3) == 0) break;\n      if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }\n    }" ({ "{") (expression_statement "param_3 = param_3 - 1;" (assignment_expression "param_3 = param_3 - 1" (identifier "param_3") (= "=") (binary_expression "param_3 - 1" (identifier "param_3") (- "-") (number_literal "1"))) (; ";")) (expression_statement "puVar2 = (uint *)((int)puVar2 + 1);" (assignment_expression "puVar2 = (uint *)((int)puVar2 + 1)" (identifier "puVar2") (= "=") (cast_expression "(uint *)((int)puVar2 + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + 1)" (( "(") (binary_expression "(int)puVar2 + 1" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (param_3 == 0) {\n        return (uint *)0x0;\n      }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return (uint *)0x0;\n      }" ({ "{") (return_statement "return (uint *)0x0;" (return "return") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (if_statement "if (((uint)puVar2 & 3) == 0) break;" (if "if") (parenthesized_expression "(((uint)puVar2 & 3) == 0)" (( "(") (binary_expression "((uint)puVar2 & 3) == 0" (parenthesized_expression "((uint)puVar2 & 3)" (( "(") (binary_expression "(uint)puVar2 & 3" (cast_expression "(uint)puVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar2")) (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (*(byte *)puVar2 == uVar7) {\n        return puVar2;\n      }" (if "if") (parenthesized_expression "(*(byte *)puVar2 == uVar7)" (( "(") (binary_expression "*(byte *)puVar2 == uVar7" (pointer_expression "*(byte *)puVar2" (* "*") (cast_expression "(byte *)puVar2" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (== "==") (identifier "uVar7")) () ")")) (compound_statement "{\n        return puVar2;\n      }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;" (assignment_expression "uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff" (identifier "uVar6") (= "=") (binary_expression "(uVar6 & 0xff) << 8 | uVar6 & 0xff" (binary_expression "(uVar6 & 0xff) << 8" (parenthesized_expression "(uVar6 & 0xff)" (( "(") (binary_expression "uVar6 & 0xff" (identifier "uVar6") (& "&") (number_literal "0xff")) () ")")) (<< "<<") (number_literal "8")) (| "|") (binary_expression "uVar6 & 0xff" (identifier "uVar6") (& "&") (number_literal "0xff")))) (; ";")) (expression_statement "uVar6 = uVar6 << 0x10 | uVar6;" (assignment_expression "uVar6 = uVar6 << 0x10 | uVar6" (identifier "uVar6") (= "=") (binary_expression "uVar6 << 0x10 | uVar6" (binary_expression "uVar6 << 0x10" (identifier "uVar6") (<< "<<") (number_literal "0x10")) (| "|") (identifier "uVar6"))) (; ";")) (if_statement "if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }\n  else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" (if "if") (parenthesized_expression "((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0))" (( "(") (binary_expression "(param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)" (parenthesized_expression "(param_3 < 4)" (( "(") (binary_expression "param_3 < 4" (identifier "param_3") (< "<") (number_literal "4")) () ")")) (|| "||") (parenthesized_expression "(uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)" (( "(") (comma_expression "uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0" (assignment_expression "uVar5 = uVar6 ^ *puVar2" (identifier "uVar5") (= "=") (binary_expression "uVar6 ^ *puVar2" (identifier "uVar6") (^ "^") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (, ",") (binary_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0" (parenthesized_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080)" (( "(") (binary_expression "uVar5 + 0xfefefeff & ~uVar5 & 0x80808080" (binary_expression "uVar5 + 0xfefefeff & ~uVar5" (binary_expression "uVar5 + 0xfefefeff" (identifier "uVar5") (+ "+") (number_literal "0xfefefeff")) (& "&") (unary_expression "~uVar5" (~ "~") (identifier "uVar5"))) (& "&") (number_literal "0x80808080")) () ")")) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\nLAB_000311d0:\n    bVar1 = *(byte *)puVar2;\n  }" ({ "{") (labeled_statement "LAB_000311d0:\n    bVar1 = *(byte *)puVar2;" (statement_identifier "LAB_000311d0") (: ":") (expression_statement "bVar1 = *(byte *)puVar2;" (assignment_expression "bVar1 = *(byte *)puVar2" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)puVar2" (* "*") (cast_expression "(byte *)puVar2" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";"))) (} "}")) (else_clause "else {\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" (else "else") (compound_statement "{\n    do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);\n    bVar1 = *(byte *)puVar2;\n  }" ({ "{") (do_statement "do {\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);" (do "do") (compound_statement "{\n      param_3 = param_3 - 4;\n      puVar2 = puVar2 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }\n      uVar5 = uVar6 ^ *puVar2;\n    }" ({ "{") (expression_statement "param_3 = param_3 - 4;" (assignment_expression "param_3 = param_3 - 4" (identifier "param_3") (= "=") (binary_expression "param_3 - 4" (identifier "param_3") (- "-") (number_literal "4"))) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }" (if "if") (parenthesized_expression "(param_3 < 4)" (( "(") (binary_expression "param_3 < 4" (identifier "param_3") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        goto LAB_000311d0;\n      }" ({ "{") (if_statement "if (param_3 == 0) {\n          return (uint *)0x0;\n        }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return (uint *)0x0;\n        }" ({ "{") (return_statement "return (uint *)0x0;" (return "return") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (goto_statement "goto LAB_000311d0;" (goto "goto") (statement_identifier "LAB_000311d0") (; ";")) (} "}"))) (expression_statement "uVar5 = uVar6 ^ *puVar2;" (assignment_expression "uVar5 = uVar6 ^ *puVar2" (identifier "uVar5") (= "=") (binary_expression "uVar6 ^ *puVar2" (identifier "uVar6") (^ "^") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0)" (( "(") (binary_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0" (parenthesized_expression "(uVar5 + 0xfefefeff & ~uVar5 & 0x80808080)" (( "(") (binary_expression "uVar5 + 0xfefefeff & ~uVar5 & 0x80808080" (binary_expression "uVar5 + 0xfefefeff & ~uVar5" (binary_expression "uVar5 + 0xfefefeff" (identifier "uVar5") (+ "+") (number_literal "0xfefefeff")) (& "&") (unary_expression "~uVar5" (~ "~") (identifier "uVar5"))) (& "&") (number_literal "0x80808080")) () ")")) (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "bVar1 = *(byte *)puVar2;" (assignment_expression "bVar1 = *(byte *)puVar2" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)puVar2" (* "*") (cast_expression "(byte *)puVar2" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";")) (} "}")))) (if_statement "if (bVar1 == uVar7) {\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(bVar1 == uVar7)" (( "(") (binary_expression "bVar1 == uVar7" (identifier "bVar1") (== "==") (identifier "uVar7")) () ")")) (compound_statement "{\n    return puVar2;\n  }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "puVar4 = (uint *)((int)puVar2 + param_3);" (assignment_expression "puVar4 = (uint *)((int)puVar2 + param_3)" (identifier "puVar4") (= "=") (cast_expression "(uint *)((int)puVar2 + param_3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + param_3)" (( "(") (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (identifier "param_3")) () ")")))) (; ";")) (do_statement "do {\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  } while (*(byte *)puVar2 != uVar7);" (do "do") (compound_statement "{\n    puVar2 = (uint *)((int)puVar2 + 1);\n    if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }\n  }" ({ "{") (expression_statement "puVar2 = (uint *)((int)puVar2 + 1);" (assignment_expression "puVar2 = (uint *)((int)puVar2 + 1)" (identifier "puVar2") (= "=") (cast_expression "(uint *)((int)puVar2 + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + 1)" (( "(") (binary_expression "(int)puVar2 + 1" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (puVar2 == puVar4) {\n      return (uint *)0x0;\n    }" (if "if") (parenthesized_expression "(puVar2 == puVar4)" (( "(") (binary_expression "puVar2 == puVar4" (identifier "puVar2") (== "==") (identifier "puVar4")) () ")")) (compound_statement "{\n      return (uint *)0x0;\n    }" ({ "{") (return_statement "return (uint *)0x0;" (return "return") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(*(byte *)puVar2 != uVar7)" (( "(") (binary_expression "*(byte *)puVar2 != uVar7" (pointer_expression "*(byte *)puVar2" (* "*") (cast_expression "(byte *)puVar2" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (!= "!=") (identifier "uVar7")) () ")")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

ssize_t function_1(type_1 *fs,char *fmt,...)

{
  type_2 var_8;
  type_3 *var_5;
  int var_2;
  type_3 var_3;
  type_3 *var_9;
  type_3 var_6;
  type_3 var_7;
  type_4 in_a3;
  type_3 var_4;
  type_3 local_res8;
  type_4 local_resc;
  type_5 args;
  
  var_5 = *(type_3 **)PTR___stack_chk_guard_00046cf8;
  var_6 = 0x96;
  local_res8 = var_7;
  local_resc = in_a3;
  do {
    var_2 = var_1(fs,var_6);
    if (var_2 == 0) {
      var_3 = 0xffffffff;
      goto LAB_00031098;
    }
    var_4 = (int)fs->end - (int)fs->p;
    var_7 = 1;
    var_3 = (*(type_6 *)PTR___vsnprintf_chk_00046c70)(fs->p,var_4,1,0xffffffff,fmt,&local_res8);
    var_6 = var_3 + 1;
  } while (var_4 <= var_3);
  fs->p = fs->p + var_3;
LAB_00031098:
  if (var_5 == *(type_3 **)PTR___stack_chk_guard_00046cf8) {
    return var_3;
  }
  (*(type_6 *)PTR___stack_chk_fail_00046cdc)();
  var_3 = var_6 & 0xff;
  if (var_7 == 0) {
    return 0;
  }
  if (((type_3)var_5 & 3) != 0) {
    if (*(type_2 *)var_5 == var_3) {
      return (ssize_t)var_5;
    }
    while( true ) {
      var_7 = var_7 - 1;
      var_5 = (type_3 *)((int)var_5 + 1);
      if (var_7 == 0) {
        return 0;
      }
      if (((type_3)var_5 & 3) == 0) break;
      if (*(type_2 *)var_5 == var_3) {
        return (ssize_t)var_5;
      }
    }
  }
  var_6 = (var_6 & 0xff) << 8 | var_6 & 0xff;
  var_6 = var_6 << 0x10 | var_6;
  if ((var_7 < 4) || (var_4 = var_6 ^ *var_5, (var_4 + 0xfefefeff & ~var_4 & 0x80808080) != 0)) {
LAB_000311d0:
    var_8 = *(type_2 *)var_5;
  }
  else {
    do {
      var_7 = var_7 - 4;
      var_5 = var_5 + 1;
      if (var_7 < 4) {
        if (var_7 == 0) {
          return 0;
        }
        goto LAB_000311d0;
      }
      var_4 = var_6 ^ *var_5;
    } while ((var_4 + 0xfefefeff & ~var_4 & 0x80808080) == 0);
    var_8 = *(type_2 *)var_5;
  }
  if (var_8 == var_3) {
    return (ssize_t)var_5;
  }
  var_9 = (type_3 *)((int)var_5 + var_7);
  do {
    var_5 = (type_3 *)((int)var_5 + 1);
    if (var_5 == var_9) {
      return 0;
    }
  } while (*(type_2 *)var_5 != var_3);
  return (ssize_t)var_5;
}


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

uint * MASKED(int param_1,undefined4 param_2,uint param_3,undefined4 param_4)

{
  byte bVar1;
  uint *puVar2;
  int iVar3;
  uint *puVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  uint *puVar8;
  uint local_res8;
  undefined4 local_resc;
  
  puVar2 = *(uint **)PTR___stack_chk_guard_00046cf8;
  uVar6 = 0x96;
  local_res8 = param_3;
  local_resc = param_4;
  do {
    iVar3 = _argp_fmtstream_ensure(param_1);
    if (iVar3 == 0) {
      puVar4 = (uint *)0xffffffff;
      goto LAB_00031098;
    }
    puVar8 = (uint *)(*(int *)(param_1 + 0x20) - *(int *)(param_1 + 0x1c));
    param_3 = 1;
    puVar4 = (uint *)(*(code *)PTR___vsnprintf_chk_00046c70)
                               (*(int *)(param_1 + 0x1c),puVar8,1,0xffffffff,param_2,&local_res8);
    uVar6 = (int)puVar4 + 1;
  } while (puVar8 <= puVar4);
  *(int *)(param_1 + 0x1c) = *(int *)(param_1 + 0x1c) + (int)puVar4;
LAB_00031098:
  if (puVar2 == *(uint **)PTR___stack_chk_guard_00046cf8) {
    return puVar4;
  }
  (*(code *)PTR___stack_chk_fail_00046cdc)();
  uVar7 = uVar6 & 0xff;
  if (param_3 == 0) {
    return (uint *)0x0;
  }
  if (((uint)puVar2 & 3) != 0) {
    if (*(byte *)puVar2 == uVar7) {
      return puVar2;
    }
    while( true ) {
      param_3 = param_3 - 1;
      puVar2 = (uint *)((int)puVar2 + 1);
      if (param_3 == 0) {
        return (uint *)0x0;
      }
      if (((uint)puVar2 & 3) == 0) break;
      if (*(byte *)puVar2 == uVar7) {
        return puVar2;
      }
    }
  }
  uVar6 = (uVar6 & 0xff) << 8 | uVar6 & 0xff;
  uVar6 = uVar6 << 0x10 | uVar6;
  if ((param_3 < 4) || (uVar5 = uVar6 ^ *puVar2, (uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) != 0)) {
LAB_000311d0:
    bVar1 = *(byte *)puVar2;
  }
  else {
    do {
      param_3 = param_3 - 4;
      puVar2 = puVar2 + 1;
      if (param_3 < 4) {
        if (param_3 == 0) {
          return (uint *)0x0;
        }
        goto LAB_000311d0;
      }
      uVar5 = uVar6 ^ *puVar2;
    } while ((uVar5 + 0xfefefeff & ~uVar5 & 0x80808080) == 0);
    bVar1 = *(byte *)puVar2;
  }
  if (bVar1 == uVar7) {
    return puVar2;
  }
  puVar4 = (uint *)((int)puVar2 + param_3);
  do {
    puVar2 = (uint *)((int)puVar2 + 1);
    if (puVar2 == puVar4) {
      return (uint *)0x0;
    }
  } while (*(byte *)puVar2 != uVar7);
  return puVar2;
}

