
int ssh1_pkt_getrsakey(Packet *pkt,RSAKey *key,uchar **keystr)

{
  int iVar1;
  int iVar2;
  
  iVar1 = (*(code *)PTR_makekey_0012173c)
                    (pkt->body + pkt->savedpos,pkt->length - pkt->savedpos,key,keystr,0);
  if (iVar1 < 0) {
    iVar2 = 0;
  }
  else {
    iVar1 = iVar1 + pkt->savedpos;
    pkt->savedpos = iVar1;
    iVar2 = 1;
    if (pkt->length <= iVar1) {
      iVar1 = (*(code *)PTR___assert_fail_00121f78)
                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,
                         PTR_E0_218__00121388 + -0x2188);
      return iVar1;
    }
  }
  return iVar2;
}



undefined4 FUN_0004eedc(int *param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  iVar1 = (*(code *)PTR_makekey_0012173c)
                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);
  if (iVar1 < 0) {
    uVar2 = 0;
  }
  else {
    iVar3 = param_1[6];
    param_1[6] = iVar1 + iVar3;
    uVar2 = 1;
    if (*param_1 <= iVar1 + iVar3) {
      uVar2 = (*(code *)PTR___assert_fail_00121f78)
                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,
                         PTR_DAT_00121388 + -0x2188);
      return uVar2;
    }
  }
  return uVar2;
}


lui gp,0xe
addiu gp,gp,-0x5c2c
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s0,0x20(sp)
sw gp,0x18(sp)
or s0,a0,zero
lw v0,0x18(a0)
lw v1,0x0(a0)
lw a0,0x14(a0)
sw zero,0x10(sp)
or a3,a2,zero
or a2,a1,zero
subu a1,v1,v0
addu a0,a0,v0
lw t9,-0x7b74(gp)
jalr t9
_nop
lw gp,0x18(sp)
bltz v0,0x0004ef88
_nop
lw v1,0x18(s0)
addu v0,v0,v1
sw v0,0x18(s0)
lw v1,0x0(s0)
slt v1,v0,v1
beq v1,zero,0x0004ef60
_li v0,0x1
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw a3,-0x7f28(gp)
addiu a3,a3,-0x2188
li a2,0xaad
lw a1,-0x7f28(gp)
addiu a1,a1,-0x60c0
lw a0,-0x7f28(gp)
addiu a0,a0,-0x5f50
lw t9,-0x7338(gp)
jalr t9
_nop
b 0x0004ef50
_or v0,zero,zero
(translation_unit "undefined4 FUN_0004eedc(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);\n  if (iVar1 < 0) {\n    uVar2 = 0;\n  }\n  else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0004eedc(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);\n  if (iVar1 < 0) {\n    uVar2 = 0;\n  }\n  else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0004eedc(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);\n  if (iVar1 < 0) {\n    uVar2 = 0;\n  }\n  else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);" (assignment_expression "iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0)" identifier = (call_expression "(*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0)" (parenthesized_expression "(*(code *)PTR_makekey_0012173c)" ( (pointer_expression "*(code *)PTR_makekey_0012173c" * (cast_expression "(code *)PTR_makekey_0012173c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0)" ( (binary_expression "param_1[5] + param_1[6]" (subscript_expression "param_1[5]" identifier [ number_literal ]) + (subscript_expression "param_1[6]" identifier [ number_literal ])) , (binary_expression "*param_1 - param_1[6]" (pointer_expression "*param_1" * identifier) - (subscript_expression "param_1[6]" identifier [ number_literal ])) , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 < 0) {\n    uVar2 = 0;\n  }\n  else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar2 = 0;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }" else (compound_statement "{\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }" { (expression_statement "iVar3 = param_1[6];" (assignment_expression "iVar3 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "param_1[6] = iVar1 + iVar3;" (assignment_expression "param_1[6] = iVar1 + iVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (binary_expression "iVar1 + iVar3" identifier + identifier)) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }" if (parenthesized_expression "(*param_1 <= iVar1 + iVar3)" ( (binary_expression "*param_1 <= iVar1 + iVar3" (pointer_expression "*param_1" * identifier) <= (binary_expression "iVar1 + iVar3" identifier + identifier)) )) (compound_statement "{\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }" { (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188)" identifier = (call_expression "(*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188)" (parenthesized_expression "(*(code *)PTR___assert_fail_00121f78)" ( (pointer_expression "*(code *)PTR___assert_fail_00121f78" * (cast_expression "(code *)PTR___assert_fail_00121f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188)" ( (binary_expression "PTR_DAT_00121388 + -0x5f50" identifier + number_literal) , (binary_expression "PTR_DAT_00121388 + -0x60c0" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_00121388 + -0x2188" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int ssh1_pkt_getrsakey(Packet *pkt,RSAKey *key,uchar **keystr)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (pkt->body + pkt->savedpos,pkt->length - pkt->savedpos,key,keystr,0);\n  if (iVar1 < 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar1 = iVar1 + pkt->savedpos;\n    pkt->savedpos = iVar1;\n    iVar2 = 1;\n    if (pkt->length <= iVar1) {\n      iVar1 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188);\n      return iVar1;\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int ssh1_pkt_getrsakey(Packet *pkt,RSAKey *key,uchar **keystr)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (pkt->body + pkt->savedpos,pkt->length - pkt->savedpos,key,keystr,0);\n  if (iVar1 < 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar1 = iVar1 + pkt->savedpos;\n    pkt->savedpos = iVar1;\n    iVar2 = 1;\n    if (pkt->length <= iVar1) {\n      iVar1 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188);\n      return iVar1;\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "ssh1_pkt_getrsakey(Packet *pkt,RSAKey *key,uchar **keystr)" identifier (parameter_list "(Packet *pkt,RSAKey *key,uchar **keystr)" ( (parameter_declaration "Packet *pkt" type_identifier (pointer_declarator "*pkt" * identifier)) , (parameter_declaration "RSAKey *key" type_identifier (pointer_declarator "*key" * identifier)) , (parameter_declaration "uchar **keystr" type_identifier (pointer_declarator "**keystr" * (pointer_declarator "*keystr" * identifier))) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (pkt->body + pkt->savedpos,pkt->length - pkt->savedpos,key,keystr,0);\n  if (iVar1 < 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar1 = iVar1 + pkt->savedpos;\n    pkt->savedpos = iVar1;\n    iVar2 = 1;\n    if (pkt->length <= iVar1) {\n      iVar1 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188);\n      return iVar1;\n    }\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (pkt->body + pkt->savedpos,pkt->length - pkt->savedpos,key,keystr,0);" (assignment_expression "iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (pkt->body + pkt->savedpos,pkt->length - pkt->savedpos,key,keystr,0)" identifier = (call_expression "(*(code *)PTR_makekey_0012173c)\n                    (pkt->body + pkt->savedpos,pkt->length - pkt->savedpos,key,keystr,0)" (parenthesized_expression "(*(code *)PTR_makekey_0012173c)" ( (pointer_expression "*(code *)PTR_makekey_0012173c" * (cast_expression "(code *)PTR_makekey_0012173c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pkt->body + pkt->savedpos,pkt->length - pkt->savedpos,key,keystr,0)" ( (binary_expression "pkt->body + pkt->savedpos" (field_expression "pkt->body" identifier -> field_identifier) + (field_expression "pkt->savedpos" identifier -> field_identifier)) , (binary_expression "pkt->length - pkt->savedpos" (field_expression "pkt->length" identifier -> field_identifier) - (field_expression "pkt->savedpos" identifier -> field_identifier)) , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 < 0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar1 = iVar1 + pkt->savedpos;\n    pkt->savedpos = iVar1;\n    iVar2 = 1;\n    if (pkt->length <= iVar1) {\n      iVar1 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188);\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar2 = 0;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = iVar1 + pkt->savedpos;\n    pkt->savedpos = iVar1;\n    iVar2 = 1;\n    if (pkt->length <= iVar1) {\n      iVar1 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188);\n      return iVar1;\n    }\n  }" else (compound_statement "{\n    iVar1 = iVar1 + pkt->savedpos;\n    pkt->savedpos = iVar1;\n    iVar2 = 1;\n    if (pkt->length <= iVar1) {\n      iVar1 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188);\n      return iVar1;\n    }\n  }" { (expression_statement "iVar1 = iVar1 + pkt->savedpos;" (assignment_expression "iVar1 = iVar1 + pkt->savedpos" identifier = (binary_expression "iVar1 + pkt->savedpos" identifier + (field_expression "pkt->savedpos" identifier -> field_identifier))) ;) (expression_statement "pkt->savedpos = iVar1;" (assignment_expression "pkt->savedpos = iVar1" (field_expression "pkt->savedpos" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (if_statement "if (pkt->length <= iVar1) {\n      iVar1 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188);\n      return iVar1;\n    }" if (parenthesized_expression "(pkt->length <= iVar1)" ( (binary_expression "pkt->length <= iVar1" (field_expression "pkt->length" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n      iVar1 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188)" identifier = (call_expression "(*(code *)PTR___assert_fail_00121f78)\n                        (PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188)" (parenthesized_expression "(*(code *)PTR___assert_fail_00121f78)" ( (pointer_expression "*(code *)PTR___assert_fail_00121f78" * (cast_expression "(code *)PTR___assert_fail_00121f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_E0_218__00121388 + -0x5f50,PTR_E0_218__00121388 + -0x60c0,0xaad,\n                         PTR_E0_218__00121388 + -0x2188)" ( (binary_expression "PTR_E0_218__00121388 + -0x5f50" identifier + number_literal) , (binary_expression "PTR_E0_218__00121388 + -0x60c0" identifier + number_literal) , number_literal , (binary_expression "PTR_E0_218__00121388 + -0x2188" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0004eedc(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);\n  if (iVar1 < 0) {\n    uVar2 = 0;\n  }\n  else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0004eedc(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);\n  if (iVar1 < 0) {\n    uVar2 = 0;\n  }\n  else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0004eedc(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);\n  if (iVar1 < 0) {\n    uVar2 = 0;\n  }\n  else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);" (assignment_expression "iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0)" identifier = (call_expression "(*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0)" (parenthesized_expression "(*(code *)PTR_makekey_0012173c)" ( (pointer_expression "*(code *)PTR_makekey_0012173c" * (cast_expression "(code *)PTR_makekey_0012173c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0)" ( (binary_expression "param_1[5] + param_1[6]" (subscript_expression "param_1[5]" identifier [ number_literal ]) + (subscript_expression "param_1[6]" identifier [ number_literal ])) , (binary_expression "*param_1 - param_1[6]" (pointer_expression "*param_1" * identifier) - (subscript_expression "param_1[6]" identifier [ number_literal ])) , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 < 0) {\n    uVar2 = 0;\n  }\n  else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar2 = 0;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }" else (compound_statement "{\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }" { (expression_statement "iVar3 = param_1[6];" (assignment_expression "iVar3 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "param_1[6] = iVar1 + iVar3;" (assignment_expression "param_1[6] = iVar1 + iVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (binary_expression "iVar1 + iVar3" identifier + identifier)) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }" if (parenthesized_expression "(*param_1 <= iVar1 + iVar3)" ( (binary_expression "*param_1 <= iVar1 + iVar3" (pointer_expression "*param_1" * identifier) <= (binary_expression "iVar1 + iVar3" identifier + identifier)) )) (compound_statement "{\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }" { (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188)" identifier = (call_expression "(*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188)" (parenthesized_expression "(*(code *)PTR___assert_fail_00121f78)" ( (pointer_expression "*(code *)PTR___assert_fail_00121f78" * (cast_expression "(code *)PTR___assert_fail_00121f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188)" ( (binary_expression "PTR_DAT_00121388 + -0x5f50" identifier + number_literal) , (binary_expression "PTR_DAT_00121388 + -0x60c0" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_00121388 + -0x2188" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) + (subscript_expression IDENT [ LIT ])) , (binary_expression (pointer_expression * IDENT) - (subscript_expression IDENT [ LIT ])) , IDENT , IDENT , LIT )))) ;) (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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0004eedc(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);\n  if (iVar1 < 0) {\n    uVar2 = 0;\n  }\n  else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0004eedc(int *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0004eedc") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);\n  if (iVar1 < 0) {\n    uVar2 = 0;\n  }\n  else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);" (assignment_expression "iVar1 = (*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_makekey_0012173c)\n                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0)" (parenthesized_expression "(*(code *)PTR_makekey_0012173c)" (( "(") (pointer_expression "*(code *)PTR_makekey_0012173c" (* "*") (cast_expression "(code *)PTR_makekey_0012173c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_makekey_0012173c"))) () ")")) (argument_list "(param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0)" (( "(") (binary_expression "param_1[5] + param_1[6]" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (, ",") (binary_expression "*param_1 - param_1[6]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (- "-") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n    uVar2 = 0;\n  }\n  else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 0;\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }" (else "else") (compound_statement "{\n    iVar3 = param_1[6];\n    param_1[6] = iVar1 + iVar3;\n    uVar2 = 1;\n    if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }\n  }" ({ "{") (expression_statement "iVar3 = param_1[6];" (assignment_expression "iVar3 = param_1[6]" (identifier "iVar3") (= "=") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "param_1[6] = iVar1 + iVar3;" (assignment_expression "param_1[6] = iVar1 + iVar3" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (binary_expression "iVar1 + iVar3" (identifier "iVar1") (+ "+") (identifier "iVar3"))) (; ";")) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (if_statement "if (*param_1 <= iVar1 + iVar3) {\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(*param_1 <= iVar1 + iVar3)" (( "(") (binary_expression "*param_1 <= iVar1 + iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (<= "<=") (binary_expression "iVar1 + iVar3" (identifier "iVar1") (+ "+") (identifier "iVar3"))) () ")")) (compound_statement "{\n      uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR___assert_fail_00121f78)\n                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188)" (parenthesized_expression "(*(code *)PTR___assert_fail_00121f78)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_00121f78" (* "*") (cast_expression "(code *)PTR___assert_fail_00121f78" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_00121f78"))) () ")")) (argument_list "(PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,\n                         PTR_DAT_00121388 + -0x2188)" (( "(") (binary_expression "PTR_DAT_00121388 + -0x5f50" (identifier "PTR_DAT_00121388") (+ "+") (number_literal "-0x5f50")) (, ",") (binary_expression "PTR_DAT_00121388 + -0x60c0" (identifier "PTR_DAT_00121388") (+ "+") (number_literal "-0x60c0")) (, ",") (number_literal "0xaad") (, ",") (binary_expression "PTR_DAT_00121388 + -0x2188" (identifier "PTR_DAT_00121388") (+ "+") (number_literal "-0x2188")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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: (identifier)))) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))) (binary_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))) (identifier) (identifier) (number_literal))))) (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (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: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier))))))) (return_statement (identifier)))))

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

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  iVar1 = (*(code *)PTR_makekey_0012173c)
                    (param_1[5] + param_1[6],*param_1 - param_1[6],param_2,param_3,0);
  if (iVar1 < 0) {
    uVar2 = 0;
  }
  else {
    iVar3 = param_1[6];
    param_1[6] = iVar1 + iVar3;
    uVar2 = 1;
    if (*param_1 <= iVar1 + iVar3) {
      uVar2 = (*(code *)PTR___assert_fail_00121f78)
                        (PTR_DAT_00121388 + -0x5f50,PTR_DAT_00121388 + -0x60c0,0xaad,
                         PTR_DAT_00121388 + -0x2188);
      return uVar2;
    }
  }
  return uVar2;
}

