
control * ctrl_fontsel(controlset *s,char *label,char shortcut,intorptr helpctx,handler_fn handler,
                      intorptr context)

{
  control *pcVar1;
  
  pcVar1 = ctrl_new(s,8,helpctx,handler,context);
  if (label != (char *)0x0) {
    label = dupstr(label);
  }
  (pcVar1->generic).label = label;
  (pcVar1->editbox).shortcut = shortcut;
  return pcVar1;
}



long FUN_0011d11f(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6)

{
  long lVar1;
  
  lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);
  if (param_2 != 0) {
    param_2 = FUN_0012103d(param_2);
  }
  *(long *)(lVar1 + 8) = param_2;
  *(undefined1 *)(lVar1 + 0x30) = param_3;
  return lVar1;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RSI
MOV R12D,EDX
MOV RDX,RCX
MOV RCX,R8
MOV R8,R9
MOV ESI,0x8
CALL 0x0011c593
MOV RBP,RAX
TEST RBX,RBX
JZ 0x0011d14f
MOV RDI,RBX
CALL 0x0012103d
MOV RBX,RAX
MOV qword ptr [RBP + 0x8],RBX
MOV byte ptr [RBP + 0x30],R12B
MOV RAX,RBP
POP RBX
POP RBP
POP R12
RET
(translation_unit "long FUN_0011d11f(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);\n  if (param_2 != 0) {\n    param_2 = FUN_0012103d(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  return lVar1;\n}\n\n" (function_definition "long FUN_0011d11f(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);\n  if (param_2 != 0) {\n    param_2 = FUN_0012103d(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0011d11f(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" identifier (parameter_list "(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" ( (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 "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);\n  if (param_2 != 0) {\n    param_2 = FUN_0012103d(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);" (assignment_expression "lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6)" identifier = (call_expression "FUN_0011c593(param_1,8,param_4,param_5,param_6)" identifier (argument_list "(param_1,8,param_4,param_5,param_6)" ( identifier , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_0012103d(param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    param_2 = FUN_0012103d(param_2);\n  }" { (expression_statement "param_2 = FUN_0012103d(param_2);" (assignment_expression "param_2 = FUN_0012103d(param_2)" identifier = (call_expression "FUN_0012103d(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) ;) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit "control * ctrl_fontsel(controlset *s,char *label,char shortcut,intorptr helpctx,handler_fn handler,\n                      intorptr context)\n\n{\n  control *pcVar1;\n  \n  pcVar1 = ctrl_new(s,8,helpctx,handler,context);\n  if (label != (char *)0x0) {\n    label = dupstr(label);\n  }\n  (pcVar1->generic).label = label;\n  (pcVar1->editbox).shortcut = shortcut;\n  return pcVar1;\n}\n\n" (function_definition "control * ctrl_fontsel(controlset *s,char *label,char shortcut,intorptr helpctx,handler_fn handler,\n                      intorptr context)\n\n{\n  control *pcVar1;\n  \n  pcVar1 = ctrl_new(s,8,helpctx,handler,context);\n  if (label != (char *)0x0) {\n    label = dupstr(label);\n  }\n  (pcVar1->generic).label = label;\n  (pcVar1->editbox).shortcut = shortcut;\n  return pcVar1;\n}" type_identifier (pointer_declarator "* ctrl_fontsel(controlset *s,char *label,char shortcut,intorptr helpctx,handler_fn handler,\n                      intorptr context)" * (function_declarator "ctrl_fontsel(controlset *s,char *label,char shortcut,intorptr helpctx,handler_fn handler,\n                      intorptr context)" identifier (parameter_list "(controlset *s,char *label,char shortcut,intorptr helpctx,handler_fn handler,\n                      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 "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  \n  pcVar1 = ctrl_new(s,8,helpctx,handler,context);\n  if (label != (char *)0x0) {\n    label = dupstr(label);\n  }\n  (pcVar1->generic).label = label;\n  (pcVar1->editbox).shortcut = shortcut;\n  return pcVar1;\n}" { (declaration "control *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = ctrl_new(s,8,helpctx,handler,context);" (assignment_expression "pcVar1 = ctrl_new(s,8,helpctx,handler,context)" identifier = (call_expression "ctrl_new(s,8,helpctx,handler,context)" identifier (argument_list "(s,8,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) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "long FUN_0011d11f(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);\n  if (param_2 != 0) {\n    param_2 = FUN_0012103d(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  return lVar1;\n}\n\n" (function_definition "long FUN_0011d11f(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);\n  if (param_2 != 0) {\n    param_2 = FUN_0012103d(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0011d11f(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" identifier (parameter_list "(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" ( (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 "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);\n  if (param_2 != 0) {\n    param_2 = FUN_0012103d(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);" (assignment_expression "lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6)" identifier = (call_expression "FUN_0011c593(param_1,8,param_4,param_5,param_6)" identifier (argument_list "(param_1,8,param_4,param_5,param_6)" ( identifier , number_literal , identifier , identifier , identifier )))) ;) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_0012103d(param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    param_2 = FUN_0012103d(param_2);\n  }" { (expression_statement "param_2 = FUN_0012103d(param_2);" (assignment_expression "param_2 = FUN_0012103d(param_2)" identifier = (call_expression "FUN_0012103d(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) ;) (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) ))) (compound_statement { (declaration (sized_type_specifier long) 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) ;) (return_statement return IDENT ;) })))
(function_definition "long FUN_0011d11f(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);\n  if (param_2 != 0) {\n    param_2 = FUN_0012103d(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  return lVar1;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0011d11f(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" (identifier "FUN_0011d11f") (parameter_list "(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" (( "(") (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 "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);\n  if (param_2 != 0) {\n    param_2 = FUN_0012103d(param_2);\n  }\n  *(long *)(lVar1 + 8) = param_2;\n  *(undefined1 *)(lVar1 + 0x30) = param_3;\n  return lVar1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);" (assignment_expression "lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6)" (identifier "lVar1") (= "=") (call_expression "FUN_0011c593(param_1,8,param_4,param_5,param_6)" (identifier "FUN_0011c593") (argument_list "(param_1,8,param_4,param_5,param_6)" (( "(") (identifier "param_1") (, ",") (number_literal "8") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_0012103d(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_0012103d(param_2);\n  }" ({ "{") (expression_statement "param_2 = FUN_0012103d(param_2);" (assignment_expression "param_2 = FUN_0012103d(param_2)" (identifier "param_2") (= "=") (call_expression "FUN_0012103d(param_2)" (identifier "FUN_0012103d") (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")) (; ";")) (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}")))

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

{
  type_1 *pcVar1;
  
  pcVar1 = var_1(s,8,helpctx,handler,context);
  if (var_2 != (char *)0x0) {
    var_2 = var_3(var_2);
  }
  (pcVar1->generic).var_2 = var_2;
  (pcVar1->editbox).shortcut = shortcut;
  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)))) body: (compound_statement (declaration type: (sized_type_specifier) 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))) (return_statement (identifier)))))

long MASKED(undefined8 param_1,long param_2,undefined1 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6)

{
  long lVar1;
  
  lVar1 = FUN_0011c593(param_1,8,param_4,param_5,param_6);
  if (param_2 != 0) {
    param_2 = FUN_0012103d(param_2);
  }
  *(long *)(lVar1 + 8) = param_2;
  *(undefined1 *)(lVar1 + 0x30) = param_3;
  return lVar1;
}

