
void dlg_cleanup(dlgparam *dp)

{
  void *e;
  
  freetree234(dp->byctrl);
  dp->byctrl = (tree234 *)0x0;
  while( true ) {
    e = index234(dp->bywidget,0);
    if (e == (void *)0x0) break;
    del234(dp->bywidget,e);
    safefree(*(void **)((long)e + 0x10));
    safefree(e);
  }
  freetree234(dp->bywidget);
  dp->bywidget = (tree234 *)0x0;
  return;
}



void FUN_00136626(undefined8 *param_1)

{
  long lVar1;
  
  FUN_0013310b(*param_1);
  *param_1 = 0;
  while( true ) {
    lVar1 = FUN_00133179(param_1[1],0);
    if (lVar1 == 0) break;
    FUN_0013341c(param_1[1],lVar1);
    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));
    FUN_001217b3(lVar1);
  }
  FUN_0013310b(param_1[1]);
  param_1[1] = 0;
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBP,RDI
MOV RDI,qword ptr [RDI]
CALL 0x0013310b
MOV qword ptr [RBP],0x0
MOV RDI,qword ptr [RBP + 0x8]
MOV ESI,0x0
CALL 0x00133179
MOV RBX,RAX
TEST RAX,RAX
JZ 0x00136674
MOV RDI,qword ptr [RBP + 0x8]
MOV RSI,RBX
CALL 0x0013341c
MOV RDI,qword ptr [RBX + 0x10]
CALL 0x001217b3
MOV RDI,RBX
CALL 0x001217b3
JMP 0x0013663f
MOV RDI,qword ptr [RBP + 0x8]
CALL 0x0013310b
MOV qword ptr [RBP + 0x8],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "void FUN_00136626(undefined8 *param_1)\n\n{\n  long lVar1;\n  \n  FUN_0013310b(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }\n  FUN_0013310b(param_1[1]);\n  param_1[1] = 0;\n  return;\n}\n\n" (function_definition "void FUN_00136626(undefined8 *param_1)\n\n{\n  long lVar1;\n  \n  FUN_0013310b(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }\n  FUN_0013310b(param_1[1]);\n  param_1[1] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00136626(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  FUN_0013310b(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }\n  FUN_0013310b(param_1[1]);\n  param_1[1] = 0;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "FUN_0013310b(*param_1);" (call_expression "FUN_0013310b(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (while_statement "while( true ) {\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }" { (expression_statement "lVar1 = FUN_00133179(param_1[1],0);" (assignment_expression "lVar1 = FUN_00133179(param_1[1],0)" identifier = (call_expression "FUN_00133179(param_1[1],0)" identifier (argument_list "(param_1[1],0)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , number_literal )))) ;) (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "FUN_0013341c(param_1[1],lVar1);" (call_expression "FUN_0013341c(param_1[1],lVar1)" identifier (argument_list "(param_1[1],lVar1)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));" (call_expression "FUN_001217b3(*(undefined8 *)(lVar1 + 0x10))" identifier (argument_list "(*(undefined8 *)(lVar1 + 0x10))" ( (pointer_expression "*(undefined8 *)(lVar1 + 0x10)" * (cast_expression "(undefined8 *)(lVar1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_001217b3(lVar1);" (call_expression "FUN_001217b3(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) })) (expression_statement "FUN_0013310b(param_1[1]);" (call_expression "FUN_0013310b(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void dlg_cleanup(dlgparam *dp)\n\n{\n  void *e;\n  \n  freetree234(dp->byctrl);\n  dp->byctrl = (tree234 *)0x0;\n  while( true ) {\n    e = index234(dp->bywidget,0);\n    if (e == (void *)0x0) break;\n    del234(dp->bywidget,e);\n    safefree(*(void **)((long)e + 0x10));\n    safefree(e);\n  }\n  freetree234(dp->bywidget);\n  dp->bywidget = (tree234 *)0x0;\n  return;\n}\n\n" (function_definition "void dlg_cleanup(dlgparam *dp)\n\n{\n  void *e;\n  \n  freetree234(dp->byctrl);\n  dp->byctrl = (tree234 *)0x0;\n  while( true ) {\n    e = index234(dp->bywidget,0);\n    if (e == (void *)0x0) break;\n    del234(dp->bywidget,e);\n    safefree(*(void **)((long)e + 0x10));\n    safefree(e);\n  }\n  freetree234(dp->bywidget);\n  dp->bywidget = (tree234 *)0x0;\n  return;\n}" primitive_type (function_declarator "dlg_cleanup(dlgparam *dp)" identifier (parameter_list "(dlgparam *dp)" ( (parameter_declaration "dlgparam *dp" type_identifier (pointer_declarator "*dp" * identifier)) ))) (compound_statement "{\n  void *e;\n  \n  freetree234(dp->byctrl);\n  dp->byctrl = (tree234 *)0x0;\n  while( true ) {\n    e = index234(dp->bywidget,0);\n    if (e == (void *)0x0) break;\n    del234(dp->bywidget,e);\n    safefree(*(void **)((long)e + 0x10));\n    safefree(e);\n  }\n  freetree234(dp->bywidget);\n  dp->bywidget = (tree234 *)0x0;\n  return;\n}" { (declaration "void *e;" primitive_type (pointer_declarator "*e" * identifier) ;) (expression_statement "freetree234(dp->byctrl);" (call_expression "freetree234(dp->byctrl)" identifier (argument_list "(dp->byctrl)" ( (field_expression "dp->byctrl" identifier -> field_identifier) ))) ;) (expression_statement "dp->byctrl = (tree234 *)0x0;" (assignment_expression "dp->byctrl = (tree234 *)0x0" (field_expression "dp->byctrl" identifier -> field_identifier) = (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (while_statement "while( true ) {\n    e = index234(dp->bywidget,0);\n    if (e == (void *)0x0) break;\n    del234(dp->bywidget,e);\n    safefree(*(void **)((long)e + 0x10));\n    safefree(e);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    e = index234(dp->bywidget,0);\n    if (e == (void *)0x0) break;\n    del234(dp->bywidget,e);\n    safefree(*(void **)((long)e + 0x10));\n    safefree(e);\n  }" { (expression_statement "e = index234(dp->bywidget,0);" (assignment_expression "e = index234(dp->bywidget,0)" identifier = (call_expression "index234(dp->bywidget,0)" identifier (argument_list "(dp->bywidget,0)" ( (field_expression "dp->bywidget" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if (e == (void *)0x0) break;" if (parenthesized_expression "(e == (void *)0x0)" ( (binary_expression "e == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "del234(dp->bywidget,e);" (call_expression "del234(dp->bywidget,e)" identifier (argument_list "(dp->bywidget,e)" ( (field_expression "dp->bywidget" identifier -> field_identifier) , identifier ))) ;) (expression_statement "safefree(*(void **)((long)e + 0x10));" (call_expression "safefree(*(void **)((long)e + 0x10))" identifier (argument_list "(*(void **)((long)e + 0x10))" ( (pointer_expression "*(void **)((long)e + 0x10)" * (cast_expression "(void **)((long)e + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)e + 0x10)" ( (binary_expression "(long)e + 0x10" (cast_expression "(long)e" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ))) ;) (expression_statement "safefree(e);" (call_expression "safefree(e)" identifier (argument_list "(e)" ( identifier ))) ;) })) (expression_statement "freetree234(dp->bywidget);" (call_expression "freetree234(dp->bywidget)" identifier (argument_list "(dp->bywidget)" ( (field_expression "dp->bywidget" identifier -> field_identifier) ))) ;) (expression_statement "dp->bywidget = (tree234 *)0x0;" (assignment_expression "dp->bywidget = (tree234 *)0x0" (field_expression "dp->bywidget" identifier -> field_identifier) = (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00136626(undefined8 *param_1)\n\n{\n  long lVar1;\n  \n  FUN_0013310b(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }\n  FUN_0013310b(param_1[1]);\n  param_1[1] = 0;\n  return;\n}\n\n" (function_definition "void FUN_00136626(undefined8 *param_1)\n\n{\n  long lVar1;\n  \n  FUN_0013310b(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }\n  FUN_0013310b(param_1[1]);\n  param_1[1] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00136626(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  FUN_0013310b(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }\n  FUN_0013310b(param_1[1]);\n  param_1[1] = 0;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "FUN_0013310b(*param_1);" (call_expression "FUN_0013310b(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (while_statement "while( true ) {\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }" { (expression_statement "lVar1 = FUN_00133179(param_1[1],0);" (assignment_expression "lVar1 = FUN_00133179(param_1[1],0)" identifier = (call_expression "FUN_00133179(param_1[1],0)" identifier (argument_list "(param_1[1],0)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , number_literal )))) ;) (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "FUN_0013341c(param_1[1],lVar1);" (call_expression "FUN_0013341c(param_1[1],lVar1)" identifier (argument_list "(param_1[1],lVar1)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));" (call_expression "FUN_001217b3(*(undefined8 *)(lVar1 + 0x10))" identifier (argument_list "(*(undefined8 *)(lVar1 + 0x10))" ( (pointer_expression "*(undefined8 *)(lVar1 + 0x10)" * (cast_expression "(undefined8 *)(lVar1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_001217b3(lVar1);" (call_expression "FUN_001217b3(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) })) (expression_statement "FUN_0013310b(param_1[1]);" (call_expression "FUN_0013310b(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00136626(undefined8 *param_1)\n\n{\n  long lVar1;\n  \n  FUN_0013310b(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }\n  FUN_0013310b(param_1[1]);\n  param_1[1] = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00136626(undefined8 *param_1)" (identifier "FUN_00136626") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  FUN_0013310b(*param_1);\n  *param_1 = 0;\n  while( true ) {\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }\n  FUN_0013310b(param_1[1]);\n  param_1[1] = 0;\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "FUN_0013310b(*param_1);" (call_expression "FUN_0013310b(*param_1)" (identifier "FUN_0013310b") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    lVar1 = FUN_00133179(param_1[1],0);\n    if (lVar1 == 0) break;\n    FUN_0013341c(param_1[1],lVar1);\n    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));\n    FUN_001217b3(lVar1);\n  }" ({ "{") (expression_statement "lVar1 = FUN_00133179(param_1[1],0);" (assignment_expression "lVar1 = FUN_00133179(param_1[1],0)" (identifier "lVar1") (= "=") (call_expression "FUN_00133179(param_1[1],0)" (identifier "FUN_00133179") (argument_list "(param_1[1],0)" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (lVar1 == 0) break;" (if "if") (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "FUN_0013341c(param_1[1],lVar1);" (call_expression "FUN_0013341c(param_1[1],lVar1)" (identifier "FUN_0013341c") (argument_list "(param_1[1],lVar1)" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "lVar1") () ")"))) (; ";")) (expression_statement "FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));" (call_expression "FUN_001217b3(*(undefined8 *)(lVar1 + 0x10))" (identifier "FUN_001217b3") (argument_list "(*(undefined8 *)(lVar1 + 0x10))" (( "(") (pointer_expression "*(undefined8 *)(lVar1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_001217b3(lVar1);" (call_expression "FUN_001217b3(lVar1)" (identifier "FUN_001217b3") (argument_list "(lVar1)" (( "(") (identifier "lVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0013310b(param_1[1]);" (call_expression "FUN_0013310b(param_1[1])" (identifier "FUN_0013310b") (argument_list "(param_1[1])" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *dp)

{
  void *var_3;
  
  var_1(dp->byctrl);
  dp->byctrl = (type_2 *)0x0;
  while( true ) {
    var_3 = var_2(dp->bywidget,0);
    if (var_3 == (void *)0x0) break;
    var_4(dp->bywidget,var_3);
    var_5(*(void **)((long)var_3 + 0x10));
    var_5(var_3);
  }
  var_1(dp->bywidget);
  dp->bywidget = (type_2 *)0x0;
  return;
}


(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: (sized_type_specifier) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))))

void MASKED(undefined8 *param_1)

{
  long lVar1;
  
  FUN_0013310b(*param_1);
  *param_1 = 0;
  while( true ) {
    lVar1 = FUN_00133179(param_1[1],0);
    if (lVar1 == 0) break;
    FUN_0013341c(param_1[1],lVar1);
    FUN_001217b3(*(undefined8 *)(lVar1 + 0x10));
    FUN_001217b3(lVar1);
  }
  FUN_0013310b(param_1[1]);
  param_1[1] = 0;
  return;
}

