
/* WARNING: Unknown calling convention */

int dlg_coloursel_results(control *ctrl,void *dlg,int *r,int *g,int *b)

{
  bool bVar1;
  
  bVar1 = *(char *)((int)dlg + 0xf) != '\0';
  if (bVar1) {
    *r = (uint)*(byte *)((int)dlg + 0xc);
    *g = (uint)*(byte *)((int)dlg + 0xd);
    *b = (uint)*(byte *)((int)dlg + 0xe);
  }
  return (uint)bVar1;
}



bool FUN_0004ccf0(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)

{
  bool bVar1;
  
  bVar1 = *(char *)(param_2 + 0xf) != '\0';
  if (bVar1) {
    *param_3 = (uint)*(byte *)(param_2 + 0xc);
    *param_4 = (uint)*(byte *)(param_2 + 0xd);
    *param_5 = (uint)*(byte *)(param_2 + 0xe);
  }
  return bVar1;
}


MOV EDX,dword ptr [ESP + 0x8]
XOR EAX,EAX
CMP byte ptr [EDX + 0xf],0x0
JZ 0x0004cd1f
MOVZX ECX,byte ptr [EDX + 0xc]
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],ECX
MOV EAX,dword ptr [ESP + 0x10]
MOVZX ECX,byte ptr [EDX + 0xd]
MOV dword ptr [EAX],ECX
MOV EAX,dword ptr [ESP + 0x14]
MOVZX EDX,byte ptr [EDX + 0xe]
MOV dword ptr [EAX],EDX
MOV EAX,0x1
RET
(translation_unit "bool FUN_0004ccf0(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)\n\n{\n  bool bVar1;\n  \n  bVar1 = *(char *)(param_2 + 0xf) != '\0';\n  if (bVar1) {\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }\n  return bVar1;\n}\n\n" (function_definition "bool FUN_0004ccf0(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)\n\n{\n  bool bVar1;\n  \n  bVar1 = *(char *)(param_2 + 0xf) != '\0';\n  if (bVar1) {\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }\n  return bVar1;\n}" primitive_type (function_declarator "FUN_0004ccf0(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)" identifier (parameter_list "(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  \n  bVar1 = *(char *)(param_2 + 0xf) != '\0';\n  if (bVar1) {\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }\n  return bVar1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (expression_statement "bVar1 = *(char *)(param_2 + 0xf) != '\0';" (assignment_expression "bVar1 = *(char *)(param_2 + 0xf) != '\0'" identifier = (binary_expression "*(char *)(param_2 + 0xf) != '\0'" (pointer_expression "*(char *)(param_2 + 0xf)" * (cast_expression "(char *)(param_2 + 0xf)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf)" ( (binary_expression "param_2 + 0xf" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence '))) ;) (if_statement "if (bVar1) {\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }" { (expression_statement "*param_3 = (uint)*(byte *)(param_2 + 0xc);" (assignment_expression "*param_3 = (uint)*(byte *)(param_2 + 0xc)" (pointer_expression "*param_3" * identifier) = (binary_expression "(uint)*(byte *)(param_2 + 0xc)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_4 = (uint)*(byte *)(param_2 + 0xd);" (assignment_expression "*param_4 = (uint)*(byte *)(param_2 + 0xd)" (pointer_expression "*param_4" * identifier) = (binary_expression "(uint)*(byte *)(param_2 + 0xd)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + 0xd)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) ))))) ;) (expression_statement "*param_5 = (uint)*(byte *)(param_2 + 0xe);" (assignment_expression "*param_5 = (uint)*(byte *)(param_2 + 0xe)" (pointer_expression "*param_5" * identifier) = (binary_expression "(uint)*(byte *)(param_2 + 0xe)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + 0xe)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe)" ( (binary_expression "param_2 + 0xe" identifier + number_literal) ))))) ;) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint dlg_coloursel_results(control *ctrl,void *dlg,int *r,int *g,int *b)\n\n{\n  bool bVar1;\n  \n  bVar1 = *(char *)((int)dlg + 0xf) != '\0';\n  if (bVar1) {\n    *r = (uint)*(byte *)((int)dlg + 0xc);\n    *g = (uint)*(byte *)((int)dlg + 0xd);\n    *b = (uint)*(byte *)((int)dlg + 0xe);\n  }\n  return (uint)bVar1;\n}\n\n" comment (function_definition "int dlg_coloursel_results(control *ctrl,void *dlg,int *r,int *g,int *b)\n\n{\n  bool bVar1;\n  \n  bVar1 = *(char *)((int)dlg + 0xf) != '\0';\n  if (bVar1) {\n    *r = (uint)*(byte *)((int)dlg + 0xc);\n    *g = (uint)*(byte *)((int)dlg + 0xd);\n    *b = (uint)*(byte *)((int)dlg + 0xe);\n  }\n  return (uint)bVar1;\n}" primitive_type (function_declarator "dlg_coloursel_results(control *ctrl,void *dlg,int *r,int *g,int *b)" identifier (parameter_list "(control *ctrl,void *dlg,int *r,int *g,int *b)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) , (parameter_declaration "int *r" primitive_type (pointer_declarator "*r" * identifier)) , (parameter_declaration "int *g" primitive_type (pointer_declarator "*g" * identifier)) , (parameter_declaration "int *b" primitive_type (pointer_declarator "*b" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  \n  bVar1 = *(char *)((int)dlg + 0xf) != '\0';\n  if (bVar1) {\n    *r = (uint)*(byte *)((int)dlg + 0xc);\n    *g = (uint)*(byte *)((int)dlg + 0xd);\n    *b = (uint)*(byte *)((int)dlg + 0xe);\n  }\n  return (uint)bVar1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (expression_statement "bVar1 = *(char *)((int)dlg + 0xf) != '\0';" (assignment_expression "bVar1 = *(char *)((int)dlg + 0xf) != '\0'" identifier = (binary_expression "*(char *)((int)dlg + 0xf) != '\0'" (pointer_expression "*(char *)((int)dlg + 0xf)" * (cast_expression "(char *)((int)dlg + 0xf)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)dlg + 0xf)" ( (binary_expression "(int)dlg + 0xf" (cast_expression "(int)dlg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence '))) ;) (if_statement "if (bVar1) {\n    *r = (uint)*(byte *)((int)dlg + 0xc);\n    *g = (uint)*(byte *)((int)dlg + 0xd);\n    *b = (uint)*(byte *)((int)dlg + 0xe);\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    *r = (uint)*(byte *)((int)dlg + 0xc);\n    *g = (uint)*(byte *)((int)dlg + 0xd);\n    *b = (uint)*(byte *)((int)dlg + 0xe);\n  }" { (expression_statement "*r = (uint)*(byte *)((int)dlg + 0xc);" (assignment_expression "*r = (uint)*(byte *)((int)dlg + 0xc)" (pointer_expression "*r" * identifier) = (binary_expression "(uint)*(byte *)((int)dlg + 0xc)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)dlg + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)dlg + 0xc)" ( (binary_expression "(int)dlg + 0xc" (cast_expression "(int)dlg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*g = (uint)*(byte *)((int)dlg + 0xd);" (assignment_expression "*g = (uint)*(byte *)((int)dlg + 0xd)" (pointer_expression "*g" * identifier) = (binary_expression "(uint)*(byte *)((int)dlg + 0xd)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)dlg + 0xd)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)dlg + 0xd)" ( (binary_expression "(int)dlg + 0xd" (cast_expression "(int)dlg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*b = (uint)*(byte *)((int)dlg + 0xe);" (assignment_expression "*b = (uint)*(byte *)((int)dlg + 0xe)" (pointer_expression "*b" * identifier) = (binary_expression "(uint)*(byte *)((int)dlg + 0xe)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)dlg + 0xe)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)dlg + 0xe)" ( (binary_expression "(int)dlg + 0xe" (cast_expression "(int)dlg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) })) (return_statement "return (uint)bVar1;" return (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ;) })))
(translation_unit "bool FUN_0004ccf0(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)\n\n{\n  bool bVar1;\n  \n  bVar1 = *(char *)(param_2 + 0xf) != '\0';\n  if (bVar1) {\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }\n  return bVar1;\n}\n\n" (function_definition "bool FUN_0004ccf0(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)\n\n{\n  bool bVar1;\n  \n  bVar1 = *(char *)(param_2 + 0xf) != '\0';\n  if (bVar1) {\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }\n  return bVar1;\n}" primitive_type (function_declarator "FUN_0004ccf0(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)" identifier (parameter_list "(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  \n  bVar1 = *(char *)(param_2 + 0xf) != '\0';\n  if (bVar1) {\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }\n  return bVar1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (expression_statement "bVar1 = *(char *)(param_2 + 0xf) != '\0';" (assignment_expression "bVar1 = *(char *)(param_2 + 0xf) != '\0'" identifier = (binary_expression "*(char *)(param_2 + 0xf) != '\0'" (pointer_expression "*(char *)(param_2 + 0xf)" * (cast_expression "(char *)(param_2 + 0xf)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf)" ( (binary_expression "param_2 + 0xf" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence '))) ;) (if_statement "if (bVar1) {\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }" { (expression_statement "*param_3 = (uint)*(byte *)(param_2 + 0xc);" (assignment_expression "*param_3 = (uint)*(byte *)(param_2 + 0xc)" (pointer_expression "*param_3" * identifier) = (binary_expression "(uint)*(byte *)(param_2 + 0xc)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_4 = (uint)*(byte *)(param_2 + 0xd);" (assignment_expression "*param_4 = (uint)*(byte *)(param_2 + 0xd)" (pointer_expression "*param_4" * identifier) = (binary_expression "(uint)*(byte *)(param_2 + 0xd)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + 0xd)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) ))))) ;) (expression_statement "*param_5 = (uint)*(byte *)(param_2 + 0xe);" (assignment_expression "*param_5 = (uint)*(byte *)(param_2 + 0xe)" (pointer_expression "*param_5" * identifier) = (binary_expression "(uint)*(byte *)(param_2 + 0xe)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + 0xe)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe)" ( (binary_expression "param_2 + 0xe" identifier + number_literal) ))))) ;) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence '))) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (return_statement return IDENT ;) })))
(function_definition "bool FUN_0004ccf0(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)\n\n{\n  bool bVar1;\n  \n  bVar1 = *(char *)(param_2 + 0xf) != '\0';\n  if (bVar1) {\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }\n  return bVar1;\n}" (primitive_type "bool") (function_declarator "FUN_0004ccf0(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)" (identifier "FUN_0004ccf0") (parameter_list "(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint *param_4" (type_identifier "uint") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "uint *param_5" (type_identifier "uint") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  bool bVar1;\n  \n  bVar1 = *(char *)(param_2 + 0xf) != '\0';\n  if (bVar1) {\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }\n  return bVar1;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (expression_statement "bVar1 = *(char *)(param_2 + 0xf) != '\0';" (assignment_expression "bVar1 = *(char *)(param_2 + 0xf) != '\0'" (identifier "bVar1") (= "=") (binary_expression "*(char *)(param_2 + 0xf) != '\0'" (pointer_expression "*(char *)(param_2 + 0xf)" (* "*") (cast_expression "(char *)(param_2 + 0xf)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xf)" (( "(") (binary_expression "param_2 + 0xf" (identifier "param_2") (+ "+") (number_literal "0xf")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) (; ";")) (if_statement "if (bVar1) {\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n    *param_3 = (uint)*(byte *)(param_2 + 0xc);\n    *param_4 = (uint)*(byte *)(param_2 + 0xd);\n    *param_5 = (uint)*(byte *)(param_2 + 0xe);\n  }" ({ "{") (expression_statement "*param_3 = (uint)*(byte *)(param_2 + 0xc);" (assignment_expression "*param_3 = (uint)*(byte *)(param_2 + 0xc)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "(uint)*(byte *)(param_2 + 0xc)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_2 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*param_4 = (uint)*(byte *)(param_2 + 0xd);" (assignment_expression "*param_4 = (uint)*(byte *)(param_2 + 0xd)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "(uint)*(byte *)(param_2 + 0xd)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_2 + 0xd)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd)" (( "(") (binary_expression "param_2 + 0xd" (identifier "param_2") (+ "+") (number_literal "0xd")) () ")"))))) (; ";")) (expression_statement "*param_5 = (uint)*(byte *)(param_2 + 0xe);" (assignment_expression "*param_5 = (uint)*(byte *)(param_2 + 0xe)" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (binary_expression "(uint)*(byte *)(param_2 + 0xe)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_2 + 0xe)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xe)" (( "(") (binary_expression "param_2 + 0xe" (identifier "param_2") (+ "+") (number_literal "0xe")) () ")"))))) (; ";")) (} "}"))) (return_statement "return bVar1;" (return "return") (identifier "bVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *ctrl,void *dlg,int *r,int *g,int *b)

{
  bool bVar1;
  
  bVar1 = *(char *)((int)dlg + 0xf) != '\0';
  if (bVar1) {
    *r = (type_3)*(type_2 *)((int)dlg + 0xc);
    *g = (type_3)*(type_2 *)((int)dlg + 0xd);
    *b = (type_3)*(type_2 *)((int)dlg + 0xe);
  }
  return (type_3)bVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement (identifier)))))

bool MASKED(undefined4 param_1,int param_2,uint *param_3,uint *param_4,uint *param_5)

{
  bool bVar1;
  
  bVar1 = *(char *)(param_2 + 0xf) != '\0';
  if (bVar1) {
    *param_3 = (uint)*(byte *)(param_2 + 0xc);
    *param_4 = (uint)*(byte *)(param_2 + 0xd);
    *param_5 = (uint)*(byte *)(param_2 + 0xe);
  }
  return bVar1;
}

