
void ssh_pkt_adduint32(Packet *pkt,ulong value)

{
  undefined *puVar1;
  int iVar2;
  uchar x [4];
  
  puVar1 = PTR___stack_chk_guard_000bef2c;
  iVar2 = *(int *)PTR___stack_chk_guard_000bef2c;
  x[0] = (uchar)(value >> 0x18);
  x[1] = (uchar)(value >> 0x10);
  x[2] = (uchar)(value >> 8);
  x[3] = (uchar)value;
  ssh_pkt_adddata(pkt,x,4);
  if (iVar2 == *(int *)puVar1) {
    return;
  }
  (*(code *)PTR___stack_chk_fail_000bef04)();
                    /* WARNING: Subroutine does not return */
  ssh_pkt_adduint32(pkt,0);
}



void FUN_0003bab8(undefined4 *param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined1 local_10;
  undefined1 local_f;
  undefined1 local_e;
  undefined1 local_d;
  int local_c;
  
  puVar1 = PTR___stack_chk_guard_000bef2c;
  local_c = *(int *)PTR___stack_chk_guard_000bef2c;
  local_10 = (undefined1)((uint)param_2 >> 0x18);
  local_f = (undefined1)((uint)param_2 >> 0x10);
  local_e = (undefined1)((uint)param_2 >> 8);
  local_d = (undefined1)param_2;
  FUN_0003b798(param_1,&local_10,4);
  if (local_c == *(int *)puVar1) {
    return;
  }
  (*(code *)PTR___stack_chk_fail_000bef04)();
  FUN_0003bab8();
  param_1[6] = *param_1;
  return;
}


lui gp,0x9
addiu gp,gp,-0x5748
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s0,0x20(sp)
sw gp,0x10(sp)
lw s0,-0x7444(gp)
lw v0,0x0(s0)
sw v0,0x1c(sp)
srl v0,a1,0x18
sb v0,0x18(sp)
srl v0,a1,0x10
sb v0,0x19(sp)
srl v0,a1,0x8
sb v0,0x1a(sp)
sb a1,0x1b(sp)
li a2,0x4
addiu a1,sp,0x18
lw t9,-0x7b3c(gp)
addiu t9,t9,-0x4868
bal 0x0003b798
_nop
lw gp,0x10(sp)
lw v1,0x1c(sp)
lw v0,0x0(s0)
bne v1,v0,0x0003bb34
_lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x746c(gp)
jalr t9
_nop
(translation_unit "void FUN_0003bab8(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined1 local_10;\n  undefined1 local_f;\n  undefined1 local_e;\n  undefined1 local_d;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000bef2c;\n  local_c = *(int *)PTR___stack_chk_guard_000bef2c;\n  local_10 = (undefined1)((uint)param_2 >> 0x18);\n  local_f = (undefined1)((uint)param_2 >> 0x10);\n  local_e = (undefined1)((uint)param_2 >> 8);\n  local_d = (undefined1)param_2;\n  FUN_0003b798(param_1,&local_10,4);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000bef04)();\n  FUN_0003bab8();\n  param_1[6] = *param_1;\n  return;\n}\n\n" (function_definition "void FUN_0003bab8(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined1 local_10;\n  undefined1 local_f;\n  undefined1 local_e;\n  undefined1 local_d;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000bef2c;\n  local_c = *(int *)PTR___stack_chk_guard_000bef2c;\n  local_10 = (undefined1)((uint)param_2 >> 0x18);\n  local_f = (undefined1)((uint)param_2 >> 0x10);\n  local_e = (undefined1)((uint)param_2 >> 8);\n  local_d = (undefined1)param_2;\n  FUN_0003b798(param_1,&local_10,4);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000bef04)();\n  FUN_0003bab8();\n  param_1[6] = *param_1;\n  return;\n}" primitive_type (function_declarator "FUN_0003bab8(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 local_10;\n  undefined1 local_f;\n  undefined1 local_e;\n  undefined1 local_d;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000bef2c;\n  local_c = *(int *)PTR___stack_chk_guard_000bef2c;\n  local_10 = (undefined1)((uint)param_2 >> 0x18);\n  local_f = (undefined1)((uint)param_2 >> 0x10);\n  local_e = (undefined1)((uint)param_2 >> 8);\n  local_d = (undefined1)param_2;\n  FUN_0003b798(param_1,&local_10,4);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000bef04)();\n  FUN_0003bab8();\n  param_1[6] = *param_1;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 local_10;" type_identifier identifier ;) (declaration "undefined1 local_f;" type_identifier identifier ;) (declaration "undefined1 local_e;" type_identifier identifier ;) (declaration "undefined1 local_d;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000bef2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000bef2c" identifier = identifier) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000bef2c;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000bef2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000bef2c" * (cast_expression "(int *)PTR___stack_chk_guard_000bef2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_10 = (undefined1)((uint)param_2 >> 0x18);" (assignment_expression "local_10 = (undefined1)((uint)param_2 >> 0x18)" identifier = (call_expression "(undefined1)((uint)param_2 >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_2 >> 0x18)" ( (binary_expression "(uint)param_2 >> 0x18" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_f = (undefined1)((uint)param_2 >> 0x10);" (assignment_expression "local_f = (undefined1)((uint)param_2 >> 0x10)" identifier = (call_expression "(undefined1)((uint)param_2 >> 0x10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_2 >> 0x10)" ( (binary_expression "(uint)param_2 >> 0x10" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_e = (undefined1)((uint)param_2 >> 8);" (assignment_expression "local_e = (undefined1)((uint)param_2 >> 8)" identifier = (call_expression "(undefined1)((uint)param_2 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_2 >> 8)" ( (binary_expression "(uint)param_2 >> 8" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_d = (undefined1)param_2;" (assignment_expression "local_d = (undefined1)param_2" identifier = (cast_expression "(undefined1)param_2" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "FUN_0003b798(param_1,&local_10,4);" (call_expression "FUN_0003b798(param_1,&local_10,4)" identifier (argument_list "(param_1,&local_10,4)" ( identifier , (pointer_expression "&local_10" & identifier) , number_literal ))) ;) (if_statement "if (local_c == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar1)" ( (binary_expression "local_c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000bef04)();" (call_expression "(*(code *)PTR___stack_chk_fail_000bef04)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000bef04)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000bef04" * (cast_expression "(code *)PTR___stack_chk_fail_000bef04" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "FUN_0003bab8();" (call_expression "FUN_0003bab8()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1[6] = *param_1;" (assignment_expression "param_1[6] = *param_1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (pointer_expression "*param_1" * identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void ssh_pkt_adduint32(Packet *pkt,ulong value)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uchar x [4];\n  \n  puVar1 = PTR___stack_chk_guard_000bef2c;\n  iVar2 = *(int *)PTR___stack_chk_guard_000bef2c;\n  x[0] = (uchar)(value >> 0x18);\n  x[1] = (uchar)(value >> 0x10);\n  x[2] = (uchar)(value >> 8);\n  x[3] = (uchar)value;\n  ssh_pkt_adddata(pkt,x,4);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000bef04)();\n                    /* WARNING: Subroutine does not return */\n  ssh_pkt_adduint32(pkt,0);\n}\n\n" (function_definition "void ssh_pkt_adduint32(Packet *pkt,ulong value)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uchar x [4];\n  \n  puVar1 = PTR___stack_chk_guard_000bef2c;\n  iVar2 = *(int *)PTR___stack_chk_guard_000bef2c;\n  x[0] = (uchar)(value >> 0x18);\n  x[1] = (uchar)(value >> 0x10);\n  x[2] = (uchar)(value >> 8);\n  x[3] = (uchar)value;\n  ssh_pkt_adddata(pkt,x,4);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000bef04)();\n                    /* WARNING: Subroutine does not return */\n  ssh_pkt_adduint32(pkt,0);\n}" primitive_type (function_declarator "ssh_pkt_adduint32(Packet *pkt,ulong value)" identifier (parameter_list "(Packet *pkt,ulong value)" ( (parameter_declaration "Packet *pkt" type_identifier (pointer_declarator "*pkt" * identifier)) , (parameter_declaration "ulong value" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uchar x [4];\n  \n  puVar1 = PTR___stack_chk_guard_000bef2c;\n  iVar2 = *(int *)PTR___stack_chk_guard_000bef2c;\n  x[0] = (uchar)(value >> 0x18);\n  x[1] = (uchar)(value >> 0x10);\n  x[2] = (uchar)(value >> 8);\n  x[3] = (uchar)value;\n  ssh_pkt_adddata(pkt,x,4);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000bef04)();\n                    /* WARNING: Subroutine does not return */\n  ssh_pkt_adduint32(pkt,0);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uchar x [4];" type_identifier (array_declarator "x [4]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000bef2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000bef2c" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_000bef2c;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_000bef2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000bef2c" * (cast_expression "(int *)PTR___stack_chk_guard_000bef2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "x[0] = (uchar)(value >> 0x18);" (assignment_expression "x[0] = (uchar)(value >> 0x18)" (subscript_expression "x[0]" identifier [ number_literal ]) = (call_expression "(uchar)(value >> 0x18)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(value >> 0x18)" ( (binary_expression "value >> 0x18" identifier >> number_literal) )))) ;) (expression_statement "x[1] = (uchar)(value >> 0x10);" (assignment_expression "x[1] = (uchar)(value >> 0x10)" (subscript_expression "x[1]" identifier [ number_literal ]) = (call_expression "(uchar)(value >> 0x10)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(value >> 0x10)" ( (binary_expression "value >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "x[2] = (uchar)(value >> 8);" (assignment_expression "x[2] = (uchar)(value >> 8)" (subscript_expression "x[2]" identifier [ number_literal ]) = (call_expression "(uchar)(value >> 8)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(value >> 8)" ( (binary_expression "value >> 8" identifier >> number_literal) )))) ;) (expression_statement "x[3] = (uchar)value;" (assignment_expression "x[3] = (uchar)value" (subscript_expression "x[3]" identifier [ number_literal ]) = (cast_expression "(uchar)value" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "ssh_pkt_adddata(pkt,x,4);" (call_expression "ssh_pkt_adddata(pkt,x,4)" identifier (argument_list "(pkt,x,4)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (iVar2 == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000bef04)();" (call_expression "(*(code *)PTR___stack_chk_fail_000bef04)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000bef04)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000bef04" * (cast_expression "(code *)PTR___stack_chk_fail_000bef04" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment (expression_statement "ssh_pkt_adduint32(pkt,0);" (call_expression "ssh_pkt_adduint32(pkt,0)" identifier (argument_list "(pkt,0)" ( identifier , number_literal ))) ;) })))
(translation_unit "void FUN_0003bab8(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined1 local_10;\n  undefined1 local_f;\n  undefined1 local_e;\n  undefined1 local_d;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000bef2c;\n  local_c = *(int *)PTR___stack_chk_guard_000bef2c;\n  local_10 = (undefined1)((uint)param_2 >> 0x18);\n  local_f = (undefined1)((uint)param_2 >> 0x10);\n  local_e = (undefined1)((uint)param_2 >> 8);\n  local_d = (undefined1)param_2;\n  FUN_0003b798(param_1,&local_10,4);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000bef04)();\n  FUN_0003bab8();\n  param_1[6] = *param_1;\n  return;\n}\n\n" (function_definition "void FUN_0003bab8(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined1 local_10;\n  undefined1 local_f;\n  undefined1 local_e;\n  undefined1 local_d;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000bef2c;\n  local_c = *(int *)PTR___stack_chk_guard_000bef2c;\n  local_10 = (undefined1)((uint)param_2 >> 0x18);\n  local_f = (undefined1)((uint)param_2 >> 0x10);\n  local_e = (undefined1)((uint)param_2 >> 8);\n  local_d = (undefined1)param_2;\n  FUN_0003b798(param_1,&local_10,4);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000bef04)();\n  FUN_0003bab8();\n  param_1[6] = *param_1;\n  return;\n}" primitive_type (function_declarator "FUN_0003bab8(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 local_10;\n  undefined1 local_f;\n  undefined1 local_e;\n  undefined1 local_d;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000bef2c;\n  local_c = *(int *)PTR___stack_chk_guard_000bef2c;\n  local_10 = (undefined1)((uint)param_2 >> 0x18);\n  local_f = (undefined1)((uint)param_2 >> 0x10);\n  local_e = (undefined1)((uint)param_2 >> 8);\n  local_d = (undefined1)param_2;\n  FUN_0003b798(param_1,&local_10,4);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000bef04)();\n  FUN_0003bab8();\n  param_1[6] = *param_1;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 local_10;" type_identifier identifier ;) (declaration "undefined1 local_f;" type_identifier identifier ;) (declaration "undefined1 local_e;" type_identifier identifier ;) (declaration "undefined1 local_d;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000bef2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000bef2c" identifier = identifier) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000bef2c;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000bef2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000bef2c" * (cast_expression "(int *)PTR___stack_chk_guard_000bef2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_10 = (undefined1)((uint)param_2 >> 0x18);" (assignment_expression "local_10 = (undefined1)((uint)param_2 >> 0x18)" identifier = (call_expression "(undefined1)((uint)param_2 >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_2 >> 0x18)" ( (binary_expression "(uint)param_2 >> 0x18" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_f = (undefined1)((uint)param_2 >> 0x10);" (assignment_expression "local_f = (undefined1)((uint)param_2 >> 0x10)" identifier = (call_expression "(undefined1)((uint)param_2 >> 0x10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_2 >> 0x10)" ( (binary_expression "(uint)param_2 >> 0x10" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_e = (undefined1)((uint)param_2 >> 8);" (assignment_expression "local_e = (undefined1)((uint)param_2 >> 8)" identifier = (call_expression "(undefined1)((uint)param_2 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_2 >> 8)" ( (binary_expression "(uint)param_2 >> 8" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_d = (undefined1)param_2;" (assignment_expression "local_d = (undefined1)param_2" identifier = (cast_expression "(undefined1)param_2" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "FUN_0003b798(param_1,&local_10,4);" (call_expression "FUN_0003b798(param_1,&local_10,4)" identifier (argument_list "(param_1,&local_10,4)" ( identifier , (pointer_expression "&local_10" & identifier) , number_literal ))) ;) (if_statement "if (local_c == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar1)" ( (binary_expression "local_c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000bef04)();" (call_expression "(*(code *)PTR___stack_chk_fail_000bef04)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000bef04)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000bef04" * (cast_expression "(code *)PTR___stack_chk_fail_000bef04" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "FUN_0003bab8();" (call_expression "FUN_0003bab8()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1[6] = *param_1;" (assignment_expression "param_1[6] = *param_1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (pointer_expression "*param_1" * identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_0003bab8(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined1 local_10;\n  undefined1 local_f;\n  undefined1 local_e;\n  undefined1 local_d;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000bef2c;\n  local_c = *(int *)PTR___stack_chk_guard_000bef2c;\n  local_10 = (undefined1)((uint)param_2 >> 0x18);\n  local_f = (undefined1)((uint)param_2 >> 0x10);\n  local_e = (undefined1)((uint)param_2 >> 8);\n  local_d = (undefined1)param_2;\n  FUN_0003b798(param_1,&local_10,4);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000bef04)();\n  FUN_0003bab8();\n  param_1[6] = *param_1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0003bab8(undefined4 *param_1,undefined4 param_2)" (identifier "FUN_0003bab8") (parameter_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 local_10;\n  undefined1 local_f;\n  undefined1 local_e;\n  undefined1 local_d;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000bef2c;\n  local_c = *(int *)PTR___stack_chk_guard_000bef2c;\n  local_10 = (undefined1)((uint)param_2 >> 0x18);\n  local_f = (undefined1)((uint)param_2 >> 0x10);\n  local_e = (undefined1)((uint)param_2 >> 8);\n  local_d = (undefined1)param_2;\n  FUN_0003b798(param_1,&local_10,4);\n  if (local_c == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000bef04)();\n  FUN_0003bab8();\n  param_1[6] = *param_1;\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined1 local_10;" (type_identifier "undefined1") (identifier "local_10") (; ";")) (declaration "undefined1 local_f;" (type_identifier "undefined1") (identifier "local_f") (; ";")) (declaration "undefined1 local_e;" (type_identifier "undefined1") (identifier "local_e") (; ";")) (declaration "undefined1 local_d;" (type_identifier "undefined1") (identifier "local_d") (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000bef2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000bef2c" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000bef2c")) (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000bef2c;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000bef2c" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000bef2c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000bef2c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000bef2c")))) (; ";")) (expression_statement "local_10 = (undefined1)((uint)param_2 >> 0x18);" (assignment_expression "local_10 = (undefined1)((uint)param_2 >> 0x18)" (identifier "local_10") (= "=") (call_expression "(undefined1)((uint)param_2 >> 0x18)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)param_2 >> 0x18)" (( "(") (binary_expression "(uint)param_2 >> 0x18" (cast_expression "(uint)param_2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_2")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "local_f = (undefined1)((uint)param_2 >> 0x10);" (assignment_expression "local_f = (undefined1)((uint)param_2 >> 0x10)" (identifier "local_f") (= "=") (call_expression "(undefined1)((uint)param_2 >> 0x10)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)param_2 >> 0x10)" (( "(") (binary_expression "(uint)param_2 >> 0x10" (cast_expression "(uint)param_2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_2")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "local_e = (undefined1)((uint)param_2 >> 8);" (assignment_expression "local_e = (undefined1)((uint)param_2 >> 8)" (identifier "local_e") (= "=") (call_expression "(undefined1)((uint)param_2 >> 8)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)param_2 >> 8)" (( "(") (binary_expression "(uint)param_2 >> 8" (cast_expression "(uint)param_2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_2")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "local_d = (undefined1)param_2;" (assignment_expression "local_d = (undefined1)param_2" (identifier "local_d") (= "=") (cast_expression "(undefined1)param_2" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "FUN_0003b798(param_1,&local_10,4);" (call_expression "FUN_0003b798(param_1,&local_10,4)" (identifier "FUN_0003b798") (argument_list "(param_1,&local_10,4)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) (, ",") (number_literal "4") () ")"))) (; ";")) (if_statement "if (local_c == *(int *)puVar1) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_c == *(int *)puVar1)" (( "(") (binary_expression "local_c == *(int *)puVar1" (identifier "local_c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_000bef04)();" (call_expression "(*(code *)PTR___stack_chk_fail_000bef04)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000bef04)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000bef04" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000bef04" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000bef04"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0003bab8();" (call_expression "FUN_0003bab8()" (identifier "FUN_0003bab8") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_1[6] = *param_1;" (assignment_expression "param_1[6] = *param_1" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pkt,type_2 var_1)

{
  type_3 *puVar1;
  int var_3;
  type_4 x [4];
  
  puVar1 = PTR___stack_chk_guard_000bef2c;
  var_3 = *(int *)PTR___stack_chk_guard_000bef2c;
  x[0] = (type_4)(var_1 >> 0x18);
  x[1] = (type_4)(var_1 >> 0x10);
  x[2] = (type_4)(var_1 >> 8);
  x[3] = (type_4)var_1;
  var_2(pkt,x,4);
  if (var_3 == *(int *)puVar1) {
    return;
  }
  (*(type_5 *)PTR___stack_chk_fail_000bef04)();
                    /* WARNING: Subroutine does not return */
  function_1(pkt,0);
}


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

void MASKED(undefined4 *param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined1 local_10;
  undefined1 local_f;
  undefined1 local_e;
  undefined1 local_d;
  int local_c;
  
  puVar1 = PTR___stack_chk_guard_000bef2c;
  local_c = *(int *)PTR___stack_chk_guard_000bef2c;
  local_10 = (undefined1)((uint)param_2 >> 0x18);
  local_f = (undefined1)((uint)param_2 >> 0x10);
  local_e = (undefined1)((uint)param_2 >> 8);
  local_d = (undefined1)param_2;
  FUN_0003b798(param_1,&local_10,4);
  if (local_c == *(int *)puVar1) {
    return;
  }
  (*(code *)PTR___stack_chk_fail_000bef04)();
  MASKED();
  param_1[6] = *param_1;
  return;
}

