
int rc4_stream_done(rc4_state *st)

{
  ulong uVar1;
  undefined8 *puVar2;
  
  if (st != (rc4_state *)0x0) {
    st->x = 0;
    st->y = 0;
    st->buf[0xf8] = '\0';
    st->buf[0xf9] = '\0';
    st->buf[0xfa] = '\0';
    st->buf[0xfb] = '\0';
    st->buf[0xfc] = '\0';
    st->buf[0xfd] = '\0';
    st->buf[0xfe] = '\0';
    st->buf[0xff] = '\0';
    puVar2 = (undefined8 *)((ulong)st->buf & 0xfffffffffffffff8);
    uVar1 = (ulong)(((int)st - (int)puVar2) + 0x108U >> 3);
    for (; uVar1 != 0; uVar1 = uVar1 - 1) {
      *puVar2 = 0;
      puVar2 = puVar2 + 1;
    }
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);
}



void rc4_stream_done(undefined8 *param_1)

{
  ulong uVar1;
  undefined8 *puVar2;
  
  if (param_1 != (undefined8 *)0x0) {
    *param_1 = 0;
    param_1[0x20] = 0;
    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);
    for (uVar1 = (ulong)(((int)param_1 -
                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>
                        3); uVar1 != 0; uVar1 = uVar1 - 1) {
      *puVar2 = 0;
      puVar2 = puVar2 + 1;
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);
}


TEST RDI,RDI
JZ 0x0018b104
LEA RDX,[RDI + 0x8]
MOV qword ptr [RDI],0x0
XOR EAX,EAX
MOV qword ptr [RDI + 0x100],0x0
AND RDX,-0x8
SUB RDI,RDX
LEA ECX,[RDI + 0x108]
MOV RDI,RDX
SHR ECX,0x3
STOSQ.REP RDI
RET
PUSH RAX
MOV EDX,0x66
LEA RSI,[0x1c72af]
LEA RDI,[0x1c2da3]
CALL 0x00114270
(translation_unit "void rc4_stream_done(undefined8 *param_1)\n\n{\n  ulong uVar1;\n  undefined8 *puVar2;\n  \n  if (param_1 != (undefined8 *)0x0) {\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);\n}\n\n" (function_definition "void rc4_stream_done(undefined8 *param_1)\n\n{\n  ulong uVar1;\n  undefined8 *puVar2;\n  \n  if (param_1 != (undefined8 *)0x0) {\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);\n}" primitive_type (function_declarator "rc4_stream_done(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  undefined8 *puVar2;\n  \n  if (param_1 != (undefined8 *)0x0) {\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_1 != (undefined8 *)0x0) {\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }" if (parenthesized_expression "(param_1 != (undefined8 *)0x0)" ( (binary_expression "param_1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[0x20] = 0;" (assignment_expression "param_1[0x20] = 0" (subscript_expression "param_1[0x20]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);" (assignment_expression "puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(param_1 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(param_1 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" for ( (assignment_expression "uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3)" identifier = (call_expression "(ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3)" ( (binary_expression "((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3" (binary_expression "((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U" (parenthesized_expression "((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8))" ( (binary_expression "(int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(param_1 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(param_1 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) ))))) )) + number_literal) >> number_literal) )))) ; (binary_expression "uVar1 != 0" identifier != number_literal) ; (assignment_expression "uVar1 = uVar1 - 1" identifier = (binary_expression "uVar1 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return;" return ;) })) comment (expression_statement "crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);" (call_expression "crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66)" identifier (argument_list "("st != NULL","src/stream/rc4/rc4_stream.c",0x66)" ( (string_literal ""st != NULL"" " string_content ") , (string_literal ""src/stream/rc4/rc4_stream.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "int rc4_stream_done(rc4_state *st)\n\n{\n  ulong uVar1;\n  undefined8 *puVar2;\n  \n  if (st != (rc4_state *)0x0) {\n    st->x = 0;\n    st->y = 0;\n    st->buf[0xf8] = '\0';\n    st->buf[0xf9] = '\0';\n    st->buf[0xfa] = '\0';\n    st->buf[0xfb] = '\0';\n    st->buf[0xfc] = '\0';\n    st->buf[0xfd] = '\0';\n    st->buf[0xfe] = '\0';\n    st->buf[0xff] = '\0';\n    puVar2 = (undefined8 *)((ulong)st->buf & 0xfffffffffffffff8);\n    uVar1 = (ulong)(((int)st - (int)puVar2) + 0x108U >> 3);\n    for (; uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);\n}\n\n" (function_definition "int rc4_stream_done(rc4_state *st)\n\n{\n  ulong uVar1;\n  undefined8 *puVar2;\n  \n  if (st != (rc4_state *)0x0) {\n    st->x = 0;\n    st->y = 0;\n    st->buf[0xf8] = '\0';\n    st->buf[0xf9] = '\0';\n    st->buf[0xfa] = '\0';\n    st->buf[0xfb] = '\0';\n    st->buf[0xfc] = '\0';\n    st->buf[0xfd] = '\0';\n    st->buf[0xfe] = '\0';\n    st->buf[0xff] = '\0';\n    puVar2 = (undefined8 *)((ulong)st->buf & 0xfffffffffffffff8);\n    uVar1 = (ulong)(((int)st - (int)puVar2) + 0x108U >> 3);\n    for (; uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);\n}" primitive_type (function_declarator "rc4_stream_done(rc4_state *st)" identifier (parameter_list "(rc4_state *st)" ( (parameter_declaration "rc4_state *st" type_identifier (pointer_declarator "*st" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  undefined8 *puVar2;\n  \n  if (st != (rc4_state *)0x0) {\n    st->x = 0;\n    st->y = 0;\n    st->buf[0xf8] = '\0';\n    st->buf[0xf9] = '\0';\n    st->buf[0xfa] = '\0';\n    st->buf[0xfb] = '\0';\n    st->buf[0xfc] = '\0';\n    st->buf[0xfd] = '\0';\n    st->buf[0xfe] = '\0';\n    st->buf[0xff] = '\0';\n    puVar2 = (undefined8 *)((ulong)st->buf & 0xfffffffffffffff8);\n    uVar1 = (ulong)(((int)st - (int)puVar2) + 0x108U >> 3);\n    for (; uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (st != (rc4_state *)0x0) {\n    st->x = 0;\n    st->y = 0;\n    st->buf[0xf8] = '\0';\n    st->buf[0xf9] = '\0';\n    st->buf[0xfa] = '\0';\n    st->buf[0xfb] = '\0';\n    st->buf[0xfc] = '\0';\n    st->buf[0xfd] = '\0';\n    st->buf[0xfe] = '\0';\n    st->buf[0xff] = '\0';\n    puVar2 = (undefined8 *)((ulong)st->buf & 0xfffffffffffffff8);\n    uVar1 = (ulong)(((int)st - (int)puVar2) + 0x108U >> 3);\n    for (; uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return 0;\n  }" if (parenthesized_expression "(st != (rc4_state *)0x0)" ( (binary_expression "st != (rc4_state *)0x0" identifier != (cast_expression "(rc4_state *)0x0" ( (type_descriptor "rc4_state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    st->x = 0;\n    st->y = 0;\n    st->buf[0xf8] = '\0';\n    st->buf[0xf9] = '\0';\n    st->buf[0xfa] = '\0';\n    st->buf[0xfb] = '\0';\n    st->buf[0xfc] = '\0';\n    st->buf[0xfd] = '\0';\n    st->buf[0xfe] = '\0';\n    st->buf[0xff] = '\0';\n    puVar2 = (undefined8 *)((ulong)st->buf & 0xfffffffffffffff8);\n    uVar1 = (ulong)(((int)st - (int)puVar2) + 0x108U >> 3);\n    for (; uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return 0;\n  }" { (expression_statement "st->x = 0;" (assignment_expression "st->x = 0" (field_expression "st->x" identifier -> field_identifier) = number_literal) ;) (expression_statement "st->y = 0;" (assignment_expression "st->y = 0" (field_expression "st->y" identifier -> field_identifier) = number_literal) ;) (expression_statement "st->buf[0xf8] = '\0';" (assignment_expression "st->buf[0xf8] = '\0'" (subscript_expression "st->buf[0xf8]" (field_expression "st->buf" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "st->buf[0xf9] = '\0';" (assignment_expression "st->buf[0xf9] = '\0'" (subscript_expression "st->buf[0xf9]" (field_expression "st->buf" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "st->buf[0xfa] = '\0';" (assignment_expression "st->buf[0xfa] = '\0'" (subscript_expression "st->buf[0xfa]" (field_expression "st->buf" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "st->buf[0xfb] = '\0';" (assignment_expression "st->buf[0xfb] = '\0'" (subscript_expression "st->buf[0xfb]" (field_expression "st->buf" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "st->buf[0xfc] = '\0';" (assignment_expression "st->buf[0xfc] = '\0'" (subscript_expression "st->buf[0xfc]" (field_expression "st->buf" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "st->buf[0xfd] = '\0';" (assignment_expression "st->buf[0xfd] = '\0'" (subscript_expression "st->buf[0xfd]" (field_expression "st->buf" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "st->buf[0xfe] = '\0';" (assignment_expression "st->buf[0xfe] = '\0'" (subscript_expression "st->buf[0xfe]" (field_expression "st->buf" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "st->buf[0xff] = '\0';" (assignment_expression "st->buf[0xff] = '\0'" (subscript_expression "st->buf[0xff]" (field_expression "st->buf" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "puVar2 = (undefined8 *)((ulong)st->buf & 0xfffffffffffffff8);" (assignment_expression "puVar2 = (undefined8 *)((ulong)st->buf & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)st->buf & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)st->buf & 0xfffffffffffffff8)" ( (binary_expression "(ulong)st->buf & 0xfffffffffffffff8" (cast_expression "(ulong)st->buf" ( (type_descriptor "ulong" type_identifier) ) (field_expression "st->buf" identifier -> field_identifier)) & number_literal) )))) ;) (expression_statement "uVar1 = (ulong)(((int)st - (int)puVar2) + 0x108U >> 3);" (assignment_expression "uVar1 = (ulong)(((int)st - (int)puVar2) + 0x108U >> 3)" identifier = (call_expression "(ulong)(((int)st - (int)puVar2) + 0x108U >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(((int)st - (int)puVar2) + 0x108U >> 3)" ( (binary_expression "((int)st - (int)puVar2) + 0x108U >> 3" (binary_expression "((int)st - (int)puVar2) + 0x108U" (parenthesized_expression "((int)st - (int)puVar2)" ( (binary_expression "(int)st - (int)puVar2" (cast_expression "(int)st" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal) >> number_literal) )))) ;) (for_statement "for (; uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" for ( ; (binary_expression "uVar1 != 0" identifier != number_literal) ; (assignment_expression "uVar1 = uVar1 - 1" identifier = (binary_expression "uVar1 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);" (call_expression "crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66)" identifier (argument_list "("st != NULL","src/stream/rc4/rc4_stream.c",0x66)" ( (string_literal ""st != NULL"" " string_content ") , (string_literal ""src/stream/rc4/rc4_stream.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "void rc4_stream_done(undefined8 *param_1)\n\n{\n  ulong uVar1;\n  undefined8 *puVar2;\n  \n  if (param_1 != (undefined8 *)0x0) {\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }\n                    \n  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);\n}\n\n" (function_definition "void rc4_stream_done(undefined8 *param_1)\n\n{\n  ulong uVar1;\n  undefined8 *puVar2;\n  \n  if (param_1 != (undefined8 *)0x0) {\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }\n                    \n  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);\n}" primitive_type (function_declarator "rc4_stream_done(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  undefined8 *puVar2;\n  \n  if (param_1 != (undefined8 *)0x0) {\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }\n                    \n  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_1 != (undefined8 *)0x0) {\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }" if (parenthesized_expression "(param_1 != (undefined8 *)0x0)" ( (binary_expression "param_1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[0x20] = 0;" (assignment_expression "param_1[0x20] = 0" (subscript_expression "param_1[0x20]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);" (assignment_expression "puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(param_1 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(param_1 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" for ( (assignment_expression "uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3)" identifier = (call_expression "(ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3)" ( (binary_expression "((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3" (binary_expression "((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U" (parenthesized_expression "((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8))" ( (binary_expression "(int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(param_1 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(param_1 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) ))))) )) + number_literal) >> number_literal) )))) ; (binary_expression "uVar1 != 0" identifier != number_literal) ; (assignment_expression "uVar1 = uVar1 - 1" identifier = (binary_expression "uVar1 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return;" return ;) })) (expression_statement "crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);" (call_expression "crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66)" identifier (argument_list "("st != NULL","src/stream/rc4/rc4_stream.c",0x66)" ( (string_literal ""st != NULL"" " string_content ") , (string_literal ""src/stream/rc4/rc4_stream.c"" " string_content ") , 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 (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))))) )) + LIT) >> LIT) )))) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })))
(function_definition "void rc4_stream_done(undefined8 *param_1)\n\n{\n  ulong uVar1;\n  undefined8 *puVar2;\n  \n  if (param_1 != (undefined8 *)0x0) {\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }\n                    \n  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);\n}" (primitive_type "void") (function_declarator "rc4_stream_done(undefined8 *param_1)" (identifier "rc4_stream_done") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  ulong uVar1;\n  undefined8 *puVar2;\n  \n  if (param_1 != (undefined8 *)0x0) {\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }\n                    \n  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (param_1 != (undefined8 *)0x0) {\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != (undefined8 *)0x0)" (( "(") (binary_expression "param_1 != (undefined8 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_1 = 0;\n    param_1[0x20] = 0;\n    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);\n    for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }\n    return;\n  }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x20] = 0;" (assignment_expression "param_1[0x20] = 0" (subscript_expression "param_1[0x20]" (identifier "param_1") ([ "[") (number_literal "0x20") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);" (assignment_expression "puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulong)(param_1 + 1) & 0xfffffffffffffff8)" (( "(") (binary_expression "(ulong)(param_1 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffffffffff8")) () ")")))) (; ";")) (for_statement "for (uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3); uVar1 != 0; uVar1 = uVar1 - 1) {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" (for "for") (( "(") (assignment_expression "uVar1 = (ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3)" (identifier "uVar1") (= "=") (call_expression "(ulong)(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3)" (( "(") (binary_expression "((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>\n                        3" (binary_expression "((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U" (parenthesized_expression "((int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8))" (( "(") (binary_expression "(int)param_1 -\n                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (- "-") (cast_expression "(int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulong)(param_1 + 1) & 0xfffffffffffffff8)" (( "(") (binary_expression "(ulong)(param_1 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffffffffff8")) () ")"))))) () ")")) (+ "+") (number_literal "0x108U")) (>> ">>") (number_literal "3")) () ")")))) (; ";") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar1 = uVar1 - 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 - 1" (identifier "uVar1") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" ({ "{") (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);" (call_expression "crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66)" (identifier "crypt_argchk") (argument_list "("st != NULL","src/stream/rc4/rc4_stream.c",0x66)" (( "(") (string_literal ""st != NULL"" (" """) (string_content "st != NULL") (" """)) (, ",") (string_literal ""src/stream/rc4/rc4_stream.c"" (" """) (string_content "src/stream/rc4/rc4_stream.c") (" """)) (, ",") (number_literal "0x66") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *var_1)

{
  type_2 var_2;
  type_3 *var_3;
  
  if (var_1 != (type_1 *)0x0) {
    var_1->x = 0;
    var_1->y = 0;
    var_1->buf[0xf8] = '\0';
    var_1->buf[0xf9] = '\0';
    var_1->buf[0xfa] = '\0';
    var_1->buf[0xfb] = '\0';
    var_1->buf[0xfc] = '\0';
    var_1->buf[0xfd] = '\0';
    var_1->buf[0xfe] = '\0';
    var_1->buf[0xff] = '\0';
    var_3 = (type_3 *)((type_2)var_1->buf & 0xfffffffffffffff8);
    var_2 = (type_2)(((int)var_1 - (int)var_3) + 0x108U >> 3);
    for (; var_2 != 0; var_2 = var_2 - 1) {
      *var_3 = 0;
      var_3 = var_3 + 1;
    }
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  var_4("st != NULL","src/stream/rc4/rc4_stream.c",0x66);
}


(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))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (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: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))))) (for_statement initializer: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))))))) right: (number_literal)) right: (number_literal))))) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal)))))))

void MASKED(undefined8 *param_1)

{
  ulong uVar1;
  undefined8 *puVar2;
  
  if (param_1 != (undefined8 *)0x0) {
    *param_1 = 0;
    param_1[0x20] = 0;
    puVar2 = (undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8);
    for (uVar1 = (ulong)(((int)param_1 -
                         (int)(undefined8 *)((ulong)(param_1 + 1) & 0xfffffffffffffff8)) + 0x108U >>
                        3); uVar1 != 0; uVar1 = uVar1 - 1) {
      *puVar2 = 0;
      puVar2 = puVar2 + 1;
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("st != NULL","src/stream/rc4/rc4_stream.c",0x66);
}

