
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: Memory_region * find_memory_region(Script_sections * this, char * name,
   size_t namelen) */

Memory_region * __thiscall
gold::Script_sections::find_memory_region(Script_sections *this,char *name,size_t namelen)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  Memory_region *pMVar4;
  
  pMVar4 = (Memory_region *)this->memory_regions_;
  if (pMVar4 != (Memory_region *)0x0) {
    piVar3 = (int *)(pMVar4->name_)._M_dataplus._M_p;
    piVar1 = (int *)(pMVar4->name_)._M_string_length;
    while( true ) {
      if (piVar3 == piVar1) {
        return (Memory_region *)0x0;
      }
      pMVar4 = (Memory_region *)*piVar3;
      if ((namelen == (pMVar4->name_)._M_string_length) &&
         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;
      piVar3 = piVar3 + 1;
    }
  }
  return pMVar4;
}



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

undefined4 * FUN_0016d5e0(int param_1,char *param_2,size_t param_3)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  
  puVar4 = *(undefined4 **)(param_1 + 0xc);
  if (puVar4 != (undefined4 *)0x0) {
    puVar3 = (undefined4 *)*puVar4;
    puVar1 = (undefined4 *)puVar4[1];
    while( true ) {
      if (puVar3 == puVar1) {
        return (undefined4 *)0x0;
      }
      puVar4 = (undefined4 *)*puVar3;
      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))
      break;
      puVar3 = puVar3 + 1;
    }
  }
  return puVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00036db0
ADD EBX,0x23ca17
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x28]
MOV EDI,dword ptr [EAX + 0xc]
TEST EDI,EDI
JZ 0x0016d63c
MOV ESI,dword ptr [EDI]
MOV EBP,dword ptr [EDI + 0x4]
CMP ESI,EBP
JNZ 0x0016d617
JMP 0x0016d650
ADD ESI,0x4
CMP EBP,ESI
JZ 0x0016d650
MOV EDI,dword ptr [ESI]
CMP EDX,dword ptr [EDI + 0x4]
JNZ 0x0016d610
SUB ESP,0x4
PUSH EDX
MOV dword ptr [ESP + 0x30],EDX
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [EDI]
CALL 0x0002a990
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x28]
TEST EAX,EAX
JNZ 0x0016d610
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
XOR EDI,EDI
POP EBX
MOV EAX,EDI
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_0016d5e0(int param_1,char *param_2,size_t param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  \n  puVar4 = *(undefined4 **)(param_1 + 0xc);\n  if (puVar4 != (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }\n  return puVar4;\n}\n\n" comment (function_definition "undefined4 * FUN_0016d5e0(int param_1,char *param_2,size_t param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  \n  puVar4 = *(undefined4 **)(param_1 + 0xc);\n  if (puVar4 != (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }\n  return puVar4;\n}" type_identifier (pointer_declarator "* FUN_0016d5e0(int param_1,char *param_2,size_t param_3)" * (function_declarator "FUN_0016d5e0(int param_1,char *param_2,size_t param_3)" identifier (parameter_list "(int param_1,char *param_2,size_t param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  \n  puVar4 = *(undefined4 **)(param_1 + 0xc);\n  if (puVar4 != (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }\n  return puVar4;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "puVar4 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar4 = *(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }" if (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" ( (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }" { (expression_statement "puVar3 = (undefined4 *)*puVar4;" (assignment_expression "puVar3 = (undefined4 *)*puVar4" identifier = (cast_expression "(undefined4 *)*puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "puVar1 = (undefined4 *)puVar4[1];" (assignment_expression "puVar1 = (undefined4 *)puVar4[1]" identifier = (cast_expression "(undefined4 *)puVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (while_statement "while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }" { (if_statement "if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }" if (parenthesized_expression "(puVar3 == puVar1)" ( (binary_expression "puVar3 == puVar1" identifier == identifier) )) (compound_statement "{\n        return (undefined4 *)0x0;\n      }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "puVar4 = (undefined4 *)*puVar3;" (assignment_expression "puVar4 = (undefined4 *)*puVar3" identifier = (cast_expression "(undefined4 *)*puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) (if_statement "if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;" if (parenthesized_expression "((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))" ( (binary_expression "(param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0)" (parenthesized_expression "(param_3 == puVar4[1])" ( (binary_expression "param_3 == puVar4[1]" identifier == (subscript_expression "puVar4[1]" identifier [ number_literal ])) )) && (parenthesized_expression "(iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0)" ( (comma_expression "iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0" (assignment_expression "iVar2 = strncmp((char *)*puVar4,param_2,param_3)" identifier = (call_expression "strncmp((char *)*puVar4,param_2,param_3)" identifier (argument_list "((char *)*puVar4,param_2,param_3)" ( (cast_expression "(char *)*puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier)) , identifier , identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) })) })) (return_statement "return puVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: Memory_region * find_memory_region(Script_sections * this, char * name,\n   size_t namelen) */\n\nMemory_region * __thiscall\ngold::Script_sections::find_memory_region(Script_sections *this,char *name,size_t namelen)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  Memory_region *pMVar4;\n  \n  pMVar4 = (Memory_region *)this->memory_regions_;\n  if (pMVar4 != (Memory_region *)0x0) {\n    piVar3 = (int *)(pMVar4->name_)._M_dataplus._M_p;\n    piVar1 = (int *)(pMVar4->name_)._M_string_length;\n    while( true ) {\n      if (piVar3 == piVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*piVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      piVar3 = piVar3 + 1;\n    }\n  }\n  return pMVar4;\n}\n\n" comment comment (ERROR "Memory_region * __thiscall\ngold::Script_sections::find_memory_region(Script_sections *this,char *name,size_t namelen)" (binary_expression "Memory_region * __thiscall\ngold::Script_sections::find_memory_region(Script_sections *this" (binary_expression "Memory_region * __thiscall" identifier * identifier) (ERROR "gold::Script_sections::find_memory_region(Script_sections" identifier : : identifier : : identifier ( identifier) * identifier) , primitive_type (pointer_declarator "*name" * identifier) , identifier identifier )) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  Memory_region *pMVar4;\n  \n  pMVar4 = (Memory_region *)this->memory_regions_;\n  if (pMVar4 != (Memory_region *)0x0) {\n    piVar3 = (int *)(pMVar4->name_)._M_dataplus._M_p;\n    piVar1 = (int *)(pMVar4->name_)._M_string_length;\n    while( true ) {\n      if (piVar3 == piVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*piVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      piVar3 = piVar3 + 1;\n    }\n  }\n  return pMVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "Memory_region *pMVar4;" type_identifier (pointer_declarator "*pMVar4" * identifier) ;) (expression_statement "pMVar4 = (Memory_region *)this->memory_regions_;" (assignment_expression "pMVar4 = (Memory_region *)this->memory_regions_" identifier = (cast_expression "(Memory_region *)this->memory_regions_" ( (type_descriptor "Memory_region *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->memory_regions_" identifier -> field_identifier))) ;) (if_statement "if (pMVar4 != (Memory_region *)0x0) {\n    piVar3 = (int *)(pMVar4->name_)._M_dataplus._M_p;\n    piVar1 = (int *)(pMVar4->name_)._M_string_length;\n    while( true ) {\n      if (piVar3 == piVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*piVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      piVar3 = piVar3 + 1;\n    }\n  }" if (parenthesized_expression "(pMVar4 != (Memory_region *)0x0)" ( (binary_expression "pMVar4 != (Memory_region *)0x0" identifier != (cast_expression "(Memory_region *)0x0" ( (type_descriptor "Memory_region *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar3 = (int *)(pMVar4->name_)._M_dataplus._M_p;\n    piVar1 = (int *)(pMVar4->name_)._M_string_length;\n    while( true ) {\n      if (piVar3 == piVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*piVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      piVar3 = piVar3 + 1;\n    }\n  }" { (expression_statement "piVar3 = (int *)(pMVar4->name_)._M_dataplus._M_p;" (assignment_expression "piVar3 = (int *)(pMVar4->name_)._M_dataplus._M_p" identifier = (cast_expression "(int *)(pMVar4->name_)._M_dataplus._M_p" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "(pMVar4->name_)._M_dataplus._M_p" (field_expression "(pMVar4->name_)._M_dataplus" (parenthesized_expression "(pMVar4->name_)" ( (field_expression "pMVar4->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) (expression_statement "piVar1 = (int *)(pMVar4->name_)._M_string_length;" (assignment_expression "piVar1 = (int *)(pMVar4->name_)._M_string_length" identifier = (cast_expression "(int *)(pMVar4->name_)._M_string_length" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "(pMVar4->name_)._M_string_length" (parenthesized_expression "(pMVar4->name_)" ( (field_expression "pMVar4->name_" identifier -> field_identifier) )) . field_identifier))) ;) (while_statement "while( true ) {\n      if (piVar3 == piVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*piVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      piVar3 = piVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (piVar3 == piVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*piVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      piVar3 = piVar3 + 1;\n    }" { (if_statement "if (piVar3 == piVar1) {\n        return (Memory_region *)0x0;\n      }" if (parenthesized_expression "(piVar3 == piVar1)" ( (binary_expression "piVar3 == piVar1" identifier == identifier) )) (compound_statement "{\n        return (Memory_region *)0x0;\n      }" { (return_statement "return (Memory_region *)0x0;" return (cast_expression "(Memory_region *)0x0" ( (type_descriptor "Memory_region *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pMVar4 = (Memory_region *)*piVar3;" (assignment_expression "pMVar4 = (Memory_region *)*piVar3" identifier = (cast_expression "(Memory_region *)*piVar3" ( (type_descriptor "Memory_region *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (if_statement "if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;" if (parenthesized_expression "((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0))" ( (binary_expression "(namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)" (parenthesized_expression "(namelen == (pMVar4->name_)._M_string_length)" ( (binary_expression "namelen == (pMVar4->name_)._M_string_length" identifier == (field_expression "(pMVar4->name_)._M_string_length" (parenthesized_expression "(pMVar4->name_)" ( (field_expression "pMVar4->name_" identifier -> field_identifier) )) . field_identifier)) )) && (parenthesized_expression "(iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)" ( (comma_expression "iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0" (assignment_expression "iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen)" identifier = (call_expression "strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen)" identifier (argument_list "((pMVar4->name_)._M_dataplus._M_p,name,namelen)" ( (field_expression "(pMVar4->name_)._M_dataplus._M_p" (field_expression "(pMVar4->name_)._M_dataplus" (parenthesized_expression "(pMVar4->name_)" ( (field_expression "pMVar4->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) , identifier , identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) })) })) (return_statement "return pMVar4;" return identifier ;) }))
(translation_unit "undefined4 * FUN_0016d5e0(int param_1,char *param_2,size_t param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  \n  puVar4 = *(undefined4 **)(param_1 + 0xc);\n  if (puVar4 != (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }\n  return puVar4;\n}\n\n" (function_definition "undefined4 * FUN_0016d5e0(int param_1,char *param_2,size_t param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  \n  puVar4 = *(undefined4 **)(param_1 + 0xc);\n  if (puVar4 != (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }\n  return puVar4;\n}" type_identifier (pointer_declarator "* FUN_0016d5e0(int param_1,char *param_2,size_t param_3)" * (function_declarator "FUN_0016d5e0(int param_1,char *param_2,size_t param_3)" identifier (parameter_list "(int param_1,char *param_2,size_t param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  \n  puVar4 = *(undefined4 **)(param_1 + 0xc);\n  if (puVar4 != (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }\n  return puVar4;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "puVar4 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar4 = *(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }" if (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" ( (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }" { (expression_statement "puVar3 = (undefined4 *)*puVar4;" (assignment_expression "puVar3 = (undefined4 *)*puVar4" identifier = (cast_expression "(undefined4 *)*puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "puVar1 = (undefined4 *)puVar4[1];" (assignment_expression "puVar1 = (undefined4 *)puVar4[1]" identifier = (cast_expression "(undefined4 *)puVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (while_statement "while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }" { (if_statement "if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }" if (parenthesized_expression "(puVar3 == puVar1)" ( (binary_expression "puVar3 == puVar1" identifier == identifier) )) (compound_statement "{\n        return (undefined4 *)0x0;\n      }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "puVar4 = (undefined4 *)*puVar3;" (assignment_expression "puVar4 = (undefined4 *)*puVar3" identifier = (cast_expression "(undefined4 *)*puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) (if_statement "if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;" if (parenthesized_expression "((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))" ( (binary_expression "(param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0)" (parenthesized_expression "(param_3 == puVar4[1])" ( (binary_expression "param_3 == puVar4[1]" identifier == (subscript_expression "puVar4[1]" identifier [ number_literal ])) )) && (parenthesized_expression "(iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0)" ( (comma_expression "iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0" (assignment_expression "iVar2 = strncmp((char *)*puVar4,param_2,param_3)" identifier = (call_expression "strncmp((char *)*puVar4,param_2,param_3)" identifier (argument_list "((char *)*puVar4,param_2,param_3)" ( (cast_expression "(char *)*puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier)) , identifier , identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) })) })) (return_statement "return puVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , IDENT , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_0016d5e0(int param_1,char *param_2,size_t param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  \n  puVar4 = *(undefined4 **)(param_1 + 0xc);\n  if (puVar4 != (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }\n  return puVar4;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0016d5e0(int param_1,char *param_2,size_t param_3)" (* "*") (function_declarator "FUN_0016d5e0(int param_1,char *param_2,size_t param_3)" (identifier "FUN_0016d5e0") (parameter_list "(int param_1,char *param_2,size_t param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "size_t param_3" (primitive_type "size_t") (identifier "param_3")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  \n  puVar4 = *(undefined4 **)(param_1 + 0xc);\n  if (puVar4 != (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }\n  return puVar4;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "puVar4 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar4 = *(undefined4 **)(param_1 + 0xc)" (identifier "puVar4") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }" (if "if") (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar4 != (undefined4 *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar3 = (undefined4 *)*puVar4;\n    puVar1 = (undefined4 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }\n  }" ({ "{") (expression_statement "puVar3 = (undefined4 *)*puVar4;" (assignment_expression "puVar3 = (undefined4 *)*puVar4" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)*puVar4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (; ";")) (expression_statement "puVar1 = (undefined4 *)puVar4[1];" (assignment_expression "puVar1 = (undefined4 *)puVar4[1]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)puVar4[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")))) (; ";")) (while_statement "while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }\n      puVar4 = (undefined4 *)*puVar3;\n      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;\n      puVar3 = puVar3 + 1;\n    }" ({ "{") (if_statement "if (puVar3 == puVar1) {\n        return (undefined4 *)0x0;\n      }" (if "if") (parenthesized_expression "(puVar3 == puVar1)" (( "(") (binary_expression "puVar3 == puVar1" (identifier "puVar3") (== "==") (identifier "puVar1")) () ")")) (compound_statement "{\n        return (undefined4 *)0x0;\n      }" ({ "{") (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "puVar4 = (undefined4 *)*puVar3;" (assignment_expression "puVar4 = (undefined4 *)*puVar3" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)*puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) (; ";")) (if_statement "if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))\n      break;" (if "if") (parenthesized_expression "((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))" (( "(") (binary_expression "(param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0)" (parenthesized_expression "(param_3 == puVar4[1])" (( "(") (binary_expression "param_3 == puVar4[1]" (identifier "param_3") (== "==") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]"))) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0)" (( "(") (comma_expression "iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0" (assignment_expression "iVar2 = strncmp((char *)*puVar4,param_2,param_3)" (identifier "iVar2") (= "=") (call_expression "strncmp((char *)*puVar4,param_2,param_3)" (identifier "strncmp") (argument_list "((char *)*puVar4,param_2,param_3)" (( "(") (cast_expression "(char *)*puVar4" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return puVar4;" (return "return") (identifier "puVar4") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: Memory_region * find_memory_region(Script_sections * this, char * name,
   size_t namelen) */

type_1 * __thiscall
gold::Script_sections::find_memory_region(Script_sections *this,char *name,size_t var_4)

{
  int *var_3;
  int var_6;
  int *var_2;
  type_1 *var_1;
  
  var_1 = (type_1 *)this->memory_regions_;
  if (var_1 != (type_1 *)0x0) {
    var_2 = (int *)(var_1->name_)._M_dataplus._M_p;
    var_3 = (int *)(var_1->name_)._M_string_length;
    while( true ) {
      if (var_2 == var_3) {
        return (type_1 *)0x0;
      }
      var_1 = (type_1 *)*var_2;
      if ((var_4 == (var_1->name_)._M_string_length) &&
         (var_6 = var_5((var_1->name_)._M_dataplus._M_p,name,var_4), var_6 == 0)) break;
      var_2 = var_2 + 1;
    }
  }
  return var_1;
}


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

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

undefined4 * MASKED(int param_1,char *param_2,size_t param_3)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  
  puVar4 = *(undefined4 **)(param_1 + 0xc);
  if (puVar4 != (undefined4 *)0x0) {
    puVar3 = (undefined4 *)*puVar4;
    puVar1 = (undefined4 *)puVar4[1];
    while( true ) {
      if (puVar3 == puVar1) {
        return (undefined4 *)0x0;
      }
      puVar4 = (undefined4 *)*puVar3;
      if ((param_3 == puVar4[1]) && (iVar2 = strncmp((char *)*puVar4,param_2,param_3), iVar2 == 0))
      break;
      puVar3 = puVar3 + 1;
    }
  }
  return puVar4;
}

