
ulong __regparm3 ssh_pkt_getuint32(Packet *pkt)

{
  byte bVar1;
  byte bVar2;
  byte bVar3;
  byte bVar4;
  int iVar5;
  uchar *puVar6;
  
  iVar5 = pkt->savedpos;
  if (3 < pkt->length - iVar5) {
    puVar6 = pkt->body;
    bVar1 = puVar6[iVar5];
    bVar2 = puVar6[iVar5 + 3];
    bVar3 = puVar6[iVar5 + 1];
    bVar4 = puVar6[iVar5 + 2];
    pkt->savedpos = iVar5 + 4;
    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;
  }
  return 0;
}



uint __regparm3 FUN_0002b030(int *param_1)

{
  byte bVar1;
  byte bVar2;
  byte bVar3;
  byte bVar4;
  int iVar5;
  int iVar6;
  
  iVar5 = param_1[6];
  if (3 < *param_1 - iVar5) {
    iVar6 = param_1[5];
    bVar1 = *(byte *)(iVar6 + iVar5);
    bVar2 = *(byte *)(iVar6 + 3 + iVar5);
    bVar3 = *(byte *)(iVar6 + 1 + iVar5);
    bVar4 = *(byte *)(iVar6 + 2 + iVar5);
    param_1[6] = iVar5 + 4;
    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;
  }
  return 0;
}


MOV ECX,dword ptr [EAX + 0x18]
MOV EDX,dword ptr [EAX]
SUB EDX,ECX
CMP EDX,0x3
JLE 0x0002b070
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [EAX + 0x14]
MOVZX EDX,byte ptr [EBX + ECX*0x1]
MOVZX ESI,byte ptr [EBX + ECX*0x1 + 0x3]
SHL EDX,0x18
OR EDX,ESI
MOVZX ESI,byte ptr [EBX + ECX*0x1 + 0x1]
MOVZX EBX,byte ptr [EBX + ECX*0x1 + 0x2]
ADD ECX,0x4
MOV dword ptr [EAX + 0x18],ECX
SHL ESI,0x10
SHL EBX,0x8
OR EDX,ESI
OR EDX,EBX
POP EBX
POP ESI
MOV EAX,EDX
RET
XOR EDX,EDX
MOV EAX,EDX
RET
(translation_unit "uint __regparm3 FUN_0002b030(int *param_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}\n\n" (function_definition "uint __regparm3 FUN_0002b030(int *param_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002b030(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar5 = param_1[6];" (assignment_expression "iVar5 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (if_statement "if (3 < *param_1 - iVar5) {\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }" if (parenthesized_expression "(3 < *param_1 - iVar5)" ( (binary_expression "3 < *param_1 - iVar5" number_literal < (binary_expression "*param_1 - iVar5" (pointer_expression "*param_1" * identifier) - identifier)) )) (compound_statement "{\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }" { (expression_statement "iVar6 = param_1[5];" (assignment_expression "iVar6 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "bVar1 = *(byte *)(iVar6 + iVar5);" (assignment_expression "bVar1 = *(byte *)(iVar6 + iVar5)" identifier = (pointer_expression "*(byte *)(iVar6 + iVar5)" * (cast_expression "(byte *)(iVar6 + iVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar5)" ( (binary_expression "iVar6 + iVar5" identifier + identifier) ))))) ;) (expression_statement "bVar2 = *(byte *)(iVar6 + 3 + iVar5);" (assignment_expression "bVar2 = *(byte *)(iVar6 + 3 + iVar5)" identifier = (pointer_expression "*(byte *)(iVar6 + 3 + iVar5)" * (cast_expression "(byte *)(iVar6 + 3 + iVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 3 + iVar5)" ( (binary_expression "iVar6 + 3 + iVar5" (binary_expression "iVar6 + 3" identifier + number_literal) + identifier) ))))) ;) (expression_statement "bVar3 = *(byte *)(iVar6 + 1 + iVar5);" (assignment_expression "bVar3 = *(byte *)(iVar6 + 1 + iVar5)" identifier = (pointer_expression "*(byte *)(iVar6 + 1 + iVar5)" * (cast_expression "(byte *)(iVar6 + 1 + iVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + iVar5)" ( (binary_expression "iVar6 + 1 + iVar5" (binary_expression "iVar6 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "bVar4 = *(byte *)(iVar6 + 2 + iVar5);" (assignment_expression "bVar4 = *(byte *)(iVar6 + 2 + iVar5)" identifier = (pointer_expression "*(byte *)(iVar6 + 2 + iVar5)" * (cast_expression "(byte *)(iVar6 + 2 + iVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 2 + iVar5)" ( (binary_expression "iVar6 + 2 + iVar5" (binary_expression "iVar6 + 2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "param_1[6] = iVar5 + 4;" (assignment_expression "param_1[6] = iVar5 + 4" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) (return_statement "return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;" return (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2" (binary_expression "(uint)bVar1 << 0x18" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) | (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) | (binary_expression "(uint)bVar3 << 0x10" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal)) | (binary_expression "(uint)bVar4 << 8" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "ulong __regparm3 ssh_pkt_getuint32(Packet *pkt)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  uchar *puVar6;\n  \n  iVar5 = pkt->savedpos;\n  if (3 < pkt->length - iVar5) {\n    puVar6 = pkt->body;\n    bVar1 = puVar6[iVar5];\n    bVar2 = puVar6[iVar5 + 3];\n    bVar3 = puVar6[iVar5 + 1];\n    bVar4 = puVar6[iVar5 + 2];\n    pkt->savedpos = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}\n\n" (function_definition "ulong __regparm3 ssh_pkt_getuint32(Packet *pkt)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  uchar *puVar6;\n  \n  iVar5 = pkt->savedpos;\n  if (3 < pkt->length - iVar5) {\n    puVar6 = pkt->body;\n    bVar1 = puVar6[iVar5];\n    bVar2 = puVar6[iVar5 + 3];\n    bVar3 = puVar6[iVar5 + 1];\n    bVar4 = puVar6[iVar5 + 2];\n    pkt->savedpos = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "ssh_pkt_getuint32(Packet *pkt)" identifier (parameter_list "(Packet *pkt)" ( (parameter_declaration "Packet *pkt" type_identifier (pointer_declarator "*pkt" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  uchar *puVar6;\n  \n  iVar5 = pkt->savedpos;\n  if (3 < pkt->length - iVar5) {\n    puVar6 = pkt->body;\n    bVar1 = puVar6[iVar5];\n    bVar2 = puVar6[iVar5 + 3];\n    bVar3 = puVar6[iVar5 + 1];\n    bVar4 = puVar6[iVar5 + 2];\n    pkt->savedpos = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uchar *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (expression_statement "iVar5 = pkt->savedpos;" (assignment_expression "iVar5 = pkt->savedpos" identifier = (field_expression "pkt->savedpos" identifier -> field_identifier)) ;) (if_statement "if (3 < pkt->length - iVar5) {\n    puVar6 = pkt->body;\n    bVar1 = puVar6[iVar5];\n    bVar2 = puVar6[iVar5 + 3];\n    bVar3 = puVar6[iVar5 + 1];\n    bVar4 = puVar6[iVar5 + 2];\n    pkt->savedpos = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }" if (parenthesized_expression "(3 < pkt->length - iVar5)" ( (binary_expression "3 < pkt->length - iVar5" number_literal < (binary_expression "pkt->length - iVar5" (field_expression "pkt->length" identifier -> field_identifier) - identifier)) )) (compound_statement "{\n    puVar6 = pkt->body;\n    bVar1 = puVar6[iVar5];\n    bVar2 = puVar6[iVar5 + 3];\n    bVar3 = puVar6[iVar5 + 1];\n    bVar4 = puVar6[iVar5 + 2];\n    pkt->savedpos = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }" { (expression_statement "puVar6 = pkt->body;" (assignment_expression "puVar6 = pkt->body" identifier = (field_expression "pkt->body" identifier -> field_identifier)) ;) (expression_statement "bVar1 = puVar6[iVar5];" (assignment_expression "bVar1 = puVar6[iVar5]" identifier = (subscript_expression "puVar6[iVar5]" identifier [ identifier ])) ;) (expression_statement "bVar2 = puVar6[iVar5 + 3];" (assignment_expression "bVar2 = puVar6[iVar5 + 3]" identifier = (subscript_expression "puVar6[iVar5 + 3]" identifier [ (binary_expression "iVar5 + 3" identifier + number_literal) ])) ;) (expression_statement "bVar3 = puVar6[iVar5 + 1];" (assignment_expression "bVar3 = puVar6[iVar5 + 1]" identifier = (subscript_expression "puVar6[iVar5 + 1]" identifier [ (binary_expression "iVar5 + 1" identifier + number_literal) ])) ;) (expression_statement "bVar4 = puVar6[iVar5 + 2];" (assignment_expression "bVar4 = puVar6[iVar5 + 2]" identifier = (subscript_expression "puVar6[iVar5 + 2]" identifier [ (binary_expression "iVar5 + 2" identifier + number_literal) ])) ;) (expression_statement "pkt->savedpos = iVar5 + 4;" (assignment_expression "pkt->savedpos = iVar5 + 4" (field_expression "pkt->savedpos" identifier -> field_identifier) = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) (return_statement "return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;" return (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2" (binary_expression "(uint)bVar1 << 0x18" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) | (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) | (binary_expression "(uint)bVar3 << 0x10" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal)) | (binary_expression "(uint)bVar4 << 8" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint __regparm3 FUN_0002b030(int *param_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}\n\n" (function_definition "uint __regparm3 FUN_0002b030(int *param_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002b030(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar5 = param_1[6];" (assignment_expression "iVar5 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (if_statement "if (3 < *param_1 - iVar5) {\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }" if (parenthesized_expression "(3 < *param_1 - iVar5)" ( (binary_expression "3 < *param_1 - iVar5" number_literal < (binary_expression "*param_1 - iVar5" (pointer_expression "*param_1" * identifier) - identifier)) )) (compound_statement "{\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }" { (expression_statement "iVar6 = param_1[5];" (assignment_expression "iVar6 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "bVar1 = *(byte *)(iVar6 + iVar5);" (assignment_expression "bVar1 = *(byte *)(iVar6 + iVar5)" identifier = (pointer_expression "*(byte *)(iVar6 + iVar5)" * (cast_expression "(byte *)(iVar6 + iVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar5)" ( (binary_expression "iVar6 + iVar5" identifier + identifier) ))))) ;) (expression_statement "bVar2 = *(byte *)(iVar6 + 3 + iVar5);" (assignment_expression "bVar2 = *(byte *)(iVar6 + 3 + iVar5)" identifier = (pointer_expression "*(byte *)(iVar6 + 3 + iVar5)" * (cast_expression "(byte *)(iVar6 + 3 + iVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 3 + iVar5)" ( (binary_expression "iVar6 + 3 + iVar5" (binary_expression "iVar6 + 3" identifier + number_literal) + identifier) ))))) ;) (expression_statement "bVar3 = *(byte *)(iVar6 + 1 + iVar5);" (assignment_expression "bVar3 = *(byte *)(iVar6 + 1 + iVar5)" identifier = (pointer_expression "*(byte *)(iVar6 + 1 + iVar5)" * (cast_expression "(byte *)(iVar6 + 1 + iVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + iVar5)" ( (binary_expression "iVar6 + 1 + iVar5" (binary_expression "iVar6 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "bVar4 = *(byte *)(iVar6 + 2 + iVar5);" (assignment_expression "bVar4 = *(byte *)(iVar6 + 2 + iVar5)" identifier = (pointer_expression "*(byte *)(iVar6 + 2 + iVar5)" * (cast_expression "(byte *)(iVar6 + 2 + iVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 2 + iVar5)" ( (binary_expression "iVar6 + 2 + iVar5" (binary_expression "iVar6 + 2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "param_1[6] = iVar5 + 4;" (assignment_expression "param_1[6] = iVar5 + 4" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) (return_statement "return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;" return (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2" (binary_expression "(uint)bVar1 << 0x18" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) | (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) | (binary_expression "(uint)bVar3 << 0x10" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal)) | (binary_expression "(uint)bVar4 << 8" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression (pointer_expression * IDENT) - IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (return_statement return (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << LIT) | (cast_expression ( (type_descriptor TYPE) ) IDENT)) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << LIT)) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << LIT)) ;) })) (return_statement return LIT ;) })))
(function_definition "uint __regparm3 FUN_0002b030(int *param_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" (type_identifier "uint") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002b030(int *param_1)" (identifier "FUN_0002b030") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar5 = param_1[6];" (assignment_expression "iVar5 = param_1[6]" (identifier "iVar5") (= "=") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (if_statement "if (3 < *param_1 - iVar5) {\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }" (if "if") (parenthesized_expression "(3 < *param_1 - iVar5)" (( "(") (binary_expression "3 < *param_1 - iVar5" (number_literal "3") (< "<") (binary_expression "*param_1 - iVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (- "-") (identifier "iVar5"))) () ")")) (compound_statement "{\n    iVar6 = param_1[5];\n    bVar1 = *(byte *)(iVar6 + iVar5);\n    bVar2 = *(byte *)(iVar6 + 3 + iVar5);\n    bVar3 = *(byte *)(iVar6 + 1 + iVar5);\n    bVar4 = *(byte *)(iVar6 + 2 + iVar5);\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;\n  }" ({ "{") (expression_statement "iVar6 = param_1[5];" (assignment_expression "iVar6 = param_1[5]" (identifier "iVar6") (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "bVar1 = *(byte *)(iVar6 + iVar5);" (assignment_expression "bVar1 = *(byte *)(iVar6 + iVar5)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(iVar6 + iVar5)" (* "*") (cast_expression "(byte *)(iVar6 + iVar5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + iVar5)" (( "(") (binary_expression "iVar6 + iVar5" (identifier "iVar6") (+ "+") (identifier "iVar5")) () ")"))))) (; ";")) (expression_statement "bVar2 = *(byte *)(iVar6 + 3 + iVar5);" (assignment_expression "bVar2 = *(byte *)(iVar6 + 3 + iVar5)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(iVar6 + 3 + iVar5)" (* "*") (cast_expression "(byte *)(iVar6 + 3 + iVar5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 3 + iVar5)" (( "(") (binary_expression "iVar6 + 3 + iVar5" (binary_expression "iVar6 + 3" (identifier "iVar6") (+ "+") (number_literal "3")) (+ "+") (identifier "iVar5")) () ")"))))) (; ";")) (expression_statement "bVar3 = *(byte *)(iVar6 + 1 + iVar5);" (assignment_expression "bVar3 = *(byte *)(iVar6 + 1 + iVar5)" (identifier "bVar3") (= "=") (pointer_expression "*(byte *)(iVar6 + 1 + iVar5)" (* "*") (cast_expression "(byte *)(iVar6 + 1 + iVar5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 1 + iVar5)" (( "(") (binary_expression "iVar6 + 1 + iVar5" (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar5")) () ")"))))) (; ";")) (expression_statement "bVar4 = *(byte *)(iVar6 + 2 + iVar5);" (assignment_expression "bVar4 = *(byte *)(iVar6 + 2 + iVar5)" (identifier "bVar4") (= "=") (pointer_expression "*(byte *)(iVar6 + 2 + iVar5)" (* "*") (cast_expression "(byte *)(iVar6 + 2 + iVar5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 2 + iVar5)" (( "(") (binary_expression "iVar6 + 2 + iVar5" (binary_expression "iVar6 + 2" (identifier "iVar6") (+ "+") (number_literal "2")) (+ "+") (identifier "iVar5")) () ")"))))) (; ";")) (expression_statement "param_1[6] = iVar5 + 4;" (assignment_expression "param_1[6] = iVar5 + 4" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4"))) (; ";")) (return_statement "return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;" (return "return") (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar2" (binary_expression "(uint)bVar1 << 0x18" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (<< "<<") (number_literal "0x18")) (| "|") (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2"))) (| "|") (binary_expression "(uint)bVar3 << 0x10" (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3")) (<< "<<") (number_literal "0x10"))) (| "|") (binary_expression "(uint)bVar4 << 8" (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")) (<< "<<") (number_literal "8"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 __regparm3 function_1(type_2 *pkt)

{
  type_3 bVar1;
  type_3 bVar2;
  type_3 bVar3;
  type_3 bVar4;
  int var_1;
  type_4 *puVar6;
  
  var_1 = pkt->savedpos;
  if (3 < pkt->length - var_1) {
    puVar6 = pkt->body;
    bVar1 = puVar6[var_1];
    bVar2 = puVar6[var_1 + 3];
    bVar3 = puVar6[var_1 + 1];
    bVar4 = puVar6[var_1 + 2];
    pkt->savedpos = var_1 + 4;
    return (type_5)bVar1 << 0x18 | (type_5)bVar2 | (type_5)bVar3 << 0x10 | (type_5)bVar4 << 8;
  }
  return 0;
}


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

uint __regparm3 MASKED(int *param_1)

{
  byte bVar1;
  byte bVar2;
  byte bVar3;
  byte bVar4;
  int iVar5;
  int iVar6;
  
  iVar5 = param_1[6];
  if (3 < *param_1 - iVar5) {
    iVar6 = param_1[5];
    bVar1 = *(byte *)(iVar6 + iVar5);
    bVar2 = *(byte *)(iVar6 + 3 + iVar5);
    bVar3 = *(byte *)(iVar6 + 1 + iVar5);
    bVar4 = *(byte *)(iVar6 + 2 + iVar5);
    param_1[6] = iVar5 + 4;
    return (uint)bVar1 << 0x18 | (uint)bVar2 | (uint)bVar3 << 0x10 | (uint)bVar4 << 8;
  }
  return 0;
}

