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

void emit_lda(expressionS *tok,int ntok,void *unused)

{
  int basereg;
  undefined4 uStack_8;
  
  uStack_8 = 0x4c5a6;
  if (ntok == 2) {
    basereg = 0x1f;
    if (tok[1].field_0x10 != '\x02') {
      basereg = alpha_gp_register;
    }
  }
  else {
    basereg = (int)tok[2].X_add_number;
  }
  load_expression((int)tok->X_add_number,tok + 1,&basereg,(expressionS *)0x0,"lda");
  return;
}



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

void FUN_0004c5a0(void)

{
  FUN_0004ac60(0,&DAT_0005cc8f);
  return;
}


PUSH EBX
CALL 0x00016070
ADD EBX,0x2ba5a
SUB ESP,0x18
CMP dword ptr [ESP + 0x24],0x2
MOV EAX,dword ptr [ESP + 0x20]
JZ 0x0004c5e8
MOV EDX,dword ptr [EAX + 0x30]
MOV dword ptr [ESP + 0xc],EDX
LEA ECX,[ESP + 0xc]
LEA EBX,[EBX + 0xfffe4c8f]
SUB ESP,0x8
LEA EDX,[EAX + 0x14]
MOV EAX,dword ptr [EAX + 0x8]
PUSH EBX
PUSH 0x0
CALL 0x0004ac60
ADD ESP,0x28
POP EBX
RET
CMP byte ptr [EAX + 0x24],0x2
MOV EDX,0x1f
JZ 0x0004c5bd
MOV EDX,dword ptr [EBX + 0x51c]
JMP 0x0004c5bd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004c5a0(void)\n\n{\n  FUN_0004ac60(0,&DAT_0005cc8f);\n  return;\n}\n\n" comment (function_definition "void FUN_0004c5a0(void)\n\n{\n  FUN_0004ac60(0,&DAT_0005cc8f);\n  return;\n}" primitive_type (function_declarator "FUN_0004c5a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  FUN_0004ac60(0,&DAT_0005cc8f);\n  return;\n}" { (expression_statement "FUN_0004ac60(0,&DAT_0005cc8f);" (call_expression "FUN_0004ac60(0,&DAT_0005cc8f)" identifier (argument_list "(0,&DAT_0005cc8f)" ( number_literal , (pointer_expression "&DAT_0005cc8f" & identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid emit_lda(expressionS *tok,int ntok,void *unused)\n\n{\n  int basereg;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x4c5a6;\n  if (ntok == 2) {\n    basereg = 0x1f;\n    if (tok[1].field_0x10 != '\x02') {\n      basereg = alpha_gp_register;\n    }\n  }\n  else {\n    basereg = (int)tok[2].X_add_number;\n  }\n  load_expression((int)tok->X_add_number,tok + 1,&basereg,(expressionS *)0x0,"lda");\n  return;\n}\n\n" comment comment (function_definition "void emit_lda(expressionS *tok,int ntok,void *unused)\n\n{\n  int basereg;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x4c5a6;\n  if (ntok == 2) {\n    basereg = 0x1f;\n    if (tok[1].field_0x10 != '\x02') {\n      basereg = alpha_gp_register;\n    }\n  }\n  else {\n    basereg = (int)tok[2].X_add_number;\n  }\n  load_expression((int)tok->X_add_number,tok + 1,&basereg,(expressionS *)0x0,"lda");\n  return;\n}" primitive_type (function_declarator "emit_lda(expressionS *tok,int ntok,void *unused)" identifier (parameter_list "(expressionS *tok,int ntok,void *unused)" ( (parameter_declaration "expressionS *tok" type_identifier (pointer_declarator "*tok" * identifier)) , (parameter_declaration "int ntok" primitive_type identifier) , (parameter_declaration "void *unused" primitive_type (pointer_declarator "*unused" * identifier)) ))) (compound_statement "{\n  int basereg;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x4c5a6;\n  if (ntok == 2) {\n    basereg = 0x1f;\n    if (tok[1].field_0x10 != '\x02') {\n      basereg = alpha_gp_register;\n    }\n  }\n  else {\n    basereg = (int)tok[2].X_add_number;\n  }\n  load_expression((int)tok->X_add_number,tok + 1,&basereg,(expressionS *)0x0,"lda");\n  return;\n}" { (declaration "int basereg;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x4c5a6;" (assignment_expression "uStack_8 = 0x4c5a6" identifier = number_literal) ;) (if_statement "if (ntok == 2) {\n    basereg = 0x1f;\n    if (tok[1].field_0x10 != '\x02') {\n      basereg = alpha_gp_register;\n    }\n  }\n  else {\n    basereg = (int)tok[2].X_add_number;\n  }" if (parenthesized_expression "(ntok == 2)" ( (binary_expression "ntok == 2" identifier == number_literal) )) (compound_statement "{\n    basereg = 0x1f;\n    if (tok[1].field_0x10 != '\x02') {\n      basereg = alpha_gp_register;\n    }\n  }" { (expression_statement "basereg = 0x1f;" (assignment_expression "basereg = 0x1f" identifier = number_literal) ;) (if_statement "if (tok[1].field_0x10 != '\x02') {\n      basereg = alpha_gp_register;\n    }" if (parenthesized_expression "(tok[1].field_0x10 != '\x02')" ( (binary_expression "tok[1].field_0x10 != '\x02'" (field_expression "tok[1].field_0x10" (subscript_expression "tok[1]" identifier [ number_literal ]) . field_identifier) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      basereg = alpha_gp_register;\n    }" { (expression_statement "basereg = alpha_gp_register;" (assignment_expression "basereg = alpha_gp_register" identifier = identifier) ;) })) }) (else_clause "else {\n    basereg = (int)tok[2].X_add_number;\n  }" else (compound_statement "{\n    basereg = (int)tok[2].X_add_number;\n  }" { (expression_statement "basereg = (int)tok[2].X_add_number;" (assignment_expression "basereg = (int)tok[2].X_add_number" identifier = (cast_expression "(int)tok[2].X_add_number" ( (type_descriptor "int" primitive_type) ) (field_expression "tok[2].X_add_number" (subscript_expression "tok[2]" identifier [ number_literal ]) . field_identifier))) ;) }))) (expression_statement "load_expression((int)tok->X_add_number,tok + 1,&basereg,(expressionS *)0x0,"lda");" (call_expression "load_expression((int)tok->X_add_number,tok + 1,&basereg,(expressionS *)0x0,"lda")" identifier (argument_list "((int)tok->X_add_number,tok + 1,&basereg,(expressionS *)0x0,"lda")" ( (cast_expression "(int)tok->X_add_number" ( (type_descriptor "int" primitive_type) ) (field_expression "tok->X_add_number" identifier -> field_identifier)) , (binary_expression "tok + 1" identifier + number_literal) , (pointer_expression "&basereg" & identifier) , (cast_expression "(expressionS *)0x0" ( (type_descriptor "expressionS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal ""lda"" " string_content ") ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004c5a0(void)\n\n{\n  FUN_0004ac60(0,&DAT_0005cc8f);\n  return;\n}\n\n" (function_definition "void FUN_0004c5a0(void)\n\n{\n  FUN_0004ac60(0,&DAT_0005cc8f);\n  return;\n}" primitive_type (function_declarator "FUN_0004c5a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  FUN_0004ac60(0,&DAT_0005cc8f);\n  return;\n}" { (expression_statement "FUN_0004ac60(0,&DAT_0005cc8f);" (call_expression "FUN_0004ac60(0,&DAT_0005cc8f)" identifier (argument_list "(0,&DAT_0005cc8f)" ( number_literal , (pointer_expression "&DAT_0005cc8f" & identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0004c5a0(void)\n\n{\n  FUN_0004ac60(0,&DAT_0005cc8f);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004c5a0(void)" (identifier "FUN_0004c5a0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  FUN_0004ac60(0,&DAT_0005cc8f);\n  return;\n}" ({ "{") (expression_statement "FUN_0004ac60(0,&DAT_0005cc8f);" (call_expression "FUN_0004ac60(0,&DAT_0005cc8f)" (identifier "FUN_0004ac60") (argument_list "(0,&DAT_0005cc8f)" (( "(") (number_literal "0") (, ",") (pointer_expression "&DAT_0005cc8f" (& "&") (identifier "DAT_0005cc8f")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *var_3,int var_1,void *unused)

{
  int basereg;
  type_2 uStack_8;
  
  uStack_8 = 0x4c5a6;
  if (var_1 == 2) {
    basereg = 0x1f;
    if (var_3[1].field_0x10 != '\x02') {
      basereg = alpha_gp_register;
    }
  }
  else {
    basereg = (int)var_3[2].X_add_number;
  }
  var_2((int)var_3->X_add_number,var_3 + 1,&basereg,(type_1 *)0x0,"lda");
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier))))) (return_statement))))

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

void MASKED(void)

{
  FUN_0004ac60(0,&DAT_0005cc8f);
  return;
}

