
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

char * rl_get_keymap_name(Keymap map)

{
  Keymap pKVar1;
  name_and_keymap *pnVar2;
  char *pcVar3;
  
  pcVar3 = keymap_names->name;
  if (pcVar3 != (char *)0x0) {
    pKVar1 = keymap_names->map;
    pnVar2 = keymap_names;
    while (map != pKVar1) {
      pcVar3 = pnVar2[1].name;
      if (pcVar3 == (char *)0x0) {
        return (char *)0x0;
      }
      pKVar1 = pnVar2[1].map;
      pnVar2 = pnVar2 + 1;
    }
  }
  return pcVar3;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void rl_get_keymap_name(int param_1)

{
  int iVar1;
  int *piVar2;
  
  if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {
    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);
    piVar2 = (int *)PTR_PTR_s_emacs_00176644;
    while ((param_1 != iVar1 && (piVar2[2] != 0))) {
      iVar1 = piVar2[3];
      piVar2 = piVar2 + 2;
    }
  }
  return;
}


CALL 0x000321fd
ADD EAX,0x7fbbb
MOV ECX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [EAX + 0x4644]
MOV EAX,dword ptr [EDX]
TEST EAX,EAX
JZ 0x000f2476
CMP ECX,dword ptr [EDX + 0x4]
JZ 0x000f2476
ADD EDX,0x8
JMP 0x000f2470
ADD EDX,0x8
CMP ECX,dword ptr [EDX + -0x4]
JZ 0x000f2476
MOV EAX,dword ptr [EDX]
TEST EAX,EAX
JNZ 0x000f2468
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid rl_get_keymap_name(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void rl_get_keymap_name(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "rl_get_keymap_name(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }" if (parenthesized_expression "(*(int *)PTR_PTR_s_emacs_00176644 != 0)" ( (binary_expression "*(int *)PTR_PTR_s_emacs_00176644 != 0" (pointer_expression "*(int *)PTR_PTR_s_emacs_00176644" * (cast_expression "(int *)PTR_PTR_s_emacs_00176644" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);" (assignment_expression "iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4)" identifier = (pointer_expression "*(int *)(PTR_PTR_s_emacs_00176644 + 4)" * (cast_expression "(int *)(PTR_PTR_s_emacs_00176644 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_PTR_s_emacs_00176644 + 4)" ( (binary_expression "PTR_PTR_s_emacs_00176644 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)PTR_PTR_s_emacs_00176644;" (assignment_expression "piVar2 = (int *)PTR_PTR_s_emacs_00176644" identifier = (cast_expression "(int *)PTR_PTR_s_emacs_00176644" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }" while (parenthesized_expression "((param_1 != iVar1 && (piVar2[2] != 0)))" ( (parenthesized_expression "(param_1 != iVar1 && (piVar2[2] != 0))" ( (binary_expression "param_1 != iVar1 && (piVar2[2] != 0)" (binary_expression "param_1 != iVar1" identifier != identifier) && (parenthesized_expression "(piVar2[2] != 0)" ( (binary_expression "piVar2[2] != 0" (subscript_expression "piVar2[2]" identifier [ number_literal ]) != number_literal) ))) )) )) (compound_statement "{\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }" { (expression_statement "iVar1 = piVar2[3];" (assignment_expression "iVar1 = piVar2[3]" identifier = (subscript_expression "piVar2[3]" identifier [ number_literal ])) ;) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nchar * rl_get_keymap_name(Keymap map)\n\n{\n  Keymap pKVar1;\n  name_and_keymap *pnVar2;\n  char *pcVar3;\n  \n  pcVar3 = keymap_names->name;\n  if (pcVar3 != (char *)0x0) {\n    pKVar1 = keymap_names->map;\n    pnVar2 = keymap_names;\n    while (map != pKVar1) {\n      pcVar3 = pnVar2[1].name;\n      if (pcVar3 == (char *)0x0) {\n        return (char *)0x0;\n      }\n      pKVar1 = pnVar2[1].map;\n      pnVar2 = pnVar2 + 1;\n    }\n  }\n  return pcVar3;\n}\n\n" comment (function_definition "char * rl_get_keymap_name(Keymap map)\n\n{\n  Keymap pKVar1;\n  name_and_keymap *pnVar2;\n  char *pcVar3;\n  \n  pcVar3 = keymap_names->name;\n  if (pcVar3 != (char *)0x0) {\n    pKVar1 = keymap_names->map;\n    pnVar2 = keymap_names;\n    while (map != pKVar1) {\n      pcVar3 = pnVar2[1].name;\n      if (pcVar3 == (char *)0x0) {\n        return (char *)0x0;\n      }\n      pKVar1 = pnVar2[1].map;\n      pnVar2 = pnVar2 + 1;\n    }\n  }\n  return pcVar3;\n}" primitive_type (pointer_declarator "* rl_get_keymap_name(Keymap map)" * (function_declarator "rl_get_keymap_name(Keymap map)" identifier (parameter_list "(Keymap map)" ( (parameter_declaration "Keymap map" type_identifier identifier) )))) (compound_statement "{\n  Keymap pKVar1;\n  name_and_keymap *pnVar2;\n  char *pcVar3;\n  \n  pcVar3 = keymap_names->name;\n  if (pcVar3 != (char *)0x0) {\n    pKVar1 = keymap_names->map;\n    pnVar2 = keymap_names;\n    while (map != pKVar1) {\n      pcVar3 = pnVar2[1].name;\n      if (pcVar3 == (char *)0x0) {\n        return (char *)0x0;\n      }\n      pKVar1 = pnVar2[1].map;\n      pnVar2 = pnVar2 + 1;\n    }\n  }\n  return pcVar3;\n}" { (declaration "Keymap pKVar1;" type_identifier identifier ;) (declaration "name_and_keymap *pnVar2;" type_identifier (pointer_declarator "*pnVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar3 = keymap_names->name;" (assignment_expression "pcVar3 = keymap_names->name" identifier = (field_expression "keymap_names->name" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    pKVar1 = keymap_names->map;\n    pnVar2 = keymap_names;\n    while (map != pKVar1) {\n      pcVar3 = pnVar2[1].name;\n      if (pcVar3 == (char *)0x0) {\n        return (char *)0x0;\n      }\n      pKVar1 = pnVar2[1].map;\n      pnVar2 = pnVar2 + 1;\n    }\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pKVar1 = keymap_names->map;\n    pnVar2 = keymap_names;\n    while (map != pKVar1) {\n      pcVar3 = pnVar2[1].name;\n      if (pcVar3 == (char *)0x0) {\n        return (char *)0x0;\n      }\n      pKVar1 = pnVar2[1].map;\n      pnVar2 = pnVar2 + 1;\n    }\n  }" { (expression_statement "pKVar1 = keymap_names->map;" (assignment_expression "pKVar1 = keymap_names->map" identifier = (field_expression "keymap_names->map" identifier -> field_identifier)) ;) (expression_statement "pnVar2 = keymap_names;" (assignment_expression "pnVar2 = keymap_names" identifier = identifier) ;) (while_statement "while (map != pKVar1) {\n      pcVar3 = pnVar2[1].name;\n      if (pcVar3 == (char *)0x0) {\n        return (char *)0x0;\n      }\n      pKVar1 = pnVar2[1].map;\n      pnVar2 = pnVar2 + 1;\n    }" while (parenthesized_expression "(map != pKVar1)" ( (binary_expression "map != pKVar1" identifier != identifier) )) (compound_statement "{\n      pcVar3 = pnVar2[1].name;\n      if (pcVar3 == (char *)0x0) {\n        return (char *)0x0;\n      }\n      pKVar1 = pnVar2[1].map;\n      pnVar2 = pnVar2 + 1;\n    }" { (expression_statement "pcVar3 = pnVar2[1].name;" (assignment_expression "pcVar3 = pnVar2[1].name" identifier = (field_expression "pnVar2[1].name" (subscript_expression "pnVar2[1]" identifier [ number_literal ]) . field_identifier)) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        return (char *)0x0;\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return (char *)0x0;\n      }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pKVar1 = pnVar2[1].map;" (assignment_expression "pKVar1 = pnVar2[1].map" identifier = (field_expression "pnVar2[1].map" (subscript_expression "pnVar2[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "pnVar2 = pnVar2 + 1;" (assignment_expression "pnVar2 = pnVar2 + 1" identifier = (binary_expression "pnVar2 + 1" identifier + number_literal)) ;) })) })) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "void rl_get_keymap_name(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }\n  return;\n}\n\n" (function_definition "void rl_get_keymap_name(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "rl_get_keymap_name(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }" if (parenthesized_expression "(*(int *)PTR_PTR_s_emacs_00176644 != 0)" ( (binary_expression "*(int *)PTR_PTR_s_emacs_00176644 != 0" (pointer_expression "*(int *)PTR_PTR_s_emacs_00176644" * (cast_expression "(int *)PTR_PTR_s_emacs_00176644" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);" (assignment_expression "iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4)" identifier = (pointer_expression "*(int *)(PTR_PTR_s_emacs_00176644 + 4)" * (cast_expression "(int *)(PTR_PTR_s_emacs_00176644 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_PTR_s_emacs_00176644 + 4)" ( (binary_expression "PTR_PTR_s_emacs_00176644 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)PTR_PTR_s_emacs_00176644;" (assignment_expression "piVar2 = (int *)PTR_PTR_s_emacs_00176644" identifier = (cast_expression "(int *)PTR_PTR_s_emacs_00176644" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }" while (parenthesized_expression "((param_1 != iVar1 && (piVar2[2] != 0)))" ( (parenthesized_expression "(param_1 != iVar1 && (piVar2[2] != 0))" ( (binary_expression "param_1 != iVar1 && (piVar2[2] != 0)" (binary_expression "param_1 != iVar1" identifier != identifier) && (parenthesized_expression "(piVar2[2] != 0)" ( (binary_expression "piVar2[2] != 0" (subscript_expression "piVar2[2]" identifier [ number_literal ]) != number_literal) ))) )) )) (compound_statement "{\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }" { (expression_statement "iVar1 = piVar2[3];" (assignment_expression "iVar1 = piVar2[3]" identifier = (subscript_expression "piVar2[3]" identifier [ number_literal ])) ;) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) })) })) (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 (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != IDENT) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (return_statement return ;) })))
(function_definition "void rl_get_keymap_name(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "rl_get_keymap_name(int param_1)" (identifier "rl_get_keymap_name") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (if_statement "if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)PTR_PTR_s_emacs_00176644 != 0)" (( "(") (binary_expression "*(int *)PTR_PTR_s_emacs_00176644 != 0" (pointer_expression "*(int *)PTR_PTR_s_emacs_00176644" (* "*") (cast_expression "(int *)PTR_PTR_s_emacs_00176644" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_PTR_s_emacs_00176644"))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);\n    piVar2 = (int *)PTR_PTR_s_emacs_00176644;\n    while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);" (assignment_expression "iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(PTR_PTR_s_emacs_00176644 + 4)" (* "*") (cast_expression "(int *)(PTR_PTR_s_emacs_00176644 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_PTR_s_emacs_00176644 + 4)" (( "(") (binary_expression "PTR_PTR_s_emacs_00176644 + 4" (identifier "PTR_PTR_s_emacs_00176644") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "piVar2 = (int *)PTR_PTR_s_emacs_00176644;" (assignment_expression "piVar2 = (int *)PTR_PTR_s_emacs_00176644" (identifier "piVar2") (= "=") (cast_expression "(int *)PTR_PTR_s_emacs_00176644" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_PTR_s_emacs_00176644"))) (; ";")) (while_statement "while ((param_1 != iVar1 && (piVar2[2] != 0))) {\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }" (while "while") (parenthesized_expression "((param_1 != iVar1 && (piVar2[2] != 0)))" (( "(") (parenthesized_expression "(param_1 != iVar1 && (piVar2[2] != 0))" (( "(") (binary_expression "param_1 != iVar1 && (piVar2[2] != 0)" (binary_expression "param_1 != iVar1" (identifier "param_1") (!= "!=") (identifier "iVar1")) (&& "&&") (parenthesized_expression "(piVar2[2] != 0)" (( "(") (binary_expression "piVar2[2] != 0" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")")) (compound_statement "{\n      iVar1 = piVar2[3];\n      piVar2 = piVar2 + 2;\n    }" ({ "{") (expression_statement "iVar1 = piVar2[3];" (assignment_expression "iVar1 = piVar2[3]" (identifier "iVar1") (= "=") (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

char * function_1(type_1 var_2)

{
  type_1 var_3;
  type_2 *var_4;
  char *var_1;
  
  var_1 = keymap_names->name;
  if (var_1 != (char *)0x0) {
    var_3 = keymap_names->var_2;
    var_4 = keymap_names;
    while (var_2 != var_3) {
      var_1 = var_4[1].name;
      if (var_1 == (char *)0x0) {
        return (char *)0x0;
      }
      var_3 = var_4[1].var_2;
      var_4 = var_4 + 1;
    }
  }
  return var_1;
}


(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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(int param_1)

{
  int iVar1;
  int *piVar2;
  
  if (*(int *)PTR_PTR_s_emacs_00176644 != 0) {
    iVar1 = *(int *)(PTR_PTR_s_emacs_00176644 + 4);
    piVar2 = (int *)PTR_PTR_s_emacs_00176644;
    while ((param_1 != iVar1 && (piVar2[2] != 0))) {
      iVar1 = piVar2[3];
      piVar2 = piVar2 + 2;
    }
  }
  return;
}

