
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

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

{
  char *pcVar1;
  char *pcVar2;
  
  if (0 < n) {
    pcVar2 = buf;
    do {
      pcVar1 = pcVar2 + 1;
      *pcVar2 = (char)val;
      val = val >> 8;
      pcVar2 = pcVar1;
    } while (pcVar1 != buf + n);
    return;
  }
                    /* WARNING: Subroutine does not return */
  as_abort("../../gas/write.c",0xc2e,"number_to_chars_littleendian");
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void FUN_0003fb70(undefined1 *param_1,uint param_2,uint param_3,int param_4)

{
  undefined1 *puVar1;
  undefined1 *puVar2;
  
  if (0 < param_4) {
    puVar2 = param_1;
    do {
      puVar1 = puVar2 + 1;
      *puVar2 = (char)param_2;
      param_2 = param_2 >> 8 | param_3 << 0x18;
      param_3 = param_3 >> 8;
      puVar2 = puVar1;
    } while (puVar1 != param_1 + param_4);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);
}


PUSH ESI
CALL 0x0001eeac
ADD ESI,0x2848a
PUSH EBX
SUB ESP,0x4
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESP + 0x18]
TEST EDX,EDX
JLE 0x0003fbb7
ADD EDX,EAX
LEA ESI,[ESI]
LEA ESI,[ESI]
ADD EAX,0x1
MOV byte ptr [EAX + -0x1],CL
SHRD ECX,EBX,0x8
SHR EBX,0x8
CMP EAX,EDX
JNZ 0x0003fba0
ADD ESP,0x4
POP EBX
POP ESI
RET
PUSH EAX
LEA EAX,[ESI + 0xfffe8b84]
MOV EBX,ESI
PUSH EAX
LEA EAX,[ESI + 0xfffe8908]
PUSH 0xc2e
PUSH EAX
CALL 0x0002ad70
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_0003fb70(undefined1 *param_1,uint param_2,uint param_3,int param_4)\n\n{\n  undefined1 *puVar1;\n  undefined1 *puVar2;\n  \n  if (0 < param_4) {\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);\n}\n\n" comment (function_definition "void FUN_0003fb70(undefined1 *param_1,uint param_2,uint param_3,int param_4)\n\n{\n  undefined1 *puVar1;\n  undefined1 *puVar2;\n  \n  if (0 < param_4) {\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);\n}" primitive_type (function_declarator "FUN_0003fb70(undefined1 *param_1,uint param_2,uint param_3,int param_4)" identifier (parameter_list "(undefined1 *param_1,uint param_2,uint param_3,int param_4)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 *puVar2;\n  \n  if (0 < param_4) {\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (0 < param_4) {\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }" if (parenthesized_expression "(0 < param_4)" ( (binary_expression "0 < param_4" number_literal < identifier) )) (compound_statement "{\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }" { (expression_statement "puVar2 = param_1;" (assignment_expression "puVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);" do (compound_statement "{\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    }" { (expression_statement "puVar1 = puVar2 + 1;" (assignment_expression "puVar1 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar2 = (char)param_2;" (assignment_expression "*puVar2 = (char)param_2" (pointer_expression "*puVar2" * identifier) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_2 = param_2 >> 8 | param_3 << 0x18;" (assignment_expression "param_2 = param_2 >> 8 | param_3 << 0x18" identifier = (binary_expression "param_2 >> 8 | param_3 << 0x18" (binary_expression "param_2 >> 8" identifier >> number_literal) | (binary_expression "param_3 << 0x18" identifier << number_literal))) ;) (expression_statement "param_3 = param_3 >> 8;" (assignment_expression "param_3 = param_3 >> 8" identifier = (binary_expression "param_3 >> 8" identifier >> number_literal)) ;) (expression_statement "puVar2 = puVar1;" (assignment_expression "puVar2 = puVar1" identifier = identifier) ;) }) while (parenthesized_expression "(puVar1 != param_1 + param_4)" ( (binary_expression "puVar1 != param_1 + param_4" identifier != (binary_expression "param_1 + param_4" identifier + identifier)) )) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);" (call_expression "FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1)" identifier (argument_list "("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1)" ( (string_literal ""../../gas/write.c"" " string_content ") , number_literal , (string_literal ""number_to_chars_littleendian"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid number_to_chars_littleendian(char *buf,valueT val,int n)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  \n  if (0 < n) {\n    pcVar2 = buf;\n    do {\n      pcVar1 = pcVar2 + 1;\n      *pcVar2 = (char)val;\n      val = val >> 8;\n      pcVar2 = pcVar1;\n    } while (pcVar1 != buf + n);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  as_abort("../../gas/write.c",0xc2e,"number_to_chars_littleendian");\n}\n\n" comment (function_definition "void number_to_chars_littleendian(char *buf,valueT val,int n)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  \n  if (0 < n) {\n    pcVar2 = buf;\n    do {\n      pcVar1 = pcVar2 + 1;\n      *pcVar2 = (char)val;\n      val = val >> 8;\n      pcVar2 = pcVar1;\n    } while (pcVar1 != buf + n);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  as_abort("../../gas/write.c",0xc2e,"number_to_chars_littleendian");\n}" primitive_type (function_declarator "number_to_chars_littleendian(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  char *pcVar2;\n  \n  if (0 < n) {\n    pcVar2 = buf;\n    do {\n      pcVar1 = pcVar2 + 1;\n      *pcVar2 = (char)val;\n      val = val >> 8;\n      pcVar2 = pcVar1;\n    } while (pcVar1 != buf + n);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  as_abort("../../gas/write.c",0xc2e,"number_to_chars_littleendian");\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (0 < n) {\n    pcVar2 = buf;\n    do {\n      pcVar1 = pcVar2 + 1;\n      *pcVar2 = (char)val;\n      val = val >> 8;\n      pcVar2 = pcVar1;\n    } while (pcVar1 != buf + n);\n    return;\n  }" if (parenthesized_expression "(0 < n)" ( (binary_expression "0 < n" number_literal < identifier) )) (compound_statement "{\n    pcVar2 = buf;\n    do {\n      pcVar1 = pcVar2 + 1;\n      *pcVar2 = (char)val;\n      val = val >> 8;\n      pcVar2 = pcVar1;\n    } while (pcVar1 != buf + n);\n    return;\n  }" { (expression_statement "pcVar2 = buf;" (assignment_expression "pcVar2 = buf" identifier = identifier) ;) (do_statement "do {\n      pcVar1 = pcVar2 + 1;\n      *pcVar2 = (char)val;\n      val = val >> 8;\n      pcVar2 = pcVar1;\n    } while (pcVar1 != buf + n);" do (compound_statement "{\n      pcVar1 = pcVar2 + 1;\n      *pcVar2 = (char)val;\n      val = val >> 8;\n      pcVar2 = pcVar1;\n    }" { (expression_statement "pcVar1 = pcVar2 + 1;" (assignment_expression "pcVar1 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = (char)val;" (assignment_expression "*pcVar2 = (char)val" (pointer_expression "*pcVar2" * identifier) = (cast_expression "(char)val" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "val = val >> 8;" (assignment_expression "val = val >> 8" identifier = (binary_expression "val >> 8" identifier >> number_literal)) ;) (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar1 != buf + n)" ( (binary_expression "pcVar1 != buf + n" identifier != (binary_expression "buf + n" identifier + identifier)) )) ;) (return_statement "return;" return ;) })) comment (expression_statement "as_abort("../../gas/write.c",0xc2e,"number_to_chars_littleendian");" (call_expression "as_abort("../../gas/write.c",0xc2e,"number_to_chars_littleendian")" identifier (argument_list "("../../gas/write.c",0xc2e,"number_to_chars_littleendian")" ( (string_literal ""../../gas/write.c"" " string_content ") , number_literal , (string_literal ""number_to_chars_littleendian"" " string_content ") ))) ;) })))
(translation_unit "void FUN_0003fb70(undefined1 *param_1,uint param_2,uint param_3,int param_4)\n\n{\n  undefined1 *puVar1;\n  undefined1 *puVar2;\n  \n  if (0 < param_4) {\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }\n                    \n  FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);\n}\n\n" (function_definition "void FUN_0003fb70(undefined1 *param_1,uint param_2,uint param_3,int param_4)\n\n{\n  undefined1 *puVar1;\n  undefined1 *puVar2;\n  \n  if (0 < param_4) {\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }\n                    \n  FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);\n}" primitive_type (function_declarator "FUN_0003fb70(undefined1 *param_1,uint param_2,uint param_3,int param_4)" identifier (parameter_list "(undefined1 *param_1,uint param_2,uint param_3,int param_4)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 *puVar2;\n  \n  if (0 < param_4) {\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }\n                    \n  FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (0 < param_4) {\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }" if (parenthesized_expression "(0 < param_4)" ( (binary_expression "0 < param_4" number_literal < identifier) )) (compound_statement "{\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }" { (expression_statement "puVar2 = param_1;" (assignment_expression "puVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);" do (compound_statement "{\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    }" { (expression_statement "puVar1 = puVar2 + 1;" (assignment_expression "puVar1 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar2 = (char)param_2;" (assignment_expression "*puVar2 = (char)param_2" (pointer_expression "*puVar2" * identifier) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_2 = param_2 >> 8 | param_3 << 0x18;" (assignment_expression "param_2 = param_2 >> 8 | param_3 << 0x18" identifier = (binary_expression "param_2 >> 8 | param_3 << 0x18" (binary_expression "param_2 >> 8" identifier >> number_literal) | (binary_expression "param_3 << 0x18" identifier << number_literal))) ;) (expression_statement "param_3 = param_3 >> 8;" (assignment_expression "param_3 = param_3 >> 8" identifier = (binary_expression "param_3 >> 8" identifier >> number_literal)) ;) (expression_statement "puVar2 = puVar1;" (assignment_expression "puVar2 = puVar1" identifier = identifier) ;) }) while (parenthesized_expression "(puVar1 != param_1 + param_4)" ( (binary_expression "puVar1 != param_1 + param_4" identifier != (binary_expression "param_1 + param_4" identifier + identifier)) )) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);" (call_expression "FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1)" identifier (argument_list "("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1)" ( (string_literal ""../../gas/write.c"" " string_content ") , number_literal , (string_literal ""number_to_chars_littleendian"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void FUN_0003fb70(undefined1 *param_1,uint param_2,uint param_3,int param_4)\n\n{\n  undefined1 *puVar1;\n  undefined1 *puVar2;\n  \n  if (0 < param_4) {\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }\n                    \n  FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);\n}" (primitive_type "void") (function_declarator "FUN_0003fb70(undefined1 *param_1,uint param_2,uint param_3,int param_4)" (identifier "FUN_0003fb70") (parameter_list "(undefined1 *param_1,uint param_2,uint param_3,int param_4)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 *puVar2;\n  \n  if (0 < param_4) {\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }\n                    \n  FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (0 < param_4) {\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }" (if "if") (parenthesized_expression "(0 < param_4)" (( "(") (binary_expression "0 < param_4" (number_literal "0") (< "<") (identifier "param_4")) () ")")) (compound_statement "{\n    puVar2 = param_1;\n    do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);\n    return;\n  }" ({ "{") (expression_statement "puVar2 = param_1;" (assignment_expression "puVar2 = param_1" (identifier "puVar2") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    } while (puVar1 != param_1 + param_4);" (do "do") (compound_statement "{\n      puVar1 = puVar2 + 1;\n      *puVar2 = (char)param_2;\n      param_2 = param_2 >> 8 | param_3 << 0x18;\n      param_3 = param_3 >> 8;\n      puVar2 = puVar1;\n    }" ({ "{") (expression_statement "puVar1 = puVar2 + 1;" (assignment_expression "puVar1 = puVar2 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar2 = (char)param_2;" (assignment_expression "*puVar2 = (char)param_2" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (cast_expression "(char)param_2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "param_2 = param_2 >> 8 | param_3 << 0x18;" (assignment_expression "param_2 = param_2 >> 8 | param_3 << 0x18" (identifier "param_2") (= "=") (binary_expression "param_2 >> 8 | param_3 << 0x18" (binary_expression "param_2 >> 8" (identifier "param_2") (>> ">>") (number_literal "8")) (| "|") (binary_expression "param_3 << 0x18" (identifier "param_3") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "param_3 = param_3 >> 8;" (assignment_expression "param_3 = param_3 >> 8" (identifier "param_3") (= "=") (binary_expression "param_3 >> 8" (identifier "param_3") (>> ">>") (number_literal "8"))) (; ";")) (expression_statement "puVar2 = puVar1;" (assignment_expression "puVar2 = puVar1" (identifier "puVar2") (= "=") (identifier "puVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar1 != param_1 + param_4)" (( "(") (binary_expression "puVar1 != param_1 + param_4" (identifier "puVar1") (!= "!=") (binary_expression "param_1 + param_4" (identifier "param_1") (+ "+") (identifier "param_4"))) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);" (call_expression "FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1)" (identifier "FUN_0002ad70") (argument_list "("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1)" (( "(") (string_literal ""../../gas/write.c"" (" """) (string_content "../../gas/write.c") (" """)) (, ",") (number_literal "0xc2e") (, ",") (string_literal ""number_to_chars_littleendian"" (" """) (string_content "number_to_chars_littleendian") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

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

{
  char *var_4;
  char *var_2;
  
  if (0 < var_1) {
    var_2 = var_5;
    do {
      var_4 = var_2 + 1;
      *var_2 = (char)var_3;
      var_3 = var_3 >> 8;
      var_2 = var_4;
    } while (var_4 != var_5 + var_1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_6("../../gas/write.c",0xc2e,"number_to_chars_littleendian");
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void MASKED(undefined1 *param_1,uint param_2,uint param_3,int param_4)

{
  undefined1 *puVar1;
  undefined1 *puVar2;
  
  if (0 < param_4) {
    puVar2 = param_1;
    do {
      puVar1 = puVar2 + 1;
      *puVar2 = (char)param_2;
      param_2 = param_2 >> 8 | param_3 << 0x18;
      param_3 = param_3 >> 8;
      puVar2 = puVar1;
    } while (puVar1 != param_1 + param_4);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002ad70("../../gas/write.c",0xc2e,"number_to_chars_littleendian",param_1);
}

