
/* WARNING: Unknown calling convention */

int fts3tokColumnMethod(sqlite3_vtab_cursor *pCursor,sqlite3_context *pCtx,int iCol)

{
  if (iCol == 1) {
    setResultStrOrError(pCtx,(char *)pCursor[4].pVtab,(int)pCursor[5].pVtab,'\x01',
                        (_func_void_void_ptr *)&DAT_ffffffff);
    return 0;
  }
  if (iCol < 2) {
    if (iCol == 0) {
      setResultStrOrError(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',
                          (_func_void_void_ptr *)&DAT_ffffffff);
      return 0;
    }
  }
  else {
    if (iCol == 2) {
      sqlite3_result_int(pCtx,(int)pCursor[6].pVtab);
      return 0;
    }
    if (iCol == 3) {
      sqlite3_result_int(pCtx,(int)pCursor[7].pVtab);
      return 0;
    }
  }
  sqlite3_result_int(pCtx,(int)pCursor[8].pVtab);
  return 0;
}



undefined4 FUN_000649f0(int param_1,undefined4 param_2,int param_3)

{
  if (param_3 == 1) {
    FUN_000644e0(1,0xffffffff);
    return 0;
  }
  if (param_3 < 2) {
    if (param_3 == 0) {
      FUN_000644e0(1,0xffffffff);
      return 0;
    }
  }
  else {
    if (param_3 == 2) {
      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));
      return 0;
    }
    if (param_3 == 3) {
      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));
      return 0;
    }
  }
  FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));
  return 0;
}


PUSH EBX
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x18]
MOV EBX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0x14]
CMP EDX,0x1
JZ 0x00064a58
JLE 0x00064a30
CMP EDX,0x2
JZ 0x00064a90
CMP EDX,0x3
JNZ 0x00064a78
SUB ESP,0x8
PUSH dword ptr [EBX + 0x1c]
PUSH EAX
CALL 0x00042ac0
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x8
POP EBX
RET
TEST EDX,EDX
JNZ 0x00064a78
SUB ESP,0x8
MOV EDX,dword ptr [EBX + 0x4]
MOV ECX,0xffffffff
PUSH -0x1
PUSH 0x1
CALL 0x000644e0
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x8
MOV ECX,dword ptr [EBX + 0x14]
MOV EDX,dword ptr [EBX + 0x10]
PUSH -0x1
PUSH 0x1
CALL 0x000644e0
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x8
PUSH dword ptr [EBX + 0x20]
PUSH EAX
CALL 0x00042ac0
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x8
PUSH dword ptr [EBX + 0x18]
PUSH EAX
CALL 0x00042ac0
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x8
POP EBX
RET
(translation_unit "undefined4 FUN_000649f0(int param_1,undefined4 param_2,int param_3)\n\n{\n  if (param_3 == 1) {\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }\n  FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000649f0(int param_1,undefined4 param_2,int param_3)\n\n{\n  if (param_3 == 1) {\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }\n  FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));\n  return 0;\n}" type_identifier (function_declarator "FUN_000649f0(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  if (param_3 == 1) {\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }\n  FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));\n  return 0;\n}" { (if_statement "if (param_3 == 1) {\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }" { (expression_statement "FUN_000644e0(1,0xffffffff);" (call_expression "FUN_000644e0(1,0xffffffff)" identifier (argument_list "(1,0xffffffff)" ( number_literal , number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }" if (parenthesized_expression "(param_3 < 2)" ( (binary_expression "param_3 < 2" identifier < number_literal) )) (compound_statement "{\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }" { (expression_statement "FUN_000644e0(1,0xffffffff);" (call_expression "FUN_000644e0(1,0xffffffff)" identifier (argument_list "(1,0xffffffff)" ( number_literal , number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }" { (if_statement "if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }" { (expression_statement "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));" (call_expression "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(param_2,*(undefined4 *)(param_1 + 0x18))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 3)" ( (binary_expression "param_3 == 3" identifier == number_literal) )) (compound_statement "{\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }" { (expression_statement "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));" (call_expression "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c))" identifier (argument_list "(param_2,*(undefined4 *)(param_1 + 0x1c))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));" (call_expression "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20))" identifier (argument_list "(param_2,*(undefined4 *)(param_1 + 0x20))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint fts3tokColumnMethod(sqlite3_vtab_cursor *pCursor,sqlite3_context *pCtx,int iCol)\n\n{\n  if (iCol == 1) {\n    setResultStrOrError(pCtx,(char *)pCursor[4].pVtab,(int)pCursor[5].pVtab,'\x01',\n                        (_func_void_void_ptr *)&DAT_ffffffff);\n    return 0;\n  }\n  if (iCol < 2) {\n    if (iCol == 0) {\n      setResultStrOrError(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',\n                          (_func_void_void_ptr *)&DAT_ffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (iCol == 2) {\n      sqlite3_result_int(pCtx,(int)pCursor[6].pVtab);\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int(pCtx,(int)pCursor[7].pVtab);\n      return 0;\n    }\n  }\n  sqlite3_result_int(pCtx,(int)pCursor[8].pVtab);\n  return 0;\n}\n\n" comment (function_definition "int fts3tokColumnMethod(sqlite3_vtab_cursor *pCursor,sqlite3_context *pCtx,int iCol)\n\n{\n  if (iCol == 1) {\n    setResultStrOrError(pCtx,(char *)pCursor[4].pVtab,(int)pCursor[5].pVtab,'\x01',\n                        (_func_void_void_ptr *)&DAT_ffffffff);\n    return 0;\n  }\n  if (iCol < 2) {\n    if (iCol == 0) {\n      setResultStrOrError(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',\n                          (_func_void_void_ptr *)&DAT_ffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (iCol == 2) {\n      sqlite3_result_int(pCtx,(int)pCursor[6].pVtab);\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int(pCtx,(int)pCursor[7].pVtab);\n      return 0;\n    }\n  }\n  sqlite3_result_int(pCtx,(int)pCursor[8].pVtab);\n  return 0;\n}" primitive_type (function_declarator "fts3tokColumnMethod(sqlite3_vtab_cursor *pCursor,sqlite3_context *pCtx,int iCol)" identifier (parameter_list "(sqlite3_vtab_cursor *pCursor,sqlite3_context *pCtx,int iCol)" ( (parameter_declaration "sqlite3_vtab_cursor *pCursor" type_identifier (pointer_declarator "*pCursor" * identifier)) , (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "int iCol" primitive_type identifier) ))) (compound_statement "{\n  if (iCol == 1) {\n    setResultStrOrError(pCtx,(char *)pCursor[4].pVtab,(int)pCursor[5].pVtab,'\x01',\n                        (_func_void_void_ptr *)&DAT_ffffffff);\n    return 0;\n  }\n  if (iCol < 2) {\n    if (iCol == 0) {\n      setResultStrOrError(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',\n                          (_func_void_void_ptr *)&DAT_ffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (iCol == 2) {\n      sqlite3_result_int(pCtx,(int)pCursor[6].pVtab);\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int(pCtx,(int)pCursor[7].pVtab);\n      return 0;\n    }\n  }\n  sqlite3_result_int(pCtx,(int)pCursor[8].pVtab);\n  return 0;\n}" { (if_statement "if (iCol == 1) {\n    setResultStrOrError(pCtx,(char *)pCursor[4].pVtab,(int)pCursor[5].pVtab,'\x01',\n                        (_func_void_void_ptr *)&DAT_ffffffff);\n    return 0;\n  }" if (parenthesized_expression "(iCol == 1)" ( (binary_expression "iCol == 1" identifier == number_literal) )) (compound_statement "{\n    setResultStrOrError(pCtx,(char *)pCursor[4].pVtab,(int)pCursor[5].pVtab,'\x01',\n                        (_func_void_void_ptr *)&DAT_ffffffff);\n    return 0;\n  }" { (expression_statement "setResultStrOrError(pCtx,(char *)pCursor[4].pVtab,(int)pCursor[5].pVtab,'\x01',\n                        (_func_void_void_ptr *)&DAT_ffffffff);" (call_expression "setResultStrOrError(pCtx,(char *)pCursor[4].pVtab,(int)pCursor[5].pVtab,'\x01',\n                        (_func_void_void_ptr *)&DAT_ffffffff)" identifier (argument_list "(pCtx,(char *)pCursor[4].pVtab,(int)pCursor[5].pVtab,'\x01',\n                        (_func_void_void_ptr *)&DAT_ffffffff)" ( identifier , (cast_expression "(char *)pCursor[4].pVtab" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "pCursor[4].pVtab" (subscript_expression "pCursor[4]" identifier [ number_literal ]) . field_identifier)) , (cast_expression "(int)pCursor[5].pVtab" ( (type_descriptor "int" primitive_type) ) (field_expression "pCursor[5].pVtab" (subscript_expression "pCursor[5]" identifier [ number_literal ]) . field_identifier)) , (char_literal "'\x01'" ' escape_sequence ') , (cast_expression "(_func_void_void_ptr *)&DAT_ffffffff" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier)) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iCol < 2) {\n    if (iCol == 0) {\n      setResultStrOrError(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',\n                          (_func_void_void_ptr *)&DAT_ffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (iCol == 2) {\n      sqlite3_result_int(pCtx,(int)pCursor[6].pVtab);\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int(pCtx,(int)pCursor[7].pVtab);\n      return 0;\n    }\n  }" if (parenthesized_expression "(iCol < 2)" ( (binary_expression "iCol < 2" identifier < number_literal) )) (compound_statement "{\n    if (iCol == 0) {\n      setResultStrOrError(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',\n                          (_func_void_void_ptr *)&DAT_ffffffff);\n      return 0;\n    }\n  }" { (if_statement "if (iCol == 0) {\n      setResultStrOrError(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',\n                          (_func_void_void_ptr *)&DAT_ffffffff);\n      return 0;\n    }" if (parenthesized_expression "(iCol == 0)" ( (binary_expression "iCol == 0" identifier == number_literal) )) (compound_statement "{\n      setResultStrOrError(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',\n                          (_func_void_void_ptr *)&DAT_ffffffff);\n      return 0;\n    }" { (expression_statement "setResultStrOrError(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',\n                          (_func_void_void_ptr *)&DAT_ffffffff);" (call_expression "setResultStrOrError(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',\n                          (_func_void_void_ptr *)&DAT_ffffffff)" identifier (argument_list "(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',\n                          (_func_void_void_ptr *)&DAT_ffffffff)" ( identifier , (cast_expression "(char *)pCursor[1].pVtab" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "pCursor[1].pVtab" (subscript_expression "pCursor[1]" identifier [ number_literal ]) . field_identifier)) , number_literal , (char_literal "'\x01'" ' escape_sequence ') , (cast_expression "(_func_void_void_ptr *)&DAT_ffffffff" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier)) ))) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (iCol == 2) {\n      sqlite3_result_int(pCtx,(int)pCursor[6].pVtab);\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int(pCtx,(int)pCursor[7].pVtab);\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (iCol == 2) {\n      sqlite3_result_int(pCtx,(int)pCursor[6].pVtab);\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int(pCtx,(int)pCursor[7].pVtab);\n      return 0;\n    }\n  }" { (if_statement "if (iCol == 2) {\n      sqlite3_result_int(pCtx,(int)pCursor[6].pVtab);\n      return 0;\n    }" if (parenthesized_expression "(iCol == 2)" ( (binary_expression "iCol == 2" identifier == number_literal) )) (compound_statement "{\n      sqlite3_result_int(pCtx,(int)pCursor[6].pVtab);\n      return 0;\n    }" { (expression_statement "sqlite3_result_int(pCtx,(int)pCursor[6].pVtab);" (call_expression "sqlite3_result_int(pCtx,(int)pCursor[6].pVtab)" identifier (argument_list "(pCtx,(int)pCursor[6].pVtab)" ( identifier , (cast_expression "(int)pCursor[6].pVtab" ( (type_descriptor "int" primitive_type) ) (field_expression "pCursor[6].pVtab" (subscript_expression "pCursor[6]" identifier [ number_literal ]) . field_identifier)) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iCol == 3) {\n      sqlite3_result_int(pCtx,(int)pCursor[7].pVtab);\n      return 0;\n    }" if (parenthesized_expression "(iCol == 3)" ( (binary_expression "iCol == 3" identifier == number_literal) )) (compound_statement "{\n      sqlite3_result_int(pCtx,(int)pCursor[7].pVtab);\n      return 0;\n    }" { (expression_statement "sqlite3_result_int(pCtx,(int)pCursor[7].pVtab);" (call_expression "sqlite3_result_int(pCtx,(int)pCursor[7].pVtab)" identifier (argument_list "(pCtx,(int)pCursor[7].pVtab)" ( identifier , (cast_expression "(int)pCursor[7].pVtab" ( (type_descriptor "int" primitive_type) ) (field_expression "pCursor[7].pVtab" (subscript_expression "pCursor[7]" identifier [ number_literal ]) . field_identifier)) ))) ;) (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "sqlite3_result_int(pCtx,(int)pCursor[8].pVtab);" (call_expression "sqlite3_result_int(pCtx,(int)pCursor[8].pVtab)" identifier (argument_list "(pCtx,(int)pCursor[8].pVtab)" ( identifier , (cast_expression "(int)pCursor[8].pVtab" ( (type_descriptor "int" primitive_type) ) (field_expression "pCursor[8].pVtab" (subscript_expression "pCursor[8]" identifier [ number_literal ]) . field_identifier)) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000649f0(int param_1,undefined4 param_2,int param_3)\n\n{\n  if (param_3 == 1) {\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }\n  FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000649f0(int param_1,undefined4 param_2,int param_3)\n\n{\n  if (param_3 == 1) {\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }\n  FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));\n  return 0;\n}" type_identifier (function_declarator "FUN_000649f0(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  if (param_3 == 1) {\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }\n  FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));\n  return 0;\n}" { (if_statement "if (param_3 == 1) {\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }" { (expression_statement "FUN_000644e0(1,0xffffffff);" (call_expression "FUN_000644e0(1,0xffffffff)" identifier (argument_list "(1,0xffffffff)" ( number_literal , number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }" if (parenthesized_expression "(param_3 < 2)" ( (binary_expression "param_3 < 2" identifier < number_literal) )) (compound_statement "{\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }" { (expression_statement "FUN_000644e0(1,0xffffffff);" (call_expression "FUN_000644e0(1,0xffffffff)" identifier (argument_list "(1,0xffffffff)" ( number_literal , number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }" { (if_statement "if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }" { (expression_statement "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));" (call_expression "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(param_2,*(undefined4 *)(param_1 + 0x18))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 3)" ( (binary_expression "param_3 == 3" identifier == number_literal) )) (compound_statement "{\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }" { (expression_statement "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));" (call_expression "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c))" identifier (argument_list "(param_2,*(undefined4 *)(param_1 + 0x1c))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));" (call_expression "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20))" identifier (argument_list "(param_2,*(undefined4 *)(param_1 + 0x20))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , LIT ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , LIT ))) ;) (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return LIT ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000649f0(int param_1,undefined4 param_2,int param_3)\n\n{\n  if (param_3 == 1) {\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }\n  FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000649f0(int param_1,undefined4 param_2,int param_3)" (identifier "FUN_000649f0") (parameter_list "(int param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (param_3 == 1) {\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }\n  FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));\n  return 0;\n}" ({ "{") (if_statement "if (param_3 == 1) {\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    FUN_000644e0(1,0xffffffff);\n    return 0;\n  }" ({ "{") (expression_statement "FUN_000644e0(1,0xffffffff);" (call_expression "FUN_000644e0(1,0xffffffff)" (identifier "FUN_000644e0") (argument_list "(1,0xffffffff)" (( "(") (number_literal "1") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(param_3 < 2)" (( "(") (binary_expression "param_3 < 2" (identifier "param_3") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (param_3 == 0) {\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_000644e0(1,0xffffffff);\n      return 0;\n    }" ({ "{") (expression_statement "FUN_000644e0(1,0xffffffff);" (call_expression "FUN_000644e0(1,0xffffffff)" (identifier "FUN_000644e0") (argument_list "(1,0xffffffff)" (( "(") (number_literal "1") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }\n    if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (param_3 == 2) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_3 == 2)" (( "(") (binary_expression "param_3 == 2" (identifier "param_3") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));\n      return 0;\n    }" ({ "{") (expression_statement "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));" (call_expression "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18))" (identifier "FUN_00042ac0") (argument_list "(param_2,*(undefined4 *)(param_1 + 0x18))" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_3 == 3) {\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_3 == 3)" (( "(") (binary_expression "param_3 == 3" (identifier "param_3") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));\n      return 0;\n    }" ({ "{") (expression_statement "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));" (call_expression "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c))" (identifier "FUN_00042ac0") (argument_list "(param_2,*(undefined4 *)(param_1 + 0x1c))" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));" (call_expression "FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20))" (identifier "FUN_00042ac0") (argument_list "(param_2,*(undefined4 *)(param_1 + 0x20))" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *pCursor,type_2 *pCtx,int var_1)

{
  if (var_1 == 1) {
    var_2(pCtx,(char *)pCursor[4].pVtab,(int)pCursor[5].pVtab,'\x01',
                        (type_3 *)&DAT_ffffffff);
    return 0;
  }
  if (var_1 < 2) {
    if (var_1 == 0) {
      var_2(pCtx,(char *)pCursor[1].pVtab,-1,'\x01',
                          (type_3 *)&DAT_ffffffff);
      return 0;
    }
  }
  else {
    if (var_1 == 2) {
      var_3(pCtx,(int)pCursor[6].pVtab);
      return 0;
    }
    if (var_1 == 3) {
      var_3(pCtx,(int)pCursor[7].pVtab);
      return 0;
    }
  }
  var_3(pCtx,(int)pCursor[8].pVtab);
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))) (return_statement (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (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)))))

undefined4 MASKED(int param_1,undefined4 param_2,int param_3)

{
  if (param_3 == 1) {
    FUN_000644e0(1,0xffffffff);
    return 0;
  }
  if (param_3 < 2) {
    if (param_3 == 0) {
      FUN_000644e0(1,0xffffffff);
      return 0;
    }
  }
  else {
    if (param_3 == 2) {
      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x18));
      return 0;
    }
    if (param_3 == 3) {
      FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x1c));
      return 0;
    }
  }
  FUN_00042ac0(param_2,*(undefined4 *)(param_1 + 0x20));
  return 0;
}

