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

void s_bad_end(int endr)

{
  char *format;
  undefined4 uVar1;
  char *pcVar2;
  
  if (endr == 0) {
    pcVar2 = ".macro";
    uVar1 = 0x6d;
  }
  else {
    pcVar2 = ".rept, .irp, or .irpc";
    uVar1 = 0x72;
  }
  format = (char *)dcgettext(0,".end%c encountered without preceding %s",5);
  as_warn(format,uVar1,pcVar2);
  demand_empty_rest_of_line();
  return;
}



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

void FUN_0002e5a0(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  char *pcVar3;
  
  if (param_1 == 0) {
    pcVar3 = ".macro";
    uVar2 = 0x6d;
  }
  else {
    pcVar3 = ".rept, .irp, or .irpc";
    uVar2 = 0x72;
  }
  uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);
  FUN_0002bc80(uVar1,uVar2,pcVar3);
  FUN_0002e4e0();
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x10]
CALL 0x00016000
ADD EBX,0x51a54
TEST EAX,EAX
JNZ 0x0002e5f0
LEA EDI,[EBX + 0xfffe0398]
MOV ESI,0x6d
SUB ESP,0x4
LEA EAX,[EBX + 0xfffdf870]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141a0
ADD ESP,0xc
PUSH EDI
PUSH ESI
PUSH EAX
CALL 0x0002bc80
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
JMP 0x0002e4e0
LEA EDI,[EBX + 0xfffe0382]
MOV ESI,0x72
JMP 0x0002e5c1
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002e5a0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  \n  if (param_1 == 0) {\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }\n  else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }\n  uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);\n  FUN_0002bc80(uVar1,uVar2,pcVar3);\n  FUN_0002e4e0();\n  return;\n}\n\n" comment (function_definition "void FUN_0002e5a0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  \n  if (param_1 == 0) {\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }\n  else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }\n  uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);\n  FUN_0002bc80(uVar1,uVar2,pcVar3);\n  FUN_0002e4e0();\n  return;\n}" primitive_type (function_declarator "FUN_0002e5a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  \n  if (param_1 == 0) {\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }\n  else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }\n  uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);\n  FUN_0002bc80(uVar1,uVar2,pcVar3);\n  FUN_0002e4e0();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (param_1 == 0) {\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }\n  else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }" { (expression_statement "pcVar3 = ".macro";" (assignment_expression "pcVar3 = ".macro"" identifier = (string_literal "".macro"" " string_content ")) ;) (expression_statement "uVar2 = 0x6d;" (assignment_expression "uVar2 = 0x6d" identifier = number_literal) ;) }) (else_clause "else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }" else (compound_statement "{\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }" { (expression_statement "pcVar3 = ".rept, .irp, or .irpc";" (assignment_expression "pcVar3 = ".rept, .irp, or .irpc"" identifier = (string_literal "".rept, .irp, or .irpc"" " string_content ")) ;) (expression_statement "uVar2 = 0x72;" (assignment_expression "uVar2 = 0x72" identifier = number_literal) ;) }))) (expression_statement "uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);" (assignment_expression "uVar1 = dcgettext(0,".end%c encountered without preceding %s",5)" identifier = (call_expression "dcgettext(0,".end%c encountered without preceding %s",5)" identifier (argument_list "(0,".end%c encountered without preceding %s",5)" ( number_literal , (string_literal "".end%c encountered without preceding %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002bc80(uVar1,uVar2,pcVar3);" (call_expression "FUN_0002bc80(uVar1,uVar2,pcVar3)" identifier (argument_list "(uVar1,uVar2,pcVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0002e4e0();" (call_expression "FUN_0002e4e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid s_bad_end(int endr)\n\n{\n  char *format;\n  undefined4 uVar1;\n  char *pcVar2;\n  \n  if (endr == 0) {\n    pcVar2 = ".macro";\n    uVar1 = 0x6d;\n  }\n  else {\n    pcVar2 = ".rept, .irp, or .irpc";\n    uVar1 = 0x72;\n  }\n  format = (char *)dcgettext(0,".end%c encountered without preceding %s",5);\n  as_warn(format,uVar1,pcVar2);\n  demand_empty_rest_of_line();\n  return;\n}\n\n" comment (function_definition "void s_bad_end(int endr)\n\n{\n  char *format;\n  undefined4 uVar1;\n  char *pcVar2;\n  \n  if (endr == 0) {\n    pcVar2 = ".macro";\n    uVar1 = 0x6d;\n  }\n  else {\n    pcVar2 = ".rept, .irp, or .irpc";\n    uVar1 = 0x72;\n  }\n  format = (char *)dcgettext(0,".end%c encountered without preceding %s",5);\n  as_warn(format,uVar1,pcVar2);\n  demand_empty_rest_of_line();\n  return;\n}" primitive_type (function_declarator "s_bad_end(int endr)" identifier (parameter_list "(int endr)" ( (parameter_declaration "int endr" primitive_type identifier) ))) (compound_statement "{\n  char *format;\n  undefined4 uVar1;\n  char *pcVar2;\n  \n  if (endr == 0) {\n    pcVar2 = ".macro";\n    uVar1 = 0x6d;\n  }\n  else {\n    pcVar2 = ".rept, .irp, or .irpc";\n    uVar1 = 0x72;\n  }\n  format = (char *)dcgettext(0,".end%c encountered without preceding %s",5);\n  as_warn(format,uVar1,pcVar2);\n  demand_empty_rest_of_line();\n  return;\n}" { (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (endr == 0) {\n    pcVar2 = ".macro";\n    uVar1 = 0x6d;\n  }\n  else {\n    pcVar2 = ".rept, .irp, or .irpc";\n    uVar1 = 0x72;\n  }" if (parenthesized_expression "(endr == 0)" ( (binary_expression "endr == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = ".macro";\n    uVar1 = 0x6d;\n  }" { (expression_statement "pcVar2 = ".macro";" (assignment_expression "pcVar2 = ".macro"" identifier = (string_literal "".macro"" " string_content ")) ;) (expression_statement "uVar1 = 0x6d;" (assignment_expression "uVar1 = 0x6d" identifier = number_literal) ;) }) (else_clause "else {\n    pcVar2 = ".rept, .irp, or .irpc";\n    uVar1 = 0x72;\n  }" else (compound_statement "{\n    pcVar2 = ".rept, .irp, or .irpc";\n    uVar1 = 0x72;\n  }" { (expression_statement "pcVar2 = ".rept, .irp, or .irpc";" (assignment_expression "pcVar2 = ".rept, .irp, or .irpc"" identifier = (string_literal "".rept, .irp, or .irpc"" " string_content ")) ;) (expression_statement "uVar1 = 0x72;" (assignment_expression "uVar1 = 0x72" identifier = number_literal) ;) }))) (expression_statement "format = (char *)dcgettext(0,".end%c encountered without preceding %s",5);" (assignment_expression "format = (char *)dcgettext(0,".end%c encountered without preceding %s",5)" identifier = (cast_expression "(char *)dcgettext(0,".end%c encountered without preceding %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,".end%c encountered without preceding %s",5)" identifier (argument_list "(0,".end%c encountered without preceding %s",5)" ( number_literal , (string_literal "".end%c encountered without preceding %s"" " string_content ") , number_literal ))))) ;) (expression_statement "as_warn(format,uVar1,pcVar2);" (call_expression "as_warn(format,uVar1,pcVar2)" identifier (argument_list "(format,uVar1,pcVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "demand_empty_rest_of_line();" (call_expression "demand_empty_rest_of_line()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002e5a0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  \n  if (param_1 == 0) {\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }\n  else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }\n  uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);\n  FUN_0002bc80(uVar1,uVar2,pcVar3);\n  FUN_0002e4e0();\n  return;\n}\n\n" (function_definition "void FUN_0002e5a0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  \n  if (param_1 == 0) {\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }\n  else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }\n  uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);\n  FUN_0002bc80(uVar1,uVar2,pcVar3);\n  FUN_0002e4e0();\n  return;\n}" primitive_type (function_declarator "FUN_0002e5a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  \n  if (param_1 == 0) {\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }\n  else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }\n  uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);\n  FUN_0002bc80(uVar1,uVar2,pcVar3);\n  FUN_0002e4e0();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (param_1 == 0) {\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }\n  else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }" { (expression_statement "pcVar3 = ".macro";" (assignment_expression "pcVar3 = ".macro"" identifier = (string_literal "".macro"" " string_content ")) ;) (expression_statement "uVar2 = 0x6d;" (assignment_expression "uVar2 = 0x6d" identifier = number_literal) ;) }) (else_clause "else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }" else (compound_statement "{\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }" { (expression_statement "pcVar3 = ".rept, .irp, or .irpc";" (assignment_expression "pcVar3 = ".rept, .irp, or .irpc"" identifier = (string_literal "".rept, .irp, or .irpc"" " string_content ")) ;) (expression_statement "uVar2 = 0x72;" (assignment_expression "uVar2 = 0x72" identifier = number_literal) ;) }))) (expression_statement "uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);" (assignment_expression "uVar1 = dcgettext(0,".end%c encountered without preceding %s",5)" identifier = (call_expression "dcgettext(0,".end%c encountered without preceding %s",5)" identifier (argument_list "(0,".end%c encountered without preceding %s",5)" ( number_literal , (string_literal "".end%c encountered without preceding %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002bc80(uVar1,uVar2,pcVar3);" (call_expression "FUN_0002bc80(uVar1,uVar2,pcVar3)" identifier (argument_list "(uVar1,uVar2,pcVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0002e4e0();" (call_expression "FUN_0002e4e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0002e5a0(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  \n  if (param_1 == 0) {\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }\n  else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }\n  uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);\n  FUN_0002bc80(uVar1,uVar2,pcVar3);\n  FUN_0002e4e0();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002e5a0(int param_1)" (identifier "FUN_0002e5a0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  \n  if (param_1 == 0) {\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }\n  else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }\n  uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);\n  FUN_0002bc80(uVar1,uVar2,pcVar3);\n  FUN_0002e4e0();\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (if_statement "if (param_1 == 0) {\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }\n  else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar3 = ".macro";\n    uVar2 = 0x6d;\n  }" ({ "{") (expression_statement "pcVar3 = ".macro";" (assignment_expression "pcVar3 = ".macro"" (identifier "pcVar3") (= "=") (string_literal "".macro"" (" """) (string_content ".macro") (" """))) (; ";")) (expression_statement "uVar2 = 0x6d;" (assignment_expression "uVar2 = 0x6d" (identifier "uVar2") (= "=") (number_literal "0x6d")) (; ";")) (} "}")) (else_clause "else {\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }" (else "else") (compound_statement "{\n    pcVar3 = ".rept, .irp, or .irpc";\n    uVar2 = 0x72;\n  }" ({ "{") (expression_statement "pcVar3 = ".rept, .irp, or .irpc";" (assignment_expression "pcVar3 = ".rept, .irp, or .irpc"" (identifier "pcVar3") (= "=") (string_literal "".rept, .irp, or .irpc"" (" """) (string_content ".rept, .irp, or .irpc") (" """))) (; ";")) (expression_statement "uVar2 = 0x72;" (assignment_expression "uVar2 = 0x72" (identifier "uVar2") (= "=") (number_literal "0x72")) (; ";")) (} "}")))) (expression_statement "uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);" (assignment_expression "uVar1 = dcgettext(0,".end%c encountered without preceding %s",5)" (identifier "uVar1") (= "=") (call_expression "dcgettext(0,".end%c encountered without preceding %s",5)" (identifier "dcgettext") (argument_list "(0,".end%c encountered without preceding %s",5)" (( "(") (number_literal "0") (, ",") (string_literal "".end%c encountered without preceding %s"" (" """) (string_content ".end%c encountered without preceding %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002bc80(uVar1,uVar2,pcVar3);" (call_expression "FUN_0002bc80(uVar1,uVar2,pcVar3)" (identifier "FUN_0002bc80") (argument_list "(uVar1,uVar2,pcVar3)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") (, ",") (identifier "pcVar3") () ")"))) (; ";")) (expression_statement "FUN_0002e4e0();" (call_expression "FUN_0002e4e0()" (identifier "FUN_0002e4e0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(int var_1)

{
  char *format;
  type_1 uVar1;
  char *pcVar2;
  
  if (var_1 == 0) {
    pcVar2 = ".macro";
    uVar1 = 0x6d;
  }
  else {
    pcVar2 = ".rept, .irp, or .irpc";
    uVar1 = 0x72;
  }
  format = (char *)var_2(0,".end%c encountered without preceding %s",5);
  var_3(format,uVar1,pcVar2);
  var_4();
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

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

void MASKED(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  char *pcVar3;
  
  if (param_1 == 0) {
    pcVar3 = ".macro";
    uVar2 = 0x6d;
  }
  else {
    pcVar3 = ".rept, .irp, or .irpc";
    uVar2 = 0x72;
  }
  uVar1 = dcgettext(0,".end%c encountered without preceding %s",5);
  FUN_0002bc80(uVar1,uVar2,pcVar3);
  FUN_0002e4e0();
  return;
}

