
int __regparm3 addattr32(nlmsghdr *n,int maxlen,int type,uint32_t data)

{
  undefined2 *puVar1;
  
  if ((int)(n->nlmsg_len + 0xb & 0xfffffffc) <= maxlen) {
    puVar1 = (undefined2 *)((int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc));
    puVar1[1] = (short)type;
    *puVar1 = 8;
    *(uint32_t *)(puVar1 + 2) = data;
    n->nlmsg_len = n->nlmsg_len + 0xb & 0xfffffffc;
    return 0;
  }
  return -1;
}



undefined4 __regparm3 FUN_00048be5(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)

{
  undefined2 *puVar1;
  
  if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {
    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));
    puVar1[1] = param_3;
    *puVar1 = 8;
    *(undefined4 *)(puVar1 + 2) = param_4;
    *param_1 = *param_1 + 0xb & 0xfffffffc;
    return 0;
  }
  return 0xffffffff;
}


PUSH ESI
PUSH EBX
MOV EBX,dword ptr [EAX]
LEA ESI,[EBX + 0xb]
AND ESI,0xfffffffc
CMP ESI,EDX
JG 0x00048c1d
ADD EBX,0x3
AND EBX,0xfffffffc
LEA EDX,[EAX + EBX*0x1]
MOV word ptr [EDX + 0x2],CX
MOV word ptr [EDX],0x8
MOV ECX,dword ptr [ESP + 0xc]
MOV dword ptr [EDX + 0x4],ECX
MOV ESI,dword ptr [EAX]
LEA EDX,[ESI + 0xb]
AND EDX,0xfffffffc
MOV dword ptr [EAX],EDX
XOR EAX,EAX
POP EBX
POP ESI
RET 0x4
MOV EAX,0xffffffff
POP EBX
POP ESI
RET 0x4
(translation_unit "undefined4 __regparm3 FUN_00048be5(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)\n\n{\n  undefined2 *puVar1;\n  \n  if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00048be5(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)\n\n{\n  undefined2 *puVar1;\n  \n  if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }\n  return 0xffffffff;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00048be5(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)" identifier (parameter_list "(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined2 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined2 *puVar1;\n  \n  if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }\n  return 0xffffffff;\n}" { (declaration "undefined2 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }" if (parenthesized_expression "((int)(*param_1 + 0xb & 0xfffffffc) <= param_2)" ( (binary_expression "(int)(*param_1 + 0xb & 0xfffffffc) <= param_2" (cast_expression "(int)(*param_1 + 0xb & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*param_1 + 0xb & 0xfffffffc)" ( (binary_expression "*param_1 + 0xb & 0xfffffffc" (binary_expression "*param_1 + 0xb" (pointer_expression "*param_1" * identifier) + number_literal) & number_literal) ))) <= identifier) )) (compound_statement "{\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }" { (expression_statement "puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));" (assignment_expression "puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc))" identifier = (cast_expression "(undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc))" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + (*param_1 + 3 & 0xfffffffc))" ( (binary_expression "(int)param_1 + (*param_1 + 3 & 0xfffffffc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(*param_1 + 3 & 0xfffffffc)" ( (binary_expression "*param_1 + 3 & 0xfffffffc" (binary_expression "*param_1 + 3" (pointer_expression "*param_1" * identifier) + number_literal) & number_literal) ))) )))) ;) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = 8;" (assignment_expression "*puVar1 = 8" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar1 + 2) = param_4;" (assignment_expression "*(undefined4 *)(puVar1 + 2) = param_4" (pointer_expression "*(undefined4 *)(puVar1 + 2)" * (cast_expression "(undefined4 *)(puVar1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_1 = *param_1 + 0xb & 0xfffffffc;" (assignment_expression "*param_1 = *param_1 + 0xb & 0xfffffffc" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + 0xb & 0xfffffffc" (binary_expression "*param_1 + 0xb" (pointer_expression "*param_1" * identifier) + number_literal) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "int __regparm3 addattr32(nlmsghdr *n,int maxlen,int type,uint32_t data)\n\n{\n  undefined2 *puVar1;\n  \n  if ((int)(n->nlmsg_len + 0xb & 0xfffffffc) <= maxlen) {\n    puVar1 = (undefined2 *)((int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc));\n    puVar1[1] = (short)type;\n    *puVar1 = 8;\n    *(uint32_t *)(puVar1 + 2) = data;\n    n->nlmsg_len = n->nlmsg_len + 0xb & 0xfffffffc;\n    return 0;\n  }\n  return -1;\n}\n\n" (function_definition "int __regparm3 addattr32(nlmsghdr *n,int maxlen,int type,uint32_t data)\n\n{\n  undefined2 *puVar1;\n  \n  if ((int)(n->nlmsg_len + 0xb & 0xfffffffc) <= maxlen) {\n    puVar1 = (undefined2 *)((int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc));\n    puVar1[1] = (short)type;\n    *puVar1 = 8;\n    *(uint32_t *)(puVar1 + 2) = data;\n    n->nlmsg_len = n->nlmsg_len + 0xb & 0xfffffffc;\n    return 0;\n  }\n  return -1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "addattr32(nlmsghdr *n,int maxlen,int type,uint32_t data)" identifier (parameter_list "(nlmsghdr *n,int maxlen,int type,uint32_t data)" ( (parameter_declaration "nlmsghdr *n" type_identifier (pointer_declarator "*n" * identifier)) , (parameter_declaration "int maxlen" primitive_type identifier) , (parameter_declaration "int type" primitive_type identifier) , (parameter_declaration "uint32_t data" primitive_type identifier) ))) (compound_statement "{\n  undefined2 *puVar1;\n  \n  if ((int)(n->nlmsg_len + 0xb & 0xfffffffc) <= maxlen) {\n    puVar1 = (undefined2 *)((int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc));\n    puVar1[1] = (short)type;\n    *puVar1 = 8;\n    *(uint32_t *)(puVar1 + 2) = data;\n    n->nlmsg_len = n->nlmsg_len + 0xb & 0xfffffffc;\n    return 0;\n  }\n  return -1;\n}" { (declaration "undefined2 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if ((int)(n->nlmsg_len + 0xb & 0xfffffffc) <= maxlen) {\n    puVar1 = (undefined2 *)((int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc));\n    puVar1[1] = (short)type;\n    *puVar1 = 8;\n    *(uint32_t *)(puVar1 + 2) = data;\n    n->nlmsg_len = n->nlmsg_len + 0xb & 0xfffffffc;\n    return 0;\n  }" if (parenthesized_expression "((int)(n->nlmsg_len + 0xb & 0xfffffffc) <= maxlen)" ( (binary_expression "(int)(n->nlmsg_len + 0xb & 0xfffffffc) <= maxlen" (cast_expression "(int)(n->nlmsg_len + 0xb & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(n->nlmsg_len + 0xb & 0xfffffffc)" ( (binary_expression "n->nlmsg_len + 0xb & 0xfffffffc" (binary_expression "n->nlmsg_len + 0xb" (field_expression "n->nlmsg_len" identifier -> field_identifier) + number_literal) & number_literal) ))) <= identifier) )) (compound_statement "{\n    puVar1 = (undefined2 *)((int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc));\n    puVar1[1] = (short)type;\n    *puVar1 = 8;\n    *(uint32_t *)(puVar1 + 2) = data;\n    n->nlmsg_len = n->nlmsg_len + 0xb & 0xfffffffc;\n    return 0;\n  }" { (expression_statement "puVar1 = (undefined2 *)((int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc));" (assignment_expression "puVar1 = (undefined2 *)((int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc))" identifier = (cast_expression "(undefined2 *)((int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc))" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc))" ( (binary_expression "(int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc)" (cast_expression "(int)&n->nlmsg_len" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&n->nlmsg_len" & (field_expression "n->nlmsg_len" identifier -> field_identifier))) + (parenthesized_expression "(n->nlmsg_len + 3 & 0xfffffffc)" ( (binary_expression "n->nlmsg_len + 3 & 0xfffffffc" (binary_expression "n->nlmsg_len + 3" (field_expression "n->nlmsg_len" identifier -> field_identifier) + number_literal) & number_literal) ))) )))) ;) (expression_statement "puVar1[1] = (short)type;" (assignment_expression "puVar1[1] = (short)type" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (cast_expression "(short)type" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "*puVar1 = 8;" (assignment_expression "*puVar1 = 8" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(uint32_t *)(puVar1 + 2) = data;" (assignment_expression "*(uint32_t *)(puVar1 + 2) = data" (pointer_expression "*(uint32_t *)(puVar1 + 2)" * (cast_expression "(uint32_t *)(puVar1 + 2)" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "n->nlmsg_len = n->nlmsg_len + 0xb & 0xfffffffc;" (assignment_expression "n->nlmsg_len = n->nlmsg_len + 0xb & 0xfffffffc" (field_expression "n->nlmsg_len" identifier -> field_identifier) = (binary_expression "n->nlmsg_len + 0xb & 0xfffffffc" (binary_expression "n->nlmsg_len + 0xb" (field_expression "n->nlmsg_len" identifier -> field_identifier) + number_literal) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_00048be5(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)\n\n{\n  undefined2 *puVar1;\n  \n  if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00048be5(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)\n\n{\n  undefined2 *puVar1;\n  \n  if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }\n  return 0xffffffff;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00048be5(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)" identifier (parameter_list "(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined2 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined2 *puVar1;\n  \n  if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }\n  return 0xffffffff;\n}" { (declaration "undefined2 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }" if (parenthesized_expression "((int)(*param_1 + 0xb & 0xfffffffc) <= param_2)" ( (binary_expression "(int)(*param_1 + 0xb & 0xfffffffc) <= param_2" (cast_expression "(int)(*param_1 + 0xb & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*param_1 + 0xb & 0xfffffffc)" ( (binary_expression "*param_1 + 0xb & 0xfffffffc" (binary_expression "*param_1 + 0xb" (pointer_expression "*param_1" * identifier) + number_literal) & number_literal) ))) <= identifier) )) (compound_statement "{\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }" { (expression_statement "puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));" (assignment_expression "puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc))" identifier = (cast_expression "(undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc))" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + (*param_1 + 3 & 0xfffffffc))" ( (binary_expression "(int)param_1 + (*param_1 + 3 & 0xfffffffc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(*param_1 + 3 & 0xfffffffc)" ( (binary_expression "*param_1 + 3 & 0xfffffffc" (binary_expression "*param_1 + 3" (pointer_expression "*param_1" * identifier) + number_literal) & number_literal) ))) )))) ;) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = 8;" (assignment_expression "*puVar1 = 8" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar1 + 2) = param_4;" (assignment_expression "*(undefined4 *)(puVar1 + 2) = param_4" (pointer_expression "*(undefined4 *)(puVar1 + 2)" * (cast_expression "(undefined4 *)(puVar1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_1 = *param_1 + 0xb & 0xfffffffc;" (assignment_expression "*param_1 = *param_1 + 0xb & 0xfffffffc" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + 0xb & 0xfffffffc" (binary_expression "*param_1 + 0xb" (pointer_expression "*param_1" * identifier) + number_literal) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) & LIT) ))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) & LIT) ))) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) & LIT)) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00048be5(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)\n\n{\n  undefined2 *puVar1;\n  \n  if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }\n  return 0xffffffff;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00048be5(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)" (identifier "FUN_00048be5") (parameter_list "(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined2 param_3" (type_identifier "undefined2") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined2 *puVar1;\n  \n  if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }\n  return 0xffffffff;\n}" ({ "{") (declaration "undefined2 *puVar1;" (type_identifier "undefined2") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }" (if "if") (parenthesized_expression "((int)(*param_1 + 0xb & 0xfffffffc) <= param_2)" (( "(") (binary_expression "(int)(*param_1 + 0xb & 0xfffffffc) <= param_2" (cast_expression "(int)(*param_1 + 0xb & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(*param_1 + 0xb & 0xfffffffc)" (( "(") (binary_expression "*param_1 + 0xb & 0xfffffffc" (binary_expression "*param_1 + 0xb" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xb")) (& "&") (number_literal "0xfffffffc")) () ")"))) (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));\n    puVar1[1] = param_3;\n    *puVar1 = 8;\n    *(undefined4 *)(puVar1 + 2) = param_4;\n    *param_1 = *param_1 + 0xb & 0xfffffffc;\n    return 0;\n  }" ({ "{") (expression_statement "puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));" (assignment_expression "puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc))" (identifier "puVar1") (= "=") (cast_expression "(undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc))" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + (*param_1 + 3 & 0xfffffffc))" (( "(") (binary_expression "(int)param_1 + (*param_1 + 3 & 0xfffffffc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (parenthesized_expression "(*param_1 + 3 & 0xfffffffc)" (( "(") (binary_expression "*param_1 + 3 & 0xfffffffc" (binary_expression "*param_1 + 3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "3")) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")")))) (; ";")) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*puVar1 = 8;" (assignment_expression "*puVar1 = 8" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "8")) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 2) = param_4;" (assignment_expression "*(undefined4 *)(puVar1 + 2) = param_4" (pointer_expression "*(undefined4 *)(puVar1 + 2)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*param_1 = *param_1 + 0xb & 0xfffffffc;" (assignment_expression "*param_1 = *param_1 + 0xb & 0xfffffffc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*param_1 + 0xb & 0xfffffffc" (binary_expression "*param_1 + 0xb" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xb")) (& "&") (number_literal "0xfffffffc"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *n,int var_1,int type,uint32_t data)

{
  type_2 *var_2;
  
  if ((int)(n->nlmsg_len + 0xb & 0xfffffffc) <= var_1) {
    var_2 = (type_2 *)((int)&n->nlmsg_len + (n->nlmsg_len + 3 & 0xfffffffc));
    var_2[1] = (short)type;
    *var_2 = 8;
    *(uint32_t *)(var_2 + 2) = data;
    n->nlmsg_len = n->nlmsg_len + 0xb & 0xfffffffc;
    return 0;
  }
  return -1;
}


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

undefined4 __regparm3 MASKED(uint *param_1,int param_2,undefined2 param_3,undefined4 param_4)

{
  undefined2 *puVar1;
  
  if ((int)(*param_1 + 0xb & 0xfffffffc) <= param_2) {
    puVar1 = (undefined2 *)((int)param_1 + (*param_1 + 3 & 0xfffffffc));
    puVar1[1] = param_3;
    *puVar1 = 8;
    *(undefined4 *)(puVar1 + 2) = param_4;
    *param_1 = *param_1 + 0xb & 0xfffffffc;
    return 0;
  }
  return 0xffffffff;
}

