
control * ctrl_filesel(controlset *s,char *label,char shortcut,char *filter,int write,char *title,
                      intorptr helpctx,handler_fn handler,intorptr context)

{
  control *pcVar1;
  char *pcVar2;
  
  pcVar1 = ctrl_new(s,7,helpctx,handler,context);
  if (label != (char *)0x0) {
    label = dupstr(label);
  }
  (pcVar1->generic).label = label;
  (pcVar1->editbox).shortcut = shortcut;
  (pcVar1->fileselect).filter = filter;
  (pcVar1->listbox).percentwidth = write;
  pcVar2 = dupstr(title);
  (pcVar1->radio).shortcuts = pcVar2;
  return pcVar1;
}



long FUN_001229f6(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,
                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,
                 undefined8 param_9)

{
  long lVar1;
  undefined8 uVar2;
  
  lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);
  if (param_2 != 0) {
    param_2 = FUN_0012698b(param_2);
  }
  *(long *)(lVar1 + 8) = param_2;
  *(undefined1 *)(lVar1 + 0x30) = param_3;
  *(undefined8 *)(lVar1 + 0x38) = param_4;
  *(undefined4 *)(lVar1 + 0x40) = param_5;
  uVar2 = FUN_0012698b(param_6);
  *(undefined8 *)(lVar1 + 0x48) = uVar2;
  return lVar1;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBP,RSI
MOV R15D,EDX
MOV R14,RCX
MOV R13D,R8D
MOV R12,R9
MOV R8,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x40]
MOV ESI,0x7
CALL 0x00121ee1
MOV RBX,RAX
TEST RBP,RBP
JZ 0x00122a3f
MOV RDI,RBP
CALL 0x0012698b
MOV RBP,RAX
MOV qword ptr [RBX + 0x8],RBP
MOV byte ptr [RBX + 0x30],R15B
MOV qword ptr [RBX + 0x38],R14
MOV dword ptr [RBX + 0x40],R13D
MOV RDI,R12
CALL 0x0012698b
MOV qword ptr [RBX + 0x48],RAX
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "long FUN_001229f6(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 undefined8 param_9)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  \n  lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);\n  if (param_2 != 0) {\n    param_2 = FUN_0012698b(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  *(undefined8 *)(lVar1 + 0x38) = param_4;\n  *(undefined4 *)(lVar1 + 0x40) = param_5;\n  uVar2 = FUN_0012698b(param_6);\n  *(undefined8 *)(lVar1 + 0x48) = uVar2;\n  return lVar1;\n}\n\n" (function_definition "long FUN_001229f6(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 undefined8 param_9)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  \n  lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);\n  if (param_2 != 0) {\n    param_2 = FUN_0012698b(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  *(undefined8 *)(lVar1 + 0x38) = param_4;\n  *(undefined4 *)(lVar1 + 0x40) = param_5;\n  uVar2 = FUN_0012698b(param_6);\n  *(undefined8 *)(lVar1 + 0x48) = uVar2;\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001229f6(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 undefined8 param_9)" identifier (parameter_list "(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 undefined8 param_9)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined8 param_8" type_identifier identifier) , (parameter_declaration "undefined8 param_9" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  \n  lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);\n  if (param_2 != 0) {\n    param_2 = FUN_0012698b(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  *(undefined8 *)(lVar1 + 0x38) = param_4;\n  *(undefined4 *)(lVar1 + 0x40) = param_5;\n  uVar2 = FUN_0012698b(param_6);\n  *(undefined8 *)(lVar1 + 0x48) = uVar2;\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);" (assignment_expression "lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9)" identifier = (call_expression "FUN_00121ee1(param_1,7,param_7,param_8,param_9)" identifier (argument_list "(param_1,7,param_7,param_8,param_9)" ( identifier , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_0012698b(param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    param_2 = FUN_0012698b(param_2);\n  }" { (expression_statement "param_2 = FUN_0012698b(param_2);" (assignment_expression "param_2 = FUN_0012698b(param_2)" identifier = (call_expression "FUN_0012698b(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) })) (expression_statement "*(long *)(lVar1 + 8) = param_2;" (assignment_expression "*(long *)(lVar1 + 8) = param_2" (pointer_expression "*(long *)(lVar1 + 8)" * (cast_expression "(long *)(lVar1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(lVar1 + 0x30) = param_3;" (assignment_expression "*(undefined1 *)(lVar1 + 0x30) = param_3" (pointer_expression "*(undefined1 *)(lVar1 + 0x30)" * (cast_expression "(undefined1 *)(lVar1 + 0x30)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x30)" ( (binary_expression "lVar1 + 0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(lVar1 + 0x38) = param_4;" (assignment_expression "*(undefined8 *)(lVar1 + 0x38) = param_4" (pointer_expression "*(undefined8 *)(lVar1 + 0x38)" * (cast_expression "(undefined8 *)(lVar1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(lVar1 + 0x40) = param_5;" (assignment_expression "*(undefined4 *)(lVar1 + 0x40) = param_5" (pointer_expression "*(undefined4 *)(lVar1 + 0x40)" * (cast_expression "(undefined4 *)(lVar1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x40)" ( (binary_expression "lVar1 + 0x40" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = FUN_0012698b(param_6);" (assignment_expression "uVar2 = FUN_0012698b(param_6)" identifier = (call_expression "FUN_0012698b(param_6)" identifier (argument_list "(param_6)" ( identifier )))) ;) (expression_statement "*(undefined8 *)(lVar1 + 0x48) = uVar2;" (assignment_expression "*(undefined8 *)(lVar1 + 0x48) = uVar2" (pointer_expression "*(undefined8 *)(lVar1 + 0x48)" * (cast_expression "(undefined8 *)(lVar1 + 0x48)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x48)" ( (binary_expression "lVar1 + 0x48" identifier + number_literal) )))) = identifier) ;) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit "control * ctrl_filesel(controlset *s,char *label,char shortcut,char *filter,int write,char *title,\n                      intorptr helpctx,handler_fn handler,intorptr context)\n\n{\n  control *pcVar1;\n  char *pcVar2;\n  \n  pcVar1 = ctrl_new(s,7,helpctx,handler,context);\n  if (label != (char *)0x0) {\n    label = dupstr(label);\n  }\n  (pcVar1->generic).label = label;\n  (pcVar1->editbox).shortcut = shortcut;\n  (pcVar1->fileselect).filter = filter;\n  (pcVar1->listbox).percentwidth = write;\n  pcVar2 = dupstr(title);\n  (pcVar1->radio).shortcuts = pcVar2;\n  return pcVar1;\n}\n\n" (function_definition "control * ctrl_filesel(controlset *s,char *label,char shortcut,char *filter,int write,char *title,\n                      intorptr helpctx,handler_fn handler,intorptr context)\n\n{\n  control *pcVar1;\n  char *pcVar2;\n  \n  pcVar1 = ctrl_new(s,7,helpctx,handler,context);\n  if (label != (char *)0x0) {\n    label = dupstr(label);\n  }\n  (pcVar1->generic).label = label;\n  (pcVar1->editbox).shortcut = shortcut;\n  (pcVar1->fileselect).filter = filter;\n  (pcVar1->listbox).percentwidth = write;\n  pcVar2 = dupstr(title);\n  (pcVar1->radio).shortcuts = pcVar2;\n  return pcVar1;\n}" type_identifier (pointer_declarator "* ctrl_filesel(controlset *s,char *label,char shortcut,char *filter,int write,char *title,\n                      intorptr helpctx,handler_fn handler,intorptr context)" * (function_declarator "ctrl_filesel(controlset *s,char *label,char shortcut,char *filter,int write,char *title,\n                      intorptr helpctx,handler_fn handler,intorptr context)" identifier (parameter_list "(controlset *s,char *label,char shortcut,char *filter,int write,char *title,\n                      intorptr helpctx,handler_fn handler,intorptr context)" ( (parameter_declaration "controlset *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "char *label" primitive_type (pointer_declarator "*label" * identifier)) , (parameter_declaration "char shortcut" primitive_type identifier) , (parameter_declaration "char *filter" primitive_type (pointer_declarator "*filter" * identifier)) , (parameter_declaration "int write" primitive_type identifier) , (parameter_declaration "char *title" primitive_type (pointer_declarator "*title" * identifier)) , (parameter_declaration "intorptr helpctx" type_identifier identifier) , (parameter_declaration "handler_fn handler" type_identifier identifier) , (parameter_declaration "intorptr context" type_identifier identifier) )))) (compound_statement "{\n  control *pcVar1;\n  char *pcVar2;\n  \n  pcVar1 = ctrl_new(s,7,helpctx,handler,context);\n  if (label != (char *)0x0) {\n    label = dupstr(label);\n  }\n  (pcVar1->generic).label = label;\n  (pcVar1->editbox).shortcut = shortcut;\n  (pcVar1->fileselect).filter = filter;\n  (pcVar1->listbox).percentwidth = write;\n  pcVar2 = dupstr(title);\n  (pcVar1->radio).shortcuts = pcVar2;\n  return pcVar1;\n}" { (declaration "control *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar1 = ctrl_new(s,7,helpctx,handler,context);" (assignment_expression "pcVar1 = ctrl_new(s,7,helpctx,handler,context)" identifier = (call_expression "ctrl_new(s,7,helpctx,handler,context)" identifier (argument_list "(s,7,helpctx,handler,context)" ( identifier , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (label != (char *)0x0) {\n    label = dupstr(label);\n  }" if (parenthesized_expression "(label != (char *)0x0)" ( (binary_expression "label != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    label = dupstr(label);\n  }" { (expression_statement "label = dupstr(label);" (assignment_expression "label = dupstr(label)" identifier = (call_expression "dupstr(label)" identifier (argument_list "(label)" ( identifier )))) ;) })) (expression_statement "(pcVar1->generic).label = label;" (assignment_expression "(pcVar1->generic).label = label" (field_expression "(pcVar1->generic).label" (parenthesized_expression "(pcVar1->generic)" ( (field_expression "pcVar1->generic" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(pcVar1->editbox).shortcut = shortcut;" (assignment_expression "(pcVar1->editbox).shortcut = shortcut" (field_expression "(pcVar1->editbox).shortcut" (parenthesized_expression "(pcVar1->editbox)" ( (field_expression "pcVar1->editbox" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(pcVar1->fileselect).filter = filter;" (assignment_expression "(pcVar1->fileselect).filter = filter" (field_expression "(pcVar1->fileselect).filter" (parenthesized_expression "(pcVar1->fileselect)" ( (field_expression "pcVar1->fileselect" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(pcVar1->listbox).percentwidth = write;" (assignment_expression "(pcVar1->listbox).percentwidth = write" (field_expression "(pcVar1->listbox).percentwidth" (parenthesized_expression "(pcVar1->listbox)" ( (field_expression "pcVar1->listbox" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "pcVar2 = dupstr(title);" (assignment_expression "pcVar2 = dupstr(title)" identifier = (call_expression "dupstr(title)" identifier (argument_list "(title)" ( identifier )))) ;) (expression_statement "(pcVar1->radio).shortcuts = pcVar2;" (assignment_expression "(pcVar1->radio).shortcuts = pcVar2" (field_expression "(pcVar1->radio).shortcuts" (parenthesized_expression "(pcVar1->radio)" ( (field_expression "pcVar1->radio" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "long FUN_001229f6(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 undefined8 param_9)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  \n  lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);\n  if (param_2 != 0) {\n    param_2 = FUN_0012698b(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  *(undefined8 *)(lVar1 + 0x38) = param_4;\n  *(undefined4 *)(lVar1 + 0x40) = param_5;\n  uVar2 = FUN_0012698b(param_6);\n  *(undefined8 *)(lVar1 + 0x48) = uVar2;\n  return lVar1;\n}\n\n" (function_definition "long FUN_001229f6(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 undefined8 param_9)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  \n  lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);\n  if (param_2 != 0) {\n    param_2 = FUN_0012698b(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  *(undefined8 *)(lVar1 + 0x38) = param_4;\n  *(undefined4 *)(lVar1 + 0x40) = param_5;\n  uVar2 = FUN_0012698b(param_6);\n  *(undefined8 *)(lVar1 + 0x48) = uVar2;\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001229f6(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 undefined8 param_9)" identifier (parameter_list "(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 undefined8 param_9)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined8 param_8" type_identifier identifier) , (parameter_declaration "undefined8 param_9" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  \n  lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);\n  if (param_2 != 0) {\n    param_2 = FUN_0012698b(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  *(undefined8 *)(lVar1 + 0x38) = param_4;\n  *(undefined4 *)(lVar1 + 0x40) = param_5;\n  uVar2 = FUN_0012698b(param_6);\n  *(undefined8 *)(lVar1 + 0x48) = uVar2;\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);" (assignment_expression "lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9)" identifier = (call_expression "FUN_00121ee1(param_1,7,param_7,param_8,param_9)" identifier (argument_list "(param_1,7,param_7,param_8,param_9)" ( identifier , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_0012698b(param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    param_2 = FUN_0012698b(param_2);\n  }" { (expression_statement "param_2 = FUN_0012698b(param_2);" (assignment_expression "param_2 = FUN_0012698b(param_2)" identifier = (call_expression "FUN_0012698b(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) })) (expression_statement "*(long *)(lVar1 + 8) = param_2;" (assignment_expression "*(long *)(lVar1 + 8) = param_2" (pointer_expression "*(long *)(lVar1 + 8)" * (cast_expression "(long *)(lVar1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(lVar1 + 0x30) = param_3;" (assignment_expression "*(undefined1 *)(lVar1 + 0x30) = param_3" (pointer_expression "*(undefined1 *)(lVar1 + 0x30)" * (cast_expression "(undefined1 *)(lVar1 + 0x30)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x30)" ( (binary_expression "lVar1 + 0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(lVar1 + 0x38) = param_4;" (assignment_expression "*(undefined8 *)(lVar1 + 0x38) = param_4" (pointer_expression "*(undefined8 *)(lVar1 + 0x38)" * (cast_expression "(undefined8 *)(lVar1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(lVar1 + 0x40) = param_5;" (assignment_expression "*(undefined4 *)(lVar1 + 0x40) = param_5" (pointer_expression "*(undefined4 *)(lVar1 + 0x40)" * (cast_expression "(undefined4 *)(lVar1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x40)" ( (binary_expression "lVar1 + 0x40" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = FUN_0012698b(param_6);" (assignment_expression "uVar2 = FUN_0012698b(param_6)" identifier = (call_expression "FUN_0012698b(param_6)" identifier (argument_list "(param_6)" ( identifier )))) ;) (expression_statement "*(undefined8 *)(lVar1 + 0x48) = uVar2;" (assignment_expression "*(undefined8 *)(lVar1 + 0x48) = uVar2" (pointer_expression "*(undefined8 *)(lVar1 + 0x48)" * (cast_expression "(undefined8 *)(lVar1 + 0x48)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x48)" ( (binary_expression "lVar1 + 0x48" identifier + number_literal) )))) = identifier) ;) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "long FUN_001229f6(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 undefined8 param_9)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  \n  lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);\n  if (param_2 != 0) {\n    param_2 = FUN_0012698b(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  *(undefined8 *)(lVar1 + 0x38) = param_4;\n  *(undefined4 *)(lVar1 + 0x40) = param_5;\n  uVar2 = FUN_0012698b(param_6);\n  *(undefined8 *)(lVar1 + 0x48) = uVar2;\n  return lVar1;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_001229f6(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 undefined8 param_9)" (identifier "FUN_001229f6") (parameter_list "(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 undefined8 param_9)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "undefined1 param_3" (type_identifier "undefined1") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) (, ",") (parameter_declaration "undefined8 param_7" (type_identifier "undefined8") (identifier "param_7")) (, ",") (parameter_declaration "undefined8 param_8" (type_identifier "undefined8") (identifier "param_8")) (, ",") (parameter_declaration "undefined8 param_9" (type_identifier "undefined8") (identifier "param_9")) () ")"))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  \n  lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);\n  if (param_2 != 0) {\n    param_2 = FUN_0012698b(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  *(undefined8 *)(lVar1 + 0x38) = param_4;\n  *(undefined4 *)(lVar1 + 0x40) = param_5;\n  uVar2 = FUN_0012698b(param_6);\n  *(undefined8 *)(lVar1 + 0x48) = uVar2;\n  return lVar1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);" (assignment_expression "lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9)" (identifier "lVar1") (= "=") (call_expression "FUN_00121ee1(param_1,7,param_7,param_8,param_9)" (identifier "FUN_00121ee1") (argument_list "(param_1,7,param_7,param_8,param_9)" (( "(") (identifier "param_1") (, ",") (number_literal "7") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (identifier "param_9") () ")")))) (; ";")) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_0012698b(param_2);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = FUN_0012698b(param_2);\n  }" ({ "{") (expression_statement "param_2 = FUN_0012698b(param_2);" (assignment_expression "param_2 = FUN_0012698b(param_2)" (identifier "param_2") (= "=") (call_expression "FUN_0012698b(param_2)" (identifier "FUN_0012698b") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (} "}"))) (expression_statement "*(long *)(lVar1 + 8) = param_2;" (assignment_expression "*(long *)(lVar1 + 8) = param_2" (pointer_expression "*(long *)(lVar1 + 8)" (* "*") (cast_expression "(long *)(lVar1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined1 *)(lVar1 + 0x30) = param_3;" (assignment_expression "*(undefined1 *)(lVar1 + 0x30) = param_3" (pointer_expression "*(undefined1 *)(lVar1 + 0x30)" (* "*") (cast_expression "(undefined1 *)(lVar1 + 0x30)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x30)" (( "(") (binary_expression "lVar1 + 0x30" (identifier "lVar1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined8 *)(lVar1 + 0x38) = param_4;" (assignment_expression "*(undefined8 *)(lVar1 + 0x38) = param_4" (pointer_expression "*(undefined8 *)(lVar1 + 0x38)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x38)" (( "(") (binary_expression "lVar1 + 0x38" (identifier "lVar1") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(undefined4 *)(lVar1 + 0x40) = param_5;" (assignment_expression "*(undefined4 *)(lVar1 + 0x40) = param_5" (pointer_expression "*(undefined4 *)(lVar1 + 0x40)" (* "*") (cast_expression "(undefined4 *)(lVar1 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x40)" (( "(") (binary_expression "lVar1 + 0x40" (identifier "lVar1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "uVar2 = FUN_0012698b(param_6);" (assignment_expression "uVar2 = FUN_0012698b(param_6)" (identifier "uVar2") (= "=") (call_expression "FUN_0012698b(param_6)" (identifier "FUN_0012698b") (argument_list "(param_6)" (( "(") (identifier "param_6") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(lVar1 + 0x48) = uVar2;" (assignment_expression "*(undefined8 *)(lVar1 + 0x48) = uVar2" (pointer_expression "*(undefined8 *)(lVar1 + 0x48)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x48)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x48)" (( "(") (binary_expression "lVar1 + 0x48" (identifier "lVar1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}")))

type_1 * function_1(type_2 *s,char *var_2,char shortcut,char *filter,int write,char *title,
                      type_3 helpctx,type_4 handler,type_3 context)

{
  type_1 *pcVar1;
  char *pcVar2;
  
  pcVar1 = var_1(s,7,helpctx,handler,context);
  if (var_2 != (char *)0x0) {
    var_2 = var_3(var_2);
  }
  (pcVar1->generic).var_2 = var_2;
  (pcVar1->editbox).shortcut = shortcut;
  (pcVar1->fileselect).filter = filter;
  (pcVar1->listbox).percentwidth = write;
  pcVar2 = var_3(title);
  (pcVar1->radio).shortcuts = pcVar2;
  return pcVar1;
}


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

long MASKED(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,
                 undefined4 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,
                 undefined8 param_9)

{
  long lVar1;
  undefined8 uVar2;
  
  lVar1 = FUN_00121ee1(param_1,7,param_7,param_8,param_9);
  if (param_2 != 0) {
    param_2 = FUN_0012698b(param_2);
  }
  *(long *)(lVar1 + 8) = param_2;
  *(undefined1 *)(lVar1 + 0x30) = param_3;
  *(undefined8 *)(lVar1 + 0x38) = param_4;
  *(undefined4 *)(lVar1 + 0x40) = param_5;
  uVar2 = FUN_0012698b(param_6);
  *(undefined8 *)(lVar1 + 0x48) = uVar2;
  return lVar1;
}

