
/* 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)

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



undefined8 * FUN_00257b60(long param_1,char *param_2,size_t param_3)

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


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV RBP,qword ptr [RDI + 0x18]
TEST RBP,RBP
JZ 0x00257bb5
MOV RBX,qword ptr [RBP]
MOV R13,qword ptr [RBP + 0x8]
CMP RBX,R13
JZ 0x00257bc8
MOV R12,RDX
MOV R14,RSI
JMP 0x00257b99
ADD RBX,0x8
CMP R13,RBX
JZ 0x00257bc8
MOV RBP,qword ptr [RBX]
CMP R12,qword ptr [RBP + 0x8]
JNZ 0x00257b90
MOV RDI,qword ptr [RBP]
MOV RDX,R12
MOV RSI,R14
CALL 0x001472f0
TEST EAX,EAX
JNZ 0x00257b90
POP RBX
MOV RAX,RBP
POP RBP
POP R12
POP R13
POP R14
RET
XOR EBP,EBP
POP RBX
MOV RAX,RBP
POP RBP
POP R12
POP R13
POP R14
RET
(translation_unit "undefined8 * FUN_00257b60(long param_1,char *param_2,size_t param_3)\n\n{\n  undefined8 *puVar1;\n  int iVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  \n  puVar4 = *(undefined8 **)(param_1 + 0x18);\n  if (puVar4 != (undefined8 *)0x0) {\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 "undefined8 * FUN_00257b60(long param_1,char *param_2,size_t param_3)\n\n{\n  undefined8 *puVar1;\n  int iVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  \n  puVar4 = *(undefined8 **)(param_1 + 0x18);\n  if (puVar4 != (undefined8 *)0x0) {\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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_00257b60(long param_1,char *param_2,size_t param_3)" * (function_declarator "FUN_00257b60(long param_1,char *param_2,size_t param_3)" identifier (parameter_list "(long param_1,char *param_2,size_t param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) 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  undefined8 *puVar1;\n  int iVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  \n  puVar4 = *(undefined8 **)(param_1 + 0x18);\n  if (puVar4 != (undefined8 *)0x0) {\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "puVar4 = *(undefined8 **)(param_1 + 0x18);" (assignment_expression "puVar4 = *(undefined8 **)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x18)" * (cast_expression "(undefined8 **)(param_1 + 0x18)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (puVar4 != (undefined8 *)0x0) {\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 != (undefined8 *)0x0)" ( (binary_expression "puVar4 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 = (undefined8 *)*puVar4;" (assignment_expression "puVar3 = (undefined8 *)*puVar4" identifier = (cast_expression "(undefined8 *)*puVar4" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "puVar1 = (undefined8 *)puVar4[1];" (assignment_expression "puVar1 = (undefined8 *)puVar4[1]" identifier = (cast_expression "(undefined8 *)puVar4[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (while_statement "while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 (undefined8 *)0x0;\n      }" if (parenthesized_expression "(puVar3 == puVar1)" ( (binary_expression "puVar3 == puVar1" identifier == identifier) )) (compound_statement "{\n        return (undefined8 *)0x0;\n      }" { (return_statement "return (undefined8 *)0x0;" return (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "puVar4 = (undefined8 *)*puVar3;" (assignment_expression "puVar4 = (undefined8 *)*puVar3" identifier = (cast_expression "(undefined8 *)*puVar3" ( (type_descriptor "undefined8 *" 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 "/* 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  long *plVar1;\n  int iVar2;\n  long *plVar3;\n  Memory_region *pMVar4;\n  \n  pMVar4 = (Memory_region *)this->memory_regions_;\n  if (pMVar4 != (Memory_region *)0x0) {\n    plVar3 = (long *)(pMVar4->name_)._M_dataplus._M_p;\n    plVar1 = (long *)(pMVar4->name_)._M_string_length;\n    while( true ) {\n      if (plVar3 == plVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*plVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      plVar3 = plVar3 + 1;\n    }\n  }\n  return pMVar4;\n}\n\n" 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  long *plVar1;\n  int iVar2;\n  long *plVar3;\n  Memory_region *pMVar4;\n  \n  pMVar4 = (Memory_region *)this->memory_regions_;\n  if (pMVar4 != (Memory_region *)0x0) {\n    plVar3 = (long *)(pMVar4->name_)._M_dataplus._M_p;\n    plVar1 = (long *)(pMVar4->name_)._M_string_length;\n    while( true ) {\n      if (plVar3 == plVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*plVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      plVar3 = plVar3 + 1;\n    }\n  }\n  return pMVar4;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * 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    plVar3 = (long *)(pMVar4->name_)._M_dataplus._M_p;\n    plVar1 = (long *)(pMVar4->name_)._M_string_length;\n    while( true ) {\n      if (plVar3 == plVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*plVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      plVar3 = plVar3 + 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    plVar3 = (long *)(pMVar4->name_)._M_dataplus._M_p;\n    plVar1 = (long *)(pMVar4->name_)._M_string_length;\n    while( true ) {\n      if (plVar3 == plVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*plVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      plVar3 = plVar3 + 1;\n    }\n  }" { (expression_statement "plVar3 = (long *)(pMVar4->name_)._M_dataplus._M_p;" (assignment_expression "plVar3 = (long *)(pMVar4->name_)._M_dataplus._M_p" identifier = (cast_expression "(long *)(pMVar4->name_)._M_dataplus._M_p" ( (type_descriptor "long *" (sized_type_specifier "long" long) (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 "plVar1 = (long *)(pMVar4->name_)._M_string_length;" (assignment_expression "plVar1 = (long *)(pMVar4->name_)._M_string_length" identifier = (cast_expression "(long *)(pMVar4->name_)._M_string_length" ( (type_descriptor "long *" (sized_type_specifier "long" long) (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 (plVar3 == plVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*plVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      plVar3 = plVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (plVar3 == plVar1) {\n        return (Memory_region *)0x0;\n      }\n      pMVar4 = (Memory_region *)*plVar3;\n      if ((namelen == (pMVar4->name_)._M_string_length) &&\n         (iVar2 = strncmp((pMVar4->name_)._M_dataplus._M_p,name,namelen), iVar2 == 0)) break;\n      plVar3 = plVar3 + 1;\n    }" { (if_statement "if (plVar3 == plVar1) {\n        return (Memory_region *)0x0;\n      }" if (parenthesized_expression "(plVar3 == plVar1)" ( (binary_expression "plVar3 == plVar1" 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 *)*plVar3;" (assignment_expression "pMVar4 = (Memory_region *)*plVar3" identifier = (cast_expression "(Memory_region *)*plVar3" ( (type_descriptor "Memory_region *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar3" * 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 "plVar3 = plVar3 + 1;" (assignment_expression "plVar3 = plVar3 + 1" identifier = (binary_expression "plVar3 + 1" identifier + number_literal)) ;) })) })) (return_statement "return pMVar4;" return identifier ;) }))
(translation_unit "undefined8 * FUN_00257b60(long param_1,char *param_2,size_t param_3)\n\n{\n  undefined8 *puVar1;\n  int iVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  \n  puVar4 = *(undefined8 **)(param_1 + 0x18);\n  if (puVar4 != (undefined8 *)0x0) {\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 "undefined8 * FUN_00257b60(long param_1,char *param_2,size_t param_3)\n\n{\n  undefined8 *puVar1;\n  int iVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  \n  puVar4 = *(undefined8 **)(param_1 + 0x18);\n  if (puVar4 != (undefined8 *)0x0) {\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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_00257b60(long param_1,char *param_2,size_t param_3)" * (function_declarator "FUN_00257b60(long param_1,char *param_2,size_t param_3)" identifier (parameter_list "(long param_1,char *param_2,size_t param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) 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  undefined8 *puVar1;\n  int iVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  \n  puVar4 = *(undefined8 **)(param_1 + 0x18);\n  if (puVar4 != (undefined8 *)0x0) {\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "puVar4 = *(undefined8 **)(param_1 + 0x18);" (assignment_expression "puVar4 = *(undefined8 **)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x18)" * (cast_expression "(undefined8 **)(param_1 + 0x18)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (puVar4 != (undefined8 *)0x0) {\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 != (undefined8 *)0x0)" ( (binary_expression "puVar4 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 = (undefined8 *)*puVar4;" (assignment_expression "puVar3 = (undefined8 *)*puVar4" identifier = (cast_expression "(undefined8 *)*puVar4" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "puVar1 = (undefined8 *)puVar4[1];" (assignment_expression "puVar1 = (undefined8 *)puVar4[1]" identifier = (cast_expression "(undefined8 *)puVar4[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[1]" identifier [ number_literal ]))) ;) (while_statement "while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 (undefined8 *)0x0;\n      }" if (parenthesized_expression "(puVar3 == puVar1)" ( (binary_expression "puVar3 == puVar1" identifier == identifier) )) (compound_statement "{\n        return (undefined8 *)0x0;\n      }" { (return_statement "return (undefined8 *)0x0;" return (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "puVar4 = (undefined8 *)*puVar3;" (assignment_expression "puVar4 = (undefined8 *)*puVar3" identifier = (cast_expression "(undefined8 *)*puVar3" ( (type_descriptor "undefined8 *" 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 (sized_type_specifier long) 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 "undefined8 * FUN_00257b60(long param_1,char *param_2,size_t param_3)\n\n{\n  undefined8 *puVar1;\n  int iVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  \n  puVar4 = *(undefined8 **)(param_1 + 0x18);\n  if (puVar4 != (undefined8 *)0x0) {\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 "undefined8") (pointer_declarator "* FUN_00257b60(long param_1,char *param_2,size_t param_3)" (* "*") (function_declarator "FUN_00257b60(long param_1,char *param_2,size_t param_3)" (identifier "FUN_00257b60") (parameter_list "(long param_1,char *param_2,size_t param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (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  undefined8 *puVar1;\n  int iVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  \n  puVar4 = *(undefined8 **)(param_1 + 0x18);\n  if (puVar4 != (undefined8 *)0x0) {\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 *puVar3;" (type_identifier "undefined8") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined8 *puVar4;" (type_identifier "undefined8") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "puVar4 = *(undefined8 **)(param_1 + 0x18);" (assignment_expression "puVar4 = *(undefined8 **)(param_1 + 0x18)" (identifier "puVar4") (= "=") (pointer_expression "*(undefined8 **)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (puVar4 != (undefined8 *)0x0) {\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 != (undefined8 *)0x0)" (( "(") (binary_expression "puVar4 != (undefined8 *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar3 = (undefined8 *)*puVar4;\n    puVar1 = (undefined8 *)puVar4[1];\n    while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 = (undefined8 *)*puVar4;" (assignment_expression "puVar3 = (undefined8 *)*puVar4" (identifier "puVar3") (= "=") (cast_expression "(undefined8 *)*puVar4" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (; ";")) (expression_statement "puVar1 = (undefined8 *)puVar4[1];" (assignment_expression "puVar1 = (undefined8 *)puVar4[1]" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)puVar4[1]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")))) (; ";")) (while_statement "while( true ) {\n      if (puVar3 == puVar1) {\n        return (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 (undefined8 *)0x0;\n      }\n      puVar4 = (undefined8 *)*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 (undefined8 *)0x0;\n      }" (if "if") (parenthesized_expression "(puVar3 == puVar1)" (( "(") (binary_expression "puVar3 == puVar1" (identifier "puVar3") (== "==") (identifier "puVar1")) () ")")) (compound_statement "{\n        return (undefined8 *)0x0;\n      }" ({ "{") (return_statement "return (undefined8 *)0x0;" (return "return") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "puVar4 = (undefined8 *)*puVar3;" (assignment_expression "puVar4 = (undefined8 *)*puVar3" (identifier "puVar4") (= "=") (cast_expression "(undefined8 *)*puVar3" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (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") (; ";")) (} "}")))

/* 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)

{
  long *var_3;
  int var_6;
  long *var_2;
  type_1 *var_1;
  
  var_1 = (type_1 *)this->memory_regions_;
  if (var_1 != (type_1 *)0x0) {
    var_2 = (long *)(var_1->name_)._M_dataplus._M_p;
    var_3 = (long *)(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: (sized_type_specifier) 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)))))

undefined8 * MASKED(long param_1,char *param_2,size_t param_3)

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

