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

int __regparm3 m68k_set_extension(char *name,int allow_m,int silent)

{
  m68k_cpu *pmVar1;
  char *format;
  int iVar2;
  int negated;
  undefined4 uStack_14;
  
  uStack_14 = 0x46cbf;
  pmVar1 = m68k_lookup_cpu(name,m68k_extensions,allow_m,&negated);
  if (pmVar1 == (m68k_cpu *)0x0) {
    iVar2 = 0;
    if (silent == 0) {
      format = (char *)dcgettext(0,"extension `%s\' unrecognized",5);
      as_bad(format,name);
    }
  }
  else {
    if (negated != 0) {
      if ((m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0) {
        pmVar1 = (m68k_cpu *)pmVar1->control_regs;
      }
      not_current_architecture = not_current_architecture | pmVar1->arch;
      return 1;
    }
    current_architecture = current_architecture | pmVar1->arch;
    iVar2 = 1;
  }
  return iVar2;
}



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

undefined4 __regparm3 FUN_00046cb0(undefined4 param_1,undefined4 param_2,int param_3)

{
  uint *puVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x46cbf;
  puVar1 = (uint *)FUN_00041e90(local_20);
  if (puVar1 == (uint *)0x0) {
    uVar3 = 0;
    if (param_3 == 0) {
      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);
      FUN_0002c070(uVar2,param_1);
    }
  }
  else {
    if (local_20[0] != 0) {
      if ((uint *)puVar1[1] != (uint *)0x0) {
        puVar1 = (uint *)puVar1[1];
      }
      DAT_0008112c = DAT_0008112c | *puVar1;
      return 1;
    }
    DAT_00081130 = DAT_00081130 | *puVar1;
    uVar3 = 1;
  }
  return uVar3;
}


PUSH EBP
PUSH EDI
MOV EDI,ECX
MOV ECX,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00017010
ADD EBX,0x31341
SUB ESP,0x28
LEA EAX,[ESP + 0x18]
PUSH EAX
MOV EAX,ESI
LEA EDX,[EBX + 0xffffec00]
CALL 0x00041e90
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00046d20
MOV EDX,dword ptr [ESP + 0xc]
TEST EDX,EDX
JNZ 0x00046d00
MOV EAX,dword ptr [EAX]
OR dword ptr [EBX + 0x9130],EAX
MOV EBP,0x1
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EAX + 0x4]
MOV EBP,0x1
TEST EDX,EDX
CMOVNZ EAX,EDX
MOV EAX,dword ptr [EAX]
OR dword ptr [EBX + 0x912c],EAX
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EBP,EBP
TEST EDI,EDI
JNZ 0x00046cf6
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe3db2]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000151a0
POP ECX
POP EDI
PUSH ESI
PUSH EAX
CALL 0x0002c070
ADD ESP,0x10
JMP 0x00046cf6
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00046cb0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  uint *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46cbf;\n  puVar1 = (uint *)FUN_00041e90(local_20);\n  if (puVar1 == (uint *)0x0) {\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }\n  else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }\n  return uVar3;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00046cb0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  uint *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46cbf;\n  puVar1 = (uint *)FUN_00041e90(local_20);\n  if (puVar1 == (uint *)0x0) {\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }\n  else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }\n  return uVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00046cb0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46cbf;\n  puVar1 = (uint *)FUN_00041e90(local_20);\n  if (puVar1 == (uint *)0x0) {\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }\n  else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }\n  return uVar3;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x46cbf;" (assignment_expression "uStack_14 = 0x46cbf" identifier = number_literal) ;) (expression_statement "puVar1 = (uint *)FUN_00041e90(local_20);" (assignment_expression "puVar1 = (uint *)FUN_00041e90(local_20)" identifier = (cast_expression "(uint *)FUN_00041e90(local_20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00041e90(local_20)" identifier (argument_list "(local_20)" ( identifier ))))) ;) (if_statement "if (puVar1 == (uint *)0x0) {\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }\n  else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }" if (parenthesized_expression "(puVar1 == (uint *)0x0)" ( (binary_expression "puVar1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }" { (expression_statement "uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);" (assignment_expression "uVar2 = dcgettext(0,"extension `%s\' unrecognized",5)" identifier = (call_expression "dcgettext(0,"extension `%s\' unrecognized",5)" identifier (argument_list "(0,"extension `%s\' unrecognized",5)" ( number_literal , (string_literal ""extension `%s\' unrecognized"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "FUN_0002c070(uVar2,param_1);" (call_expression "FUN_0002c070(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) })) }) (else_clause "else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }" else (compound_statement "{\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }" { (if_statement "if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }" if (parenthesized_expression "(local_20[0] != 0)" ( (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }" { (if_statement "if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }" if (parenthesized_expression "((uint *)puVar1[1] != (uint *)0x0)" ( (binary_expression "(uint *)puVar1[1] != (uint *)0x0" (cast_expression "(uint *)puVar1[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar1 = (uint *)puVar1[1];\n      }" { (expression_statement "puVar1 = (uint *)puVar1[1];" (assignment_expression "puVar1 = (uint *)puVar1[1]" identifier = (cast_expression "(uint *)puVar1[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) ;) })) (expression_statement "DAT_0008112c = DAT_0008112c | *puVar1;" (assignment_expression "DAT_0008112c = DAT_0008112c | *puVar1" identifier = (binary_expression "DAT_0008112c | *puVar1" identifier | (pointer_expression "*puVar1" * identifier))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "DAT_00081130 = DAT_00081130 | *puVar1;" (assignment_expression "DAT_00081130 = DAT_00081130 | *puVar1" identifier = (binary_expression "DAT_00081130 | *puVar1" identifier | (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 m68k_set_extension(char *name,int allow_m,int silent)\n\n{\n  m68k_cpu *pmVar1;\n  char *format;\n  int iVar2;\n  int negated;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46cbf;\n  pmVar1 = m68k_lookup_cpu(name,m68k_extensions,allow_m,&negated);\n  if (pmVar1 == (m68k_cpu *)0x0) {\n    iVar2 = 0;\n    if (silent == 0) {\n      format = (char *)dcgettext(0,"extension `%s\' unrecognized",5);\n      as_bad(format,name);\n    }\n  }\n  else {\n    if (negated != 0) {\n      if ((m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0) {\n        pmVar1 = (m68k_cpu *)pmVar1->control_regs;\n      }\n      not_current_architecture = not_current_architecture | pmVar1->arch;\n      return 1;\n    }\n    current_architecture = current_architecture | pmVar1->arch;\n    iVar2 = 1;\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int __regparm3 m68k_set_extension(char *name,int allow_m,int silent)\n\n{\n  m68k_cpu *pmVar1;\n  char *format;\n  int iVar2;\n  int negated;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46cbf;\n  pmVar1 = m68k_lookup_cpu(name,m68k_extensions,allow_m,&negated);\n  if (pmVar1 == (m68k_cpu *)0x0) {\n    iVar2 = 0;\n    if (silent == 0) {\n      format = (char *)dcgettext(0,"extension `%s\' unrecognized",5);\n      as_bad(format,name);\n    }\n  }\n  else {\n    if (negated != 0) {\n      if ((m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0) {\n        pmVar1 = (m68k_cpu *)pmVar1->control_regs;\n      }\n      not_current_architecture = not_current_architecture | pmVar1->arch;\n      return 1;\n    }\n    current_architecture = current_architecture | pmVar1->arch;\n    iVar2 = 1;\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "m68k_set_extension(char *name,int allow_m,int silent)" identifier (parameter_list "(char *name,int allow_m,int silent)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int allow_m" primitive_type identifier) , (parameter_declaration "int silent" primitive_type identifier) ))) (compound_statement "{\n  m68k_cpu *pmVar1;\n  char *format;\n  int iVar2;\n  int negated;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46cbf;\n  pmVar1 = m68k_lookup_cpu(name,m68k_extensions,allow_m,&negated);\n  if (pmVar1 == (m68k_cpu *)0x0) {\n    iVar2 = 0;\n    if (silent == 0) {\n      format = (char *)dcgettext(0,"extension `%s\' unrecognized",5);\n      as_bad(format,name);\n    }\n  }\n  else {\n    if (negated != 0) {\n      if ((m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0) {\n        pmVar1 = (m68k_cpu *)pmVar1->control_regs;\n      }\n      not_current_architecture = not_current_architecture | pmVar1->arch;\n      return 1;\n    }\n    current_architecture = current_architecture | pmVar1->arch;\n    iVar2 = 1;\n  }\n  return iVar2;\n}" { (declaration "m68k_cpu *pmVar1;" type_identifier (pointer_declarator "*pmVar1" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int negated;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x46cbf;" (assignment_expression "uStack_14 = 0x46cbf" identifier = number_literal) ;) (expression_statement "pmVar1 = m68k_lookup_cpu(name,m68k_extensions,allow_m,&negated);" (assignment_expression "pmVar1 = m68k_lookup_cpu(name,m68k_extensions,allow_m,&negated)" identifier = (call_expression "m68k_lookup_cpu(name,m68k_extensions,allow_m,&negated)" identifier (argument_list "(name,m68k_extensions,allow_m,&negated)" ( identifier , identifier , identifier , (pointer_expression "&negated" & identifier) )))) ;) (if_statement "if (pmVar1 == (m68k_cpu *)0x0) {\n    iVar2 = 0;\n    if (silent == 0) {\n      format = (char *)dcgettext(0,"extension `%s\' unrecognized",5);\n      as_bad(format,name);\n    }\n  }\n  else {\n    if (negated != 0) {\n      if ((m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0) {\n        pmVar1 = (m68k_cpu *)pmVar1->control_regs;\n      }\n      not_current_architecture = not_current_architecture | pmVar1->arch;\n      return 1;\n    }\n    current_architecture = current_architecture | pmVar1->arch;\n    iVar2 = 1;\n  }" if (parenthesized_expression "(pmVar1 == (m68k_cpu *)0x0)" ( (binary_expression "pmVar1 == (m68k_cpu *)0x0" identifier == (cast_expression "(m68k_cpu *)0x0" ( (type_descriptor "m68k_cpu *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = 0;\n    if (silent == 0) {\n      format = (char *)dcgettext(0,"extension `%s\' unrecognized",5);\n      as_bad(format,name);\n    }\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (silent == 0) {\n      format = (char *)dcgettext(0,"extension `%s\' unrecognized",5);\n      as_bad(format,name);\n    }" if (parenthesized_expression "(silent == 0)" ( (binary_expression "silent == 0" identifier == number_literal) )) (compound_statement "{\n      format = (char *)dcgettext(0,"extension `%s\' unrecognized",5);\n      as_bad(format,name);\n    }" { (expression_statement "format = (char *)dcgettext(0,"extension `%s\' unrecognized",5);" (assignment_expression "format = (char *)dcgettext(0,"extension `%s\' unrecognized",5)" identifier = (cast_expression "(char *)dcgettext(0,"extension `%s\' unrecognized",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"extension `%s\' unrecognized",5)" identifier (argument_list "(0,"extension `%s\' unrecognized",5)" ( number_literal , (string_literal ""extension `%s\' unrecognized"" " string_content escape_sequence string_content ") , number_literal ))))) ;) (expression_statement "as_bad(format,name);" (call_expression "as_bad(format,name)" identifier (argument_list "(format,name)" ( identifier , identifier ))) ;) })) }) (else_clause "else {\n    if (negated != 0) {\n      if ((m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0) {\n        pmVar1 = (m68k_cpu *)pmVar1->control_regs;\n      }\n      not_current_architecture = not_current_architecture | pmVar1->arch;\n      return 1;\n    }\n    current_architecture = current_architecture | pmVar1->arch;\n    iVar2 = 1;\n  }" else (compound_statement "{\n    if (negated != 0) {\n      if ((m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0) {\n        pmVar1 = (m68k_cpu *)pmVar1->control_regs;\n      }\n      not_current_architecture = not_current_architecture | pmVar1->arch;\n      return 1;\n    }\n    current_architecture = current_architecture | pmVar1->arch;\n    iVar2 = 1;\n  }" { (if_statement "if (negated != 0) {\n      if ((m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0) {\n        pmVar1 = (m68k_cpu *)pmVar1->control_regs;\n      }\n      not_current_architecture = not_current_architecture | pmVar1->arch;\n      return 1;\n    }" if (parenthesized_expression "(negated != 0)" ( (binary_expression "negated != 0" identifier != number_literal) )) (compound_statement "{\n      if ((m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0) {\n        pmVar1 = (m68k_cpu *)pmVar1->control_regs;\n      }\n      not_current_architecture = not_current_architecture | pmVar1->arch;\n      return 1;\n    }" { (if_statement "if ((m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0) {\n        pmVar1 = (m68k_cpu *)pmVar1->control_regs;\n      }" if (parenthesized_expression "((m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0)" ( (binary_expression "(m68k_cpu *)pmVar1->control_regs != (m68k_cpu *)0x0" (cast_expression "(m68k_cpu *)pmVar1->control_regs" ( (type_descriptor "m68k_cpu *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pmVar1->control_regs" identifier -> field_identifier)) != (cast_expression "(m68k_cpu *)0x0" ( (type_descriptor "m68k_cpu *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pmVar1 = (m68k_cpu *)pmVar1->control_regs;\n      }" { (expression_statement "pmVar1 = (m68k_cpu *)pmVar1->control_regs;" (assignment_expression "pmVar1 = (m68k_cpu *)pmVar1->control_regs" identifier = (cast_expression "(m68k_cpu *)pmVar1->control_regs" ( (type_descriptor "m68k_cpu *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pmVar1->control_regs" identifier -> field_identifier))) ;) })) (expression_statement "not_current_architecture = not_current_architecture | pmVar1->arch;" (assignment_expression "not_current_architecture = not_current_architecture | pmVar1->arch" identifier = (binary_expression "not_current_architecture | pmVar1->arch" identifier | (field_expression "pmVar1->arch" identifier -> field_identifier))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "current_architecture = current_architecture | pmVar1->arch;" (assignment_expression "current_architecture = current_architecture | pmVar1->arch" identifier = (binary_expression "current_architecture | pmVar1->arch" identifier | (field_expression "pmVar1->arch" identifier -> field_identifier))) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_00046cb0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  uint *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46cbf;\n  puVar1 = (uint *)FUN_00041e90(local_20);\n  if (puVar1 == (uint *)0x0) {\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }\n  else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00046cb0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  uint *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46cbf;\n  puVar1 = (uint *)FUN_00041e90(local_20);\n  if (puVar1 == (uint *)0x0) {\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }\n  else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }\n  return uVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00046cb0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46cbf;\n  puVar1 = (uint *)FUN_00041e90(local_20);\n  if (puVar1 == (uint *)0x0) {\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }\n  else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }\n  return uVar3;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x46cbf;" (assignment_expression "uStack_14 = 0x46cbf" identifier = number_literal) ;) (expression_statement "puVar1 = (uint *)FUN_00041e90(local_20);" (assignment_expression "puVar1 = (uint *)FUN_00041e90(local_20)" identifier = (cast_expression "(uint *)FUN_00041e90(local_20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00041e90(local_20)" identifier (argument_list "(local_20)" ( identifier ))))) ;) (if_statement "if (puVar1 == (uint *)0x0) {\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }\n  else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }" if (parenthesized_expression "(puVar1 == (uint *)0x0)" ( (binary_expression "puVar1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }" { (expression_statement "uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);" (assignment_expression "uVar2 = dcgettext(0,"extension `%s\' unrecognized",5)" identifier = (call_expression "dcgettext(0,"extension `%s\' unrecognized",5)" identifier (argument_list "(0,"extension `%s\' unrecognized",5)" ( number_literal , (string_literal ""extension `%s\' unrecognized"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "FUN_0002c070(uVar2,param_1);" (call_expression "FUN_0002c070(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) })) }) (else_clause "else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }" else (compound_statement "{\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }" { (if_statement "if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }" if (parenthesized_expression "(local_20[0] != 0)" ( (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }" { (if_statement "if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }" if (parenthesized_expression "((uint *)puVar1[1] != (uint *)0x0)" ( (binary_expression "(uint *)puVar1[1] != (uint *)0x0" (cast_expression "(uint *)puVar1[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar1 = (uint *)puVar1[1];\n      }" { (expression_statement "puVar1 = (uint *)puVar1[1];" (assignment_expression "puVar1 = (uint *)puVar1[1]" identifier = (cast_expression "(uint *)puVar1[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) ;) })) (expression_statement "DAT_0008112c = DAT_0008112c | *puVar1;" (assignment_expression "DAT_0008112c = DAT_0008112c | *puVar1" identifier = (binary_expression "DAT_0008112c | *puVar1" identifier | (pointer_expression "*puVar1" * identifier))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "DAT_00081130 = DAT_00081130 | *puVar1;" (assignment_expression "DAT_00081130 = DAT_00081130 | *puVar1" identifier = (binary_expression "DAT_00081130 | *puVar1" identifier | (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (pointer_expression * IDENT))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_00046cb0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  uint *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46cbf;\n  puVar1 = (uint *)FUN_00041e90(local_20);\n  if (puVar1 == (uint *)0x0) {\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }\n  else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00046cb0(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_00046cb0") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46cbf;\n  puVar1 = (uint *)FUN_00041e90(local_20);\n  if (puVar1 == (uint *)0x0) {\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }\n  else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }\n  return uVar3;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int local_20 [3];" (primitive_type "int") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x46cbf;" (assignment_expression "uStack_14 = 0x46cbf" (identifier "uStack_14") (= "=") (number_literal "0x46cbf")) (; ";")) (expression_statement "puVar1 = (uint *)FUN_00041e90(local_20);" (assignment_expression "puVar1 = (uint *)FUN_00041e90(local_20)" (identifier "puVar1") (= "=") (cast_expression "(uint *)FUN_00041e90(local_20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00041e90(local_20)" (identifier "FUN_00041e90") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))))) (; ";")) (if_statement "if (puVar1 == (uint *)0x0) {\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }\n  else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }" (if "if") (parenthesized_expression "(puVar1 == (uint *)0x0)" (( "(") (binary_expression "puVar1 == (uint *)0x0" (identifier "puVar1") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar3 = 0;\n    if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 == 0) {\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);\n      FUN_0002c070(uVar2,param_1);\n    }" ({ "{") (expression_statement "uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);" (assignment_expression "uVar2 = dcgettext(0,"extension `%s\' unrecognized",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"extension `%s\' unrecognized",5)" (identifier "dcgettext") (argument_list "(0,"extension `%s\' unrecognized",5)" (( "(") (number_literal "0") (, ",") (string_literal ""extension `%s\' unrecognized"" (" """) (string_content "extension `%s") (escape_sequence "\'") (string_content " unrecognized") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002c070(uVar2,param_1);" (call_expression "FUN_0002c070(uVar2,param_1)" (identifier "FUN_0002c070") (argument_list "(uVar2,param_1)" (( "(") (identifier "uVar2") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }" (else "else") (compound_statement "{\n    if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }\n    DAT_00081130 = DAT_00081130 | *puVar1;\n    uVar3 = 1;\n  }" ({ "{") (if_statement "if (local_20[0] != 0) {\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }" (if "if") (parenthesized_expression "(local_20[0] != 0)" (( "(") (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }\n      DAT_0008112c = DAT_0008112c | *puVar1;\n      return 1;\n    }" ({ "{") (if_statement "if ((uint *)puVar1[1] != (uint *)0x0) {\n        puVar1 = (uint *)puVar1[1];\n      }" (if "if") (parenthesized_expression "((uint *)puVar1[1] != (uint *)0x0)" (( "(") (binary_expression "(uint *)puVar1[1] != (uint *)0x0" (cast_expression "(uint *)puVar1[1]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        puVar1 = (uint *)puVar1[1];\n      }" ({ "{") (expression_statement "puVar1 = (uint *)puVar1[1];" (assignment_expression "puVar1 = (uint *)puVar1[1]" (identifier "puVar1") (= "=") (cast_expression "(uint *)puVar1[1]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}"))) (expression_statement "DAT_0008112c = DAT_0008112c | *puVar1;" (assignment_expression "DAT_0008112c = DAT_0008112c | *puVar1" (identifier "DAT_0008112c") (= "=") (binary_expression "DAT_0008112c | *puVar1" (identifier "DAT_0008112c") (| "|") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "DAT_00081130 = DAT_00081130 | *puVar1;" (assignment_expression "DAT_00081130 = DAT_00081130 | *puVar1" (identifier "DAT_00081130") (= "=") (binary_expression "DAT_00081130 | *puVar1" (identifier "DAT_00081130") (| "|") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

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

int __regparm3 function_1(char *name,int allow_m,int var_3)

{
  type_1 *var_2;
  char *format;
  int iVar2;
  int var_6;
  type_2 uStack_14;
  
  uStack_14 = 0x46cbf;
  var_2 = var_1(name,m68k_extensions,allow_m,&var_6);
  if (var_2 == (type_1 *)0x0) {
    iVar2 = 0;
    if (var_3 == 0) {
      format = (char *)var_4(0,"extension `%s\' unrecognized",5);
      var_5(format,name);
    }
  }
  else {
    if (var_6 != 0) {
      if ((type_1 *)var_2->control_regs != (type_1 *)0x0) {
        var_2 = (type_1 *)var_2->control_regs;
      }
      var_7 = var_7 | var_2->arch;
      return 1;
    }
    var_8 = var_8 | var_2->arch;
    iVar2 = 1;
  }
  return iVar2;
}


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

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

undefined4 __regparm3 MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  uint *puVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x46cbf;
  puVar1 = (uint *)FUN_00041e90(local_20);
  if (puVar1 == (uint *)0x0) {
    uVar3 = 0;
    if (param_3 == 0) {
      uVar2 = dcgettext(0,"extension `%s\' unrecognized",5);
      FUN_0002c070(uVar2,param_1);
    }
  }
  else {
    if (local_20[0] != 0) {
      if ((uint *)puVar1[1] != (uint *)0x0) {
        puVar1 = (uint *)puVar1[1];
      }
      DAT_0008112c = DAT_0008112c | *puVar1;
      return 1;
    }
    DAT_00081130 = DAT_00081130 | *puVar1;
    uVar3 = 1;
  }
  return uVar3;
}

