
int _argp_fmtstream_ensure(argp_fmtstream *fs,size_t amount)

{
  int iVar1;
  uint uVar2;
  undefined4 *puVar3;
  char *pcVar4;
  char *pcVar5;
  uint uVar6;
  
  if (amount <= (uint)((int)fs->end - (int)fs->p)) {
    return 1;
  }
  _argp_fmtstream_update(fs);
  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(fs->buf,1,(int)fs->p - (int)fs->buf,fs->stream);
  pcVar4 = fs->buf;
  if ((int)fs->p - (int)pcVar4 == iVar1) {
    fs->p = pcVar4;
    fs->point_offs = 0;
    uVar2 = (int)fs->end - (int)pcVar4;
    uVar6 = uVar2 + amount;
    if (uVar2 < amount) {
      if (uVar2 <= uVar6) {
        pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6);
        if (pcVar4 != (char *)0x0) {
          fs->buf = pcVar4;
          fs->end = pcVar4 + uVar6;
          fs->p = pcVar4;
          return 1;
        }
      }
      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();
      *puVar3 = 0xc;
      iVar1 = 0;
    }
    else {
      iVar1 = 1;
    }
  }
  else {
    pcVar5 = fs->p + -iVar1;
    fs->p = pcVar5;
    fs->point_offs = fs->point_offs - iVar1;
    (*(code *)PTR_memmove_00046d0c)(pcVar4,pcVar4 + iVar1,(int)pcVar5 - (int)pcVar4);
    iVar1 = 0;
  }
  return iVar1;
}



undefined4 _argp_fmtstream_ensure(undefined4 *param_1,uint param_2)

{
  int iVar1;
  uint uVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  uint uVar7;
  
  if (param_2 <= (uint)(param_1[8] - param_1[7])) {
    return 1;
  }
  _argp_fmtstream_update();
  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);
  iVar5 = param_1[6];
  if (param_1[7] - iVar5 == iVar1) {
    param_1[7] = iVar5;
    param_1[4] = 0;
    uVar2 = param_1[8] - iVar5;
    uVar7 = uVar2 + param_2;
    if (uVar2 < param_2) {
      if (uVar2 <= uVar7) {
        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);
        if (iVar1 != 0) {
          param_1[6] = iVar1;
          param_1[8] = iVar1 + uVar7;
          param_1[7] = iVar1;
          return 1;
        }
      }
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();
      *puVar4 = 0xc;
      uVar3 = 0;
    }
    else {
      uVar3 = 1;
    }
  }
  else {
    iVar6 = param_1[7] - iVar1;
    param_1[7] = iVar6;
    param_1[4] = param_1[4] - iVar1;
    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);
    uVar3 = 0;
  }
  return uVar3;
}


lui gp,0x2
addiu gp,gp,-0x2664
addu gp,gp,t9
lw v0,0x20(a0)
lw v1,0x1c(a0)
subu v0,v0,v1
sltu v0,v0,a1
bne v0,zero,0x00030ec0
_li v0,0x1
jr ra
_nop
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s1,a1,zero
or s0,a0,zero
lw t9,-0x7c7c(gp)
bal 0x000307cc
_nop
lw gp,0x10(sp)
lw a0,0x18(s0)
lw a2,0x1c(s0)
lw a3,0x0(s0)
subu a2,a2,a0
li a1,0x1
lw t9,-0x7b40(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a2,0x1c(s0)
lw a0,0x18(s0)
subu v1,a2,a0
bne v1,v0,0x00030f58
_addu a1,a0,v0
sw a0,0x1c(s0)
sw zero,0x10(s0)
lw v0,0x20(s0)
subu v0,v0,a0
sltu v1,v0,s1
bne v1,zero,0x00030f88
_addu s1,v0,s1
li v0,0x1
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
subu a2,a2,v0
sw a2,0x1c(s0)
lw v1,0x10(s0)
subu v1,v1,v0
sw v1,0x10(s0)
subu a2,a2,a0
lw t9,-0x7b24(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00030f44
_or v0,zero,zero
sltu v0,s1,v0
beq v0,zero,0x00030fb4
_or a1,s1,zero
lw t9,-0x7bb4(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v1,0xc
sw v1,0x0(v0)
b 0x00030f44
_or v0,zero,zero
lw t9,-0x7b78(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x00030f94
_addu s1,v0,s1
sw v0,0x18(s0)
sw s1,0x20(s0)
sw v0,0x1c(s0)
b 0x00030f44
_li v0,0x1
(translation_unit "undefined4 _argp_fmtstream_ensure(undefined4 *param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  \n  if (param_2 <= (uint)(param_1[8] - param_1[7])) {\n    return 1;\n  }\n  _argp_fmtstream_update();\n  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);\n  iVar5 = param_1[6];\n  if (param_1[7] - iVar5 == iVar1) {\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }\n  else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 _argp_fmtstream_ensure(undefined4 *param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  \n  if (param_2 <= (uint)(param_1[8] - param_1[7])) {\n    return 1;\n  }\n  _argp_fmtstream_update();\n  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);\n  iVar5 = param_1[6];\n  if (param_1[7] - iVar5 == iVar1) {\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }\n  else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "_argp_fmtstream_ensure(undefined4 *param_1,uint param_2)" identifier (parameter_list "(undefined4 *param_1,uint param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  \n  if (param_2 <= (uint)(param_1[8] - param_1[7])) {\n    return 1;\n  }\n  _argp_fmtstream_update();\n  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);\n  iVar5 = param_1[6];\n  if (param_1[7] - iVar5 == iVar1) {\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }\n  else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (if_statement "if (param_2 <= (uint)(param_1[8] - param_1[7])) {\n    return 1;\n  }" if (parenthesized_expression "(param_2 <= (uint)(param_1[8] - param_1[7]))" ( (binary_expression "param_2 <= (uint)(param_1[8] - param_1[7])" identifier <= (call_expression "(uint)(param_1[8] - param_1[7])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[8] - param_1[7])" ( (binary_expression "param_1[8] - param_1[7]" (subscript_expression "param_1[8]" identifier [ number_literal ]) - (subscript_expression "param_1[7]" identifier [ number_literal ])) )))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "_argp_fmtstream_update();" (call_expression "_argp_fmtstream_update()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);" (assignment_expression "iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1)" identifier = (call_expression "(*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_00046cf0)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_00046cf0" * (cast_expression "(code *)PTR_fwrite_unlocked_00046cf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[6],1,param_1[7] - param_1[6],*param_1)" ( (subscript_expression "param_1[6]" identifier [ number_literal ]) , number_literal , (binary_expression "param_1[7] - param_1[6]" (subscript_expression "param_1[7]" identifier [ number_literal ]) - (subscript_expression "param_1[6]" identifier [ number_literal ])) , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "iVar5 = param_1[6];" (assignment_expression "iVar5 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (if_statement "if (param_1[7] - iVar5 == iVar1) {\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }\n  else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }" if (parenthesized_expression "(param_1[7] - iVar5 == iVar1)" ( (binary_expression "param_1[7] - iVar5 == iVar1" (binary_expression "param_1[7] - iVar5" (subscript_expression "param_1[7]" identifier [ number_literal ]) - identifier) == identifier) )) (compound_statement "{\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }" { (expression_statement "param_1[7] = iVar5;" (assignment_expression "param_1[7] = iVar5" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = param_1[8] - iVar5;" (assignment_expression "uVar2 = param_1[8] - iVar5" identifier = (binary_expression "param_1[8] - iVar5" (subscript_expression "param_1[8]" identifier [ number_literal ]) - identifier)) ;) (expression_statement "uVar7 = uVar2 + param_2;" (assignment_expression "uVar7 = uVar2 + param_2" identifier = (binary_expression "uVar2 + param_2" identifier + identifier)) ;) (if_statement "if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }" if (parenthesized_expression "(uVar2 < param_2)" ( (binary_expression "uVar2 < param_2" identifier < identifier) )) (compound_statement "{\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }" { (if_statement "if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }" if (parenthesized_expression "(uVar2 <= uVar7)" ( (binary_expression "uVar2 <= uVar7" identifier <= identifier) )) (compound_statement "{\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }" { (expression_statement "iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);" (assignment_expression "iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7)" identifier = (call_expression "(*(code *)PTR_realloc_00046cb8)(iVar5,uVar7)" (parenthesized_expression "(*(code *)PTR_realloc_00046cb8)" ( (pointer_expression "*(code *)PTR_realloc_00046cb8" * (cast_expression "(code *)PTR_realloc_00046cb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,uVar7)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }" { (expression_statement "param_1[6] = iVar1;" (assignment_expression "param_1[6] = iVar1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[8] = iVar1 + uVar7;" (assignment_expression "param_1[8] = iVar1 + uVar7" (subscript_expression "param_1[8]" identifier [ number_literal ]) = (binary_expression "iVar1 + uVar7" identifier + identifier)) ;) (expression_statement "param_1[7] = iVar1;" (assignment_expression "param_1[7] = iVar1" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00046c7c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00046c7c)()" (parenthesized_expression "(*(code *)PTR___errno_location_00046c7c)" ( (pointer_expression "*(code *)PTR___errno_location_00046c7c" * (cast_expression "(code *)PTR___errno_location_00046c7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar4 = 0xc;" (assignment_expression "*puVar4 = 0xc" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = 1;\n    }" else (compound_statement "{\n      uVar3 = 1;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }" else (compound_statement "{\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }" { (expression_statement "iVar6 = param_1[7] - iVar1;" (assignment_expression "iVar6 = param_1[7] - iVar1" identifier = (binary_expression "param_1[7] - iVar1" (subscript_expression "param_1[7]" identifier [ number_literal ]) - identifier)) ;) (expression_statement "param_1[7] = iVar6;" (assignment_expression "param_1[7] = iVar6" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = param_1[4] - iVar1;" (assignment_expression "param_1[4] = param_1[4] - iVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "param_1[4] - iVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) - identifier)) ;) (expression_statement "(*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);" (call_expression "(*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5)" (parenthesized_expression "(*(code *)PTR_memmove_00046d0c)" ( (pointer_expression "*(code *)PTR_memmove_00046d0c" * (cast_expression "(code *)PTR_memmove_00046d0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,iVar5 + iVar1,iVar6 - iVar5)" ( identifier , (binary_expression "iVar5 + iVar1" identifier + identifier) , (binary_expression "iVar6 - iVar5" identifier - identifier) ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "int _argp_fmtstream_ensure(argp_fmtstream *fs,size_t amount)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  uint uVar6;\n  \n  if (amount <= (uint)((int)fs->end - (int)fs->p)) {\n    return 1;\n  }\n  _argp_fmtstream_update(fs);\n  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(fs->buf,1,(int)fs->p - (int)fs->buf,fs->stream);\n  pcVar4 = fs->buf;\n  if ((int)fs->p - (int)pcVar4 == iVar1) {\n    fs->p = pcVar4;\n    fs->point_offs = 0;\n    uVar2 = (int)fs->end - (int)pcVar4;\n    uVar6 = uVar2 + amount;\n    if (uVar2 < amount) {\n      if (uVar2 <= uVar6) {\n        pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6);\n        if (pcVar4 != (char *)0x0) {\n          fs->buf = pcVar4;\n          fs->end = pcVar4 + uVar6;\n          fs->p = pcVar4;\n          return 1;\n        }\n      }\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar3 = 0xc;\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 1;\n    }\n  }\n  else {\n    pcVar5 = fs->p + -iVar1;\n    fs->p = pcVar5;\n    fs->point_offs = fs->point_offs - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(pcVar4,pcVar4 + iVar1,(int)pcVar5 - (int)pcVar4);\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int _argp_fmtstream_ensure(argp_fmtstream *fs,size_t amount)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  uint uVar6;\n  \n  if (amount <= (uint)((int)fs->end - (int)fs->p)) {\n    return 1;\n  }\n  _argp_fmtstream_update(fs);\n  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(fs->buf,1,(int)fs->p - (int)fs->buf,fs->stream);\n  pcVar4 = fs->buf;\n  if ((int)fs->p - (int)pcVar4 == iVar1) {\n    fs->p = pcVar4;\n    fs->point_offs = 0;\n    uVar2 = (int)fs->end - (int)pcVar4;\n    uVar6 = uVar2 + amount;\n    if (uVar2 < amount) {\n      if (uVar2 <= uVar6) {\n        pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6);\n        if (pcVar4 != (char *)0x0) {\n          fs->buf = pcVar4;\n          fs->end = pcVar4 + uVar6;\n          fs->p = pcVar4;\n          return 1;\n        }\n      }\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar3 = 0xc;\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 1;\n    }\n  }\n  else {\n    pcVar5 = fs->p + -iVar1;\n    fs->p = pcVar5;\n    fs->point_offs = fs->point_offs - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(pcVar4,pcVar4 + iVar1,(int)pcVar5 - (int)pcVar4);\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "_argp_fmtstream_ensure(argp_fmtstream *fs,size_t amount)" identifier (parameter_list "(argp_fmtstream *fs,size_t amount)" ( (parameter_declaration "argp_fmtstream *fs" type_identifier (pointer_declarator "*fs" * identifier)) , (parameter_declaration "size_t amount" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  uint uVar6;\n  \n  if (amount <= (uint)((int)fs->end - (int)fs->p)) {\n    return 1;\n  }\n  _argp_fmtstream_update(fs);\n  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(fs->buf,1,(int)fs->p - (int)fs->buf,fs->stream);\n  pcVar4 = fs->buf;\n  if ((int)fs->p - (int)pcVar4 == iVar1) {\n    fs->p = pcVar4;\n    fs->point_offs = 0;\n    uVar2 = (int)fs->end - (int)pcVar4;\n    uVar6 = uVar2 + amount;\n    if (uVar2 < amount) {\n      if (uVar2 <= uVar6) {\n        pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6);\n        if (pcVar4 != (char *)0x0) {\n          fs->buf = pcVar4;\n          fs->end = pcVar4 + uVar6;\n          fs->p = pcVar4;\n          return 1;\n        }\n      }\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar3 = 0xc;\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 1;\n    }\n  }\n  else {\n    pcVar5 = fs->p + -iVar1;\n    fs->p = pcVar5;\n    fs->point_offs = fs->point_offs - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(pcVar4,pcVar4 + iVar1,(int)pcVar5 - (int)pcVar4);\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (if_statement "if (amount <= (uint)((int)fs->end - (int)fs->p)) {\n    return 1;\n  }" if (parenthesized_expression "(amount <= (uint)((int)fs->end - (int)fs->p))" ( (binary_expression "amount <= (uint)((int)fs->end - (int)fs->p)" identifier <= (call_expression "(uint)((int)fs->end - (int)fs->p)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)fs->end - (int)fs->p)" ( (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))) )))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "_argp_fmtstream_update(fs);" (call_expression "_argp_fmtstream_update(fs)" identifier (argument_list "(fs)" ( identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(fs->buf,1,(int)fs->p - (int)fs->buf,fs->stream);" (assignment_expression "iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(fs->buf,1,(int)fs->p - (int)fs->buf,fs->stream)" identifier = (call_expression "(*(code *)PTR_fwrite_unlocked_00046cf0)(fs->buf,1,(int)fs->p - (int)fs->buf,fs->stream)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_00046cf0)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_00046cf0" * (cast_expression "(code *)PTR_fwrite_unlocked_00046cf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fs->buf,1,(int)fs->p - (int)fs->buf,fs->stream)" ( (field_expression "fs->buf" identifier -> field_identifier) , number_literal , (binary_expression "(int)fs->p - (int)fs->buf" (cast_expression "(int)fs->p" ( (type_descriptor "int" primitive_type) ) (field_expression "fs->p" identifier -> field_identifier)) - (cast_expression "(int)fs->buf" ( (type_descriptor "int" primitive_type) ) (field_expression "fs->buf" identifier -> field_identifier))) , (field_expression "fs->stream" identifier -> field_identifier) )))) ;) (expression_statement "pcVar4 = fs->buf;" (assignment_expression "pcVar4 = fs->buf" identifier = (field_expression "fs->buf" identifier -> field_identifier)) ;) (if_statement "if ((int)fs->p - (int)pcVar4 == iVar1) {\n    fs->p = pcVar4;\n    fs->point_offs = 0;\n    uVar2 = (int)fs->end - (int)pcVar4;\n    uVar6 = uVar2 + amount;\n    if (uVar2 < amount) {\n      if (uVar2 <= uVar6) {\n        pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6);\n        if (pcVar4 != (char *)0x0) {\n          fs->buf = pcVar4;\n          fs->end = pcVar4 + uVar6;\n          fs->p = pcVar4;\n          return 1;\n        }\n      }\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar3 = 0xc;\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 1;\n    }\n  }\n  else {\n    pcVar5 = fs->p + -iVar1;\n    fs->p = pcVar5;\n    fs->point_offs = fs->point_offs - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(pcVar4,pcVar4 + iVar1,(int)pcVar5 - (int)pcVar4);\n    iVar1 = 0;\n  }" if (parenthesized_expression "((int)fs->p - (int)pcVar4 == iVar1)" ( (binary_expression "(int)fs->p - (int)pcVar4 == iVar1" (binary_expression "(int)fs->p - (int)pcVar4" (cast_expression "(int)fs->p" ( (type_descriptor "int" primitive_type) ) (field_expression "fs->p" identifier -> field_identifier)) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) == identifier) )) (compound_statement "{\n    fs->p = pcVar4;\n    fs->point_offs = 0;\n    uVar2 = (int)fs->end - (int)pcVar4;\n    uVar6 = uVar2 + amount;\n    if (uVar2 < amount) {\n      if (uVar2 <= uVar6) {\n        pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6);\n        if (pcVar4 != (char *)0x0) {\n          fs->buf = pcVar4;\n          fs->end = pcVar4 + uVar6;\n          fs->p = pcVar4;\n          return 1;\n        }\n      }\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar3 = 0xc;\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 1;\n    }\n  }" { (expression_statement "fs->p = pcVar4;" (assignment_expression "fs->p = pcVar4" (field_expression "fs->p" identifier -> field_identifier) = identifier) ;) (expression_statement "fs->point_offs = 0;" (assignment_expression "fs->point_offs = 0" (field_expression "fs->point_offs" identifier -> field_identifier) = number_literal) ;) (expression_statement "uVar2 = (int)fs->end - (int)pcVar4;" (assignment_expression "uVar2 = (int)fs->end - (int)pcVar4" identifier = (binary_expression "(int)fs->end - (int)pcVar4" (cast_expression "(int)fs->end" ( (type_descriptor "int" primitive_type) ) (field_expression "fs->end" identifier -> field_identifier)) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "uVar6 = uVar2 + amount;" (assignment_expression "uVar6 = uVar2 + amount" identifier = (binary_expression "uVar2 + amount" identifier + identifier)) ;) (if_statement "if (uVar2 < amount) {\n      if (uVar2 <= uVar6) {\n        pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6);\n        if (pcVar4 != (char *)0x0) {\n          fs->buf = pcVar4;\n          fs->end = pcVar4 + uVar6;\n          fs->p = pcVar4;\n          return 1;\n        }\n      }\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar3 = 0xc;\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 1;\n    }" if (parenthesized_expression "(uVar2 < amount)" ( (binary_expression "uVar2 < amount" identifier < identifier) )) (compound_statement "{\n      if (uVar2 <= uVar6) {\n        pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6);\n        if (pcVar4 != (char *)0x0) {\n          fs->buf = pcVar4;\n          fs->end = pcVar4 + uVar6;\n          fs->p = pcVar4;\n          return 1;\n        }\n      }\n      puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar3 = 0xc;\n      iVar1 = 0;\n    }" { (if_statement "if (uVar2 <= uVar6) {\n        pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6);\n        if (pcVar4 != (char *)0x0) {\n          fs->buf = pcVar4;\n          fs->end = pcVar4 + uVar6;\n          fs->p = pcVar4;\n          return 1;\n        }\n      }" if (parenthesized_expression "(uVar2 <= uVar6)" ( (binary_expression "uVar2 <= uVar6" identifier <= identifier) )) (compound_statement "{\n        pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6);\n        if (pcVar4 != (char *)0x0) {\n          fs->buf = pcVar4;\n          fs->end = pcVar4 + uVar6;\n          fs->p = pcVar4;\n          return 1;\n        }\n      }" { (expression_statement "pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6)" identifier = (cast_expression "(char *)(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_realloc_00046cb8)(pcVar4,uVar6)" (parenthesized_expression "(*(code *)PTR_realloc_00046cb8)" ( (pointer_expression "*(code *)PTR_realloc_00046cb8" * (cast_expression "(code *)PTR_realloc_00046cb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,uVar6)" ( identifier , identifier ))))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n          fs->buf = pcVar4;\n          fs->end = pcVar4 + uVar6;\n          fs->p = pcVar4;\n          return 1;\n        }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          fs->buf = pcVar4;\n          fs->end = pcVar4 + uVar6;\n          fs->p = pcVar4;\n          return 1;\n        }" { (expression_statement "fs->buf = pcVar4;" (assignment_expression "fs->buf = pcVar4" (field_expression "fs->buf" identifier -> field_identifier) = identifier) ;) (expression_statement "fs->end = pcVar4 + uVar6;" (assignment_expression "fs->end = pcVar4 + uVar6" (field_expression "fs->end" identifier -> field_identifier) = (binary_expression "pcVar4 + uVar6" identifier + identifier)) ;) (expression_statement "fs->p = pcVar4;" (assignment_expression "fs->p = pcVar4" (field_expression "fs->p" identifier -> field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00046c7c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00046c7c)()" (parenthesized_expression "(*(code *)PTR___errno_location_00046c7c)" ( (pointer_expression "*(code *)PTR___errno_location_00046c7c" * (cast_expression "(code *)PTR___errno_location_00046c7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 0xc;" (assignment_expression "*puVar3 = 0xc" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = 1;\n    }" else (compound_statement "{\n      iVar1 = 1;\n    }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n    pcVar5 = fs->p + -iVar1;\n    fs->p = pcVar5;\n    fs->point_offs = fs->point_offs - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(pcVar4,pcVar4 + iVar1,(int)pcVar5 - (int)pcVar4);\n    iVar1 = 0;\n  }" else (compound_statement "{\n    pcVar5 = fs->p + -iVar1;\n    fs->p = pcVar5;\n    fs->point_offs = fs->point_offs - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(pcVar4,pcVar4 + iVar1,(int)pcVar5 - (int)pcVar4);\n    iVar1 = 0;\n  }" { (expression_statement "pcVar5 = fs->p + -iVar1;" (assignment_expression "pcVar5 = fs->p + -iVar1" identifier = (binary_expression "fs->p + -iVar1" (field_expression "fs->p" identifier -> field_identifier) + (unary_expression "-iVar1" - identifier))) ;) (expression_statement "fs->p = pcVar5;" (assignment_expression "fs->p = pcVar5" (field_expression "fs->p" identifier -> field_identifier) = identifier) ;) (expression_statement "fs->point_offs = fs->point_offs - iVar1;" (assignment_expression "fs->point_offs = fs->point_offs - iVar1" (field_expression "fs->point_offs" identifier -> field_identifier) = (binary_expression "fs->point_offs - iVar1" (field_expression "fs->point_offs" identifier -> field_identifier) - identifier)) ;) (expression_statement "(*(code *)PTR_memmove_00046d0c)(pcVar4,pcVar4 + iVar1,(int)pcVar5 - (int)pcVar4);" (call_expression "(*(code *)PTR_memmove_00046d0c)(pcVar4,pcVar4 + iVar1,(int)pcVar5 - (int)pcVar4)" (parenthesized_expression "(*(code *)PTR_memmove_00046d0c)" ( (pointer_expression "*(code *)PTR_memmove_00046d0c" * (cast_expression "(code *)PTR_memmove_00046d0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,pcVar4 + iVar1,(int)pcVar5 - (int)pcVar4)" ( identifier , (binary_expression "pcVar4 + iVar1" identifier + identifier) , (binary_expression "(int)pcVar5 - (int)pcVar4" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 _argp_fmtstream_ensure(undefined4 *param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  \n  if (param_2 <= (uint)(param_1[8] - param_1[7])) {\n    return 1;\n  }\n  _argp_fmtstream_update();\n  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);\n  iVar5 = param_1[6];\n  if (param_1[7] - iVar5 == iVar1) {\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }\n  else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 _argp_fmtstream_ensure(undefined4 *param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  \n  if (param_2 <= (uint)(param_1[8] - param_1[7])) {\n    return 1;\n  }\n  _argp_fmtstream_update();\n  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);\n  iVar5 = param_1[6];\n  if (param_1[7] - iVar5 == iVar1) {\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }\n  else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "_argp_fmtstream_ensure(undefined4 *param_1,uint param_2)" identifier (parameter_list "(undefined4 *param_1,uint param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  \n  if (param_2 <= (uint)(param_1[8] - param_1[7])) {\n    return 1;\n  }\n  _argp_fmtstream_update();\n  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);\n  iVar5 = param_1[6];\n  if (param_1[7] - iVar5 == iVar1) {\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }\n  else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (if_statement "if (param_2 <= (uint)(param_1[8] - param_1[7])) {\n    return 1;\n  }" if (parenthesized_expression "(param_2 <= (uint)(param_1[8] - param_1[7]))" ( (binary_expression "param_2 <= (uint)(param_1[8] - param_1[7])" identifier <= (call_expression "(uint)(param_1[8] - param_1[7])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[8] - param_1[7])" ( (binary_expression "param_1[8] - param_1[7]" (subscript_expression "param_1[8]" identifier [ number_literal ]) - (subscript_expression "param_1[7]" identifier [ number_literal ])) )))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "_argp_fmtstream_update();" (call_expression "_argp_fmtstream_update()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);" (assignment_expression "iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1)" identifier = (call_expression "(*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_00046cf0)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_00046cf0" * (cast_expression "(code *)PTR_fwrite_unlocked_00046cf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[6],1,param_1[7] - param_1[6],*param_1)" ( (subscript_expression "param_1[6]" identifier [ number_literal ]) , number_literal , (binary_expression "param_1[7] - param_1[6]" (subscript_expression "param_1[7]" identifier [ number_literal ]) - (subscript_expression "param_1[6]" identifier [ number_literal ])) , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "iVar5 = param_1[6];" (assignment_expression "iVar5 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (if_statement "if (param_1[7] - iVar5 == iVar1) {\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }\n  else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }" if (parenthesized_expression "(param_1[7] - iVar5 == iVar1)" ( (binary_expression "param_1[7] - iVar5 == iVar1" (binary_expression "param_1[7] - iVar5" (subscript_expression "param_1[7]" identifier [ number_literal ]) - identifier) == identifier) )) (compound_statement "{\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }" { (expression_statement "param_1[7] = iVar5;" (assignment_expression "param_1[7] = iVar5" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = param_1[8] - iVar5;" (assignment_expression "uVar2 = param_1[8] - iVar5" identifier = (binary_expression "param_1[8] - iVar5" (subscript_expression "param_1[8]" identifier [ number_literal ]) - identifier)) ;) (expression_statement "uVar7 = uVar2 + param_2;" (assignment_expression "uVar7 = uVar2 + param_2" identifier = (binary_expression "uVar2 + param_2" identifier + identifier)) ;) (if_statement "if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }" if (parenthesized_expression "(uVar2 < param_2)" ( (binary_expression "uVar2 < param_2" identifier < identifier) )) (compound_statement "{\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }" { (if_statement "if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }" if (parenthesized_expression "(uVar2 <= uVar7)" ( (binary_expression "uVar2 <= uVar7" identifier <= identifier) )) (compound_statement "{\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }" { (expression_statement "iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);" (assignment_expression "iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7)" identifier = (call_expression "(*(code *)PTR_realloc_00046cb8)(iVar5,uVar7)" (parenthesized_expression "(*(code *)PTR_realloc_00046cb8)" ( (pointer_expression "*(code *)PTR_realloc_00046cb8" * (cast_expression "(code *)PTR_realloc_00046cb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,uVar7)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }" { (expression_statement "param_1[6] = iVar1;" (assignment_expression "param_1[6] = iVar1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[8] = iVar1 + uVar7;" (assignment_expression "param_1[8] = iVar1 + uVar7" (subscript_expression "param_1[8]" identifier [ number_literal ]) = (binary_expression "iVar1 + uVar7" identifier + identifier)) ;) (expression_statement "param_1[7] = iVar1;" (assignment_expression "param_1[7] = iVar1" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00046c7c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00046c7c)()" (parenthesized_expression "(*(code *)PTR___errno_location_00046c7c)" ( (pointer_expression "*(code *)PTR___errno_location_00046c7c" * (cast_expression "(code *)PTR___errno_location_00046c7c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar4 = 0xc;" (assignment_expression "*puVar4 = 0xc" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = 1;\n    }" else (compound_statement "{\n      uVar3 = 1;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }))) }) (else_clause "else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }" else (compound_statement "{\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }" { (expression_statement "iVar6 = param_1[7] - iVar1;" (assignment_expression "iVar6 = param_1[7] - iVar1" identifier = (binary_expression "param_1[7] - iVar1" (subscript_expression "param_1[7]" identifier [ number_literal ]) - identifier)) ;) (expression_statement "param_1[7] = iVar6;" (assignment_expression "param_1[7] = iVar6" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = param_1[4] - iVar1;" (assignment_expression "param_1[4] = param_1[4] - iVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "param_1[4] - iVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) - identifier)) ;) (expression_statement "(*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);" (call_expression "(*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5)" (parenthesized_expression "(*(code *)PTR_memmove_00046d0c)" ( (pointer_expression "*(code *)PTR_memmove_00046d0c" * (cast_expression "(code *)PTR_memmove_00046d0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,iVar5 + iVar1,iVar6 - iVar5)" ( identifier , (binary_expression "iVar5 + iVar1" identifier + identifier) , (binary_expression "iVar6 - iVar5" identifier - identifier) ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) )))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT , (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return 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 ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + IDENT) , (binary_expression IDENT - IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 _argp_fmtstream_ensure(undefined4 *param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  \n  if (param_2 <= (uint)(param_1[8] - param_1[7])) {\n    return 1;\n  }\n  _argp_fmtstream_update();\n  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);\n  iVar5 = param_1[6];\n  if (param_1[7] - iVar5 == iVar1) {\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }\n  else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "_argp_fmtstream_ensure(undefined4 *param_1,uint param_2)" (identifier "_argp_fmtstream_ensure") (parameter_list "(undefined4 *param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  \n  if (param_2 <= (uint)(param_1[8] - param_1[7])) {\n    return 1;\n  }\n  _argp_fmtstream_update();\n  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);\n  iVar5 = param_1[6];\n  if (param_1[7] - iVar5 == iVar1) {\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }\n  else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (if_statement "if (param_2 <= (uint)(param_1[8] - param_1[7])) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(param_2 <= (uint)(param_1[8] - param_1[7]))" (( "(") (binary_expression "param_2 <= (uint)(param_1[8] - param_1[7])" (identifier "param_2") (<= "<=") (call_expression "(uint)(param_1[8] - param_1[7])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[8] - param_1[7])" (( "(") (binary_expression "param_1[8] - param_1[7]" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (- "-") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) () ")")))) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "_argp_fmtstream_update();" (call_expression "_argp_fmtstream_update()" (identifier "_argp_fmtstream_update") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);" (assignment_expression "iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_00046cf0)" (( "(") (pointer_expression "*(code *)PTR_fwrite_unlocked_00046cf0" (* "*") (cast_expression "(code *)PTR_fwrite_unlocked_00046cf0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fwrite_unlocked_00046cf0"))) () ")")) (argument_list "(param_1[6],1,param_1[7] - param_1[6],*param_1)" (( "(") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (, ",") (number_literal "1") (, ",") (binary_expression "param_1[7] - param_1[6]" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (- "-") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "iVar5 = param_1[6];" (assignment_expression "iVar5 = param_1[6]" (identifier "iVar5") (= "=") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (if_statement "if (param_1[7] - iVar5 == iVar1) {\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }\n  else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }" (if "if") (parenthesized_expression "(param_1[7] - iVar5 == iVar1)" (( "(") (binary_expression "param_1[7] - iVar5 == iVar1" (binary_expression "param_1[7] - iVar5" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (- "-") (identifier "iVar5")) (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n    param_1[7] = iVar5;\n    param_1[4] = 0;\n    uVar2 = param_1[8] - iVar5;\n    uVar7 = uVar2 + param_2;\n    if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }\n  }" ({ "{") (expression_statement "param_1[7] = iVar5;" (assignment_expression "param_1[7] = iVar5" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = param_1[8] - iVar5;" (assignment_expression "uVar2 = param_1[8] - iVar5" (identifier "uVar2") (= "=") (binary_expression "param_1[8] - iVar5" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "uVar7 = uVar2 + param_2;" (assignment_expression "uVar7 = uVar2 + param_2" (identifier "uVar7") (= "=") (binary_expression "uVar2 + param_2" (identifier "uVar2") (+ "+") (identifier "param_2"))) (; ";")) (if_statement "if (uVar2 < param_2) {\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }\n    else {\n      uVar3 = 1;\n    }" (if "if") (parenthesized_expression "(uVar2 < param_2)" (( "(") (binary_expression "uVar2 < param_2" (identifier "uVar2") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }\n      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();\n      *puVar4 = 0xc;\n      uVar3 = 0;\n    }" ({ "{") (if_statement "if (uVar2 <= uVar7) {\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }" (if "if") (parenthesized_expression "(uVar2 <= uVar7)" (( "(") (binary_expression "uVar2 <= uVar7" (identifier "uVar2") (<= "<=") (identifier "uVar7")) () ")")) (compound_statement "{\n        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);\n        if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }\n      }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);" (assignment_expression "iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_realloc_00046cb8)(iVar5,uVar7)" (parenthesized_expression "(*(code *)PTR_realloc_00046cb8)" (( "(") (pointer_expression "*(code *)PTR_realloc_00046cb8" (* "*") (cast_expression "(code *)PTR_realloc_00046cb8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_00046cb8"))) () ")")) (argument_list "(iVar5,uVar7)" (( "(") (identifier "iVar5") (, ",") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          param_1[6] = iVar1;\n          param_1[8] = iVar1 + uVar7;\n          param_1[7] = iVar1;\n          return 1;\n        }" ({ "{") (expression_statement "param_1[6] = iVar1;" (assignment_expression "param_1[6] = iVar1" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "param_1[8] = iVar1 + uVar7;" (assignment_expression "param_1[8] = iVar1 + uVar7" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (binary_expression "iVar1 + uVar7" (identifier "iVar1") (+ "+") (identifier "uVar7"))) (; ";")) (expression_statement "param_1[7] = iVar1;" (assignment_expression "param_1[7] = iVar1" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)()" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00046c7c)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00046c7c)()" (parenthesized_expression "(*(code *)PTR___errno_location_00046c7c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00046c7c" (* "*") (cast_expression "(code *)PTR___errno_location_00046c7c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00046c7c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar4 = 0xc;" (assignment_expression "*puVar4 = 0xc" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0xc")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = 1;\n    }" (else "else") (compound_statement "{\n      uVar3 = 1;\n    }" ({ "{") (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }" (else "else") (compound_statement "{\n    iVar6 = param_1[7] - iVar1;\n    param_1[7] = iVar6;\n    param_1[4] = param_1[4] - iVar1;\n    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "iVar6 = param_1[7] - iVar1;" (assignment_expression "iVar6 = param_1[7] - iVar1" (identifier "iVar6") (= "=") (binary_expression "param_1[7] - iVar1" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (- "-") (identifier "iVar1"))) (; ";")) (expression_statement "param_1[7] = iVar6;" (assignment_expression "param_1[7] = iVar6" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "param_1[4] = param_1[4] - iVar1;" (assignment_expression "param_1[4] = param_1[4] - iVar1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "param_1[4] - iVar1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (- "-") (identifier "iVar1"))) (; ";")) (expression_statement "(*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);" (call_expression "(*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5)" (parenthesized_expression "(*(code *)PTR_memmove_00046d0c)" (( "(") (pointer_expression "*(code *)PTR_memmove_00046d0c" (* "*") (cast_expression "(code *)PTR_memmove_00046d0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memmove_00046d0c"))) () ")")) (argument_list "(iVar5,iVar5 + iVar1,iVar6 - iVar5)" (( "(") (identifier "iVar5") (, ",") (binary_expression "iVar5 + iVar1" (identifier "iVar5") (+ "+") (identifier "iVar1")) (, ",") (binary_expression "iVar6 - iVar5" (identifier "iVar6") (- "-") (identifier "iVar5")) () ")"))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal) (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (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))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

undefined4 MASKED(undefined4 *param_1,uint param_2)

{
  int iVar1;
  uint uVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  uint uVar7;
  
  if (param_2 <= (uint)(param_1[8] - param_1[7])) {
    return 1;
  }
  _argp_fmtstream_update();
  iVar1 = (*(code *)PTR_fwrite_unlocked_00046cf0)(param_1[6],1,param_1[7] - param_1[6],*param_1);
  iVar5 = param_1[6];
  if (param_1[7] - iVar5 == iVar1) {
    param_1[7] = iVar5;
    param_1[4] = 0;
    uVar2 = param_1[8] - iVar5;
    uVar7 = uVar2 + param_2;
    if (uVar2 < param_2) {
      if (uVar2 <= uVar7) {
        iVar1 = (*(code *)PTR_realloc_00046cb8)(iVar5,uVar7);
        if (iVar1 != 0) {
          param_1[6] = iVar1;
          param_1[8] = iVar1 + uVar7;
          param_1[7] = iVar1;
          return 1;
        }
      }
      puVar4 = (undefined4 *)(*(code *)PTR___errno_location_00046c7c)();
      *puVar4 = 0xc;
      uVar3 = 0;
    }
    else {
      uVar3 = 1;
    }
  }
  else {
    iVar6 = param_1[7] - iVar1;
    param_1[7] = iVar6;
    param_1[4] = param_1[4] - iVar1;
    (*(code *)PTR_memmove_00046d0c)(iVar5,iVar5 + iVar1,iVar6 - iVar5);
    uVar3 = 0;
  }
  return uVar3;
}

