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

int ecdsa_pubkey_bits(ssh_signkey *self,void *blob,int len)

{
  void *key;
  int iVar1;
  
  key = ecdsa_newkey(self,(char *)blob,len);
  if (key == (void *)0x0) {
    iVar1 = -1;
  }
  else {
    iVar1 = *(int *)(*(long *)((long)key + 8) + 0x18);
    ecdsa_freekey(key);
  }
  return iVar1;
}



undefined4 FUN_001229f6(void)

{
  long lVar1;
  undefined4 uVar2;
  
  lVar1 = FUN_0012286a();
  if (lVar1 == 0) {
    uVar2 = 0xffffffff;
  }
  else {
    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);
    FUN_00120529(lVar1);
  }
  return uVar2;
}


PUSH RBX
CALL 0x0012286a
TEST RAX,RAX
JZ 0x00122a14
MOV RDX,qword ptr [RAX + 0x8]
MOV EBX,dword ptr [RDX + 0x18]
MOV RDI,RAX
CALL 0x00120529
MOV EAX,EBX
POP RBX
RET
MOV EBX,0xffffffff
JMP 0x00122a10
(translation_unit "undefined4 FUN_001229f6(void)\n\n{\n  long lVar1;\n  undefined4 uVar2;\n  \n  lVar1 = FUN_0012286a();\n  if (lVar1 == 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_001229f6(void)\n\n{\n  long lVar1;\n  undefined4 uVar2;\n  \n  lVar1 = FUN_0012286a();\n  if (lVar1 == 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_001229f6(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  undefined4 uVar2;\n  \n  lVar1 = FUN_0012286a();\n  if (lVar1 == 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }\n  return uVar2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "lVar1 = FUN_0012286a();" (assignment_expression "lVar1 = FUN_0012286a()" identifier = (call_expression "FUN_0012286a()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar1 == 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }" else (compound_statement "{\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }" { (expression_statement "uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);" (assignment_expression "uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18)" identifier = (pointer_expression "*(undefined4 *)(*(long *)(lVar1 + 8) + 0x18)" * (cast_expression "(undefined4 *)(*(long *)(lVar1 + 8) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar1 + 8) + 0x18)" ( (binary_expression "*(long *)(lVar1 + 8) + 0x18" (pointer_expression "*(long *)(lVar1 + 8)" * (cast_expression "(long *)(lVar1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "FUN_00120529(lVar1);" (call_expression "FUN_00120529(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint ecdsa_pubkey_bits(ssh_signkey *self,void *blob,int len)\n\n{\n  void *key;\n  int iVar1;\n  \n  key = ecdsa_newkey(self,(char *)blob,len);\n  if (key == (void *)0x0) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = *(int *)(*(long *)((long)key + 8) + 0x18);\n    ecdsa_freekey(key);\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int ecdsa_pubkey_bits(ssh_signkey *self,void *blob,int len)\n\n{\n  void *key;\n  int iVar1;\n  \n  key = ecdsa_newkey(self,(char *)blob,len);\n  if (key == (void *)0x0) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = *(int *)(*(long *)((long)key + 8) + 0x18);\n    ecdsa_freekey(key);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "ecdsa_pubkey_bits(ssh_signkey *self,void *blob,int len)" identifier (parameter_list "(ssh_signkey *self,void *blob,int len)" ( (parameter_declaration "ssh_signkey *self" type_identifier (pointer_declarator "*self" * identifier)) , (parameter_declaration "void *blob" primitive_type (pointer_declarator "*blob" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  void *key;\n  int iVar1;\n  \n  key = ecdsa_newkey(self,(char *)blob,len);\n  if (key == (void *)0x0) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = *(int *)(*(long *)((long)key + 8) + 0x18);\n    ecdsa_freekey(key);\n  }\n  return iVar1;\n}" { (declaration "void *key;" primitive_type (pointer_declarator "*key" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "key = ecdsa_newkey(self,(char *)blob,len);" (assignment_expression "key = ecdsa_newkey(self,(char *)blob,len)" identifier = (call_expression "ecdsa_newkey(self,(char *)blob,len)" identifier (argument_list "(self,(char *)blob,len)" ( identifier , (cast_expression "(char *)blob" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if (key == (void *)0x0) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = *(int *)(*(long *)((long)key + 8) + 0x18);\n    ecdsa_freekey(key);\n  }" if (parenthesized_expression "(key == (void *)0x0)" ( (binary_expression "key == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = *(int *)(*(long *)((long)key + 8) + 0x18);\n    ecdsa_freekey(key);\n  }" else (compound_statement "{\n    iVar1 = *(int *)(*(long *)((long)key + 8) + 0x18);\n    ecdsa_freekey(key);\n  }" { (expression_statement "iVar1 = *(int *)(*(long *)((long)key + 8) + 0x18);" (assignment_expression "iVar1 = *(int *)(*(long *)((long)key + 8) + 0x18)" identifier = (pointer_expression "*(int *)(*(long *)((long)key + 8) + 0x18)" * (cast_expression "(int *)(*(long *)((long)key + 8) + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)((long)key + 8) + 0x18)" ( (binary_expression "*(long *)((long)key + 8) + 0x18" (pointer_expression "*(long *)((long)key + 8)" * (cast_expression "(long *)((long)key + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)key + 8)" ( (binary_expression "(long)key + 8" (cast_expression "(long)key" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "ecdsa_freekey(key);" (call_expression "ecdsa_freekey(key)" identifier (argument_list "(key)" ( identifier ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_001229f6(void)\n\n{\n  long lVar1;\n  undefined4 uVar2;\n  \n  lVar1 = FUN_0012286a();\n  if (lVar1 == 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_001229f6(void)\n\n{\n  long lVar1;\n  undefined4 uVar2;\n  \n  lVar1 = FUN_0012286a();\n  if (lVar1 == 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_001229f6(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  undefined4 uVar2;\n  \n  lVar1 = FUN_0012286a();\n  if (lVar1 == 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }\n  return uVar2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "lVar1 = FUN_0012286a();" (assignment_expression "lVar1 = FUN_0012286a()" identifier = (call_expression "FUN_0012286a()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar1 == 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }" else (compound_statement "{\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }" { (expression_statement "uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);" (assignment_expression "uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18)" identifier = (pointer_expression "*(undefined4 *)(*(long *)(lVar1 + 8) + 0x18)" * (cast_expression "(undefined4 *)(*(long *)(lVar1 + 8) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar1 + 8) + 0x18)" ( (binary_expression "*(long *)(lVar1 + 8) + 0x18" (pointer_expression "*(long *)(lVar1 + 8)" * (cast_expression "(long *)(lVar1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "FUN_00120529(lVar1);" (call_expression "FUN_00120529(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_001229f6(void)\n\n{\n  long lVar1;\n  undefined4 uVar2;\n  \n  lVar1 = FUN_0012286a();\n  if (lVar1 == 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_001229f6(void)" (identifier "FUN_001229f6") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  long lVar1;\n  undefined4 uVar2;\n  \n  lVar1 = FUN_0012286a();\n  if (lVar1 == 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }\n  return uVar2;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "lVar1 = FUN_0012286a();" (assignment_expression "lVar1 = FUN_0012286a()" (identifier "lVar1") (= "=") (call_expression "FUN_0012286a()" (identifier "FUN_0012286a") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (lVar1 == 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }" (if "if") (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }" (else "else") (compound_statement "{\n    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);\n    FUN_00120529(lVar1);\n  }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);" (assignment_expression "uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(*(long *)(lVar1 + 8) + 0x18)" (* "*") (cast_expression "(undefined4 *)(*(long *)(lVar1 + 8) + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar1 + 8) + 0x18)" (( "(") (binary_expression "*(long *)(lVar1 + 8) + 0x18" (pointer_expression "*(long *)(lVar1 + 8)" (* "*") (cast_expression "(long *)(lVar1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "FUN_00120529(lVar1);" (call_expression "FUN_00120529(lVar1)" (identifier "FUN_00120529") (argument_list "(lVar1)" (( "(") (identifier "lVar1") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

int function_1(type_1 *self,void *blob,int len)

{
  void *var_2;
  int iVar1;
  
  var_2 = var_1(self,(char *)blob,len);
  if (var_2 == (void *)0x0) {
    iVar1 = -1;
  }
  else {
    iVar1 = *(int *)(*(long *)((long)var_2 + 8) + 0x18);
    var_3(var_2);
  }
  return iVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (return_statement (identifier)))))

undefined4 MASKED(void)

{
  long lVar1;
  undefined4 uVar2;
  
  lVar1 = FUN_0012286a();
  if (lVar1 == 0) {
    uVar2 = 0xffffffff;
  }
  else {
    uVar2 = *(undefined4 *)(*(long *)(lVar1 + 8) + 0x18);
    FUN_00120529(lVar1);
  }
  return uVar2;
}

