
/* WARNING: Unknown calling convention */

int fts5FindTokenizer(fts5_api *pApi,char *zName,void **ppUserData,fts5_tokenizer *pTokenizer)

{
  Fts5TokenizerModule *pFVar1;
  
  pFVar1 = fts5LocateTokenizer((Fts5Global *)pApi[2].iVersion,(char *)&pApi[2].xCreateTokenizer,
                               (Fts5Global *)zName);
  if (pFVar1 != (Fts5TokenizerModule *)0x0) {
    pTokenizer->xCreate = (pFVar1->x).xCreate;
    pTokenizer->xDelete = (pFVar1->x).xDelete;
    pTokenizer->xTokenize = (pFVar1->x).xTokenize;
    *ppUserData = pFVar1->pUserData;
    return 0;
  }
  pTokenizer->xCreate = (_func_int_void_ptr_char_ptr_ptr_int_Fts5Tokenizer_ptr_ptr *)0x0;
  pTokenizer->xDelete = (_func_void_Fts5Tokenizer_ptr *)0x0;
  pTokenizer->xTokenize =
       (_func_int_Fts5Tokenizer_ptr_void_ptr_int_char_ptr_int__func_int_void_ptr_int_char_ptr_int_int_int_ptr
        *)0x0;
  return 1;
}



undefined4
FUN_00050cb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)

{
  int iVar1;
  
  iVar1 = FUN_00050c70();
  if (iVar1 != 0) {
    *param_4 = *(undefined4 *)(iVar1 + 8);
    param_4[1] = *(undefined4 *)(iVar1 + 0xc);
    param_4[2] = *(undefined4 *)(iVar1 + 0x10);
    *param_3 = *(undefined4 *)(iVar1 + 4);
    return 0;
  }
  *param_4 = 0;
  param_4[1] = 0;
  param_4[2] = 0;
  return 1;
}


PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
MOV EBX,dword ptr [ESP + 0x14]
LEA EDX,[EAX + 0x24]
MOV EAX,dword ptr [EAX + 0x20]
CALL 0x00050c70
TEST EAX,EAX
JZ 0x00050cf0
MOV EDX,dword ptr [EAX + 0x8]
MOV dword ptr [EBX],EDX
MOV EDX,dword ptr [EAX + 0xc]
MOV dword ptr [EBX + 0x4],EDX
MOV EDX,dword ptr [EAX + 0x10]
MOV dword ptr [EBX + 0x8],EDX
MOV EDX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [EAX],EDX
XOR EAX,EAX
POP EBX
RET
MOV dword ptr [EBX],0x0
MOV EAX,0x1
MOV dword ptr [EBX + 0x4],0x0
MOV dword ptr [EBX + 0x8],0x0
POP EBX
RET
(translation_unit "undefined4\nFUN_00050cb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00050c70();\n  if (iVar1 != 0) {\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }\n  *param_4 = 0;\n  param_4[1] = 0;\n  param_4[2] = 0;\n  return 1;\n}\n\n" (function_definition "undefined4\nFUN_00050cb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00050c70();\n  if (iVar1 != 0) {\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }\n  *param_4 = 0;\n  param_4[1] = 0;\n  param_4[2] = 0;\n  return 1;\n}" type_identifier (function_declarator "FUN_00050cb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00050c70();\n  if (iVar1 != 0) {\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }\n  *param_4 = 0;\n  param_4[1] = 0;\n  param_4[2] = 0;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00050c70();" (assignment_expression "iVar1 = FUN_00050c70()" identifier = (call_expression "FUN_00050c70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }" { (expression_statement "*param_4 = *(undefined4 *)(iVar1 + 8);" (assignment_expression "*param_4 = *(undefined4 *)(iVar1 + 8)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "param_4[1] = *(undefined4 *)(iVar1 + 0xc);" (assignment_expression "param_4[1] = *(undefined4 *)(iVar1 + 0xc)" (subscript_expression "param_4[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "param_4[2] = *(undefined4 *)(iVar1 + 0x10);" (assignment_expression "param_4[2] = *(undefined4 *)(iVar1 + 0x10)" (subscript_expression "param_4[2]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = *(undefined4 *)(iVar1 + 4);" (assignment_expression "*param_3 = *(undefined4 *)(iVar1 + 4)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "param_4[1] = 0;" (assignment_expression "param_4[1] = 0" (subscript_expression "param_4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_4[2] = 0;" (assignment_expression "param_4[2] = 0" (subscript_expression "param_4[2]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint fts5FindTokenizer(fts5_api *pApi,char *zName,void **ppUserData,fts5_tokenizer *pTokenizer)\n\n{\n  Fts5TokenizerModule *pFVar1;\n  \n  pFVar1 = fts5LocateTokenizer((Fts5Global *)pApi[2].iVersion,(char *)&pApi[2].xCreateTokenizer,\n                               (Fts5Global *)zName);\n  if (pFVar1 != (Fts5TokenizerModule *)0x0) {\n    pTokenizer->xCreate = (pFVar1->x).xCreate;\n    pTokenizer->xDelete = (pFVar1->x).xDelete;\n    pTokenizer->xTokenize = (pFVar1->x).xTokenize;\n    *ppUserData = pFVar1->pUserData;\n    return 0;\n  }\n  pTokenizer->xCreate = (_func_int_void_ptr_char_ptr_ptr_int_Fts5Tokenizer_ptr_ptr *)0x0;\n  pTokenizer->xDelete = (_func_void_Fts5Tokenizer_ptr *)0x0;\n  pTokenizer->xTokenize =\n       (_func_int_Fts5Tokenizer_ptr_void_ptr_int_char_ptr_int__func_int_void_ptr_int_char_ptr_int_int_int_ptr\n        *)0x0;\n  return 1;\n}\n\n" comment (function_definition "int fts5FindTokenizer(fts5_api *pApi,char *zName,void **ppUserData,fts5_tokenizer *pTokenizer)\n\n{\n  Fts5TokenizerModule *pFVar1;\n  \n  pFVar1 = fts5LocateTokenizer((Fts5Global *)pApi[2].iVersion,(char *)&pApi[2].xCreateTokenizer,\n                               (Fts5Global *)zName);\n  if (pFVar1 != (Fts5TokenizerModule *)0x0) {\n    pTokenizer->xCreate = (pFVar1->x).xCreate;\n    pTokenizer->xDelete = (pFVar1->x).xDelete;\n    pTokenizer->xTokenize = (pFVar1->x).xTokenize;\n    *ppUserData = pFVar1->pUserData;\n    return 0;\n  }\n  pTokenizer->xCreate = (_func_int_void_ptr_char_ptr_ptr_int_Fts5Tokenizer_ptr_ptr *)0x0;\n  pTokenizer->xDelete = (_func_void_Fts5Tokenizer_ptr *)0x0;\n  pTokenizer->xTokenize =\n       (_func_int_Fts5Tokenizer_ptr_void_ptr_int_char_ptr_int__func_int_void_ptr_int_char_ptr_int_int_int_ptr\n        *)0x0;\n  return 1;\n}" primitive_type (function_declarator "fts5FindTokenizer(fts5_api *pApi,char *zName,void **ppUserData,fts5_tokenizer *pTokenizer)" identifier (parameter_list "(fts5_api *pApi,char *zName,void **ppUserData,fts5_tokenizer *pTokenizer)" ( (parameter_declaration "fts5_api *pApi" type_identifier (pointer_declarator "*pApi" * identifier)) , (parameter_declaration "char *zName" primitive_type (pointer_declarator "*zName" * identifier)) , (parameter_declaration "void **ppUserData" primitive_type (pointer_declarator "**ppUserData" * (pointer_declarator "*ppUserData" * identifier))) , (parameter_declaration "fts5_tokenizer *pTokenizer" type_identifier (pointer_declarator "*pTokenizer" * identifier)) ))) (compound_statement "{\n  Fts5TokenizerModule *pFVar1;\n  \n  pFVar1 = fts5LocateTokenizer((Fts5Global *)pApi[2].iVersion,(char *)&pApi[2].xCreateTokenizer,\n                               (Fts5Global *)zName);\n  if (pFVar1 != (Fts5TokenizerModule *)0x0) {\n    pTokenizer->xCreate = (pFVar1->x).xCreate;\n    pTokenizer->xDelete = (pFVar1->x).xDelete;\n    pTokenizer->xTokenize = (pFVar1->x).xTokenize;\n    *ppUserData = pFVar1->pUserData;\n    return 0;\n  }\n  pTokenizer->xCreate = (_func_int_void_ptr_char_ptr_ptr_int_Fts5Tokenizer_ptr_ptr *)0x0;\n  pTokenizer->xDelete = (_func_void_Fts5Tokenizer_ptr *)0x0;\n  pTokenizer->xTokenize =\n       (_func_int_Fts5Tokenizer_ptr_void_ptr_int_char_ptr_int__func_int_void_ptr_int_char_ptr_int_int_int_ptr\n        *)0x0;\n  return 1;\n}" { (declaration "Fts5TokenizerModule *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (expression_statement "pFVar1 = fts5LocateTokenizer((Fts5Global *)pApi[2].iVersion,(char *)&pApi[2].xCreateTokenizer,\n                               (Fts5Global *)zName);" (assignment_expression "pFVar1 = fts5LocateTokenizer((Fts5Global *)pApi[2].iVersion,(char *)&pApi[2].xCreateTokenizer,\n                               (Fts5Global *)zName)" identifier = (call_expression "fts5LocateTokenizer((Fts5Global *)pApi[2].iVersion,(char *)&pApi[2].xCreateTokenizer,\n                               (Fts5Global *)zName)" identifier (argument_list "((Fts5Global *)pApi[2].iVersion,(char *)&pApi[2].xCreateTokenizer,\n                               (Fts5Global *)zName)" ( (cast_expression "(Fts5Global *)pApi[2].iVersion" ( (type_descriptor "Fts5Global *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pApi[2].iVersion" (subscript_expression "pApi[2]" identifier [ number_literal ]) . field_identifier)) , (cast_expression "(char *)&pApi[2].xCreateTokenizer" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pApi[2].xCreateTokenizer" & (field_expression "pApi[2].xCreateTokenizer" (subscript_expression "pApi[2]" identifier [ number_literal ]) . field_identifier))) , (cast_expression "(Fts5Global *)zName" ( (type_descriptor "Fts5Global *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (pFVar1 != (Fts5TokenizerModule *)0x0) {\n    pTokenizer->xCreate = (pFVar1->x).xCreate;\n    pTokenizer->xDelete = (pFVar1->x).xDelete;\n    pTokenizer->xTokenize = (pFVar1->x).xTokenize;\n    *ppUserData = pFVar1->pUserData;\n    return 0;\n  }" if (parenthesized_expression "(pFVar1 != (Fts5TokenizerModule *)0x0)" ( (binary_expression "pFVar1 != (Fts5TokenizerModule *)0x0" identifier != (cast_expression "(Fts5TokenizerModule *)0x0" ( (type_descriptor "Fts5TokenizerModule *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pTokenizer->xCreate = (pFVar1->x).xCreate;\n    pTokenizer->xDelete = (pFVar1->x).xDelete;\n    pTokenizer->xTokenize = (pFVar1->x).xTokenize;\n    *ppUserData = pFVar1->pUserData;\n    return 0;\n  }" { (expression_statement "pTokenizer->xCreate = (pFVar1->x).xCreate;" (assignment_expression "pTokenizer->xCreate = (pFVar1->x).xCreate" (field_expression "pTokenizer->xCreate" identifier -> field_identifier) = (field_expression "(pFVar1->x).xCreate" (parenthesized_expression "(pFVar1->x)" ( (field_expression "pFVar1->x" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pTokenizer->xDelete = (pFVar1->x).xDelete;" (assignment_expression "pTokenizer->xDelete = (pFVar1->x).xDelete" (field_expression "pTokenizer->xDelete" identifier -> field_identifier) = (field_expression "(pFVar1->x).xDelete" (parenthesized_expression "(pFVar1->x)" ( (field_expression "pFVar1->x" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pTokenizer->xTokenize = (pFVar1->x).xTokenize;" (assignment_expression "pTokenizer->xTokenize = (pFVar1->x).xTokenize" (field_expression "pTokenizer->xTokenize" identifier -> field_identifier) = (field_expression "(pFVar1->x).xTokenize" (parenthesized_expression "(pFVar1->x)" ( (field_expression "pFVar1->x" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*ppUserData = pFVar1->pUserData;" (assignment_expression "*ppUserData = pFVar1->pUserData" (pointer_expression "*ppUserData" * identifier) = (field_expression "pFVar1->pUserData" identifier -> field_identifier)) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "pTokenizer->xCreate = (_func_int_void_ptr_char_ptr_ptr_int_Fts5Tokenizer_ptr_ptr *)0x0;" (assignment_expression "pTokenizer->xCreate = (_func_int_void_ptr_char_ptr_ptr_int_Fts5Tokenizer_ptr_ptr *)0x0" (field_expression "pTokenizer->xCreate" identifier -> field_identifier) = (cast_expression "(_func_int_void_ptr_char_ptr_ptr_int_Fts5Tokenizer_ptr_ptr *)0x0" ( (type_descriptor "_func_int_void_ptr_char_ptr_ptr_int_Fts5Tokenizer_ptr_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pTokenizer->xDelete = (_func_void_Fts5Tokenizer_ptr *)0x0;" (assignment_expression "pTokenizer->xDelete = (_func_void_Fts5Tokenizer_ptr *)0x0" (field_expression "pTokenizer->xDelete" identifier -> field_identifier) = (cast_expression "(_func_void_Fts5Tokenizer_ptr *)0x0" ( (type_descriptor "_func_void_Fts5Tokenizer_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pTokenizer->xTokenize =\n       (_func_int_Fts5Tokenizer_ptr_void_ptr_int_char_ptr_int__func_int_void_ptr_int_char_ptr_int_int_int_ptr\n        *)0x0;" (assignment_expression "pTokenizer->xTokenize =\n       (_func_int_Fts5Tokenizer_ptr_void_ptr_int_char_ptr_int__func_int_void_ptr_int_char_ptr_int_int_int_ptr\n        *)0x0" (field_expression "pTokenizer->xTokenize" identifier -> field_identifier) = (cast_expression "(_func_int_Fts5Tokenizer_ptr_void_ptr_int_char_ptr_int__func_int_void_ptr_int_char_ptr_int_int_int_ptr\n        *)0x0" ( (type_descriptor "_func_int_Fts5Tokenizer_ptr_void_ptr_int_char_ptr_int__func_int_void_ptr_int_char_ptr_int_int_int_ptr\n        *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4\nFUN_00050cb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00050c70();\n  if (iVar1 != 0) {\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }\n  *param_4 = 0;\n  param_4[1] = 0;\n  param_4[2] = 0;\n  return 1;\n}\n\n" (function_definition "undefined4\nFUN_00050cb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00050c70();\n  if (iVar1 != 0) {\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }\n  *param_4 = 0;\n  param_4[1] = 0;\n  param_4[2] = 0;\n  return 1;\n}" type_identifier (function_declarator "FUN_00050cb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00050c70();\n  if (iVar1 != 0) {\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }\n  *param_4 = 0;\n  param_4[1] = 0;\n  param_4[2] = 0;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00050c70();" (assignment_expression "iVar1 = FUN_00050c70()" identifier = (call_expression "FUN_00050c70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }" { (expression_statement "*param_4 = *(undefined4 *)(iVar1 + 8);" (assignment_expression "*param_4 = *(undefined4 *)(iVar1 + 8)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "param_4[1] = *(undefined4 *)(iVar1 + 0xc);" (assignment_expression "param_4[1] = *(undefined4 *)(iVar1 + 0xc)" (subscript_expression "param_4[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "param_4[2] = *(undefined4 *)(iVar1 + 0x10);" (assignment_expression "param_4[2] = *(undefined4 *)(iVar1 + 0x10)" (subscript_expression "param_4[2]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = *(undefined4 *)(iVar1 + 4);" (assignment_expression "*param_3 = *(undefined4 *)(iVar1 + 4)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "param_4[1] = 0;" (assignment_expression "param_4[1] = 0" (subscript_expression "param_4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_4[2] = 0;" (assignment_expression "param_4[2] = 0" (subscript_expression "param_4[2]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(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)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4\nFUN_00050cb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00050c70();\n  if (iVar1 != 0) {\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }\n  *param_4 = 0;\n  param_4[1] = 0;\n  param_4[2] = 0;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00050cb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" (identifier "FUN_00050cb0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00050c70();\n  if (iVar1 != 0) {\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }\n  *param_4 = 0;\n  param_4[1] = 0;\n  param_4[2] = 0;\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00050c70();" (assignment_expression "iVar1 = FUN_00050c70()" (identifier "iVar1") (= "=") (call_expression "FUN_00050c70()" (identifier "FUN_00050c70") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *param_4 = *(undefined4 *)(iVar1 + 8);\n    param_4[1] = *(undefined4 *)(iVar1 + 0xc);\n    param_4[2] = *(undefined4 *)(iVar1 + 0x10);\n    *param_3 = *(undefined4 *)(iVar1 + 4);\n    return 0;\n  }" ({ "{") (expression_statement "*param_4 = *(undefined4 *)(iVar1 + 8);" (assignment_expression "*param_4 = *(undefined4 *)(iVar1 + 8)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "param_4[1] = *(undefined4 *)(iVar1 + 0xc);" (assignment_expression "param_4[1] = *(undefined4 *)(iVar1 + 0xc)" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "param_4[2] = *(undefined4 *)(iVar1 + 0x10);" (assignment_expression "param_4[2] = *(undefined4 *)(iVar1 + 0x10)" (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*param_3 = *(undefined4 *)(iVar1 + 4);" (assignment_expression "*param_3 = *(undefined4 *)(iVar1 + 4)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_4[1] = 0;" (assignment_expression "param_4[1] = 0" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_4[2] = 0;" (assignment_expression "param_4[2] = 0" (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *pApi,char *zName,void **ppUserData,type_2 *pTokenizer)

{
  type_3 *var_2;
  
  var_2 = var_1((type_4 *)pApi[2].iVersion,(char *)&pApi[2].xCreateTokenizer,
                               (type_4 *)zName);
  if (var_2 != (type_3 *)0x0) {
    pTokenizer->xCreate = (var_2->x).xCreate;
    pTokenizer->xDelete = (var_2->x).xDelete;
    pTokenizer->xTokenize = (var_2->x).xTokenize;
    *ppUserData = var_2->pUserData;
    return 0;
  }
  pTokenizer->xCreate = (type_5 *)0x0;
  pTokenizer->xDelete = (type_6 *)0x0;
  pTokenizer->xTokenize =
       (type_7
        *)0x0;
  return 1;
}


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

undefined4
MASKED(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 *param_4)

{
  int iVar1;
  
  iVar1 = FUN_00050c70();
  if (iVar1 != 0) {
    *param_4 = *(undefined4 *)(iVar1 + 8);
    param_4[1] = *(undefined4 *)(iVar1 + 0xc);
    param_4[2] = *(undefined4 *)(iVar1 + 0x10);
    *param_3 = *(undefined4 *)(iVar1 + 4);
    return 0;
  }
  *param_4 = 0;
  param_4[1] = 0;
  param_4[2] = 0;
  return 1;
}

