
void key_find_callback(void *vctx,char *fingerprint,char *comment,pageant_pubkey *key)

{
  int iVar1;
  pageant_pubkey *ppVar2;
  
                    /* WARNING: Load size is inaccurate */
  if ((*(int *)((long)vctx + 0xc) == 0) || (iVar1 = strcmp(*vctx,comment), iVar1 != 0)) {
    if (*(int *)((long)vctx + 8) == 0) {
      return;
    }
                    /* WARNING: Load size is inaccurate */
    iVar1 = match_fingerprint_string(*vctx,fingerprint);
    if (iVar1 == 0) {
      return;
    }
  }
  if (*(long *)((long)vctx + 0x10) == 0) {
    ppVar2 = pageant_pubkey_copy(key);
    *(pageant_pubkey **)((long)vctx + 0x10) = ppVar2;
  }
  *(int *)((long)vctx + 0x18) = *(int *)((long)vctx + 0x18) + 1;
  return;
}



void FUN_001356b5(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)

{
  undefined8 uVar1;
  int iVar2;
  
  if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)
     ) {
    if (*(int *)(param_1 + 1) == 0) {
      return;
    }
    iVar2 = FUN_0013560d(*param_1,param_2);
    if (iVar2 == 0) {
      return;
    }
  }
  if (param_1[2] == 0) {
    uVar1 = FUN_00110305(param_4);
    param_1[2] = uVar1;
  }
  *(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;
  return;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
MOV RBP,RSI
MOV R12,RCX
CMP dword ptr [RDI + 0xc],0x0
JZ 0x001356d7
MOV RSI,RDX
MOV RDI,qword ptr [RDI]
CALL 0x00107800
TEST EAX,EAX
JZ 0x001356f1
CMP dword ptr [RBX + 0x8],0x0
JNZ 0x001356e2
POP RBX
POP RBP
POP R12
RET
MOV RSI,RBP
MOV RDI,qword ptr [RBX]
CALL 0x0013560d
TEST EAX,EAX
JZ 0x001356dd
CMP qword ptr [RBX + 0x10],0x0
JZ 0x001356fe
ADD dword ptr [RBX + 0x18],0x1
JMP 0x001356dd
MOV RDI,R12
CALL 0x00110305
MOV qword ptr [RBX + 0x10],RAX
JMP 0x001356f8
(translation_unit "void FUN_001356b5(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  \n  if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     ) {\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }\n  if (param_1[2] == 0) {\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }\n  *(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;\n  return;\n}\n\n" (function_definition "void FUN_001356b5(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  \n  if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     ) {\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }\n  if (param_1[2] == 0) {\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }\n  *(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;\n  return;\n}" primitive_type (function_declarator "FUN_001356b5(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  \n  if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     ) {\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }\n  if (param_1[2] == 0) {\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }\n  *(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     ) {\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }" if (parenthesized_expression "((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     )" ( (binary_expression "(*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)" (parenthesized_expression "(*(int *)((long)param_1 + 0xc) == 0)" ( (binary_expression "*(int *)((long)param_1 + 0xc) == 0" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)" ( (comma_expression "iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0" (assignment_expression "iVar2 = strcmp((char *)*param_1,param_3)" identifier = (call_expression "strcmp((char *)*param_1,param_3)" identifier (argument_list "((char *)*param_1,param_3)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 1) == 0)" ( (binary_expression "*(int *)(param_1 + 1) == 0" (pointer_expression "*(int *)(param_1 + 1)" * (cast_expression "(int *)(param_1 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = FUN_0013560d(*param_1,param_2);" (assignment_expression "iVar2 = FUN_0013560d(*param_1,param_2)" identifier = (call_expression "FUN_0013560d(*param_1,param_2)" identifier (argument_list "(*param_1,param_2)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (if_statement "if (param_1[2] == 0) {\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }" { (expression_statement "uVar1 = FUN_00110305(param_4);" (assignment_expression "uVar1 = FUN_00110305(param_4)" identifier = (call_expression "FUN_00110305(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "*(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;" (assignment_expression "*(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1" (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 3) + 1" (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void key_find_callback(void *vctx,char *fingerprint,char *comment,pageant_pubkey *key)\n\n{\n  int iVar1;\n  pageant_pubkey *ppVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  if ((*(int *)((long)vctx + 0xc) == 0) || (iVar1 = strcmp(*vctx,comment), iVar1 != 0)) {\n    if (*(int *)((long)vctx + 8) == 0) {\n      return;\n    }\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = match_fingerprint_string(*vctx,fingerprint);\n    if (iVar1 == 0) {\n      return;\n    }\n  }\n  if (*(long *)((long)vctx + 0x10) == 0) {\n    ppVar2 = pageant_pubkey_copy(key);\n    *(pageant_pubkey **)((long)vctx + 0x10) = ppVar2;\n  }\n  *(int *)((long)vctx + 0x18) = *(int *)((long)vctx + 0x18) + 1;\n  return;\n}\n\n" (function_definition "void key_find_callback(void *vctx,char *fingerprint,char *comment,pageant_pubkey *key)\n\n{\n  int iVar1;\n  pageant_pubkey *ppVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  if ((*(int *)((long)vctx + 0xc) == 0) || (iVar1 = strcmp(*vctx,comment), iVar1 != 0)) {\n    if (*(int *)((long)vctx + 8) == 0) {\n      return;\n    }\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = match_fingerprint_string(*vctx,fingerprint);\n    if (iVar1 == 0) {\n      return;\n    }\n  }\n  if (*(long *)((long)vctx + 0x10) == 0) {\n    ppVar2 = pageant_pubkey_copy(key);\n    *(pageant_pubkey **)((long)vctx + 0x10) = ppVar2;\n  }\n  *(int *)((long)vctx + 0x18) = *(int *)((long)vctx + 0x18) + 1;\n  return;\n}" primitive_type (function_declarator "key_find_callback(void *vctx,char *fingerprint,char *comment,pageant_pubkey *key)" identifier (parameter_list "(void *vctx,char *fingerprint,char *comment,pageant_pubkey *key)" ( (parameter_declaration "void *vctx" primitive_type (pointer_declarator "*vctx" * identifier)) , (parameter_declaration "char *fingerprint" primitive_type (pointer_declarator "*fingerprint" * identifier)) , (parameter_declaration "char *comment" primitive_type (pointer_declarator "*comment" * identifier)) , (parameter_declaration "pageant_pubkey *key" type_identifier (pointer_declarator "*key" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  pageant_pubkey *ppVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  if ((*(int *)((long)vctx + 0xc) == 0) || (iVar1 = strcmp(*vctx,comment), iVar1 != 0)) {\n    if (*(int *)((long)vctx + 8) == 0) {\n      return;\n    }\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = match_fingerprint_string(*vctx,fingerprint);\n    if (iVar1 == 0) {\n      return;\n    }\n  }\n  if (*(long *)((long)vctx + 0x10) == 0) {\n    ppVar2 = pageant_pubkey_copy(key);\n    *(pageant_pubkey **)((long)vctx + 0x10) = ppVar2;\n  }\n  *(int *)((long)vctx + 0x18) = *(int *)((long)vctx + 0x18) + 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "pageant_pubkey *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) comment (if_statement "if ((*(int *)((long)vctx + 0xc) == 0) || (iVar1 = strcmp(*vctx,comment), iVar1 != 0)) {\n    if (*(int *)((long)vctx + 8) == 0) {\n      return;\n    }\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = match_fingerprint_string(*vctx,fingerprint);\n    if (iVar1 == 0) {\n      return;\n    }\n  }" if (parenthesized_expression "((*(int *)((long)vctx + 0xc) == 0) || (iVar1 = strcmp(*vctx,comment), iVar1 != 0))" ( (binary_expression "(*(int *)((long)vctx + 0xc) == 0) || (iVar1 = strcmp(*vctx,comment), iVar1 != 0)" (parenthesized_expression "(*(int *)((long)vctx + 0xc) == 0)" ( (binary_expression "*(int *)((long)vctx + 0xc) == 0" (pointer_expression "*(int *)((long)vctx + 0xc)" * (cast_expression "(int *)((long)vctx + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)vctx + 0xc)" ( (binary_expression "(long)vctx + 0xc" (cast_expression "(long)vctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar1 = strcmp(*vctx,comment), iVar1 != 0)" ( (comma_expression "iVar1 = strcmp(*vctx,comment), iVar1 != 0" (assignment_expression "iVar1 = strcmp(*vctx,comment)" identifier = (call_expression "strcmp(*vctx,comment)" identifier (argument_list "(*vctx,comment)" ( (pointer_expression "*vctx" * identifier) , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (*(int *)((long)vctx + 8) == 0) {\n      return;\n    }\n                    /* WARNING: Load size is inaccurate */\n    iVar1 = match_fingerprint_string(*vctx,fingerprint);\n    if (iVar1 == 0) {\n      return;\n    }\n  }" { (if_statement "if (*(int *)((long)vctx + 8) == 0) {\n      return;\n    }" if (parenthesized_expression "(*(int *)((long)vctx + 8) == 0)" ( (binary_expression "*(int *)((long)vctx + 8) == 0" (pointer_expression "*(int *)((long)vctx + 8)" * (cast_expression "(int *)((long)vctx + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)vctx + 8)" ( (binary_expression "(long)vctx + 8" (cast_expression "(long)vctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) comment (expression_statement "iVar1 = match_fingerprint_string(*vctx,fingerprint);" (assignment_expression "iVar1 = match_fingerprint_string(*vctx,fingerprint)" identifier = (call_expression "match_fingerprint_string(*vctx,fingerprint)" identifier (argument_list "(*vctx,fingerprint)" ( (pointer_expression "*vctx" * identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (if_statement "if (*(long *)((long)vctx + 0x10) == 0) {\n    ppVar2 = pageant_pubkey_copy(key);\n    *(pageant_pubkey **)((long)vctx + 0x10) = ppVar2;\n  }" if (parenthesized_expression "(*(long *)((long)vctx + 0x10) == 0)" ( (binary_expression "*(long *)((long)vctx + 0x10) == 0" (pointer_expression "*(long *)((long)vctx + 0x10)" * (cast_expression "(long *)((long)vctx + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)vctx + 0x10)" ( (binary_expression "(long)vctx + 0x10" (cast_expression "(long)vctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    ppVar2 = pageant_pubkey_copy(key);\n    *(pageant_pubkey **)((long)vctx + 0x10) = ppVar2;\n  }" { (expression_statement "ppVar2 = pageant_pubkey_copy(key);" (assignment_expression "ppVar2 = pageant_pubkey_copy(key)" identifier = (call_expression "pageant_pubkey_copy(key)" identifier (argument_list "(key)" ( identifier )))) ;) (expression_statement "*(pageant_pubkey **)((long)vctx + 0x10) = ppVar2;" (assignment_expression "*(pageant_pubkey **)((long)vctx + 0x10) = ppVar2" (pointer_expression "*(pageant_pubkey **)((long)vctx + 0x10)" * (cast_expression "(pageant_pubkey **)((long)vctx + 0x10)" ( (type_descriptor "pageant_pubkey **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)vctx + 0x10)" ( (binary_expression "(long)vctx + 0x10" (cast_expression "(long)vctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) })) (expression_statement "*(int *)((long)vctx + 0x18) = *(int *)((long)vctx + 0x18) + 1;" (assignment_expression "*(int *)((long)vctx + 0x18) = *(int *)((long)vctx + 0x18) + 1" (pointer_expression "*(int *)((long)vctx + 0x18)" * (cast_expression "(int *)((long)vctx + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)vctx + 0x18)" ( (binary_expression "(long)vctx + 0x18" (cast_expression "(long)vctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((long)vctx + 0x18) + 1" (pointer_expression "*(int *)((long)vctx + 0x18)" * (cast_expression "(int *)((long)vctx + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)vctx + 0x18)" ( (binary_expression "(long)vctx + 0x18" (cast_expression "(long)vctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001356b5(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  \n  if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     ) {\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }\n  if (param_1[2] == 0) {\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }\n  *(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;\n  return;\n}\n\n" (function_definition "void FUN_001356b5(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  \n  if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     ) {\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }\n  if (param_1[2] == 0) {\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }\n  *(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;\n  return;\n}" primitive_type (function_declarator "FUN_001356b5(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  \n  if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     ) {\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }\n  if (param_1[2] == 0) {\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }\n  *(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     ) {\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }" if (parenthesized_expression "((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     )" ( (binary_expression "(*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)" (parenthesized_expression "(*(int *)((long)param_1 + 0xc) == 0)" ( (binary_expression "*(int *)((long)param_1 + 0xc) == 0" (pointer_expression "*(int *)((long)param_1 + 0xc)" * (cast_expression "(int *)((long)param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)" ( (comma_expression "iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0" (assignment_expression "iVar2 = strcmp((char *)*param_1,param_3)" identifier = (call_expression "strcmp((char *)*param_1,param_3)" identifier (argument_list "((char *)*param_1,param_3)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 1) == 0)" ( (binary_expression "*(int *)(param_1 + 1) == 0" (pointer_expression "*(int *)(param_1 + 1)" * (cast_expression "(int *)(param_1 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = FUN_0013560d(*param_1,param_2);" (assignment_expression "iVar2 = FUN_0013560d(*param_1,param_2)" identifier = (call_expression "FUN_0013560d(*param_1,param_2)" identifier (argument_list "(*param_1,param_2)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (if_statement "if (param_1[2] == 0) {\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }" { (expression_statement "uVar1 = FUN_00110305(param_4);" (assignment_expression "uVar1 = FUN_00110305(param_4)" identifier = (call_expression "FUN_00110305(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "*(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;" (assignment_expression "*(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1" (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 3) + 1" (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == 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 )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_001356b5(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  \n  if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     ) {\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }\n  if (param_1[2] == 0) {\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }\n  *(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001356b5(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)" (identifier "FUN_001356b5") (parameter_list "(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  \n  if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     ) {\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }\n  if (param_1[2] == 0) {\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }\n  *(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     ) {\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)\n     )" (( "(") (binary_expression "(*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)" (parenthesized_expression "(*(int *)((long)param_1 + 0xc) == 0)" (( "(") (binary_expression "*(int *)((long)param_1 + 0xc) == 0" (pointer_expression "*(int *)((long)param_1 + 0xc)" (* "*") (cast_expression "(int *)((long)param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)" (( "(") (comma_expression "iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0" (assignment_expression "iVar2 = strcmp((char *)*param_1,param_3)" (identifier "iVar2") (= "=") (call_expression "strcmp((char *)*param_1,param_3)" (identifier "strcmp") (argument_list "((char *)*param_1,param_3)" (( "(") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (identifier "param_3") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }\n    iVar2 = FUN_0013560d(*param_1,param_2);\n    if (iVar2 == 0) {\n      return;\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 1) == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 1) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 1) == 0" (pointer_expression "*(int *)(param_1 + 1)" (* "*") (cast_expression "(int *)(param_1 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0013560d(*param_1,param_2);" (assignment_expression "iVar2 = FUN_0013560d(*param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "FUN_0013560d(*param_1,param_2)" (identifier "FUN_0013560d") (argument_list "(*param_1,param_2)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_1[2] == 0) {\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }" (if "if") (parenthesized_expression "(param_1[2] == 0)" (( "(") (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = FUN_00110305(param_4);\n    param_1[2] = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_00110305(param_4);" (assignment_expression "uVar1 = FUN_00110305(param_4)" (identifier "uVar1") (= "=") (call_expression "FUN_00110305(param_4)" (identifier "FUN_00110305") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;" (assignment_expression "*(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1" (pointer_expression "*(int *)(param_1 + 3)" (* "*") (cast_expression "(int *)(param_1 + 3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 3) + 1" (pointer_expression "*(int *)(param_1 + 3)" (* "*") (cast_expression "(int *)(param_1 + 3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(void *vctx,char *fingerprint,char *comment,type_1 *key)

{
  int var_2;
  type_1 *ppVar2;
  
                    /* WARNING: Load size is inaccurate */
  if ((*(int *)((long)vctx + 0xc) == 0) || (var_2 = var_1(*vctx,comment), var_2 != 0)) {
    if (*(int *)((long)vctx + 8) == 0) {
      return;
    }
                    /* WARNING: Load size is inaccurate */
    var_2 = var_3(*vctx,fingerprint);
    if (var_2 == 0) {
      return;
    }
  }
  if (*(long *)((long)vctx + 0x10) == 0) {
    ppVar2 = var_4(key);
    *(type_1 **)((long)vctx + 0x10) = ppVar2;
  }
  *(int *)((long)vctx + 0x18) = *(int *)((long)vctx + 0x18) + 1;
  return;
}


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

void MASKED(undefined8 *param_1,undefined8 param_2,char *param_3,undefined8 param_4)

{
  undefined8 uVar1;
  int iVar2;
  
  if ((*(int *)((long)param_1 + 0xc) == 0) || (iVar2 = strcmp((char *)*param_1,param_3), iVar2 != 0)
     ) {
    if (*(int *)(param_1 + 1) == 0) {
      return;
    }
    iVar2 = FUN_0013560d(*param_1,param_2);
    if (iVar2 == 0) {
      return;
    }
  }
  if (param_1[2] == 0) {
    uVar1 = FUN_00110305(param_4);
    param_1[2] = uVar1;
  }
  *(int *)(param_1 + 3) = *(int *)(param_1 + 3) + 1;
  return;
}

