
void fh_format_query(format_data_t form,int argc,char **argv)

{
  format *pfVar1;
  
  if (0 < argc) {
    pfVar1 = format_find(*argv);
    select_arg(form,argc,argv,(pfVar1 == (format *)0x0) + 1);
    return;
  }
  return;
}



void FUN_0010861f(undefined8 param_1,int param_2,undefined8 *param_3)

{
  long lVar1;
  
  if (0 < param_2) {
    lVar1 = FUN_001068bc(*param_3);
    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');
    return;
  }
  return;
}


TEST ESI,ESI
JLE 0x00108655
PUSH R12
PUSH RBP
PUSH RBX
MOV RBP,RDX
MOV EBX,ESI
MOV R12,RDI
MOV RDI,qword ptr [RDX]
CALL 0x001068bc
TEST RAX,RAX
SETZ CL
MOVZX ECX,CL
ADD ECX,0x1
MOV RDX,RBP
MOV ESI,EBX
MOV RDI,R12
CALL 0x001085fc
POP RBX
POP RBP
POP R12
RET
RET
(translation_unit "void FUN_0010861f(undefined8 param_1,int param_2,undefined8 *param_3)\n\n{\n  long lVar1;\n  \n  if (0 < param_2) {\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010861f(undefined8 param_1,int param_2,undefined8 *param_3)\n\n{\n  long lVar1;\n  \n  if (0 < param_2) {\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010861f(undefined8 param_1,int param_2,undefined8 *param_3)" identifier (parameter_list "(undefined8 param_1,int param_2,undefined8 *param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  if (0 < param_2) {\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (0 < param_2) {\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }" { (expression_statement "lVar1 = FUN_001068bc(*param_3);" (assignment_expression "lVar1 = FUN_001068bc(*param_3)" identifier = (call_expression "FUN_001068bc(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');" (call_expression "FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01')" identifier (argument_list "(param_1,param_2,param_3,(lVar1 == 0) + '\x01')" ( identifier , identifier , identifier , (binary_expression "(lVar1 == 0) + '\x01'" (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) + (char_literal "'\x01'" ' escape_sequence ')) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void fh_format_query(format_data_t form,int argc,char **argv)\n\n{\n  format *pfVar1;\n  \n  if (0 < argc) {\n    pfVar1 = format_find(*argv);\n    select_arg(form,argc,argv,(pfVar1 == (format *)0x0) + 1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void fh_format_query(format_data_t form,int argc,char **argv)\n\n{\n  format *pfVar1;\n  \n  if (0 < argc) {\n    pfVar1 = format_find(*argv);\n    select_arg(form,argc,argv,(pfVar1 == (format *)0x0) + 1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "fh_format_query(format_data_t form,int argc,char **argv)" identifier (parameter_list "(format_data_t form,int argc,char **argv)" ( (parameter_declaration "format_data_t form" type_identifier identifier) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  format *pfVar1;\n  \n  if (0 < argc) {\n    pfVar1 = format_find(*argv);\n    select_arg(form,argc,argv,(pfVar1 == (format *)0x0) + 1);\n    return;\n  }\n  return;\n}" { (declaration "format *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (if_statement "if (0 < argc) {\n    pfVar1 = format_find(*argv);\n    select_arg(form,argc,argv,(pfVar1 == (format *)0x0) + 1);\n    return;\n  }" if (parenthesized_expression "(0 < argc)" ( (binary_expression "0 < argc" number_literal < identifier) )) (compound_statement "{\n    pfVar1 = format_find(*argv);\n    select_arg(form,argc,argv,(pfVar1 == (format *)0x0) + 1);\n    return;\n  }" { (expression_statement "pfVar1 = format_find(*argv);" (assignment_expression "pfVar1 = format_find(*argv)" identifier = (call_expression "format_find(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) ;) (expression_statement "select_arg(form,argc,argv,(pfVar1 == (format *)0x0) + 1);" (call_expression "select_arg(form,argc,argv,(pfVar1 == (format *)0x0) + 1)" identifier (argument_list "(form,argc,argv,(pfVar1 == (format *)0x0) + 1)" ( identifier , identifier , identifier , (binary_expression "(pfVar1 == (format *)0x0) + 1" (parenthesized_expression "(pfVar1 == (format *)0x0)" ( (binary_expression "pfVar1 == (format *)0x0" identifier == (cast_expression "(format *)0x0" ( (type_descriptor "format *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) + number_literal) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0010861f(undefined8 param_1,int param_2,undefined8 *param_3)\n\n{\n  long lVar1;\n  \n  if (0 < param_2) {\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010861f(undefined8 param_1,int param_2,undefined8 *param_3)\n\n{\n  long lVar1;\n  \n  if (0 < param_2) {\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010861f(undefined8 param_1,int param_2,undefined8 *param_3)" identifier (parameter_list "(undefined8 param_1,int param_2,undefined8 *param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  if (0 < param_2) {\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (0 < param_2) {\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }" { (expression_statement "lVar1 = FUN_001068bc(*param_3);" (assignment_expression "lVar1 = FUN_001068bc(*param_3)" identifier = (call_expression "FUN_001068bc(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');" (call_expression "FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01')" identifier (argument_list "(param_1,param_2,param_3,(lVar1 == 0) + '\x01')" ( identifier , identifier , identifier , (binary_expression "(lVar1 == 0) + '\x01'" (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) + (char_literal "'\x01'" ' escape_sequence ')) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) + (char_literal ' escape_sequence ')) ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0010861f(undefined8 param_1,int param_2,undefined8 *param_3)\n\n{\n  long lVar1;\n  \n  if (0 < param_2) {\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0010861f(undefined8 param_1,int param_2,undefined8 *param_3)" (identifier "FUN_0010861f") (parameter_list "(undefined8 param_1,int param_2,undefined8 *param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 *param_3" (type_identifier "undefined8") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  if (0 < param_2) {\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (if_statement "if (0 < param_2) {\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    lVar1 = FUN_001068bc(*param_3);\n    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');\n    return;\n  }" ({ "{") (expression_statement "lVar1 = FUN_001068bc(*param_3);" (assignment_expression "lVar1 = FUN_001068bc(*param_3)" (identifier "lVar1") (= "=") (call_expression "FUN_001068bc(*param_3)" (identifier "FUN_001068bc") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');" (call_expression "FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01')" (identifier "FUN_001085fc") (argument_list "(param_1,param_2,param_3,(lVar1 == 0) + '\x01')" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (binary_expression "(lVar1 == 0) + '\x01'" (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 form,int var_1,char **argv)

{
  type_2 *var_4;
  
  if (0 < var_1) {
    var_4 = var_2(*argv);
    var_3(form,var_1,argv,(var_4 == (type_2 *)0x0) + 1);
    return;
  }
  return;
}


(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))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (char_literal (escape_sequence)))))) (return_statement))) (return_statement))))

void MASKED(undefined8 param_1,int param_2,undefined8 *param_3)

{
  long lVar1;
  
  if (0 < param_2) {
    lVar1 = FUN_001068bc(*param_3);
    FUN_001085fc(param_1,param_2,param_3,(lVar1 == 0) + '\x01');
    return;
  }
  return;
}

