
/* WARNING: Unknown calling convention */

ulong ssh_pkt_getuint32(Packet *pkt)

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



uint FUN_00036188(int *param_1)

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


lw v1,0x18(a0)
lw v0,0x0(a0)
subu v0,v0,v1
slti v0,v0,0x4
bne v0,zero,0x000361d8
_addiu a3,v1,0x4
lw a1,0x14(a0)
addu a1,a1,v1
lbu v1,0x0(a1)
lbu a2,0x1(a1)
lbu v0,0x3(a1)
lbu a1,0x2(a1)
sll v1,v1,0x18
sll a2,a2,0x10
sw a3,0x18(a0)
or v0,v1,v0
sll a1,a1,0x8
or v0,v0,a2
jr ra
_or v0,v0,a1
jr ra
_or v0,zero,zero
(translation_unit "uint FUN_00036188(int *param_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  byte *pbVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_00036188(int *param_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  byte *pbVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00036188(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  byte *pbVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 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 "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * 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    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 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    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;\n  }" { (expression_statement "pbVar6 = (byte *)(param_1[5] + iVar5);" (assignment_expression "pbVar6 = (byte *)(param_1[5] + iVar5)" identifier = (cast_expression "(byte *)(param_1[5] + iVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + iVar5)" ( (binary_expression "param_1[5] + iVar5" (subscript_expression "param_1[5]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "bVar1 = *pbVar6;" (assignment_expression "bVar1 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) (expression_statement "bVar2 = pbVar6[1];" (assignment_expression "bVar2 = pbVar6[1]" identifier = (subscript_expression "pbVar6[1]" identifier [ number_literal ])) ;) (expression_statement "bVar3 = pbVar6[3];" (assignment_expression "bVar3 = pbVar6[3]" identifier = (subscript_expression "pbVar6[3]" identifier [ number_literal ])) ;) (expression_statement "bVar4 = pbVar6[2];" (assignment_expression "bVar4 = pbVar6[2]" identifier = (subscript_expression "pbVar6[2]" identifier [ number_literal ])) ;) (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)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;" return (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3" (binary_expression "(uint)bVar1 << 0x18" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) | (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) | (binary_expression "(uint)bVar2 << 0x10" (cast_expression "(uint)bVar2" ( (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 "/* WARNING: Unknown calling convention */\n\nulong ssh_pkt_getuint32(Packet *pkt)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  byte *pbVar6;\n  \n  iVar5 = pkt->savedpos;\n  if (3 < pkt->length - iVar5) {\n    pbVar6 = pkt->body + iVar5;\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    pkt->savedpos = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}\n\n" comment (function_definition "ulong ssh_pkt_getuint32(Packet *pkt)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  byte *pbVar6;\n  \n  iVar5 = pkt->savedpos;\n  if (3 < pkt->length - iVar5) {\n    pbVar6 = pkt->body + iVar5;\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    pkt->savedpos = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" type_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  byte *pbVar6;\n  \n  iVar5 = pkt->savedpos;\n  if (3 < pkt->length - iVar5) {\n    pbVar6 = pkt->body + iVar5;\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    pkt->savedpos = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 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 "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * 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    pbVar6 = pkt->body + iVar5;\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    pkt->savedpos = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 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    pbVar6 = pkt->body + iVar5;\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    pkt->savedpos = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;\n  }" { (expression_statement "pbVar6 = pkt->body + iVar5;" (assignment_expression "pbVar6 = pkt->body + iVar5" identifier = (binary_expression "pkt->body + iVar5" (field_expression "pkt->body" identifier -> field_identifier) + identifier)) ;) (expression_statement "bVar1 = *pbVar6;" (assignment_expression "bVar1 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) (expression_statement "bVar2 = pbVar6[1];" (assignment_expression "bVar2 = pbVar6[1]" identifier = (subscript_expression "pbVar6[1]" identifier [ number_literal ])) ;) (expression_statement "bVar3 = pbVar6[3];" (assignment_expression "bVar3 = pbVar6[3]" identifier = (subscript_expression "pbVar6[3]" identifier [ number_literal ])) ;) (expression_statement "bVar4 = pbVar6[2];" (assignment_expression "bVar4 = pbVar6[2]" identifier = (subscript_expression "pbVar6[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)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;" return (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3" (binary_expression "(uint)bVar1 << 0x18" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) | (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) | (binary_expression "(uint)bVar2 << 0x10" (cast_expression "(uint)bVar2" ( (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 FUN_00036188(int *param_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  byte *pbVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_00036188(int *param_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  byte *pbVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00036188(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  byte *pbVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 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 "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * 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    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 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    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;\n  }" { (expression_statement "pbVar6 = (byte *)(param_1[5] + iVar5);" (assignment_expression "pbVar6 = (byte *)(param_1[5] + iVar5)" identifier = (cast_expression "(byte *)(param_1[5] + iVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + iVar5)" ( (binary_expression "param_1[5] + iVar5" (subscript_expression "param_1[5]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "bVar1 = *pbVar6;" (assignment_expression "bVar1 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) (expression_statement "bVar2 = pbVar6[1];" (assignment_expression "bVar2 = pbVar6[1]" identifier = (subscript_expression "pbVar6[1]" identifier [ number_literal ])) ;) (expression_statement "bVar3 = pbVar6[3];" (assignment_expression "bVar3 = pbVar6[3]" identifier = (subscript_expression "pbVar6[3]" identifier [ number_literal ])) ;) (expression_statement "bVar4 = pbVar6[2];" (assignment_expression "bVar4 = pbVar6[2]" identifier = (subscript_expression "pbVar6[2]" identifier [ number_literal ])) ;) (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)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;" return (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3" (binary_expression "(uint)bVar1 << 0x18" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) | (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) | (binary_expression "(uint)bVar2 << 0x10" (cast_expression "(uint)bVar2" ( (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 (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 (pointer_declarator * 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (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 FUN_00036188(int *param_1)\n\n{\n  byte bVar1;\n  byte bVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  byte *pbVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "FUN_00036188(int *param_1)" (identifier "FUN_00036188") (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  byte *pbVar6;\n  \n  iVar5 = param_1[6];\n  if (3 < *param_1 - iVar5) {\n    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 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 "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (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    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 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    pbVar6 = (byte *)(param_1[5] + iVar5);\n    bVar1 = *pbVar6;\n    bVar2 = pbVar6[1];\n    bVar3 = pbVar6[3];\n    bVar4 = pbVar6[2];\n    param_1[6] = iVar5 + 4;\n    return (uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;\n  }" ({ "{") (expression_statement "pbVar6 = (byte *)(param_1[5] + iVar5);" (assignment_expression "pbVar6 = (byte *)(param_1[5] + iVar5)" (identifier "pbVar6") (= "=") (cast_expression "(byte *)(param_1[5] + iVar5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[5] + iVar5)" (( "(") (binary_expression "param_1[5] + iVar5" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (identifier "iVar5")) () ")")))) (; ";")) (expression_statement "bVar1 = *pbVar6;" (assignment_expression "bVar1 = *pbVar6" (identifier "bVar1") (= "=") (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6"))) (; ";")) (expression_statement "bVar2 = pbVar6[1];" (assignment_expression "bVar2 = pbVar6[1]" (identifier "bVar2") (= "=") (subscript_expression "pbVar6[1]" (identifier "pbVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "bVar3 = pbVar6[3];" (assignment_expression "bVar3 = pbVar6[3]" (identifier "bVar3") (= "=") (subscript_expression "pbVar6[3]" (identifier "pbVar6") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "bVar4 = pbVar6[2];" (assignment_expression "bVar4 = pbVar6[2]" (identifier "bVar4") (= "=") (subscript_expression "pbVar6[2]" (identifier "pbVar6") ([ "[") (number_literal "2") (] "]"))) (; ";")) (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)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8;" (return "return") (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10 | (uint)bVar4 << 8" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3 | (uint)bVar2 << 0x10" (binary_expression "(uint)bVar1 << 0x18 | (uint)bVar3" (binary_expression "(uint)bVar1 << 0x18" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (<< "<<") (number_literal "0x18")) (| "|") (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3"))) (| "|") (binary_expression "(uint)bVar2 << 0x10" (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2")) (<< "<<") (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") (; ";")) (} "}")))
(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))))) 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: (type_identifier) declarator: (pointer_declarator 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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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: (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 MASKED(int *param_1)

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

