
void number_to_chars_bigendian(char *buf,valueT val,int n)

{
  char *pcVar1;
  
  if (0 < n) {
    pcVar1 = buf + (int)(n - 1U);
    do {
      *pcVar1 = (char)val;
      pcVar1 = pcVar1 + -1;
      val = val >> 8;
    } while (pcVar1 != buf + (((long)n + -2) - (ulong)(n - 1U)));
    return;
  }
                    /* WARNING: Subroutine does not return */
  as_abort("../../gas/write.c",0xc22,"number_to_chars_bigendian");
}



void FUN_001394f0(long param_1,ulong param_2,int param_3)

{
  undefined1 *puVar1;
  
  if (0 < param_3) {
    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);
    do {
      *puVar1 = (char)param_2;
      puVar1 = puVar1 + -1;
      param_2 = param_2 >> 8;
    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");
}


TEST EDX,EDX
JLE 0x00139521
LEA ECX,[RDX + -0x1]
MOVSXD RDX,EDX
MOVSXD RAX,ECX
LEA RDX,[RDI + RDX*0x1 + -0x2]
MOV ECX,ECX
ADD RAX,RDI
SUB RDX,RCX
NOP word ptr [RAX + RAX*0x1]
MOV byte ptr [RAX],SIL
SUB RAX,0x1
SHR RSI,0x8
CMP RAX,RDX
JNZ 0x00139510
RET
PUSH RAX
LEA RDX,[0x152f60]
MOV ESI,0xc22
LEA RDI,[0x152c5c]
CALL 0x00126810
(translation_unit "void FUN_001394f0(long param_1,ulong param_2,int param_3)\n\n{\n  undefined1 *puVar1;\n  \n  if (0 < param_3) {\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");\n}\n\n" (function_definition "void FUN_001394f0(long param_1,ulong param_2,int param_3)\n\n{\n  undefined1 *puVar1;\n  \n  if (0 < param_3) {\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");\n}" primitive_type (function_declarator "FUN_001394f0(long param_1,ulong param_2,int param_3)" identifier (parameter_list "(long param_1,ulong param_2,int param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  \n  if (0 < param_3) {\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (0 < param_3) {\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }" { (expression_statement "puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);" (assignment_expression "puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1)" identifier = (cast_expression "(undefined1 *)((int)(param_3 - 1U) + param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(param_3 - 1U) + param_1)" ( (binary_expression "(int)(param_3 - 1U) + param_1" (cast_expression "(int)(param_3 - 1U)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 - 1U)" ( (binary_expression "param_3 - 1U" identifier - number_literal) ))) + identifier) )))) ;) (do_statement "do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));" do (compound_statement "{\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    }" { (expression_statement "*puVar1 = (char)param_2;" (assignment_expression "*puVar1 = (char)param_2" (pointer_expression "*puVar1" * identifier) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar1 = puVar1 + -1;" (assignment_expression "puVar1 = puVar1 + -1" identifier = (binary_expression "puVar1 + -1" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 >> 8;" (assignment_expression "param_2 = param_2 >> 8" identifier = (binary_expression "param_2 >> 8" identifier >> number_literal)) ;) }) while (parenthesized_expression "(puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)))" ( (binary_expression "puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U))" identifier != (cast_expression "(undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U))" ( (binary_expression "(param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)" (parenthesized_expression "(param_1 + -2 + (long)param_3)" ( (binary_expression "param_1 + -2 + (long)param_3" (binary_expression "param_1 + -2" identifier + number_literal) + (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )) - (call_expression "(ulong)(param_3 - 1U)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_3 - 1U)" ( (binary_expression "param_3 - 1U" identifier - number_literal) )))) )))) )) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");" (call_expression "FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian")" identifier (argument_list "("../../gas/write.c",0xc22,"number_to_chars_bigendian")" ( (string_literal ""../../gas/write.c"" " string_content ") , number_literal , (string_literal ""number_to_chars_bigendian"" " string_content ") ))) ;) })))
(translation_unit "void number_to_chars_bigendian(char *buf,valueT val,int n)\n\n{\n  char *pcVar1;\n  \n  if (0 < n) {\n    pcVar1 = buf + (int)(n - 1U);\n    do {\n      *pcVar1 = (char)val;\n      pcVar1 = pcVar1 + -1;\n      val = val >> 8;\n    } while (pcVar1 != buf + (((long)n + -2) - (ulong)(n - 1U)));\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  as_abort("../../gas/write.c",0xc22,"number_to_chars_bigendian");\n}\n\n" (function_definition "void number_to_chars_bigendian(char *buf,valueT val,int n)\n\n{\n  char *pcVar1;\n  \n  if (0 < n) {\n    pcVar1 = buf + (int)(n - 1U);\n    do {\n      *pcVar1 = (char)val;\n      pcVar1 = pcVar1 + -1;\n      val = val >> 8;\n    } while (pcVar1 != buf + (((long)n + -2) - (ulong)(n - 1U)));\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  as_abort("../../gas/write.c",0xc22,"number_to_chars_bigendian");\n}" primitive_type (function_declarator "number_to_chars_bigendian(char *buf,valueT val,int n)" identifier (parameter_list "(char *buf,valueT val,int n)" ( (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "valueT val" type_identifier identifier) , (parameter_declaration "int n" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  if (0 < n) {\n    pcVar1 = buf + (int)(n - 1U);\n    do {\n      *pcVar1 = (char)val;\n      pcVar1 = pcVar1 + -1;\n      val = val >> 8;\n    } while (pcVar1 != buf + (((long)n + -2) - (ulong)(n - 1U)));\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  as_abort("../../gas/write.c",0xc22,"number_to_chars_bigendian");\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (0 < n) {\n    pcVar1 = buf + (int)(n - 1U);\n    do {\n      *pcVar1 = (char)val;\n      pcVar1 = pcVar1 + -1;\n      val = val >> 8;\n    } while (pcVar1 != buf + (((long)n + -2) - (ulong)(n - 1U)));\n    return;\n  }" if (parenthesized_expression "(0 < n)" ( (binary_expression "0 < n" number_literal < identifier) )) (compound_statement "{\n    pcVar1 = buf + (int)(n - 1U);\n    do {\n      *pcVar1 = (char)val;\n      pcVar1 = pcVar1 + -1;\n      val = val >> 8;\n    } while (pcVar1 != buf + (((long)n + -2) - (ulong)(n - 1U)));\n    return;\n  }" { (expression_statement "pcVar1 = buf + (int)(n - 1U);" (assignment_expression "pcVar1 = buf + (int)(n - 1U)" identifier = (binary_expression "buf + (int)(n - 1U)" identifier + (cast_expression "(int)(n - 1U)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(n - 1U)" ( (binary_expression "n - 1U" identifier - number_literal) ))))) ;) (do_statement "do {\n      *pcVar1 = (char)val;\n      pcVar1 = pcVar1 + -1;\n      val = val >> 8;\n    } while (pcVar1 != buf + (((long)n + -2) - (ulong)(n - 1U)));" do (compound_statement "{\n      *pcVar1 = (char)val;\n      pcVar1 = pcVar1 + -1;\n      val = val >> 8;\n    }" { (expression_statement "*pcVar1 = (char)val;" (assignment_expression "*pcVar1 = (char)val" (pointer_expression "*pcVar1" * identifier) = (cast_expression "(char)val" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "pcVar1 = pcVar1 + -1;" (assignment_expression "pcVar1 = pcVar1 + -1" identifier = (binary_expression "pcVar1 + -1" identifier + number_literal)) ;) (expression_statement "val = val >> 8;" (assignment_expression "val = val >> 8" identifier = (binary_expression "val >> 8" identifier >> number_literal)) ;) }) while (parenthesized_expression "(pcVar1 != buf + (((long)n + -2) - (ulong)(n - 1U)))" ( (binary_expression "pcVar1 != buf + (((long)n + -2) - (ulong)(n - 1U))" identifier != (binary_expression "buf + (((long)n + -2) - (ulong)(n - 1U))" identifier + (parenthesized_expression "(((long)n + -2) - (ulong)(n - 1U))" ( (binary_expression "((long)n + -2) - (ulong)(n - 1U)" (parenthesized_expression "((long)n + -2)" ( (binary_expression "(long)n + -2" (cast_expression "(long)n" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )) - (call_expression "(ulong)(n - 1U)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(n - 1U)" ( (binary_expression "n - 1U" identifier - number_literal) )))) )))) )) ;) (return_statement "return;" return ;) })) comment (expression_statement "as_abort("../../gas/write.c",0xc22,"number_to_chars_bigendian");" (call_expression "as_abort("../../gas/write.c",0xc22,"number_to_chars_bigendian")" identifier (argument_list "("../../gas/write.c",0xc22,"number_to_chars_bigendian")" ( (string_literal ""../../gas/write.c"" " string_content ") , number_literal , (string_literal ""number_to_chars_bigendian"" " string_content ") ))) ;) })))
(translation_unit "void FUN_001394f0(long param_1,ulong param_2,int param_3)\n\n{\n  undefined1 *puVar1;\n  \n  if (0 < param_3) {\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }\n                    \n  FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");\n}\n\n" (function_definition "void FUN_001394f0(long param_1,ulong param_2,int param_3)\n\n{\n  undefined1 *puVar1;\n  \n  if (0 < param_3) {\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }\n                    \n  FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");\n}" primitive_type (function_declarator "FUN_001394f0(long param_1,ulong param_2,int param_3)" identifier (parameter_list "(long param_1,ulong param_2,int param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  \n  if (0 < param_3) {\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }\n                    \n  FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (0 < param_3) {\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }" { (expression_statement "puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);" (assignment_expression "puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1)" identifier = (cast_expression "(undefined1 *)((int)(param_3 - 1U) + param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(param_3 - 1U) + param_1)" ( (binary_expression "(int)(param_3 - 1U) + param_1" (cast_expression "(int)(param_3 - 1U)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 - 1U)" ( (binary_expression "param_3 - 1U" identifier - number_literal) ))) + identifier) )))) ;) (do_statement "do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));" do (compound_statement "{\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    }" { (expression_statement "*puVar1 = (char)param_2;" (assignment_expression "*puVar1 = (char)param_2" (pointer_expression "*puVar1" * identifier) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar1 = puVar1 + -1;" (assignment_expression "puVar1 = puVar1 + -1" identifier = (binary_expression "puVar1 + -1" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 >> 8;" (assignment_expression "param_2 = param_2 >> 8" identifier = (binary_expression "param_2 >> 8" identifier >> number_literal)) ;) }) while (parenthesized_expression "(puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)))" ( (binary_expression "puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U))" identifier != (cast_expression "(undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U))" ( (binary_expression "(param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)" (parenthesized_expression "(param_1 + -2 + (long)param_3)" ( (binary_expression "param_1 + -2 + (long)param_3" (binary_expression "param_1 + -2" identifier + number_literal) + (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )) - (call_expression "(ulong)(param_3 - 1U)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_3 - 1U)" ( (binary_expression "param_3 - 1U" identifier - number_literal) )))) )))) )) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");" (call_expression "FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian")" identifier (argument_list "("../../gas/write.c",0xc22,"number_to_chars_bigendian")" ( (string_literal ""../../gas/write.c"" " string_content ") , number_literal , (string_literal ""number_to_chars_bigendian"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - LIT) ))) + IDENT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) )))) )))) )) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_001394f0(long param_1,ulong param_2,int param_3)\n\n{\n  undefined1 *puVar1;\n  \n  if (0 < param_3) {\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }\n                    \n  FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");\n}" (primitive_type "void") (function_declarator "FUN_001394f0(long param_1,ulong param_2,int param_3)" (identifier "FUN_001394f0") (parameter_list "(long param_1,ulong param_2,int param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  \n  if (0 < param_3) {\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }\n                    \n  FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if (0 < param_3) {\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }" (if "if") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);\n    do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));\n    return;\n  }" ({ "{") (expression_statement "puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);" (assignment_expression "puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)((int)(param_3 - 1U) + param_1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)(param_3 - 1U) + param_1)" (( "(") (binary_expression "(int)(param_3 - 1U) + param_1" (cast_expression "(int)(param_3 - 1U)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_3 - 1U)" (( "(") (binary_expression "param_3 - 1U" (identifier "param_3") (- "-") (number_literal "1U")) () ")"))) (+ "+") (identifier "param_1")) () ")")))) (; ";")) (do_statement "do {\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));" (do "do") (compound_statement "{\n      *puVar1 = (char)param_2;\n      puVar1 = puVar1 + -1;\n      param_2 = param_2 >> 8;\n    }" ({ "{") (expression_statement "*puVar1 = (char)param_2;" (assignment_expression "*puVar1 = (char)param_2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (cast_expression "(char)param_2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "puVar1 = puVar1 + -1;" (assignment_expression "puVar1 = puVar1 + -1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + -1" (identifier "puVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "param_2 = param_2 >> 8;" (assignment_expression "param_2 = param_2 >> 8" (identifier "param_2") (= "=") (binary_expression "param_2 >> 8" (identifier "param_2") (>> ">>") (number_literal "8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)))" (( "(") (binary_expression "puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U))" (identifier "puVar1") (!= "!=") (cast_expression "(undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U))" (( "(") (binary_expression "(param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)" (parenthesized_expression "(param_1 + -2 + (long)param_3)" (( "(") (binary_expression "param_1 + -2 + (long)param_3" (binary_expression "param_1 + -2" (identifier "param_1") (+ "+") (number_literal "-2")) (+ "+") (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3"))) () ")")) (- "-") (call_expression "(ulong)(param_3 - 1U)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_3 - 1U)" (( "(") (binary_expression "param_3 - 1U" (identifier "param_3") (- "-") (number_literal "1U")) () ")")))) () ")")))) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");" (call_expression "FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian")" (identifier "FUN_00126810") (argument_list "("../../gas/write.c",0xc22,"number_to_chars_bigendian")" (( "(") (string_literal ""../../gas/write.c"" (" """) (string_content "../../gas/write.c") (" """)) (, ",") (number_literal "0xc22") (, ",") (string_literal ""number_to_chars_bigendian"" (" """) (string_content "number_to_chars_bigendian") (" """)) () ")"))) (; ";")) (} "}")))

void function_1(char *var_2,type_1 var_4,int var_1)

{
  char *var_3;
  
  if (0 < var_1) {
    var_3 = var_2 + (int)(var_1 - 1U);
    do {
      *var_3 = (char)var_4;
      var_3 = var_3 + -1;
      var_4 = var_4 >> 8;
    } while (var_3 != var_2 + (((long)var_1 + -2) - (ulong)(var_1 - 1U)));
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_5("../../gas/write.c",0xc22,"number_to_chars_bigendian");
}


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

void MASKED(long param_1,ulong param_2,int param_3)

{
  undefined1 *puVar1;
  
  if (0 < param_3) {
    puVar1 = (undefined1 *)((int)(param_3 - 1U) + param_1);
    do {
      *puVar1 = (char)param_2;
      puVar1 = puVar1 + -1;
      param_2 = param_2 >> 8;
    } while (puVar1 != (undefined1 *)((param_1 + -2 + (long)param_3) - (ulong)(param_3 - 1U)));
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00126810("../../gas/write.c",0xc22,"number_to_chars_bigendian");
}

