
void print_bytes_scaled(ulonglong ull,char *end)

{
  int iVar1;
  ulonglong uVar2;
  uint uVar3;
  char *pcVar4;
  
  iVar1 = 4;
  uVar3 = 0;
  pcVar4 = "";
  uVar2 = ull;
  do {
    if (0x3ff < uVar2) {
      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;
      uVar2 = uVar2 >> 10;
      pcVar4 = pcVar4 + 3;
    }
    iVar1 = iVar1 + -1;
  } while (iVar1 != 0);
  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",ull,uVar2,uVar3,pcVar4,end);
  return;
}



void FUN_001281b7(ulong param_1,undefined8 param_2)

{
  int iVar1;
  ulong uVar2;
  uint uVar3;
  undefined *puVar4;
  
  iVar1 = 4;
  uVar3 = 0;
  puVar4 = &DAT_001b921c;
  uVar2 = param_1;
  do {
    if (0x3ff < uVar2) {
      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;
      uVar2 = uVar2 >> 10;
      puVar4 = puVar4 + 3;
    }
    iVar1 = iVar1 + -1;
  } while (iVar1 != 0);
  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);
  return;
}


SUB RSP,0x8
MOV RDX,RDI
MOV RCX,RDI
MOV EAX,0x4
MOV R8D,0x0
LEA R9,[0x1b921c]
CMP RCX,0x3ff
JBE 0x001281f4
MOV EDI,ECX
AND EDI,0x3ff
LEA R8D,[RDI + RDI*0x4]
SHR R8D,0x9
SHR RCX,0xa
ADD R9,0x3
SUB EAX,0x1
JNZ 0x001281d3
SUB RSP,0x8
PUSH RSI
LEA RSI,[0x1b8fd2]
MOV EDI,0x1
MOV EAX,0x0
CALL 0x0010bf80
ADD RSP,0x18
RET
(translation_unit "void FUN_001281b7(ulong param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  ulong uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar1 = 4;\n  uVar3 = 0;\n  puVar4 = &DAT_001b921c;\n  uVar2 = param_1;\n  do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);\n  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);\n  return;\n}\n\n" (function_definition "void FUN_001281b7(ulong param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  ulong uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar1 = 4;\n  uVar3 = 0;\n  puVar4 = &DAT_001b921c;\n  uVar2 = param_1;\n  do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);\n  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_001281b7(ulong param_1,undefined8 param_2)" identifier (parameter_list "(ulong param_1,undefined8 param_2)" ( (parameter_declaration "ulong param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar1 = 4;\n  uVar3 = 0;\n  puVar4 = &DAT_001b921c;\n  uVar2 = param_1;\n  do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);\n  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "iVar1 = 4;" (assignment_expression "iVar1 = 4" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = &DAT_001b921c;" (assignment_expression "puVar4 = &DAT_001b921c" identifier = (pointer_expression "&DAT_001b921c" & identifier)) ;) (expression_statement "uVar2 = param_1;" (assignment_expression "uVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);" do (compound_statement "{\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  }" { (if_statement "if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }" if (parenthesized_expression "(0x3ff < uVar2)" ( (binary_expression "0x3ff < uVar2" number_literal < identifier) )) (compound_statement "{\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }" { (expression_statement "uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;" (assignment_expression "uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9" identifier = (binary_expression "((uint)uVar2 & 0x3ff) * 5 >> 9" (binary_expression "((uint)uVar2 & 0x3ff) * 5" (parenthesized_expression "((uint)uVar2 & 0x3ff)" ( (binary_expression "(uint)uVar2 & 0x3ff" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) * number_literal) >> number_literal)) ;) (expression_statement "uVar2 = uVar2 >> 10;" (assignment_expression "uVar2 = uVar2 >> 10" identifier = (binary_expression "uVar2 >> 10" identifier >> number_literal)) ;) (expression_statement "puVar4 = puVar4 + 3;" (assignment_expression "puVar4 = puVar4 + 3" identifier = (binary_expression "puVar4 + 3" identifier + number_literal)) ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (expression_statement "__printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);" (call_expression "__printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2)" identifier (argument_list "(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2)" ( number_literal , (string_literal ""X bytes:%llu (%llu.%u %sB)%s"" " string_content ") , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void print_bytes_scaled(ulonglong ull,char *end)\n\n{\n  int iVar1;\n  ulonglong uVar2;\n  uint uVar3;\n  char *pcVar4;\n  \n  iVar1 = 4;\n  uVar3 = 0;\n  pcVar4 = "";\n  uVar2 = ull;\n  do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      pcVar4 = pcVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);\n  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",ull,uVar2,uVar3,pcVar4,end);\n  return;\n}\n\n" (function_definition "void print_bytes_scaled(ulonglong ull,char *end)\n\n{\n  int iVar1;\n  ulonglong uVar2;\n  uint uVar3;\n  char *pcVar4;\n  \n  iVar1 = 4;\n  uVar3 = 0;\n  pcVar4 = "";\n  uVar2 = ull;\n  do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      pcVar4 = pcVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);\n  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",ull,uVar2,uVar3,pcVar4,end);\n  return;\n}" primitive_type (function_declarator "print_bytes_scaled(ulonglong ull,char *end)" identifier (parameter_list "(ulonglong ull,char *end)" ( (parameter_declaration "ulonglong ull" type_identifier identifier) , (parameter_declaration "char *end" primitive_type (pointer_declarator "*end" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  ulonglong uVar2;\n  uint uVar3;\n  char *pcVar4;\n  \n  iVar1 = 4;\n  uVar3 = 0;\n  pcVar4 = "";\n  uVar2 = ull;\n  do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      pcVar4 = pcVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);\n  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",ull,uVar2,uVar3,pcVar4,end);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulonglong uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "iVar1 = 4;" (assignment_expression "iVar1 = 4" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = "";" (assignment_expression "pcVar4 = """ identifier = (string_literal """" " ")) ;) (expression_statement "uVar2 = ull;" (assignment_expression "uVar2 = ull" identifier = identifier) ;) (do_statement "do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      pcVar4 = pcVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);" do (compound_statement "{\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      pcVar4 = pcVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  }" { (if_statement "if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      pcVar4 = pcVar4 + 3;\n    }" if (parenthesized_expression "(0x3ff < uVar2)" ( (binary_expression "0x3ff < uVar2" number_literal < identifier) )) (compound_statement "{\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      pcVar4 = pcVar4 + 3;\n    }" { (expression_statement "uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;" (assignment_expression "uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9" identifier = (binary_expression "((uint)uVar2 & 0x3ff) * 5 >> 9" (binary_expression "((uint)uVar2 & 0x3ff) * 5" (parenthesized_expression "((uint)uVar2 & 0x3ff)" ( (binary_expression "(uint)uVar2 & 0x3ff" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) * number_literal) >> number_literal)) ;) (expression_statement "uVar2 = uVar2 >> 10;" (assignment_expression "uVar2 = uVar2 >> 10" identifier = (binary_expression "uVar2 >> 10" identifier >> number_literal)) ;) (expression_statement "pcVar4 = pcVar4 + 3;" (assignment_expression "pcVar4 = pcVar4 + 3" identifier = (binary_expression "pcVar4 + 3" identifier + number_literal)) ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (expression_statement "__printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",ull,uVar2,uVar3,pcVar4,end);" (call_expression "__printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",ull,uVar2,uVar3,pcVar4,end)" identifier (argument_list "(1,"X bytes:%llu (%llu.%u %sB)%s",ull,uVar2,uVar3,pcVar4,end)" ( number_literal , (string_literal ""X bytes:%llu (%llu.%u %sB)%s"" " string_content ") , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001281b7(ulong param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  ulong uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar1 = 4;\n  uVar3 = 0;\n  puVar4 = &DAT_001b921c;\n  uVar2 = param_1;\n  do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);\n  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);\n  return;\n}\n\n" (function_definition "void FUN_001281b7(ulong param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  ulong uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar1 = 4;\n  uVar3 = 0;\n  puVar4 = &DAT_001b921c;\n  uVar2 = param_1;\n  do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);\n  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_001281b7(ulong param_1,undefined8 param_2)" identifier (parameter_list "(ulong param_1,undefined8 param_2)" ( (parameter_declaration "ulong param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar1 = 4;\n  uVar3 = 0;\n  puVar4 = &DAT_001b921c;\n  uVar2 = param_1;\n  do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);\n  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "iVar1 = 4;" (assignment_expression "iVar1 = 4" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = &DAT_001b921c;" (assignment_expression "puVar4 = &DAT_001b921c" identifier = (pointer_expression "&DAT_001b921c" & identifier)) ;) (expression_statement "uVar2 = param_1;" (assignment_expression "uVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);" do (compound_statement "{\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  }" { (if_statement "if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }" if (parenthesized_expression "(0x3ff < uVar2)" ( (binary_expression "0x3ff < uVar2" number_literal < identifier) )) (compound_statement "{\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }" { (expression_statement "uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;" (assignment_expression "uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9" identifier = (binary_expression "((uint)uVar2 & 0x3ff) * 5 >> 9" (binary_expression "((uint)uVar2 & 0x3ff) * 5" (parenthesized_expression "((uint)uVar2 & 0x3ff)" ( (binary_expression "(uint)uVar2 & 0x3ff" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) * number_literal) >> number_literal)) ;) (expression_statement "uVar2 = uVar2 >> 10;" (assignment_expression "uVar2 = uVar2 >> 10" identifier = (binary_expression "uVar2 >> 10" identifier >> number_literal)) ;) (expression_statement "puVar4 = puVar4 + 3;" (assignment_expression "puVar4 = puVar4 + 3" identifier = (binary_expression "puVar4 + 3" identifier + number_literal)) ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (expression_statement "__printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);" (call_expression "__printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2)" identifier (argument_list "(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2)" ( number_literal , (string_literal ""X bytes:%llu (%llu.%u %sB)%s"" " string_content ") , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) * LIT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001281b7(ulong param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  ulong uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar1 = 4;\n  uVar3 = 0;\n  puVar4 = &DAT_001b921c;\n  uVar2 = param_1;\n  do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);\n  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001281b7(ulong param_1,undefined8 param_2)" (identifier "FUN_001281b7") (parameter_list "(ulong param_1,undefined8 param_2)" (( "(") (parameter_declaration "ulong param_1" (type_identifier "ulong") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  uint uVar3;\n  undefined *puVar4;\n  \n  iVar1 = 4;\n  uVar3 = 0;\n  puVar4 = &DAT_001b921c;\n  uVar2 = param_1;\n  do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);\n  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "iVar1 = 4;" (assignment_expression "iVar1 = 4" (identifier "iVar1") (= "=") (number_literal "4")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = &DAT_001b921c;" (assignment_expression "puVar4 = &DAT_001b921c" (identifier "puVar4") (= "=") (pointer_expression "&DAT_001b921c" (& "&") (identifier "DAT_001b921c"))) (; ";")) (expression_statement "uVar2 = param_1;" (assignment_expression "uVar2 = param_1" (identifier "uVar2") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  } while (iVar1 != 0);" (do "do") (compound_statement "{\n    if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }\n    iVar1 = iVar1 + -1;\n  }" ({ "{") (if_statement "if (0x3ff < uVar2) {\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }" (if "if") (parenthesized_expression "(0x3ff < uVar2)" (( "(") (binary_expression "0x3ff < uVar2" (number_literal "0x3ff") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;\n      uVar2 = uVar2 >> 10;\n      puVar4 = puVar4 + 3;\n    }" ({ "{") (expression_statement "uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;" (assignment_expression "uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9" (identifier "uVar3") (= "=") (binary_expression "((uint)uVar2 & 0x3ff) * 5 >> 9" (binary_expression "((uint)uVar2 & 0x3ff) * 5" (parenthesized_expression "((uint)uVar2 & 0x3ff)" (( "(") (binary_expression "(uint)uVar2 & 0x3ff" (cast_expression "(uint)uVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar2")) (& "&") (number_literal "0x3ff")) () ")")) (* "*") (number_literal "5")) (>> ">>") (number_literal "9"))) (; ";")) (expression_statement "uVar2 = uVar2 >> 10;" (assignment_expression "uVar2 = uVar2 >> 10" (identifier "uVar2") (= "=") (binary_expression "uVar2 >> 10" (identifier "uVar2") (>> ">>") (number_literal "10"))) (; ";")) (expression_statement "puVar4 = puVar4 + 3;" (assignment_expression "puVar4 = puVar4 + 3" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 3" (identifier "puVar4") (+ "+") (number_literal "3"))) (; ";")) (} "}"))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "__printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);" (call_expression "__printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2)" (identifier "__printf_chk") (argument_list "(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2)" (( "(") (number_literal "1") (, ",") (string_literal ""X bytes:%llu (%llu.%u %sB)%s"" (" """) (string_content "X bytes:%llu (%llu.%u %sB)%s") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "uVar2") (, ",") (identifier "uVar3") (, ",") (identifier "puVar4") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 ull,char *end)

{
  int var_3;
  type_1 var_1;
  type_2 uVar3;
  char *var_2;
  
  var_3 = 4;
  uVar3 = 0;
  var_2 = "";
  var_1 = ull;
  do {
    if (0x3ff < var_1) {
      uVar3 = ((type_2)var_1 & 0x3ff) * 5 >> 9;
      var_1 = var_1 >> 10;
      var_2 = var_2 + 3;
    }
    var_3 = var_3 + -1;
  } while (var_3 != 0);
  var_4(1,"X bytes:%llu (%llu.%u %sB)%s",ull,var_1,uVar3,var_2,end);
  return;
}


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

void MASKED(ulong param_1,undefined8 param_2)

{
  int iVar1;
  ulong uVar2;
  uint uVar3;
  undefined *puVar4;
  
  iVar1 = 4;
  uVar3 = 0;
  puVar4 = &DAT_001b921c;
  uVar2 = param_1;
  do {
    if (0x3ff < uVar2) {
      uVar3 = ((uint)uVar2 & 0x3ff) * 5 >> 9;
      uVar2 = uVar2 >> 10;
      puVar4 = puVar4 + 3;
    }
    iVar1 = iVar1 + -1;
  } while (iVar1 != 0);
  __printf_chk(1,"X bytes:%llu (%llu.%u %sB)%s",param_1,uVar2,uVar3,puVar4,param_2);
  return;
}

