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

{
  char cVar1;
  _IO_FILE *p_Var2;
  char *pcVar3;
  undefined *puVar4;
  wchar_t wVar5;
  ulong uVar6;
  undefined4 in_register_00000014;
  int iVar7;
  long lVar8;
  byte bVar9;
  
  bVar9 = 0;
  if (name == (char *)0x0) {
    __printf_chk(1,"%*lu ",CONCAT44(in_register_00000014,width),id);
    lVar8 = (long)width;
  }
  else {
    wVar5 = gnu_mbswidth(name,L'\0');
    iVar7 = width - wVar5;
    if (width - wVar5 < 0) {
      iVar7 = 0;
    }
    fputs_unlocked(name,*(FILE **)PTR_stdout_00120f98);
    puVar4 = PTR_stdout_00120f98;
    uVar6 = 0xffffffffffffffff;
    do {
      if (uVar6 == 0) break;
      uVar6 = uVar6 - 1;
      cVar1 = *name;
      name = name + (ulong)bVar9 * -2 + 1;
    } while (cVar1 != '\0');
    lVar8 = (~uVar6 - 1) + (long)iVar7;
    do {
      p_Var2 = *(_IO_FILE **)puVar4;
      pcVar3 = p_Var2->_IO_write_ptr;
      if (pcVar3 < p_Var2->_IO_write_end) {
        p_Var2->_IO_write_ptr = pcVar3 + 1;
        *pcVar3 = ' ';
      }
      else {
        __overflow(p_Var2,0x20);
      }
      iVar7 = iVar7 + -1;
    } while (iVar7 != -1);
  }
  dired_pos = lVar8 + 1 + dired_pos;
  return;
}



void FUN_00107988(char *param_1,undefined8 param_2,undefined8 param_3)

{
  char cVar1;
  _IO_FILE *p_Var2;
  char *pcVar3;
  undefined *puVar4;
  int iVar5;
  ulong uVar6;
  long lVar7;
  byte bVar8;
  
  bVar8 = 0;
  if (param_1 == (char *)0x0) {
    __printf_chk(1,"%*lu ",param_3,param_2);
    lVar7 = (long)(int)param_3;
  }
  else {
    iVar5 = FUN_0011017e(param_1,0);
    iVar5 = (int)param_3 - iVar5;
    if (iVar5 < 0) {
      iVar5 = 0;
    }
    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);
    puVar4 = PTR_stdout_00120f98;
    uVar6 = 0xffffffffffffffff;
    do {
      if (uVar6 == 0) break;
      uVar6 = uVar6 - 1;
      cVar1 = *param_1;
      param_1 = param_1 + (ulong)bVar8 * -2 + 1;
    } while (cVar1 != '\0');
    lVar7 = (~uVar6 - 1) + (long)iVar5;
    do {
      p_Var2 = *(_IO_FILE **)puVar4;
      pcVar3 = p_Var2->_IO_write_ptr;
      if (pcVar3 < p_Var2->_IO_write_end) {
        p_Var2->_IO_write_ptr = pcVar3 + 1;
        *pcVar3 = ' ';
      }
      else {
        __overflow(p_Var2,0x20);
      }
      iVar5 = iVar5 + -1;
    } while (iVar5 != -1);
  }
  DAT_00122518 = lVar7 + 1 + DAT_00122518;
  return;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV EBX,EDX
TEST RDI,RDI
JZ 0x00107a2b
MOV RBP,RDI
MOV ESI,0x0
CALL 0x0011017e
SUB EBX,EAX
MOV EAX,0x0
CMOVS EBX,EAX
MOV RAX,qword ptr [0x00120f98]
MOV RSI,qword ptr [RAX]
MOV RDI,RBP
CALL 0x00104370
MOV RCX,-0x1
MOV EAX,0x0
MOV RDI,RBP
SCASB.REPNE RDI
MOV RAX,RCX
NOT RAX
MOVSXD RDX,EBX
LEA R12,[RAX + RDX*0x1 + -0x1]
MOV RBP,qword ptr [0x00120f98]
MOV RDI,qword ptr [RBP]
MOV RAX,qword ptr [RDI + 0x28]
CMP RAX,qword ptr [RDI + 0x30]
JNC 0x00107a1f
LEA RDX,[RAX + 0x1]
MOV qword ptr [RDI + 0x28],RDX
MOV byte ptr [RAX],0x20
SUB EBX,0x1
CMP EBX,-0x1
JNZ 0x001079e6
MOV RAX,qword ptr [0x00122518]
LEA RAX,[R12 + RAX*0x1 + 0x1]
MOV qword ptr [0x00122518],RAX
POP RBX
POP RBP
POP R12
RET
MOV ESI,0x20
CALL 0x00104270
JMP 0x001079ff
MOV RCX,RSI
LEA RSI,[0x1179f1]
MOV EDI,0x1
MOV EAX,0x0
CALL 0x00104530
MOVSXD R12,EBX
JMP 0x00107a07
(translation_unit "void FUN_00107988(char *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  char cVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  int iVar5;\n  ulong uVar6;\n  long lVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  if (param_1 == (char *)0x0) {\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }\n  else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }\n  DAT_00122518 = lVar7 + 1 + DAT_00122518;\n  return;\n}\n\n" (function_definition "void FUN_00107988(char *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  char cVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  int iVar5;\n  ulong uVar6;\n  long lVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  if (param_1 == (char *)0x0) {\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }\n  else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }\n  DAT_00122518 = lVar7 + 1 + DAT_00122518;\n  return;\n}" primitive_type (function_declarator "FUN_00107988(char *param_1,undefined8 param_2,undefined8 param_3)" identifier (parameter_list "(char *param_1,undefined8 param_2,undefined8 param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  int iVar5;\n  ulong uVar6;\n  long lVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  if (param_1 == (char *)0x0) {\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }\n  else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }\n  DAT_00122518 = lVar7 + 1 + DAT_00122518;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (if_statement "if (param_1 == (char *)0x0) {\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }\n  else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }" { (expression_statement "__printf_chk(1,"%*lu ",param_3,param_2);" (call_expression "__printf_chk(1,"%*lu ",param_3,param_2)" identifier (argument_list "(1,"%*lu ",param_3,param_2)" ( number_literal , (string_literal ""%*lu "" " string_content ") , identifier , identifier ))) ;) (expression_statement "lVar7 = (long)(int)param_3;" (assignment_expression "lVar7 = (long)(int)param_3" identifier = (cast_expression "(long)(int)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }" else (compound_statement "{\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }" { (expression_statement "iVar5 = FUN_0011017e(param_1,0);" (assignment_expression "iVar5 = FUN_0011017e(param_1,0)" identifier = (call_expression "FUN_0011017e(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar5 = (int)param_3 - iVar5;" (assignment_expression "iVar5 = (int)param_3 - iVar5" identifier = (binary_expression "(int)param_3 - iVar5" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if (iVar5 < 0) {\n      iVar5 = 0;\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar5 = 0;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) })) (expression_statement "fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);" (call_expression "fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98)" identifier (argument_list "(param_1,*(FILE **)PTR_stdout_00120f98)" ( identifier , (pointer_expression "*(FILE **)PTR_stdout_00120f98" * (cast_expression "(FILE **)PTR_stdout_00120f98" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "puVar4 = PTR_stdout_00120f98;" (assignment_expression "puVar4 = PTR_stdout_00120f98" identifier = identifier) ;) (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" identifier = number_literal) ;) (do_statement "do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    }" { (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + (ulong)bVar8 * -2 + 1;" (assignment_expression "param_1 = param_1 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "param_1 + (ulong)bVar8 * -2 + 1" (binary_expression "param_1 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "lVar7 = (~uVar6 - 1) + (long)iVar5;" (assignment_expression "lVar7 = (~uVar6 - 1) + (long)iVar5" identifier = (binary_expression "(~uVar6 - 1) + (long)iVar5" (parenthesized_expression "(~uVar6 - 1)" ( (binary_expression "~uVar6 - 1" (unary_expression "~uVar6" ~ identifier) - number_literal) )) + (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (do_statement "do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);" do (compound_statement "{\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    }" { (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" identifier = (pointer_expression "*(_IO_FILE **)puVar4" * (cast_expression "(_IO_FILE **)puVar4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar3 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var2->_IO_write_ptr" identifier = (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }" if (parenthesized_expression "(pcVar3 < p_Var2->_IO_write_end)" ( (binary_expression "pcVar3 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }" { (expression_statement "p_Var2->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = ' ';" (assignment_expression "*pcVar3 = ' '" (pointer_expression "*pcVar3" * identifier) = (char_literal "' '" ' character ')) ;) }) (else_clause "else {\n        __overflow(p_Var2,0x20);\n      }" else (compound_statement "{\n        __overflow(p_Var2,0x20);\n      }" { (expression_statement "__overflow(p_Var2,0x20);" (call_expression "__overflow(p_Var2,0x20)" identifier (argument_list "(p_Var2,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != -1)" ( (binary_expression "iVar5 != -1" identifier != number_literal) )) ;) }))) (expression_statement "DAT_00122518 = lVar7 + 1 + DAT_00122518;" (assignment_expression "DAT_00122518 = lVar7 + 1 + DAT_00122518" identifier = (binary_expression "lVar7 + 1 + DAT_00122518" (binary_expression "lVar7 + 1" identifier + number_literal) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void format_user_or_group(char *name,ulong id,wchar_t width)\n\n{\n  char cVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  wchar_t wVar5;\n  ulong uVar6;\n  undefined4 in_register_00000014;\n  int iVar7;\n  long lVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if (name == (char *)0x0) {\n    __printf_chk(1,"%*lu ",CONCAT44(in_register_00000014,width),id);\n    lVar8 = (long)width;\n  }\n  else {\n    wVar5 = gnu_mbswidth(name,L'\0');\n    iVar7 = width - wVar5;\n    if (width - wVar5 < 0) {\n      iVar7 = 0;\n    }\n    fputs_unlocked(name,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *name;\n      name = name + (ulong)bVar9 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar8 = (~uVar6 - 1) + (long)iVar7;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != -1);\n  }\n  dired_pos = lVar8 + 1 + dired_pos;\n  return;\n}\n\n" (function_definition "void format_user_or_group(char *name,ulong id,wchar_t width)\n\n{\n  char cVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  wchar_t wVar5;\n  ulong uVar6;\n  undefined4 in_register_00000014;\n  int iVar7;\n  long lVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if (name == (char *)0x0) {\n    __printf_chk(1,"%*lu ",CONCAT44(in_register_00000014,width),id);\n    lVar8 = (long)width;\n  }\n  else {\n    wVar5 = gnu_mbswidth(name,L'\0');\n    iVar7 = width - wVar5;\n    if (width - wVar5 < 0) {\n      iVar7 = 0;\n    }\n    fputs_unlocked(name,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *name;\n      name = name + (ulong)bVar9 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar8 = (~uVar6 - 1) + (long)iVar7;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != -1);\n  }\n  dired_pos = lVar8 + 1 + dired_pos;\n  return;\n}" primitive_type (function_declarator "format_user_or_group(char *name,ulong id,wchar_t width)" identifier (parameter_list "(char *name,ulong id,wchar_t width)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "ulong id" type_identifier identifier) , (parameter_declaration "wchar_t width" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  wchar_t wVar5;\n  ulong uVar6;\n  undefined4 in_register_00000014;\n  int iVar7;\n  long lVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  if (name == (char *)0x0) {\n    __printf_chk(1,"%*lu ",CONCAT44(in_register_00000014,width),id);\n    lVar8 = (long)width;\n  }\n  else {\n    wVar5 = gnu_mbswidth(name,L'\0');\n    iVar7 = width - wVar5;\n    if (width - wVar5 < 0) {\n      iVar7 = 0;\n    }\n    fputs_unlocked(name,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *name;\n      name = name + (ulong)bVar9 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar8 = (~uVar6 - 1) + (long)iVar7;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != -1);\n  }\n  dired_pos = lVar8 + 1 + dired_pos;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "wchar_t wVar5;" type_identifier identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "undefined4 in_register_00000014;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (if_statement "if (name == (char *)0x0) {\n    __printf_chk(1,"%*lu ",CONCAT44(in_register_00000014,width),id);\n    lVar8 = (long)width;\n  }\n  else {\n    wVar5 = gnu_mbswidth(name,L'\0');\n    iVar7 = width - wVar5;\n    if (width - wVar5 < 0) {\n      iVar7 = 0;\n    }\n    fputs_unlocked(name,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *name;\n      name = name + (ulong)bVar9 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar8 = (~uVar6 - 1) + (long)iVar7;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != -1);\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    __printf_chk(1,"%*lu ",CONCAT44(in_register_00000014,width),id);\n    lVar8 = (long)width;\n  }" { (expression_statement "__printf_chk(1,"%*lu ",CONCAT44(in_register_00000014,width),id);" (call_expression "__printf_chk(1,"%*lu ",CONCAT44(in_register_00000014,width),id)" identifier (argument_list "(1,"%*lu ",CONCAT44(in_register_00000014,width),id)" ( number_literal , (string_literal ""%*lu "" " string_content ") , (call_expression "CONCAT44(in_register_00000014,width)" identifier (argument_list "(in_register_00000014,width)" ( identifier , identifier ))) , identifier ))) ;) (expression_statement "lVar8 = (long)width;" (assignment_expression "lVar8 = (long)width" identifier = (cast_expression "(long)width" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) }) (else_clause "else {\n    wVar5 = gnu_mbswidth(name,L'\0');\n    iVar7 = width - wVar5;\n    if (width - wVar5 < 0) {\n      iVar7 = 0;\n    }\n    fputs_unlocked(name,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *name;\n      name = name + (ulong)bVar9 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar8 = (~uVar6 - 1) + (long)iVar7;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != -1);\n  }" else (compound_statement "{\n    wVar5 = gnu_mbswidth(name,L'\0');\n    iVar7 = width - wVar5;\n    if (width - wVar5 < 0) {\n      iVar7 = 0;\n    }\n    fputs_unlocked(name,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *name;\n      name = name + (ulong)bVar9 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar8 = (~uVar6 - 1) + (long)iVar7;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != -1);\n  }" { (expression_statement "wVar5 = gnu_mbswidth(name,L'\0');" (assignment_expression "wVar5 = gnu_mbswidth(name,L'\0')" identifier = (call_expression "gnu_mbswidth(name,L'\0')" identifier (argument_list "(name,L'\0')" ( identifier , (char_literal "L'\0'" L' escape_sequence ') )))) ;) (expression_statement "iVar7 = width - wVar5;" (assignment_expression "iVar7 = width - wVar5" identifier = (binary_expression "width - wVar5" identifier - identifier)) ;) (if_statement "if (width - wVar5 < 0) {\n      iVar7 = 0;\n    }" if (parenthesized_expression "(width - wVar5 < 0)" ( (binary_expression "width - wVar5 < 0" (binary_expression "width - wVar5" identifier - identifier) < number_literal) )) (compound_statement "{\n      iVar7 = 0;\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) })) (expression_statement "fputs_unlocked(name,*(FILE **)PTR_stdout_00120f98);" (call_expression "fputs_unlocked(name,*(FILE **)PTR_stdout_00120f98)" identifier (argument_list "(name,*(FILE **)PTR_stdout_00120f98)" ( identifier , (pointer_expression "*(FILE **)PTR_stdout_00120f98" * (cast_expression "(FILE **)PTR_stdout_00120f98" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "puVar4 = PTR_stdout_00120f98;" (assignment_expression "puVar4 = PTR_stdout_00120f98" identifier = identifier) ;) (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" identifier = number_literal) ;) (do_statement "do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *name;\n      name = name + (ulong)bVar9 * -2 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *name;\n      name = name + (ulong)bVar9 * -2 + 1;\n    }" { (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *name;" (assignment_expression "cVar1 = *name" identifier = (pointer_expression "*name" * identifier)) ;) (expression_statement "name = name + (ulong)bVar9 * -2 + 1;" (assignment_expression "name = name + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "name + (ulong)bVar9 * -2 + 1" (binary_expression "name + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "lVar8 = (~uVar6 - 1) + (long)iVar7;" (assignment_expression "lVar8 = (~uVar6 - 1) + (long)iVar7" identifier = (binary_expression "(~uVar6 - 1) + (long)iVar7" (parenthesized_expression "(~uVar6 - 1)" ( (binary_expression "~uVar6 - 1" (unary_expression "~uVar6" ~ identifier) - number_literal) )) + (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (do_statement "do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != -1);" do (compound_statement "{\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar7 = iVar7 + -1;\n    }" { (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" identifier = (pointer_expression "*(_IO_FILE **)puVar4" * (cast_expression "(_IO_FILE **)puVar4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar3 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var2->_IO_write_ptr" identifier = (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }" if (parenthesized_expression "(pcVar3 < p_Var2->_IO_write_end)" ( (binary_expression "pcVar3 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }" { (expression_statement "p_Var2->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = ' ';" (assignment_expression "*pcVar3 = ' '" (pointer_expression "*pcVar3" * identifier) = (char_literal "' '" ' character ')) ;) }) (else_clause "else {\n        __overflow(p_Var2,0x20);\n      }" else (compound_statement "{\n        __overflow(p_Var2,0x20);\n      }" { (expression_statement "__overflow(p_Var2,0x20);" (call_expression "__overflow(p_Var2,0x20)" identifier (argument_list "(p_Var2,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) ;) }))) (expression_statement "dired_pos = lVar8 + 1 + dired_pos;" (assignment_expression "dired_pos = lVar8 + 1 + dired_pos" identifier = (binary_expression "lVar8 + 1 + dired_pos" (binary_expression "lVar8 + 1" identifier + number_literal) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00107988(char *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  char cVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  int iVar5;\n  ulong uVar6;\n  long lVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  if (param_1 == (char *)0x0) {\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }\n  else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }\n  DAT_00122518 = lVar7 + 1 + DAT_00122518;\n  return;\n}\n\n" (function_definition "void FUN_00107988(char *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  char cVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  int iVar5;\n  ulong uVar6;\n  long lVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  if (param_1 == (char *)0x0) {\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }\n  else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }\n  DAT_00122518 = lVar7 + 1 + DAT_00122518;\n  return;\n}" primitive_type (function_declarator "FUN_00107988(char *param_1,undefined8 param_2,undefined8 param_3)" identifier (parameter_list "(char *param_1,undefined8 param_2,undefined8 param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  int iVar5;\n  ulong uVar6;\n  long lVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  if (param_1 == (char *)0x0) {\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }\n  else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }\n  DAT_00122518 = lVar7 + 1 + DAT_00122518;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (if_statement "if (param_1 == (char *)0x0) {\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }\n  else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }" { (expression_statement "__printf_chk(1,"%*lu ",param_3,param_2);" (call_expression "__printf_chk(1,"%*lu ",param_3,param_2)" identifier (argument_list "(1,"%*lu ",param_3,param_2)" ( number_literal , (string_literal ""%*lu "" " string_content ") , identifier , identifier ))) ;) (expression_statement "lVar7 = (long)(int)param_3;" (assignment_expression "lVar7 = (long)(int)param_3" identifier = (cast_expression "(long)(int)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }" else (compound_statement "{\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }" { (expression_statement "iVar5 = FUN_0011017e(param_1,0);" (assignment_expression "iVar5 = FUN_0011017e(param_1,0)" identifier = (call_expression "FUN_0011017e(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar5 = (int)param_3 - iVar5;" (assignment_expression "iVar5 = (int)param_3 - iVar5" identifier = (binary_expression "(int)param_3 - iVar5" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if (iVar5 < 0) {\n      iVar5 = 0;\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar5 = 0;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) })) (expression_statement "fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);" (call_expression "fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98)" identifier (argument_list "(param_1,*(FILE **)PTR_stdout_00120f98)" ( identifier , (pointer_expression "*(FILE **)PTR_stdout_00120f98" * (cast_expression "(FILE **)PTR_stdout_00120f98" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "puVar4 = PTR_stdout_00120f98;" (assignment_expression "puVar4 = PTR_stdout_00120f98" identifier = identifier) ;) (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" identifier = number_literal) ;) (do_statement "do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    }" { (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + (ulong)bVar8 * -2 + 1;" (assignment_expression "param_1 = param_1 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "param_1 + (ulong)bVar8 * -2 + 1" (binary_expression "param_1 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "lVar7 = (~uVar6 - 1) + (long)iVar5;" (assignment_expression "lVar7 = (~uVar6 - 1) + (long)iVar5" identifier = (binary_expression "(~uVar6 - 1) + (long)iVar5" (parenthesized_expression "(~uVar6 - 1)" ( (binary_expression "~uVar6 - 1" (unary_expression "~uVar6" ~ identifier) - number_literal) )) + (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (do_statement "do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);" do (compound_statement "{\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    }" { (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" identifier = (pointer_expression "*(_IO_FILE **)puVar4" * (cast_expression "(_IO_FILE **)puVar4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar3 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var2->_IO_write_ptr" identifier = (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }" if (parenthesized_expression "(pcVar3 < p_Var2->_IO_write_end)" ( (binary_expression "pcVar3 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }" { (expression_statement "p_Var2->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = ' ';" (assignment_expression "*pcVar3 = ' '" (pointer_expression "*pcVar3" * identifier) = (char_literal "' '" ' character ')) ;) }) (else_clause "else {\n        __overflow(p_Var2,0x20);\n      }" else (compound_statement "{\n        __overflow(p_Var2,0x20);\n      }" { (expression_statement "__overflow(p_Var2,0x20);" (call_expression "__overflow(p_Var2,0x20)" identifier (argument_list "(p_Var2,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != -1)" ( (binary_expression "iVar5 != -1" identifier != number_literal) )) ;) }))) (expression_statement "DAT_00122518 = lVar7 + 1 + DAT_00122518;" (assignment_expression "DAT_00122518 = lVar7 + 1 + DAT_00122518" identifier = (binary_expression "lVar7 + 1 + DAT_00122518" (binary_expression "lVar7 + 1" identifier + number_literal) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) - LIT) )) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression 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 IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00107988(char *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  char cVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  int iVar5;\n  ulong uVar6;\n  long lVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  if (param_1 == (char *)0x0) {\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }\n  else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }\n  DAT_00122518 = lVar7 + 1 + DAT_00122518;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00107988(char *param_1,undefined8 param_2,undefined8 param_3)" (identifier "FUN_00107988") (parameter_list "(char *param_1,undefined8 param_2,undefined8 param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  int iVar5;\n  ulong uVar6;\n  long lVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  if (param_1 == (char *)0x0) {\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }\n  else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }\n  DAT_00122518 = lVar7 + 1 + DAT_00122518;\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "_IO_FILE *p_Var2;" (type_identifier "_IO_FILE") (pointer_declarator "*p_Var2" (* "*") (identifier "p_Var2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (declaration "long lVar7;" (sized_type_specifier "long" (long "long")) (identifier "lVar7") (; ";")) (declaration "byte bVar8;" (type_identifier "byte") (identifier "bVar8") (; ";")) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" (identifier "bVar8") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 == (char *)0x0) {\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }\n  else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __printf_chk(1,"%*lu ",param_3,param_2);\n    lVar7 = (long)(int)param_3;\n  }" ({ "{") (expression_statement "__printf_chk(1,"%*lu ",param_3,param_2);" (call_expression "__printf_chk(1,"%*lu ",param_3,param_2)" (identifier "__printf_chk") (argument_list "(1,"%*lu ",param_3,param_2)" (( "(") (number_literal "1") (, ",") (string_literal ""%*lu "" (" """) (string_content "%*lu ") (" """)) (, ",") (identifier "param_3") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "lVar7 = (long)(int)param_3;" (assignment_expression "lVar7 = (long)(int)param_3" (identifier "lVar7") (= "=") (cast_expression "(long)(int)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")))) (; ";")) (} "}")) (else_clause "else {\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }" (else "else") (compound_statement "{\n    iVar5 = FUN_0011017e(param_1,0);\n    iVar5 = (int)param_3 - iVar5;\n    if (iVar5 < 0) {\n      iVar5 = 0;\n    }\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);\n    puVar4 = PTR_stdout_00120f98;\n    uVar6 = 0xffffffffffffffff;\n    do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');\n    lVar7 = (~uVar6 - 1) + (long)iVar5;\n    do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);\n  }" ({ "{") (expression_statement "iVar5 = FUN_0011017e(param_1,0);" (assignment_expression "iVar5 = FUN_0011017e(param_1,0)" (identifier "iVar5") (= "=") (call_expression "FUN_0011017e(param_1,0)" (identifier "FUN_0011017e") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar5 = (int)param_3 - iVar5;" (assignment_expression "iVar5 = (int)param_3 - iVar5" (identifier "iVar5") (= "=") (binary_expression "(int)param_3 - iVar5" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (- "-") (identifier "iVar5"))) (; ";")) (if_statement "if (iVar5 < 0) {\n      iVar5 = 0;\n    }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = 0;\n    }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);" (call_expression "fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98)" (identifier "fputs_unlocked") (argument_list "(param_1,*(FILE **)PTR_stdout_00120f98)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(FILE **)PTR_stdout_00120f98" (* "*") (cast_expression "(FILE **)PTR_stdout_00120f98" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_00120f98"))) () ")"))) (; ";")) (expression_statement "puVar4 = PTR_stdout_00120f98;" (assignment_expression "puVar4 = PTR_stdout_00120f98" (identifier "puVar4") (= "=") (identifier "PTR_stdout_00120f98")) (; ";")) (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" (identifier "uVar6") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (do_statement "do {\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    } while (cVar1 != '\0');" (do "do") (compound_statement "{\n      if (uVar6 == 0) break;\n      uVar6 = uVar6 - 1;\n      cVar1 = *param_1;\n      param_1 = param_1 + (ulong)bVar8 * -2 + 1;\n    }" ({ "{") (if_statement "if (uVar6 == 0) break;" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 - 1" (identifier "uVar6") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1 = param_1 + (ulong)bVar8 * -2 + 1;" (assignment_expression "param_1 = param_1 + (ulong)bVar8 * -2 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + (ulong)bVar8 * -2 + 1" (binary_expression "param_1 + (ulong)bVar8 * -2" (identifier "param_1") (+ "+") (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "lVar7 = (~uVar6 - 1) + (long)iVar5;" (assignment_expression "lVar7 = (~uVar6 - 1) + (long)iVar5" (identifier "lVar7") (= "=") (binary_expression "(~uVar6 - 1) + (long)iVar5" (parenthesized_expression "(~uVar6 - 1)" (( "(") (binary_expression "~uVar6 - 1" (unary_expression "~uVar6" (~ "~") (identifier "uVar6")) (- "-") (number_literal "1")) () ")")) (+ "+") (cast_expression "(long)iVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar5")))) (; ";")) (do_statement "do {\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    } while (iVar5 != -1);" (do "do") (compound_statement "{\n      p_Var2 = *(_IO_FILE **)puVar4;\n      pcVar3 = p_Var2->_IO_write_ptr;\n      if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }\n      iVar5 = iVar5 + -1;\n    }" ({ "{") (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" (identifier "p_Var2") (= "=") (pointer_expression "*(_IO_FILE **)puVar4" (* "*") (cast_expression "(_IO_FILE **)puVar4" (( "(") (type_descriptor "_IO_FILE **" (type_identifier "_IO_FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "pcVar3 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var2->_IO_write_ptr" (identifier "pcVar3") (= "=") (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr"))) (; ";")) (if_statement "if (pcVar3 < p_Var2->_IO_write_end) {\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }\n      else {\n        __overflow(p_Var2,0x20);\n      }" (if "if") (parenthesized_expression "(pcVar3 < p_Var2->_IO_write_end)" (( "(") (binary_expression "pcVar3 < p_Var2->_IO_write_end" (identifier "pcVar3") (< "<") (field_expression "p_Var2->_IO_write_end" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n        p_Var2->_IO_write_ptr = pcVar3 + 1;\n        *pcVar3 = ' ';\n      }" ({ "{") (expression_statement "p_Var2->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar3 = ' ';" (assignment_expression "*pcVar3 = ' '" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "' '" (' "'") (character " ") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n        __overflow(p_Var2,0x20);\n      }" (else "else") (compound_statement "{\n        __overflow(p_Var2,0x20);\n      }" ({ "{") (expression_statement "__overflow(p_Var2,0x20);" (call_expression "__overflow(p_Var2,0x20)" (identifier "__overflow") (argument_list "(p_Var2,0x20)" (( "(") (identifier "p_Var2") (, ",") (number_literal "0x20") () ")"))) (; ";")) (} "}")))) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != -1)" (( "(") (binary_expression "iVar5 != -1" (identifier "iVar5") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (} "}")))) (expression_statement "DAT_00122518 = lVar7 + 1 + DAT_00122518;" (assignment_expression "DAT_00122518 = lVar7 + 1 + DAT_00122518" (identifier "DAT_00122518") (= "=") (binary_expression "lVar7 + 1 + DAT_00122518" (binary_expression "lVar7 + 1" (identifier "lVar7") (+ "+") (number_literal "1")) (+ "+") (identifier "DAT_00122518"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *var_1,type_1 id,type_2 var_5)

{
  char var_9;
  type_3 *p_Var2;
  char *var_10;
  type_4 *puVar4;
  type_2 var_6;
  type_1 var_8;
  type_5 in_register_00000014;
  int var_12;
  long var_13;
  type_6 bVar9;
  
  bVar9 = 0;
  if (var_1 == (char *)0x0) {
    var_2(1,"%*lu ",var_3(in_register_00000014,var_5),id);
    var_13 = (long)var_5;
  }
  else {
    var_6 = var_4(var_1,L'\0');
    var_12 = var_5 - var_6;
    if (var_5 - var_6 < 0) {
      var_12 = 0;
    }
    var_7(var_1,*(type_7 **)PTR_stdout_00120f98);
    puVar4 = PTR_stdout_00120f98;
    var_8 = 0xffffffffffffffff;
    do {
      if (var_8 == 0) break;
      var_8 = var_8 - 1;
      var_9 = *var_1;
      var_1 = var_1 + (type_1)bVar9 * -2 + 1;
    } while (var_9 != '\0');
    var_13 = (~var_8 - 1) + (long)var_12;
    do {
      p_Var2 = *(type_3 **)puVar4;
      var_10 = p_Var2->_IO_write_ptr;
      if (var_10 < p_Var2->_IO_write_end) {
        p_Var2->_IO_write_ptr = var_10 + 1;
        *var_10 = ' ';
      }
      else {
        var_11(p_Var2,0x20);
      }
      var_12 = var_12 + -1;
    } while (var_12 != -1);
  }
  var_14 = var_13 + 1 + var_14;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) alternative: (else_clause (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (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: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) (return_statement))))

void MASKED(char *param_1,undefined8 param_2,undefined8 param_3)

{
  char cVar1;
  _IO_FILE *p_Var2;
  char *pcVar3;
  undefined *puVar4;
  int iVar5;
  ulong uVar6;
  long lVar7;
  byte bVar8;
  
  bVar8 = 0;
  if (param_1 == (char *)0x0) {
    __printf_chk(1,"%*lu ",param_3,param_2);
    lVar7 = (long)(int)param_3;
  }
  else {
    iVar5 = FUN_0011017e(param_1,0);
    iVar5 = (int)param_3 - iVar5;
    if (iVar5 < 0) {
      iVar5 = 0;
    }
    fputs_unlocked(param_1,*(FILE **)PTR_stdout_00120f98);
    puVar4 = PTR_stdout_00120f98;
    uVar6 = 0xffffffffffffffff;
    do {
      if (uVar6 == 0) break;
      uVar6 = uVar6 - 1;
      cVar1 = *param_1;
      param_1 = param_1 + (ulong)bVar8 * -2 + 1;
    } while (cVar1 != '\0');
    lVar7 = (~uVar6 - 1) + (long)iVar5;
    do {
      p_Var2 = *(_IO_FILE **)puVar4;
      pcVar3 = p_Var2->_IO_write_ptr;
      if (pcVar3 < p_Var2->_IO_write_end) {
        p_Var2->_IO_write_ptr = pcVar3 + 1;
        *pcVar3 = ' ';
      }
      else {
        __overflow(p_Var2,0x20);
      }
      iVar5 = iVar5 + -1;
    } while (iVar5 != -1);
  }
  DAT_00122518 = lVar7 + 1 + DAT_00122518;
  return;
}

