
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

ssh_signkey * ec_alg_by_oid(int len,void *oid,ec_curve **curve)

{
  ssh_signkey *psVar1;
  undefined8 *puVar2;
  int iVar3;
  ec_curve *peVar4;
  ssh_signkey **ppsVar5;
  
  ppsVar5 = ec_alg_by_oid::algs_with_oid;
  while( true ) {
    psVar1 = *ppsVar5;
    puVar2 = (undefined8 *)psVar1->extra;
    if ((*(int *)(puVar2 + 3) == len) &&
       (iVar3 = memcmp(oid,(void *)puVar2[2],(long)len), iVar3 == 0)) break;
    ppsVar5 = ppsVar5 + 1;
    if (ppsVar5 == (ssh_signkey **)&DAT_00183bf8) {
      return (ssh_signkey *)0x0;
    }
  }
  peVar4 = (ec_curve *)(*(code *)*puVar2)();
  *curve = peVar4;
  return psVar1;
}



undefined * FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)

{
  undefined *puVar1;
  undefined8 *puVar2;
  int iVar3;
  undefined8 uVar4;
  undefined **ppuVar5;
  
  ppuVar5 = &PTR_PTR_FUN_00183be0;
  while( true ) {
    puVar1 = *ppuVar5;
    puVar2 = *(undefined8 **)(puVar1 + 0x70);
    if ((*(int *)(puVar2 + 3) == param_1) &&
       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;
    ppuVar5 = ppuVar5 + 1;
    if (ppuVar5 == (undefined **)&DAT_00183bf8) {
      return (undefined *)0x0;
    }
  }
  uVar4 = (*(code *)*puVar2)();
  *param_3 = uVar4;
  return puVar1;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV R13D,EDI
MOV qword ptr [RSP],RSI
MOV qword ptr [RSP + 0x8],RDX
LEA RBX,[0x183be0]
LEA R14,[RBX + 0x18]
MOVSXD R15,EDI
JMP 0x001431b2
ADD RBX,0x8
CMP RBX,R14
JZ 0x001431e3
MOV RBP,qword ptr [RBX]
MOV R12,qword ptr [RBP + 0x70]
CMP dword ptr [R12 + 0x18],R13D
JNZ 0x001431a9
MOV RSI,qword ptr [R12 + 0x10]
MOV RDX,R15
MOV RDI,qword ptr [RSP]
CALL 0x00108460
TEST EAX,EAX
JNZ 0x001431a9
CALL qword ptr [R12]
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RCX],RAX
JMP 0x001431e8
MOV EBP,0x0
MOV RAX,RBP
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "undefined * FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined **ppuVar5;\n  \n  ppuVar5 = &PTR_PTR_FUN_00183be0;\n  while( true ) {\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }\n  uVar4 = (*(code *)*puVar2)();\n  *param_3 = uVar4;\n  return puVar1;\n}\n\n" (function_definition "undefined * FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined **ppuVar5;\n  \n  ppuVar5 = &PTR_PTR_FUN_00183be0;\n  while( true ) {\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }\n  uVar4 = (*(code *)*puVar2)();\n  *param_3 = uVar4;\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)" * (function_declarator "FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)" identifier (parameter_list "(int param_1,void *param_2,undefined8 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined **ppuVar5;\n  \n  ppuVar5 = &PTR_PTR_FUN_00183be0;\n  while( true ) {\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }\n  uVar4 = (*(code *)*puVar2)();\n  *param_3 = uVar4;\n  return puVar1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "undefined **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (expression_statement "ppuVar5 = &PTR_PTR_FUN_00183be0;" (assignment_expression "ppuVar5 = &PTR_PTR_FUN_00183be0" identifier = (pointer_expression "&PTR_PTR_FUN_00183be0" & identifier)) ;) (while_statement "while( true ) {\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }" { (expression_statement "puVar1 = *ppuVar5;" (assignment_expression "puVar1 = *ppuVar5" identifier = (pointer_expression "*ppuVar5" * identifier)) ;) (expression_statement "puVar2 = *(undefined8 **)(puVar1 + 0x70);" (assignment_expression "puVar2 = *(undefined8 **)(puVar1 + 0x70)" identifier = (pointer_expression "*(undefined8 **)(puVar1 + 0x70)" * (cast_expression "(undefined8 **)(puVar1 + 0x70)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x70)" ( (binary_expression "puVar1 + 0x70" identifier + number_literal) ))))) ;) (if_statement "if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;" if (parenthesized_expression "((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0))" ( (binary_expression "(*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)" (parenthesized_expression "(*(int *)(puVar2 + 3) == param_1)" ( (binary_expression "*(int *)(puVar2 + 3) == param_1" (pointer_expression "*(int *)(puVar2 + 3)" * (cast_expression "(int *)(puVar2 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 3)" ( (binary_expression "puVar2 + 3" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "(iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)" ( (comma_expression "iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0" (assignment_expression "iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1)" identifier = (call_expression "memcmp(param_2,(void *)puVar2[2],(long)param_1)" identifier (argument_list "(param_2,(void *)puVar2[2],(long)param_1)" ( identifier , (cast_expression "(void *)puVar2[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ])) , (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "ppuVar5 = ppuVar5 + 1;" (assignment_expression "ppuVar5 = ppuVar5 + 1" identifier = (binary_expression "ppuVar5 + 1" identifier + number_literal)) ;) (if_statement "if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }" if (parenthesized_expression "(ppuVar5 == (undefined **)&DAT_00183bf8)" ( (binary_expression "ppuVar5 == (undefined **)&DAT_00183bf8" identifier == (cast_expression "(undefined **)&DAT_00183bf8" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&DAT_00183bf8" & identifier))) )) (compound_statement "{\n      return (undefined *)0x0;\n    }" { (return_statement "return (undefined *)0x0;" return (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "uVar4 = (*(code *)*puVar2)();" (assignment_expression "uVar4 = (*(code *)*puVar2)()" identifier = (call_expression "(*(code *)*puVar2)()" (parenthesized_expression "(*(code *)*puVar2)" ( (pointer_expression "*(code *)*puVar2" * (cast_expression "(code *)*puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) )) (argument_list "()" ( )))) ;) (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nssh_signkey * ec_alg_by_oid(int len,void *oid,ec_curve **curve)\n\n{\n  ssh_signkey *psVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  ec_curve *peVar4;\n  ssh_signkey **ppsVar5;\n  \n  ppsVar5 = ec_alg_by_oid::algs_with_oid;\n  while( true ) {\n    psVar1 = *ppsVar5;\n    puVar2 = (undefined8 *)psVar1->extra;\n    if ((*(int *)(puVar2 + 3) == len) &&\n       (iVar3 = memcmp(oid,(void *)puVar2[2],(long)len), iVar3 == 0)) break;\n    ppsVar5 = ppsVar5 + 1;\n    if (ppsVar5 == (ssh_signkey **)&DAT_00183bf8) {\n      return (ssh_signkey *)0x0;\n    }\n  }\n  peVar4 = (ec_curve *)(*(code *)*puVar2)();\n  *curve = peVar4;\n  return psVar1;\n}\n\n" comment (function_definition "ssh_signkey * ec_alg_by_oid(int len,void *oid,ec_curve **curve)\n\n{\n  ssh_signkey *psVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  ec_curve *peVar4;\n  ssh_signkey **ppsVar5;\n  \n  ppsVar5 = ec_alg_by_oid::algs_with_oid;\n  while( true ) {\n    psVar1 = *ppsVar5;\n    puVar2 = (undefined8 *)psVar1->extra;\n    if ((*(int *)(puVar2 + 3) == len) &&\n       (iVar3 = memcmp(oid,(void *)puVar2[2],(long)len), iVar3 == 0)) break;\n    ppsVar5 = ppsVar5 + 1;\n    if (ppsVar5 == (ssh_signkey **)&DAT_00183bf8) {\n      return (ssh_signkey *)0x0;\n    }\n  }\n  peVar4 = (ec_curve *)(*(code *)*puVar2)();\n  *curve = peVar4;\n  return psVar1;\n}" type_identifier (pointer_declarator "* ec_alg_by_oid(int len,void *oid,ec_curve **curve)" * (function_declarator "ec_alg_by_oid(int len,void *oid,ec_curve **curve)" identifier (parameter_list "(int len,void *oid,ec_curve **curve)" ( (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "void *oid" primitive_type (pointer_declarator "*oid" * identifier)) , (parameter_declaration "ec_curve **curve" type_identifier (pointer_declarator "**curve" * (pointer_declarator "*curve" * identifier))) )))) (compound_statement "{\n  ssh_signkey *psVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  ec_curve *peVar4;\n  ssh_signkey **ppsVar5;\n  \n  ppsVar5 = ec_alg_by_oid::algs_with_oid;\n  while( true ) {\n    psVar1 = *ppsVar5;\n    puVar2 = (undefined8 *)psVar1->extra;\n    if ((*(int *)(puVar2 + 3) == len) &&\n       (iVar3 = memcmp(oid,(void *)puVar2[2],(long)len), iVar3 == 0)) break;\n    ppsVar5 = ppsVar5 + 1;\n    if (ppsVar5 == (ssh_signkey **)&DAT_00183bf8) {\n      return (ssh_signkey *)0x0;\n    }\n  }\n  peVar4 = (ec_curve *)(*(code *)*puVar2)();\n  *curve = peVar4;\n  return psVar1;\n}" { (declaration "ssh_signkey *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ec_curve *peVar4;" type_identifier (pointer_declarator "*peVar4" * identifier) ;) (declaration "ssh_signkey **ppsVar5;" type_identifier (pointer_declarator "**ppsVar5" * (pointer_declarator "*ppsVar5" * identifier)) ;) (expression_statement "ppsVar5 = ec_alg_by_oid::algs_with_oid;" (assignment_expression "ppsVar5 = ec_alg_by_oid" identifier = identifier) (ERROR "::algs_with_oid" : : identifier) ;) (while_statement "while( true ) {\n    psVar1 = *ppsVar5;\n    puVar2 = (undefined8 *)psVar1->extra;\n    if ((*(int *)(puVar2 + 3) == len) &&\n       (iVar3 = memcmp(oid,(void *)puVar2[2],(long)len), iVar3 == 0)) break;\n    ppsVar5 = ppsVar5 + 1;\n    if (ppsVar5 == (ssh_signkey **)&DAT_00183bf8) {\n      return (ssh_signkey *)0x0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    psVar1 = *ppsVar5;\n    puVar2 = (undefined8 *)psVar1->extra;\n    if ((*(int *)(puVar2 + 3) == len) &&\n       (iVar3 = memcmp(oid,(void *)puVar2[2],(long)len), iVar3 == 0)) break;\n    ppsVar5 = ppsVar5 + 1;\n    if (ppsVar5 == (ssh_signkey **)&DAT_00183bf8) {\n      return (ssh_signkey *)0x0;\n    }\n  }" { (expression_statement "psVar1 = *ppsVar5;" (assignment_expression "psVar1 = *ppsVar5" identifier = (pointer_expression "*ppsVar5" * identifier)) ;) (expression_statement "puVar2 = (undefined8 *)psVar1->extra;" (assignment_expression "puVar2 = (undefined8 *)psVar1->extra" identifier = (cast_expression "(undefined8 *)psVar1->extra" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "psVar1->extra" identifier -> field_identifier))) ;) (if_statement "if ((*(int *)(puVar2 + 3) == len) &&\n       (iVar3 = memcmp(oid,(void *)puVar2[2],(long)len), iVar3 == 0)) break;" if (parenthesized_expression "((*(int *)(puVar2 + 3) == len) &&\n       (iVar3 = memcmp(oid,(void *)puVar2[2],(long)len), iVar3 == 0))" ( (binary_expression "(*(int *)(puVar2 + 3) == len) &&\n       (iVar3 = memcmp(oid,(void *)puVar2[2],(long)len), iVar3 == 0)" (parenthesized_expression "(*(int *)(puVar2 + 3) == len)" ( (binary_expression "*(int *)(puVar2 + 3) == len" (pointer_expression "*(int *)(puVar2 + 3)" * (cast_expression "(int *)(puVar2 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 3)" ( (binary_expression "puVar2 + 3" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "(iVar3 = memcmp(oid,(void *)puVar2[2],(long)len), iVar3 == 0)" ( (comma_expression "iVar3 = memcmp(oid,(void *)puVar2[2],(long)len), iVar3 == 0" (assignment_expression "iVar3 = memcmp(oid,(void *)puVar2[2],(long)len)" identifier = (call_expression "memcmp(oid,(void *)puVar2[2],(long)len)" identifier (argument_list "(oid,(void *)puVar2[2],(long)len)" ( identifier , (cast_expression "(void *)puVar2[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ])) , (cast_expression "(long)len" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "ppsVar5 = ppsVar5 + 1;" (assignment_expression "ppsVar5 = ppsVar5 + 1" identifier = (binary_expression "ppsVar5 + 1" identifier + number_literal)) ;) (if_statement "if (ppsVar5 == (ssh_signkey **)&DAT_00183bf8) {\n      return (ssh_signkey *)0x0;\n    }" if (parenthesized_expression "(ppsVar5 == (ssh_signkey **)&DAT_00183bf8)" ( (binary_expression "ppsVar5 == (ssh_signkey **)&DAT_00183bf8" identifier == (cast_expression "(ssh_signkey **)&DAT_00183bf8" ( (type_descriptor "ssh_signkey **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&DAT_00183bf8" & identifier))) )) (compound_statement "{\n      return (ssh_signkey *)0x0;\n    }" { (return_statement "return (ssh_signkey *)0x0;" return (cast_expression "(ssh_signkey *)0x0" ( (type_descriptor "ssh_signkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "peVar4 = (ec_curve *)(*(code *)*puVar2)();" (assignment_expression "peVar4 = (ec_curve *)(*(code *)*puVar2)()" identifier = (cast_expression "(ec_curve *)(*(code *)*puVar2)()" ( (type_descriptor "ec_curve *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)*puVar2)()" (parenthesized_expression "(*(code *)*puVar2)" ( (pointer_expression "*(code *)*puVar2" * (cast_expression "(code *)*puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) )) (argument_list "()" ( ))))) ;) (expression_statement "*curve = peVar4;" (assignment_expression "*curve = peVar4" (pointer_expression "*curve" * identifier) = identifier) ;) (return_statement "return psVar1;" return identifier ;) })))
(translation_unit "undefined * FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined **ppuVar5;\n  \n  ppuVar5 = &PTR_PTR_FUN_00183be0;\n  while( true ) {\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }\n  uVar4 = (*(code *)*puVar2)();\n  *param_3 = uVar4;\n  return puVar1;\n}\n\n" (function_definition "undefined * FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined **ppuVar5;\n  \n  ppuVar5 = &PTR_PTR_FUN_00183be0;\n  while( true ) {\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }\n  uVar4 = (*(code *)*puVar2)();\n  *param_3 = uVar4;\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)" * (function_declarator "FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)" identifier (parameter_list "(int param_1,void *param_2,undefined8 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined **ppuVar5;\n  \n  ppuVar5 = &PTR_PTR_FUN_00183be0;\n  while( true ) {\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }\n  uVar4 = (*(code *)*puVar2)();\n  *param_3 = uVar4;\n  return puVar1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "undefined **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (expression_statement "ppuVar5 = &PTR_PTR_FUN_00183be0;" (assignment_expression "ppuVar5 = &PTR_PTR_FUN_00183be0" identifier = (pointer_expression "&PTR_PTR_FUN_00183be0" & identifier)) ;) (while_statement "while( true ) {\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }" { (expression_statement "puVar1 = *ppuVar5;" (assignment_expression "puVar1 = *ppuVar5" identifier = (pointer_expression "*ppuVar5" * identifier)) ;) (expression_statement "puVar2 = *(undefined8 **)(puVar1 + 0x70);" (assignment_expression "puVar2 = *(undefined8 **)(puVar1 + 0x70)" identifier = (pointer_expression "*(undefined8 **)(puVar1 + 0x70)" * (cast_expression "(undefined8 **)(puVar1 + 0x70)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x70)" ( (binary_expression "puVar1 + 0x70" identifier + number_literal) ))))) ;) (if_statement "if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;" if (parenthesized_expression "((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0))" ( (binary_expression "(*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)" (parenthesized_expression "(*(int *)(puVar2 + 3) == param_1)" ( (binary_expression "*(int *)(puVar2 + 3) == param_1" (pointer_expression "*(int *)(puVar2 + 3)" * (cast_expression "(int *)(puVar2 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 3)" ( (binary_expression "puVar2 + 3" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "(iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)" ( (comma_expression "iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0" (assignment_expression "iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1)" identifier = (call_expression "memcmp(param_2,(void *)puVar2[2],(long)param_1)" identifier (argument_list "(param_2,(void *)puVar2[2],(long)param_1)" ( identifier , (cast_expression "(void *)puVar2[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ])) , (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "ppuVar5 = ppuVar5 + 1;" (assignment_expression "ppuVar5 = ppuVar5 + 1" identifier = (binary_expression "ppuVar5 + 1" identifier + number_literal)) ;) (if_statement "if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }" if (parenthesized_expression "(ppuVar5 == (undefined **)&DAT_00183bf8)" ( (binary_expression "ppuVar5 == (undefined **)&DAT_00183bf8" identifier == (cast_expression "(undefined **)&DAT_00183bf8" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&DAT_00183bf8" & identifier))) )) (compound_statement "{\n      return (undefined *)0x0;\n    }" { (return_statement "return (undefined *)0x0;" return (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "uVar4 = (*(code *)*puVar2)();" (assignment_expression "uVar4 = (*(code *)*puVar2)()" identifier = (call_expression "(*(code *)*puVar2)()" (parenthesized_expression "(*(code *)*puVar2)" ( (pointer_expression "*(code *)*puVar2" * (cast_expression "(code *)*puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) )) (argument_list "()" ( )))) ;) (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return puVar1;" 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 (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * 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 (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) )))) , (binary_expression IDENT == LIT)) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression & IDENT))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined * FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined **ppuVar5;\n  \n  ppuVar5 = &PTR_PTR_FUN_00183be0;\n  while( true ) {\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }\n  uVar4 = (*(code *)*puVar2)();\n  *param_3 = uVar4;\n  return puVar1;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)" (* "*") (function_declarator "FUN_0014317f(int param_1,void *param_2,undefined8 *param_3)" (identifier "FUN_0014317f") (parameter_list "(int param_1,void *param_2,undefined8 *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 *param_3" (type_identifier "undefined8") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined **ppuVar5;\n  \n  ppuVar5 = &PTR_PTR_FUN_00183be0;\n  while( true ) {\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }\n  uVar4 = (*(code *)*puVar2)();\n  *param_3 = uVar4;\n  return puVar1;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "undefined **ppuVar5;" (type_identifier "undefined") (pointer_declarator "**ppuVar5" (* "*") (pointer_declarator "*ppuVar5" (* "*") (identifier "ppuVar5"))) (; ";")) (expression_statement "ppuVar5 = &PTR_PTR_FUN_00183be0;" (assignment_expression "ppuVar5 = &PTR_PTR_FUN_00183be0" (identifier "ppuVar5") (= "=") (pointer_expression "&PTR_PTR_FUN_00183be0" (& "&") (identifier "PTR_PTR_FUN_00183be0"))) (; ";")) (while_statement "while( true ) {\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    puVar1 = *ppuVar5;\n    puVar2 = *(undefined8 **)(puVar1 + 0x70);\n    if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;\n    ppuVar5 = ppuVar5 + 1;\n    if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }\n  }" ({ "{") (expression_statement "puVar1 = *ppuVar5;" (assignment_expression "puVar1 = *ppuVar5" (identifier "puVar1") (= "=") (pointer_expression "*ppuVar5" (* "*") (identifier "ppuVar5"))) (; ";")) (expression_statement "puVar2 = *(undefined8 **)(puVar1 + 0x70);" (assignment_expression "puVar2 = *(undefined8 **)(puVar1 + 0x70)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined8 **)(puVar1 + 0x70)" (* "*") (cast_expression "(undefined8 **)(puVar1 + 0x70)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x70)" (( "(") (binary_expression "puVar1 + 0x70" (identifier "puVar1") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (if_statement "if ((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;" (if "if") (parenthesized_expression "((*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0))" (( "(") (binary_expression "(*(int *)(puVar2 + 3) == param_1) &&\n       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)" (parenthesized_expression "(*(int *)(puVar2 + 3) == param_1)" (( "(") (binary_expression "*(int *)(puVar2 + 3) == param_1" (pointer_expression "*(int *)(puVar2 + 3)" (* "*") (cast_expression "(int *)(puVar2 + 3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 3)" (( "(") (binary_expression "puVar2 + 3" (identifier "puVar2") (+ "+") (number_literal "3")) () ")")))) (== "==") (identifier "param_1")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)" (( "(") (comma_expression "iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0" (assignment_expression "iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1)" (identifier "iVar3") (= "=") (call_expression "memcmp(param_2,(void *)puVar2[2],(long)param_1)" (identifier "memcmp") (argument_list "(param_2,(void *)puVar2[2],(long)param_1)" (( "(") (identifier "param_2") (, ",") (cast_expression "(void *)puVar2[2]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]"))) (, ",") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "ppuVar5 = ppuVar5 + 1;" (assignment_expression "ppuVar5 = ppuVar5 + 1" (identifier "ppuVar5") (= "=") (binary_expression "ppuVar5 + 1" (identifier "ppuVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (ppuVar5 == (undefined **)&DAT_00183bf8) {\n      return (undefined *)0x0;\n    }" (if "if") (parenthesized_expression "(ppuVar5 == (undefined **)&DAT_00183bf8)" (( "(") (binary_expression "ppuVar5 == (undefined **)&DAT_00183bf8" (identifier "ppuVar5") (== "==") (cast_expression "(undefined **)&DAT_00183bf8" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "&DAT_00183bf8" (& "&") (identifier "DAT_00183bf8")))) () ")")) (compound_statement "{\n      return (undefined *)0x0;\n    }" ({ "{") (return_statement "return (undefined *)0x0;" (return "return") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar4 = (*(code *)*puVar2)();" (assignment_expression "uVar4 = (*(code *)*puVar2)()" (identifier "uVar4") (= "=") (call_expression "(*(code *)*puVar2)()" (parenthesized_expression "(*(code *)*puVar2)" (( "(") (pointer_expression "*(code *)*puVar2" (* "*") (cast_expression "(code *)*puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar4")) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 * function_1(int var_2,void *oid,type_2 **curve)

{
  type_1 *psVar1;
  type_3 *var_1;
  int var_4;
  type_2 *peVar4;
  type_1 **var_5;
  
  var_5 = function_1::algs_with_oid;
  while( true ) {
    psVar1 = *var_5;
    var_1 = (type_3 *)psVar1->extra;
    if ((*(int *)(var_1 + 3) == var_2) &&
       (var_4 = var_3(oid,(void *)var_1[2],(long)var_2), var_4 == 0)) break;
    var_5 = var_5 + 1;
    if (var_5 == (type_1 **)&DAT_00183bf8) {
      return (type_1 *)0x0;
    }
  }
  peVar4 = (type_2 *)(*(type_4 *)*var_1)();
  *curve = peVar4;
  return psVar1;
}


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

undefined * MASKED(int param_1,void *param_2,undefined8 *param_3)

{
  undefined *puVar1;
  undefined8 *puVar2;
  int iVar3;
  undefined8 uVar4;
  undefined **ppuVar5;
  
  ppuVar5 = &PTR_PTR_FUN_00183be0;
  while( true ) {
    puVar1 = *ppuVar5;
    puVar2 = *(undefined8 **)(puVar1 + 0x70);
    if ((*(int *)(puVar2 + 3) == param_1) &&
       (iVar3 = memcmp(param_2,(void *)puVar2[2],(long)param_1), iVar3 == 0)) break;
    ppuVar5 = ppuVar5 + 1;
    if (ppuVar5 == (undefined **)&DAT_00183bf8) {
      return (undefined *)0x0;
    }
  }
  uVar4 = (*(code *)*puVar2)();
  *param_3 = uVar4;
  return puVar1;
}

