
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 decode_tic6x_unwind_regmask(uint mask)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_stdout_000b3fd8;
  iVar2 = 0xb;
  if (mask == 0) {
    return;
  }
  do {
    if ((mask & 1) == 0) {
      if (mask >> 1 == 0) {
        return;
      }
    }
    else {
      fputs(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1);
      if (mask == 1) {
        return;
      }
      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);
    }
    mask = mask >> 1;
    iVar2 = iVar2 + -1;
  } while( true );
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_0001fca0(uint param_1)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_stdout_000b3fd8;
  iVar2 = 0xb;
  if (param_1 == 0) {
    return;
  }
  do {
    if ((param_1 & 1) == 0) {
      if (param_1 >> 1 == 0) {
        return;
      }
    }
    else {
      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);
      if (param_1 == 1) {
        return;
      }
      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);
    }
    param_1 = param_1 >> 1;
    iVar2 = iVar2 + -1;
  } while( true );
}


PUSH EBP
MOV EBP,0xb
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00013f70
ADD EBX,0x94350
SUB ESP,0x1c
LEA EAX,[EBX + 0xfffc84b1]
MOV EDI,dword ptr [EBX + 0xffffffd8]
MOV dword ptr [ESP + 0xc],EAX
TEST ESI,ESI
JNZ 0x0001fcd7
JMP 0x0001fcf8
SHR ESI,0x1
JZ 0x0001fcf8
SUB EBP,0x1
TEST ESI,0x1
JZ 0x0001fcd0
SUB ESP,0x8
PUSH dword ptr [EDI]
PUSH dword ptr [EBX + EBP*0x4 + 0xfffff364]
CALL 0x00013400
ADD ESP,0x10
CMP ESI,0x1
JNZ 0x0001fd00
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH dword ptr [EDI]
SHR ESI,0x1
PUSH 0x2
PUSH 0x1
PUSH dword ptr [ESP + 0x18]
CALL 0x00013150
ADD ESP,0x10
JMP 0x0001fcd4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0001fca0(uint param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_stdout_000b3fd8;\n  iVar2 = 0xb;\n  if (param_1 == 0) {\n    return;\n  }\n  do {\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 FUN_0001fca0(uint param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_stdout_000b3fd8;\n  iVar2 = 0xb;\n  if (param_1 == 0) {\n    return;\n  }\n  do {\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001fca0(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_stdout_000b3fd8;\n  iVar2 = 0xb;\n  if (param_1 == 0) {\n    return;\n  }\n  do {\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_stdout_000b3fd8;" (assignment_expression "puVar1 = PTR_stdout_000b3fd8" identifier = identifier) ;) (expression_statement "iVar2 = 0xb;" (assignment_expression "iVar2 = 0xb" identifier = number_literal) ;) (if_statement "if (param_1 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (do_statement "do {\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );" do (compound_statement "{\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  }" { (if_statement "if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" if (parenthesized_expression "((param_1 & 1) == 0)" ( (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" ( (binary_expression "param_1 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }" { (if_statement "if (param_1 >> 1 == 0) {\n        return;\n      }" if (parenthesized_expression "(param_1 >> 1 == 0)" ( (binary_expression "param_1 >> 1 == 0" (binary_expression "param_1 >> 1" identifier >> number_literal) == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" else (compound_statement "{\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" { (expression_statement "fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);" (call_expression "fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1)" identifier (argument_list "((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1)" ( (subscript_expression "(&PTR_DAT_000b3364)[iVar2]" (parenthesized_expression "(&PTR_DAT_000b3364)" ( (pointer_expression "&PTR_DAT_000b3364" & identifier) )) [ identifier ]) , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (if_statement "if (param_1 == 1) {\n        return;\n      }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);" (call_expression "fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1)" identifier (argument_list "(&DAT_0007c4b1,1,2,*(FILE **)puVar1)" ( (pointer_expression "&DAT_0007c4b1" & identifier) , number_literal , number_literal , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) }))) (expression_statement "param_1 = param_1 >> 1;" (assignment_expression "param_1 = param_1 >> 1" identifier = (binary_expression "param_1 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 decode_tic6x_unwind_regmask(uint mask)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_stdout_000b3fd8;\n  iVar2 = 0xb;\n  if (mask == 0) {\n    return;\n  }\n  do {\n    if ((mask & 1) == 0) {\n      if (mask >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1);\n      if (mask == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    mask = mask >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 decode_tic6x_unwind_regmask(uint mask)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_stdout_000b3fd8;\n  iVar2 = 0xb;\n  if (mask == 0) {\n    return;\n  }\n  do {\n    if ((mask & 1) == 0) {\n      if (mask >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1);\n      if (mask == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    mask = mask >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "decode_tic6x_unwind_regmask(uint mask)" identifier (parameter_list "(uint mask)" ( (parameter_declaration "uint mask" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_stdout_000b3fd8;\n  iVar2 = 0xb;\n  if (mask == 0) {\n    return;\n  }\n  do {\n    if ((mask & 1) == 0) {\n      if (mask >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1);\n      if (mask == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    mask = mask >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_stdout_000b3fd8;" (assignment_expression "puVar1 = PTR_stdout_000b3fd8" identifier = identifier) ;) (expression_statement "iVar2 = 0xb;" (assignment_expression "iVar2 = 0xb" identifier = number_literal) ;) (if_statement "if (mask == 0) {\n    return;\n  }" if (parenthesized_expression "(mask == 0)" ( (binary_expression "mask == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (do_statement "do {\n    if ((mask & 1) == 0) {\n      if (mask >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1);\n      if (mask == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    mask = mask >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );" do (compound_statement "{\n    if ((mask & 1) == 0) {\n      if (mask >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1);\n      if (mask == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    mask = mask >> 1;\n    iVar2 = iVar2 + -1;\n  }" { (if_statement "if ((mask & 1) == 0) {\n      if (mask >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1);\n      if (mask == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" if (parenthesized_expression "((mask & 1) == 0)" ( (binary_expression "(mask & 1) == 0" (parenthesized_expression "(mask & 1)" ( (binary_expression "mask & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (mask >> 1 == 0) {\n        return;\n      }\n    }" { (if_statement "if (mask >> 1 == 0) {\n        return;\n      }" if (parenthesized_expression "(mask >> 1 == 0)" ( (binary_expression "mask >> 1 == 0" (binary_expression "mask >> 1" identifier >> number_literal) == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n      fputs(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1);\n      if (mask == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" else (compound_statement "{\n      fputs(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1);\n      if (mask == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" { (expression_statement "fputs(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1);" (call_expression "fputs(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1)" identifier (argument_list "(tic6x_unwind_regnames[iVar2 + 1],*(FILE **)puVar1)" ( (subscript_expression "tic6x_unwind_regnames[iVar2 + 1]" identifier [ (binary_expression "iVar2 + 1" identifier + number_literal) ]) , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (if_statement "if (mask == 1) {\n        return;\n      }" if (parenthesized_expression "(mask == 1)" ( (binary_expression "mask == 1" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);" (call_expression "fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1)" identifier (argument_list "(&DAT_0007c4b1,1,2,*(FILE **)puVar1)" ( (pointer_expression "&DAT_0007c4b1" & identifier) , number_literal , number_literal , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) }))) (expression_statement "mask = mask >> 1;" (assignment_expression "mask = mask >> 1" identifier = (binary_expression "mask >> 1" identifier >> number_literal)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void __regparm3 FUN_0001fca0(uint param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_stdout_000b3fd8;\n  iVar2 = 0xb;\n  if (param_1 == 0) {\n    return;\n  }\n  do {\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );\n}\n\n" (function_definition "void __regparm3 FUN_0001fca0(uint param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_stdout_000b3fd8;\n  iVar2 = 0xb;\n  if (param_1 == 0) {\n    return;\n  }\n  do {\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001fca0(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_stdout_000b3fd8;\n  iVar2 = 0xb;\n  if (param_1 == 0) {\n    return;\n  }\n  do {\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_stdout_000b3fd8;" (assignment_expression "puVar1 = PTR_stdout_000b3fd8" identifier = identifier) ;) (expression_statement "iVar2 = 0xb;" (assignment_expression "iVar2 = 0xb" identifier = number_literal) ;) (if_statement "if (param_1 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (do_statement "do {\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );" do (compound_statement "{\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  }" { (if_statement "if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" if (parenthesized_expression "((param_1 & 1) == 0)" ( (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" ( (binary_expression "param_1 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }" { (if_statement "if (param_1 >> 1 == 0) {\n        return;\n      }" if (parenthesized_expression "(param_1 >> 1 == 0)" ( (binary_expression "param_1 >> 1 == 0" (binary_expression "param_1 >> 1" identifier >> number_literal) == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" else (compound_statement "{\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" { (expression_statement "fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);" (call_expression "fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1)" identifier (argument_list "((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1)" ( (subscript_expression "(&PTR_DAT_000b3364)[iVar2]" (parenthesized_expression "(&PTR_DAT_000b3364)" ( (pointer_expression "&PTR_DAT_000b3364" & identifier) )) [ identifier ]) , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (if_statement "if (param_1 == 1) {\n        return;\n      }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);" (call_expression "fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1)" identifier (argument_list "(&DAT_0007c4b1,1,2,*(FILE **)puVar1)" ( (pointer_expression "&DAT_0007c4b1" & identifier) , number_literal , number_literal , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) }))) (expression_statement "param_1 = param_1 >> 1;" (assignment_expression "param_1 = param_1 >> 1" identifier = (binary_expression "param_1 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) == LIT) )) (compound_statement { (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void __regparm3 FUN_0001fca0(uint param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_stdout_000b3fd8;\n  iVar2 = 0xb;\n  if (param_1 == 0) {\n    return;\n  }\n  do {\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001fca0(uint param_1)" (identifier "FUN_0001fca0") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_stdout_000b3fd8;\n  iVar2 = 0xb;\n  if (param_1 == 0) {\n    return;\n  }\n  do {\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "puVar1 = PTR_stdout_000b3fd8;" (assignment_expression "puVar1 = PTR_stdout_000b3fd8" (identifier "puVar1") (= "=") (identifier "PTR_stdout_000b3fd8")) (; ";")) (expression_statement "iVar2 = 0xb;" (assignment_expression "iVar2 = 0xb" (identifier "iVar2") (= "=") (number_literal "0xb")) (; ";")) (if_statement "if (param_1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (do_statement "do {\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  } while( true );" (do "do") (compound_statement "{\n    if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }\n    param_1 = param_1 >> 1;\n    iVar2 = iVar2 + -1;\n  }" ({ "{") (if_statement "if ((param_1 & 1) == 0) {\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }\n    else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" (if "if") (parenthesized_expression "((param_1 & 1) == 0)" (( "(") (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" (( "(") (binary_expression "param_1 & 1" (identifier "param_1") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_1 >> 1 == 0) {\n        return;\n      }\n    }" ({ "{") (if_statement "if (param_1 >> 1 == 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(param_1 >> 1 == 0)" (( "(") (binary_expression "param_1 >> 1 == 0" (binary_expression "param_1 >> 1" (identifier "param_1") (>> ">>") (number_literal "1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" (else "else") (compound_statement "{\n      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);\n      if (param_1 == 1) {\n        return;\n      }\n      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);\n    }" ({ "{") (expression_statement "fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);" (call_expression "fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1)" (identifier "fputs") (argument_list "((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1)" (( "(") (subscript_expression "(&PTR_DAT_000b3364)[iVar2]" (parenthesized_expression "(&PTR_DAT_000b3364)" (( "(") (pointer_expression "&PTR_DAT_000b3364" (& "&") (identifier "PTR_DAT_000b3364")) () ")")) ([ "[") (identifier "iVar2") (] "]")) (, ",") (pointer_expression "*(FILE **)puVar1" (* "*") (cast_expression "(FILE **)puVar1" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1"))) () ")"))) (; ";")) (if_statement "if (param_1 == 1) {\n        return;\n      }" (if "if") (parenthesized_expression "(param_1 == 1)" (( "(") (binary_expression "param_1 == 1" (identifier "param_1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);" (call_expression "fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1)" (identifier "fwrite") (argument_list "(&DAT_0007c4b1,1,2,*(FILE **)puVar1)" (( "(") (pointer_expression "&DAT_0007c4b1" (& "&") (identifier "DAT_0007c4b1")) (, ",") (number_literal "1") (, ",") (number_literal "2") (, ",") (pointer_expression "*(FILE **)puVar1" (* "*") (cast_expression "(FILE **)puVar1" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1"))) () ")"))) (; ";")) (} "}")))) (expression_statement "param_1 = param_1 >> 1;" (assignment_expression "param_1 = param_1 >> 1" (identifier "param_1") (= "=") (binary_expression "param_1 >> 1" (identifier "param_1") (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 function_1(type_1 var_1)

{
  type_2 *puVar1;
  int var_3;
  
  puVar1 = PTR_stdout_000b3fd8;
  var_3 = 0xb;
  if (var_1 == 0) {
    return;
  }
  do {
    if ((var_1 & 1) == 0) {
      if (var_1 >> 1 == 0) {
        return;
      }
    }
    else {
      var_2(tic6x_unwind_regnames[var_3 + 1],*(type_3 **)puVar1);
      if (var_1 == 1) {
        return;
      }
      var_4(&DAT_0007c4b1,1,2,*(type_3 **)puVar1);
    }
    var_1 = var_1 >> 1;
    var_3 = var_3 + -1;
  } while( true );
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(uint param_1)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_stdout_000b3fd8;
  iVar2 = 0xb;
  if (param_1 == 0) {
    return;
  }
  do {
    if ((param_1 & 1) == 0) {
      if (param_1 >> 1 == 0) {
        return;
      }
    }
    else {
      fputs((&PTR_DAT_000b3364)[iVar2],*(FILE **)puVar1);
      if (param_1 == 1) {
        return;
      }
      fwrite(&DAT_0007c4b1,1,2,*(FILE **)puVar1);
    }
    param_1 = param_1 >> 1;
    iVar2 = iVar2 + -1;
  } while( true );
}

