
void format_user_or_group(char *name,ulong id,int width)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined1 *puVar4;
  int iVar5;
  
  puVar1 = PTR_stdout_000494fc;
  if (name != (char *)0x0) {
    iVar2 = gnu_mbswidth(name,0);
    iVar2 = width - iVar2;
    if (iVar2 < 0) {
      iVar2 = 0;
    }
    (*(code *)PTR_fputs_unlocked_0004964c)(name,*(undefined4 *)puVar1);
    iVar3 = (*(code *)PTR_strlen_0004953c)(name);
    iVar3 = iVar2 + iVar3;
    do {
      iVar5 = *(int *)puVar1;
      puVar4 = *(undefined1 **)(iVar5 + 0x14);
      if (puVar4 < *(undefined1 **)(iVar5 + 0x18)) {
        *(undefined1 **)(iVar5 + 0x14) = puVar4 + 1;
        *puVar4 = 0x20;
      }
      else {
        (*(code *)PTR___overflow_000494d4)(iVar5,0x20);
      }
      iVar2 = iVar2 + -1;
    } while (iVar2 != -1);
    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar3;
    return;
  }
  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,width,id);
  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + width;
  return;
}



void FUN_00016d74(int param_1,undefined4 param_2,int param_3)

{
  undefined *puVar1;
  int iVar2;
  undefined1 *puVar3;
  int iVar4;
  
  puVar1 = PTR_stdout_000494fc;
  if (param_1 != 0) {
    iVar2 = gnu_mbswidth(param_1,0);
    param_3 = param_3 - iVar2;
    if (param_3 < 0) {
      param_3 = 0;
    }
    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);
    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);
    iVar2 = param_3 + iVar2;
    do {
      iVar4 = *(int *)puVar1;
      puVar3 = *(undefined1 **)(iVar4 + 0x14);
      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {
        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;
        *puVar3 = 0x20;
      }
      else {
        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);
      }
      param_3 = param_3 + -1;
    } while (param_3 != -1);
    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;
    return;
  }
  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);
  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;
  return;
}


lui gp,0x4
addiu gp,gp,-0x5b94
addu gp,gp,t9
addiu sp,sp,-0x30
sw gp,0x10(sp)
sw s4,0x28(sp)
or s4,a2,zero
sw ra,0x2c(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq a0,zero,0x00016e6c
_sw s0,0x18(sp)
lw t9,-0x7f98(gp)
or a1,zero,zero
or s2,a0,zero
lw s1,-0x7ce4(gp)
bal 0x00023a4c
_li s3,0x20
or a0,s2,zero
lw gp,0x10(sp)
subu s0,s4,v0
lw a1,0x0(s1)
slti v0,s0,0x0
lw t9,-0x7b94(gp)
jalr t9
_movn s0,zero,v0
or a0,s2,zero
lw gp,0x10(sp)
lw t9,-0x7ca4(gp)
jalr t9
_li s2,-0x1
lw gp,0x10(sp)
addu s4,s0,v0
lw a0,0x0(s1)
lw v1,0x14(a0)
lw v0,0x18(a0)
sltu v0,v1,v0
beq v0,zero,0x00016e58
_addiu a1,v1,0x1
sw a1,0x14(a0)
sb s3,0x0(v1)
addiu s0,s0,-0x1
bne s0,s2,0x00016dfc
_lw v0,-0x7fd8(gp)
lw ra,0x2c(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s0,-0x5af8(v0)
lw s1,0x1c(sp)
addiu s0,s0,0x1
addu s0,s0,s4
lw s4,0x28(sp)
sw s0,-0x5af8(v0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7d0c(gp)
jalr t9
_li a1,0x20
b 0x00016e1c
_lw gp,0x10(sp)
or a3,a1,zero
lw a1,-0x7fc8(gp)
lw t9,-0x7ce8(gp)
li a0,0x1
jalr t9
_addiu a1,a1,0x3dc8
lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw v0,-0x7fd8(gp)
lw s1,0x1c(sp)
lw s0,-0x5af8(v0)
addiu s0,s0,0x1
addu s0,s0,s4
lw s4,0x28(sp)
sw s0,-0x5af8(v0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_00016d74(int param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  \n  puVar1 = PTR_stdout_000494fc;\n  if (param_1 != 0) {\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }\n  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);\n  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;\n  return;\n}\n\n" (function_definition "void FUN_00016d74(int param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  \n  puVar1 = PTR_stdout_000494fc;\n  if (param_1 != 0) {\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }\n  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);\n  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;\n  return;\n}" primitive_type (function_declarator "FUN_00016d74(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  \n  puVar1 = PTR_stdout_000494fc;\n  if (param_1 != 0) {\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }\n  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);\n  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_stdout_000494fc;" (assignment_expression "puVar1 = PTR_stdout_000494fc" identifier = identifier) ;) (if_statement "if (param_1 != 0) {\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }" { (expression_statement "iVar2 = gnu_mbswidth(param_1,0);" (assignment_expression "iVar2 = gnu_mbswidth(param_1,0)" identifier = (call_expression "gnu_mbswidth(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "param_3 = param_3 - iVar2;" (assignment_expression "param_3 = param_3 - iVar2" identifier = (binary_expression "param_3 - iVar2" identifier - identifier)) ;) (if_statement "if (param_3 < 0) {\n      param_3 = 0;\n    }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n      param_3 = 0;\n    }" { (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);" (call_expression "(*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1)" (parenthesized_expression "(*(code *)PTR_fputs_unlocked_0004964c)" ( (pointer_expression "*(code *)PTR_fputs_unlocked_0004964c" * (cast_expression "(code *)PTR_fputs_unlocked_0004964c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,*(undefined4 *)puVar1)" ( identifier , (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004953c)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_0004953c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0004953c)" ( (pointer_expression "*(code *)PTR_strlen_0004953c" * (cast_expression "(code *)PTR_strlen_0004953c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar2 = param_3 + iVar2;" (assignment_expression "iVar2 = param_3 + iVar2" identifier = (binary_expression "param_3 + iVar2" identifier + identifier)) ;) (do_statement "do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);" do (compound_statement "{\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    }" { (expression_statement "iVar4 = *(int *)puVar1;" (assignment_expression "iVar4 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar3 = *(undefined1 **)(iVar4 + 0x14);" (assignment_expression "puVar3 = *(undefined1 **)(iVar4 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar4 + 0x14)" * (cast_expression "(undefined1 **)(iVar4 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }" if (parenthesized_expression "(puVar3 < *(undefined1 **)(iVar4 + 0x18))" ( (binary_expression "puVar3 < *(undefined1 **)(iVar4 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar4 + 0x18)" * (cast_expression "(undefined1 **)(iVar4 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }" { (expression_statement "*(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;" (assignment_expression "*(undefined1 **)(iVar4 + 0x14) = puVar3 + 1" (pointer_expression "*(undefined1 **)(iVar4 + 0x14)" * (cast_expression "(undefined1 **)(iVar4 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = 0x20;" (assignment_expression "*puVar3 = 0x20" (pointer_expression "*puVar3" * identifier) = number_literal) ;) }) (else_clause "else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }" else (compound_statement "{\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }" { (expression_statement "(*(code *)PTR___overflow_000494d4)(iVar4,0x20);" (call_expression "(*(code *)PTR___overflow_000494d4)(iVar4,0x20)" (parenthesized_expression "(*(code *)PTR___overflow_000494d4)" ( (pointer_expression "*(code *)PTR___overflow_000494d4" * (cast_expression "(code *)PTR___overflow_000494d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_3 != -1)" ( (binary_expression "param_3 != -1" identifier != number_literal) )) ;) (expression_statement "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;" (assignment_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2" (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) + number_literal) + identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);" (call_expression "(*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000494f8)" ( (pointer_expression "*(code *)PTR___printf_chk_000494f8" * (cast_expression "(code *)PTR___printf_chk_000494f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2)" ( number_literal , (binary_expression "PTR_LAB_00049218 + 0x3dc8" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;" (assignment_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3" (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) + number_literal) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void format_user_or_group(char *name,ulong id,int width)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_stdout_000494fc;\n  if (name != (char *)0x0) {\n    iVar2 = gnu_mbswidth(name,0);\n    iVar2 = width - iVar2;\n    if (iVar2 < 0) {\n      iVar2 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(name,*(undefined4 *)puVar1);\n    iVar3 = (*(code *)PTR_strlen_0004953c)(name);\n    iVar3 = iVar2 + iVar3;\n    do {\n      iVar5 = *(int *)puVar1;\n      puVar4 = *(undefined1 **)(iVar5 + 0x14);\n      if (puVar4 < *(undefined1 **)(iVar5 + 0x18)) {\n        *(undefined1 **)(iVar5 + 0x14) = puVar4 + 1;\n        *puVar4 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar5,0x20);\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar3;\n    return;\n  }\n  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,width,id);\n  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + width;\n  return;\n}\n\n" (function_definition "void format_user_or_group(char *name,ulong id,int width)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_stdout_000494fc;\n  if (name != (char *)0x0) {\n    iVar2 = gnu_mbswidth(name,0);\n    iVar2 = width - iVar2;\n    if (iVar2 < 0) {\n      iVar2 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(name,*(undefined4 *)puVar1);\n    iVar3 = (*(code *)PTR_strlen_0004953c)(name);\n    iVar3 = iVar2 + iVar3;\n    do {\n      iVar5 = *(int *)puVar1;\n      puVar4 = *(undefined1 **)(iVar5 + 0x14);\n      if (puVar4 < *(undefined1 **)(iVar5 + 0x18)) {\n        *(undefined1 **)(iVar5 + 0x14) = puVar4 + 1;\n        *puVar4 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar5,0x20);\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar3;\n    return;\n  }\n  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,width,id);\n  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + width;\n  return;\n}" primitive_type (function_declarator "format_user_or_group(char *name,ulong id,int width)" identifier (parameter_list "(char *name,ulong id,int width)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "ulong id" type_identifier identifier) , (parameter_declaration "int width" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_stdout_000494fc;\n  if (name != (char *)0x0) {\n    iVar2 = gnu_mbswidth(name,0);\n    iVar2 = width - iVar2;\n    if (iVar2 < 0) {\n      iVar2 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(name,*(undefined4 *)puVar1);\n    iVar3 = (*(code *)PTR_strlen_0004953c)(name);\n    iVar3 = iVar2 + iVar3;\n    do {\n      iVar5 = *(int *)puVar1;\n      puVar4 = *(undefined1 **)(iVar5 + 0x14);\n      if (puVar4 < *(undefined1 **)(iVar5 + 0x18)) {\n        *(undefined1 **)(iVar5 + 0x14) = puVar4 + 1;\n        *puVar4 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar5,0x20);\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar3;\n    return;\n  }\n  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,width,id);\n  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + width;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_stdout_000494fc;" (assignment_expression "puVar1 = PTR_stdout_000494fc" identifier = identifier) ;) (if_statement "if (name != (char *)0x0) {\n    iVar2 = gnu_mbswidth(name,0);\n    iVar2 = width - iVar2;\n    if (iVar2 < 0) {\n      iVar2 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(name,*(undefined4 *)puVar1);\n    iVar3 = (*(code *)PTR_strlen_0004953c)(name);\n    iVar3 = iVar2 + iVar3;\n    do {\n      iVar5 = *(int *)puVar1;\n      puVar4 = *(undefined1 **)(iVar5 + 0x14);\n      if (puVar4 < *(undefined1 **)(iVar5 + 0x18)) {\n        *(undefined1 **)(iVar5 + 0x14) = puVar4 + 1;\n        *puVar4 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar5,0x20);\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar3;\n    return;\n  }" if (parenthesized_expression "(name != (char *)0x0)" ( (binary_expression "name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = gnu_mbswidth(name,0);\n    iVar2 = width - iVar2;\n    if (iVar2 < 0) {\n      iVar2 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(name,*(undefined4 *)puVar1);\n    iVar3 = (*(code *)PTR_strlen_0004953c)(name);\n    iVar3 = iVar2 + iVar3;\n    do {\n      iVar5 = *(int *)puVar1;\n      puVar4 = *(undefined1 **)(iVar5 + 0x14);\n      if (puVar4 < *(undefined1 **)(iVar5 + 0x18)) {\n        *(undefined1 **)(iVar5 + 0x14) = puVar4 + 1;\n        *puVar4 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar5,0x20);\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar3;\n    return;\n  }" { (expression_statement "iVar2 = gnu_mbswidth(name,0);" (assignment_expression "iVar2 = gnu_mbswidth(name,0)" identifier = (call_expression "gnu_mbswidth(name,0)" identifier (argument_list "(name,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = width - iVar2;" (assignment_expression "iVar2 = width - iVar2" identifier = (binary_expression "width - iVar2" identifier - identifier)) ;) (if_statement "if (iVar2 < 0) {\n      iVar2 = 0;\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar2 = 0;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_fputs_unlocked_0004964c)(name,*(undefined4 *)puVar1);" (call_expression "(*(code *)PTR_fputs_unlocked_0004964c)(name,*(undefined4 *)puVar1)" (parenthesized_expression "(*(code *)PTR_fputs_unlocked_0004964c)" ( (pointer_expression "*(code *)PTR_fputs_unlocked_0004964c" * (cast_expression "(code *)PTR_fputs_unlocked_0004964c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name,*(undefined4 *)puVar1)" ( identifier , (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_0004953c)(name);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0004953c)(name)" identifier = (call_expression "(*(code *)PTR_strlen_0004953c)(name)" (parenthesized_expression "(*(code *)PTR_strlen_0004953c)" ( (pointer_expression "*(code *)PTR_strlen_0004953c" * (cast_expression "(code *)PTR_strlen_0004953c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name)" ( identifier )))) ;) (expression_statement "iVar3 = iVar2 + iVar3;" (assignment_expression "iVar3 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (do_statement "do {\n      iVar5 = *(int *)puVar1;\n      puVar4 = *(undefined1 **)(iVar5 + 0x14);\n      if (puVar4 < *(undefined1 **)(iVar5 + 0x18)) {\n        *(undefined1 **)(iVar5 + 0x14) = puVar4 + 1;\n        *puVar4 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar5,0x20);\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != -1);" do (compound_statement "{\n      iVar5 = *(int *)puVar1;\n      puVar4 = *(undefined1 **)(iVar5 + 0x14);\n      if (puVar4 < *(undefined1 **)(iVar5 + 0x18)) {\n        *(undefined1 **)(iVar5 + 0x14) = puVar4 + 1;\n        *puVar4 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar5,0x20);\n      }\n      iVar2 = iVar2 + -1;\n    }" { (expression_statement "iVar5 = *(int *)puVar1;" (assignment_expression "iVar5 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar4 = *(undefined1 **)(iVar5 + 0x14);" (assignment_expression "puVar4 = *(undefined1 **)(iVar5 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar5 + 0x14)" * (cast_expression "(undefined1 **)(iVar5 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar4 < *(undefined1 **)(iVar5 + 0x18)) {\n        *(undefined1 **)(iVar5 + 0x14) = puVar4 + 1;\n        *puVar4 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar5,0x20);\n      }" if (parenthesized_expression "(puVar4 < *(undefined1 **)(iVar5 + 0x18))" ( (binary_expression "puVar4 < *(undefined1 **)(iVar5 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar5 + 0x18)" * (cast_expression "(undefined1 **)(iVar5 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        *(undefined1 **)(iVar5 + 0x14) = puVar4 + 1;\n        *puVar4 = 0x20;\n      }" { (expression_statement "*(undefined1 **)(iVar5 + 0x14) = puVar4 + 1;" (assignment_expression "*(undefined1 **)(iVar5 + 0x14) = puVar4 + 1" (pointer_expression "*(undefined1 **)(iVar5 + 0x14)" * (cast_expression "(undefined1 **)(iVar5 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (expression_statement "*puVar4 = 0x20;" (assignment_expression "*puVar4 = 0x20" (pointer_expression "*puVar4" * identifier) = number_literal) ;) }) (else_clause "else {\n        (*(code *)PTR___overflow_000494d4)(iVar5,0x20);\n      }" else (compound_statement "{\n        (*(code *)PTR___overflow_000494d4)(iVar5,0x20);\n      }" { (expression_statement "(*(code *)PTR___overflow_000494d4)(iVar5,0x20);" (call_expression "(*(code *)PTR___overflow_000494d4)(iVar5,0x20)" (parenthesized_expression "(*(code *)PTR___overflow_000494d4)" ( (pointer_expression "*(code *)PTR___overflow_000494d4" * (cast_expression "(code *)PTR___overflow_000494d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) ;) (expression_statement "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar3;" (assignment_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar3" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar3" (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) + number_literal) + identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,width,id);" (call_expression "(*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,width,id)" (parenthesized_expression "(*(code *)PTR___printf_chk_000494f8)" ( (pointer_expression "*(code *)PTR___printf_chk_000494f8" * (cast_expression "(code *)PTR___printf_chk_000494f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_LAB_00049218 + 0x3dc8,width,id)" ( number_literal , (binary_expression "PTR_LAB_00049218 + 0x3dc8" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + width;" (assignment_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + width" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + width" (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) + number_literal) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00016d74(int param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  \n  puVar1 = PTR_stdout_000494fc;\n  if (param_1 != 0) {\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }\n  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);\n  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;\n  return;\n}\n\n" (function_definition "void FUN_00016d74(int param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  \n  puVar1 = PTR_stdout_000494fc;\n  if (param_1 != 0) {\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }\n  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);\n  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;\n  return;\n}" primitive_type (function_declarator "FUN_00016d74(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  \n  puVar1 = PTR_stdout_000494fc;\n  if (param_1 != 0) {\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }\n  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);\n  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_stdout_000494fc;" (assignment_expression "puVar1 = PTR_stdout_000494fc" identifier = identifier) ;) (if_statement "if (param_1 != 0) {\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }" { (expression_statement "iVar2 = gnu_mbswidth(param_1,0);" (assignment_expression "iVar2 = gnu_mbswidth(param_1,0)" identifier = (call_expression "gnu_mbswidth(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "param_3 = param_3 - iVar2;" (assignment_expression "param_3 = param_3 - iVar2" identifier = (binary_expression "param_3 - iVar2" identifier - identifier)) ;) (if_statement "if (param_3 < 0) {\n      param_3 = 0;\n    }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n      param_3 = 0;\n    }" { (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);" (call_expression "(*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1)" (parenthesized_expression "(*(code *)PTR_fputs_unlocked_0004964c)" ( (pointer_expression "*(code *)PTR_fputs_unlocked_0004964c" * (cast_expression "(code *)PTR_fputs_unlocked_0004964c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,*(undefined4 *)puVar1)" ( identifier , (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004953c)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_0004953c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0004953c)" ( (pointer_expression "*(code *)PTR_strlen_0004953c" * (cast_expression "(code *)PTR_strlen_0004953c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar2 = param_3 + iVar2;" (assignment_expression "iVar2 = param_3 + iVar2" identifier = (binary_expression "param_3 + iVar2" identifier + identifier)) ;) (do_statement "do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);" do (compound_statement "{\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    }" { (expression_statement "iVar4 = *(int *)puVar1;" (assignment_expression "iVar4 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar3 = *(undefined1 **)(iVar4 + 0x14);" (assignment_expression "puVar3 = *(undefined1 **)(iVar4 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar4 + 0x14)" * (cast_expression "(undefined1 **)(iVar4 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }" if (parenthesized_expression "(puVar3 < *(undefined1 **)(iVar4 + 0x18))" ( (binary_expression "puVar3 < *(undefined1 **)(iVar4 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar4 + 0x18)" * (cast_expression "(undefined1 **)(iVar4 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }" { (expression_statement "*(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;" (assignment_expression "*(undefined1 **)(iVar4 + 0x14) = puVar3 + 1" (pointer_expression "*(undefined1 **)(iVar4 + 0x14)" * (cast_expression "(undefined1 **)(iVar4 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = 0x20;" (assignment_expression "*puVar3 = 0x20" (pointer_expression "*puVar3" * identifier) = number_literal) ;) }) (else_clause "else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }" else (compound_statement "{\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }" { (expression_statement "(*(code *)PTR___overflow_000494d4)(iVar4,0x20);" (call_expression "(*(code *)PTR___overflow_000494d4)(iVar4,0x20)" (parenthesized_expression "(*(code *)PTR___overflow_000494d4)" ( (pointer_expression "*(code *)PTR___overflow_000494d4" * (cast_expression "(code *)PTR___overflow_000494d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_3 != -1)" ( (binary_expression "param_3 != -1" identifier != number_literal) )) ;) (expression_statement "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;" (assignment_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2" (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) + number_literal) + identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);" (call_expression "(*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000494f8)" ( (pointer_expression "*(code *)PTR___printf_chk_000494f8" * (cast_expression "(code *)PTR___printf_chk_000494f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2)" ( number_literal , (binary_expression "PTR_LAB_00049218 + 0x3dc8" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;" (assignment_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3" (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" * (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" ( (binary_expression "PTR_DAT_00049208 + -0x5af8" identifier + number_literal) )))) + number_literal) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT)) ;) (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00016d74(int param_1,undefined4 param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  \n  puVar1 = PTR_stdout_000494fc;\n  if (param_1 != 0) {\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }\n  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);\n  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00016d74(int param_1,undefined4 param_2,int param_3)" (identifier "FUN_00016d74") (parameter_list "(int param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  \n  puVar1 = PTR_stdout_000494fc;\n  if (param_1 != 0) {\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }\n  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);\n  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "puVar1 = PTR_stdout_000494fc;" (assignment_expression "puVar1 = PTR_stdout_000494fc" (identifier "puVar1") (= "=") (identifier "PTR_stdout_000494fc")) (; ";")) (if_statement "if (param_1 != 0) {\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = gnu_mbswidth(param_1,0);\n    param_3 = param_3 - iVar2;\n    if (param_3 < 0) {\n      param_3 = 0;\n    }\n    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);\n    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);\n    iVar2 = param_3 + iVar2;\n    do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);\n    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;\n    return;\n  }" ({ "{") (expression_statement "iVar2 = gnu_mbswidth(param_1,0);" (assignment_expression "iVar2 = gnu_mbswidth(param_1,0)" (identifier "iVar2") (= "=") (call_expression "gnu_mbswidth(param_1,0)" (identifier "gnu_mbswidth") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "param_3 = param_3 - iVar2;" (assignment_expression "param_3 = param_3 - iVar2" (identifier "param_3") (= "=") (binary_expression "param_3 - iVar2" (identifier "param_3") (- "-") (identifier "iVar2"))) (; ";")) (if_statement "if (param_3 < 0) {\n      param_3 = 0;\n    }" (if "if") (parenthesized_expression "(param_3 < 0)" (( "(") (binary_expression "param_3 < 0" (identifier "param_3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      param_3 = 0;\n    }" ({ "{") (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" (identifier "param_3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);" (call_expression "(*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1)" (parenthesized_expression "(*(code *)PTR_fputs_unlocked_0004964c)" (( "(") (pointer_expression "*(code *)PTR_fputs_unlocked_0004964c" (* "*") (cast_expression "(code *)PTR_fputs_unlocked_0004964c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fputs_unlocked_0004964c"))) () ")")) (argument_list "(param_1,*(undefined4 *)puVar1)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0004953c)(param_1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_0004953c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0004953c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004953c" (* "*") (cast_expression "(code *)PTR_strlen_0004953c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004953c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar2 = param_3 + iVar2;" (assignment_expression "iVar2 = param_3 + iVar2" (identifier "iVar2") (= "=") (binary_expression "param_3 + iVar2" (identifier "param_3") (+ "+") (identifier "iVar2"))) (; ";")) (do_statement "do {\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    } while (param_3 != -1);" (do "do") (compound_statement "{\n      iVar4 = *(int *)puVar1;\n      puVar3 = *(undefined1 **)(iVar4 + 0x14);\n      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }\n      param_3 = param_3 + -1;\n    }" ({ "{") (expression_statement "iVar4 = *(int *)puVar1;" (assignment_expression "iVar4 = *(int *)puVar1" (identifier "iVar4") (= "=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "puVar3 = *(undefined1 **)(iVar4 + 0x14);" (assignment_expression "puVar3 = *(undefined1 **)(iVar4 + 0x14)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined1 **)(iVar4 + 0x14)" (* "*") (cast_expression "(undefined1 **)(iVar4 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }\n      else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }" (if "if") (parenthesized_expression "(puVar3 < *(undefined1 **)(iVar4 + 0x18))" (( "(") (binary_expression "puVar3 < *(undefined1 **)(iVar4 + 0x18)" (identifier "puVar3") (< "<") (pointer_expression "*(undefined1 **)(iVar4 + 0x18)" (* "*") (cast_expression "(undefined1 **)(iVar4 + 0x18)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x18)" (( "(") (binary_expression "iVar4 + 0x18" (identifier "iVar4") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;\n        *puVar3 = 0x20;\n      }" ({ "{") (expression_statement "*(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;" (assignment_expression "*(undefined1 **)(iVar4 + 0x14) = puVar3 + 1" (pointer_expression "*(undefined1 **)(iVar4 + 0x14)" (* "*") (cast_expression "(undefined1 **)(iVar4 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar3 = 0x20;" (assignment_expression "*puVar3 = 0x20" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x20")) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);\n      }" ({ "{") (expression_statement "(*(code *)PTR___overflow_000494d4)(iVar4,0x20);" (call_expression "(*(code *)PTR___overflow_000494d4)(iVar4,0x20)" (parenthesized_expression "(*(code *)PTR___overflow_000494d4)" (( "(") (pointer_expression "*(code *)PTR___overflow_000494d4" (* "*") (cast_expression "(code *)PTR___overflow_000494d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___overflow_000494d4"))) () ")")) (argument_list "(iVar4,0x20)" (( "(") (identifier "iVar4") (, ",") (number_literal "0x20") () ")"))) (; ";")) (} "}")))) (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"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 != -1)" (( "(") (binary_expression "param_3 != -1" (identifier "param_3") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (expression_statement "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;" (assignment_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" (* "*") (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" (( "(") (binary_expression "PTR_DAT_00049208 + -0x5af8" (identifier "PTR_DAT_00049208") (+ "+") (number_literal "-0x5af8")) () ")")))) (= "=") (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2" (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" (* "*") (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" (( "(") (binary_expression "PTR_DAT_00049208 + -0x5af8" (identifier "PTR_DAT_00049208") (+ "+") (number_literal "-0x5af8")) () ")")))) (+ "+") (number_literal "1")) (+ "+") (identifier "iVar2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);" (call_expression "(*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000494f8)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000494f8" (* "*") (cast_expression "(code *)PTR___printf_chk_000494f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000494f8"))) () ")")) (argument_list "(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_LAB_00049218 + 0x3dc8" (identifier "PTR_LAB_00049218") (+ "+") (number_literal "0x3dc8")) (, ",") (identifier "param_3") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;" (assignment_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" (* "*") (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" (( "(") (binary_expression "PTR_DAT_00049208 + -0x5af8" (identifier "PTR_DAT_00049208") (+ "+") (number_literal "-0x5af8")) () ")")))) (= "=") (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3" (binary_expression "*(int *)(PTR_DAT_00049208 + -0x5af8) + 1" (pointer_expression "*(int *)(PTR_DAT_00049208 + -0x5af8)" (* "*") (cast_expression "(int *)(PTR_DAT_00049208 + -0x5af8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00049208 + -0x5af8)" (( "(") (binary_expression "PTR_DAT_00049208 + -0x5af8" (identifier "PTR_DAT_00049208") (+ "+") (number_literal "-0x5af8")) () ")")))) (+ "+") (number_literal "1")) (+ "+") (identifier "param_3"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *var_1,type_1 id,int var_3)

{
  type_2 *puVar1;
  int var_4;
  int var_5;
  type_3 *var_7;
  int var_6;
  
  puVar1 = PTR_stdout_000494fc;
  if (var_1 != (char *)0x0) {
    var_4 = var_2(var_1,0);
    var_4 = var_3 - var_4;
    if (var_4 < 0) {
      var_4 = 0;
    }
    (*(type_4 *)PTR_fputs_unlocked_0004964c)(var_1,*(type_5 *)puVar1);
    var_5 = (*(type_4 *)PTR_strlen_0004953c)(var_1);
    var_5 = var_4 + var_5;
    do {
      var_6 = *(int *)puVar1;
      var_7 = *(type_3 **)(var_6 + 0x14);
      if (var_7 < *(type_3 **)(var_6 + 0x18)) {
        *(type_3 **)(var_6 + 0x14) = var_7 + 1;
        *var_7 = 0x20;
      }
      else {
        (*(type_4 *)PTR___overflow_000494d4)(var_6,0x20);
      }
      var_4 = var_4 + -1;
    } while (var_4 != -1);
    *(int *)(var_8 + -0x5af8) = *(int *)(var_8 + -0x5af8) + 1 + var_5;
    return;
  }
  (*(type_4 *)PTR___printf_chk_000494f8)(1,var_9 + 0x3dc8,var_3,id);
  *(int *)(var_8 + -0x5af8) = *(int *)(var_8 + -0x5af8) + 1 + var_3;
  return;
}


(translation_unit (function_definition type: (primitive_type) 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: (primitive_type) declarator: (identifier)))) body: (compound_statement (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: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (compound_statement (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) (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (identifier)))) (return_statement))) (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier) (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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (identifier)))) (return_statement))))

void MASKED(int param_1,undefined4 param_2,int param_3)

{
  undefined *puVar1;
  int iVar2;
  undefined1 *puVar3;
  int iVar4;
  
  puVar1 = PTR_stdout_000494fc;
  if (param_1 != 0) {
    iVar2 = gnu_mbswidth(param_1,0);
    param_3 = param_3 - iVar2;
    if (param_3 < 0) {
      param_3 = 0;
    }
    (*(code *)PTR_fputs_unlocked_0004964c)(param_1,*(undefined4 *)puVar1);
    iVar2 = (*(code *)PTR_strlen_0004953c)(param_1);
    iVar2 = param_3 + iVar2;
    do {
      iVar4 = *(int *)puVar1;
      puVar3 = *(undefined1 **)(iVar4 + 0x14);
      if (puVar3 < *(undefined1 **)(iVar4 + 0x18)) {
        *(undefined1 **)(iVar4 + 0x14) = puVar3 + 1;
        *puVar3 = 0x20;
      }
      else {
        (*(code *)PTR___overflow_000494d4)(iVar4,0x20);
      }
      param_3 = param_3 + -1;
    } while (param_3 != -1);
    *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + iVar2;
    return;
  }
  (*(code *)PTR___printf_chk_000494f8)(1,PTR_LAB_00049218 + 0x3dc8,param_3,param_2);
  *(int *)(PTR_DAT_00049208 + -0x5af8) = *(int *)(PTR_DAT_00049208 + -0x5af8) + 1 + param_3;
  return;
}

