
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

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

{
  _func_void_void_ptr *unaff_EBX;
  int in_stack_ffffffe8;
  u8 in_stack_ffffffec;
  _func_void_void_ptr *in_stack_fffffff0;
  u8 in_stack_fffffff4;
  
  if (iCol == 1) {
    if (pCursor[0x19].pVtab == (sqlite3_vtab *)0x0) {
      setResultStrOrError(pCtx,"*",0,in_stack_fffffff4,unaff_EBX);
    }
    else {
      sqlite3_result_int(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3));
    }
    return 0;
  }
  if (iCol < 2) {
    if (iCol == 0) {
      setResultStrOrError(pCtx,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0);
      return 0;
    }
  }
  else {
    if (iCol == 2) {
      sqlite3_result_int64
                (pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab));
      return 0;
    }
    if (iCol == 3) {
      sqlite3_result_int64
                (pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8));
      return 0;
    }
  }
  sqlite3_result_int(pCtx,(int)pCursor[0x15].pVtab);
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

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

{
  int iVar1;
  undefined4 *puVar2;
  
  if (param_3 == 1) {
    if (*(int *)(param_1 + 100) == 0) {
      FUN_00070c50();
    }
    else {
      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);
    }
    return 0;
  }
  if (param_3 < 2) {
    if (param_3 == 0) {
      FUN_00071af0(0xffffffff);
      return 0;
    }
  }
  else {
    if (param_3 == 2) {
      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));
      FUN_0004c300(param_2,*puVar2,puVar2[1]);
      return 0;
    }
    if (param_3 == 3) {
      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);
      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));
      return 0;
    }
  }
  FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));
  return 0;
}


PUSH ESI
CALL 0x00152e6c
ADD ESI,0x1492d2
PUSH EBX
SUB ESP,0x4
MOV EDX,dword ptr [ESP + 0x18]
MOV EBX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0x14]
CMP EDX,0x1
JZ 0x00071bd0
JLE 0x00071ba8
CMP EDX,0x2
JZ 0x00071c10
CMP EDX,0x3
JNZ 0x00071bf0
MOV EDX,dword ptr [EBX + 0x64]
SUB ESP,0x4
SHL EDX,0x4
ADD EDX,dword ptr [EBX + 0x6c]
PUSH dword ptr [EDX + 0xc]
PUSH dword ptr [EDX + 0x8]
PUSH EAX
CALL 0x0004c300
ADD ESP,0x10
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
TEST EDX,EDX
JNZ 0x00071bf0
SUB ESP,0xc
MOV ECX,dword ptr [EBX + 0x30]
MOV EDX,dword ptr [EBX + 0x2c]
PUSH -0x1
CALL 0x00071af0
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EDX,dword ptr [EBX + 0x64]
TEST EDX,EDX
JZ 0x00071c38
SUB ESP,0x8
SUB EDX,0x1
PUSH EDX
PUSH EAX
CALL 0x0004c2c0
ADD ESP,0x10
JMP 0x00071b9c
SUB ESP,0x8
PUSH dword ptr [EBX + 0x54]
PUSH EAX
CALL 0x0004c2c0
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EDX,dword ptr [EBX + 0x64]
SUB ESP,0x4
SHL EDX,0x4
ADD EDX,dword ptr [EBX + 0x6c]
PUSH dword ptr [EDX + 0x4]
PUSH dword ptr [EDX]
PUSH EAX
CALL 0x0004c300
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
XOR ECX,ECX
LEA EDX,[ESI + 0xfff9fd08]
CALL 0x00070c50
JMP 0x00071b9c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 FUN_00071b50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (param_3 == 1) {\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }\n  FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00071b50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (param_3 == 1) {\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }\n  FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));\n  return 0;\n}" type_identifier (function_declarator "FUN_00071b50(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  int iVar1;\n  undefined4 *puVar2;\n  \n  if (param_3 == 1) {\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }\n  FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_3 == 1) {\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }" { (if_statement "if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 100) == 0)" ( (binary_expression "*(int *)(param_1 + 100) == 0" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00070c50();\n    }" { (expression_statement "FUN_00070c50();" (call_expression "FUN_00070c50()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }" else (compound_statement "{\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }" { (expression_statement "FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);" (call_expression "FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1)" identifier (argument_list "(param_2,*(int *)(param_1 + 100) + -1)" ( identifier , (binary_expression "*(int *)(param_1 + 100) + -1" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) + number_literal) ))) ;) }))) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\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_00071af0(0xffffffff);\n      return 0;\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }" { (expression_statement "FUN_00071af0(0xffffffff);" (call_expression "FUN_00071af0(0xffffffff)" identifier (argument_list "(0xffffffff)" ( number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }" { (if_statement "if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }" { (expression_statement "puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));" (assignment_expression "puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c))" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c))" ( (binary_expression "*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c)" (binary_expression "*(int *)(param_1 + 100) * 0x10" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) * number_literal) + (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) )))) ;) (expression_statement "FUN_0004c300(param_2,*puVar2,puVar2[1]);" (call_expression "FUN_0004c300(param_2,*puVar2,puVar2[1])" identifier (argument_list "(param_2,*puVar2,puVar2[1])" ( identifier , (pointer_expression "*puVar2" * identifier) , (subscript_expression "puVar2[1]" identifier [ number_literal ]) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 3)" ( (binary_expression "param_3 == 3" identifier == number_literal) )) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }" { (expression_statement "iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);" (assignment_expression "iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c)" identifier = (binary_expression "*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c)" (binary_expression "*(int *)(param_1 + 100) * 0x10" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) * number_literal) + (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))))) ;) (expression_statement "FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));" (call_expression "FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc))" identifier (argument_list "(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc))" ( 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) )))) , (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) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));" (call_expression "FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54))" identifier (argument_list "(param_2,*(undefined4 *)(param_1 + 0x54))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Unknown calling convention */\n\nint fts3auxColumnMethod(sqlite3_vtab_cursor *pCursor,sqlite3_context *pCtx,int iCol)\n\n{\n  _func_void_void_ptr *unaff_EBX;\n  int in_stack_ffffffe8;\n  u8 in_stack_ffffffec;\n  _func_void_void_ptr *in_stack_fffffff0;\n  u8 in_stack_fffffff4;\n  \n  if (iCol == 1) {\n    if (pCursor[0x19].pVtab == (sqlite3_vtab *)0x0) {\n      setResultStrOrError(pCtx,"*",0,in_stack_fffffff4,unaff_EBX);\n    }\n    else {\n      sqlite3_result_int(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3));\n    }\n    return 0;\n  }\n  if (iCol < 2) {\n    if (iCol == 0) {\n      setResultStrOrError(pCtx,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0);\n      return 0;\n    }\n  }\n  else {\n    if (iCol == 2) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab));\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8));\n      return 0;\n    }\n  }\n  sqlite3_result_int(pCtx,(int)pCursor[0x15].pVtab);\n  return 0;\n}\n\n" comment comment (function_definition "int fts3auxColumnMethod(sqlite3_vtab_cursor *pCursor,sqlite3_context *pCtx,int iCol)\n\n{\n  _func_void_void_ptr *unaff_EBX;\n  int in_stack_ffffffe8;\n  u8 in_stack_ffffffec;\n  _func_void_void_ptr *in_stack_fffffff0;\n  u8 in_stack_fffffff4;\n  \n  if (iCol == 1) {\n    if (pCursor[0x19].pVtab == (sqlite3_vtab *)0x0) {\n      setResultStrOrError(pCtx,"*",0,in_stack_fffffff4,unaff_EBX);\n    }\n    else {\n      sqlite3_result_int(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3));\n    }\n    return 0;\n  }\n  if (iCol < 2) {\n    if (iCol == 0) {\n      setResultStrOrError(pCtx,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0);\n      return 0;\n    }\n  }\n  else {\n    if (iCol == 2) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab));\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8));\n      return 0;\n    }\n  }\n  sqlite3_result_int(pCtx,(int)pCursor[0x15].pVtab);\n  return 0;\n}" primitive_type (function_declarator "fts3auxColumnMethod(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  _func_void_void_ptr *unaff_EBX;\n  int in_stack_ffffffe8;\n  u8 in_stack_ffffffec;\n  _func_void_void_ptr *in_stack_fffffff0;\n  u8 in_stack_fffffff4;\n  \n  if (iCol == 1) {\n    if (pCursor[0x19].pVtab == (sqlite3_vtab *)0x0) {\n      setResultStrOrError(pCtx,"*",0,in_stack_fffffff4,unaff_EBX);\n    }\n    else {\n      sqlite3_result_int(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3));\n    }\n    return 0;\n  }\n  if (iCol < 2) {\n    if (iCol == 0) {\n      setResultStrOrError(pCtx,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0);\n      return 0;\n    }\n  }\n  else {\n    if (iCol == 2) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab));\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8));\n      return 0;\n    }\n  }\n  sqlite3_result_int(pCtx,(int)pCursor[0x15].pVtab);\n  return 0;\n}" { (declaration "_func_void_void_ptr *unaff_EBX;" type_identifier (pointer_declarator "*unaff_EBX" * identifier) ;) (declaration "int in_stack_ffffffe8;" primitive_type identifier ;) (declaration "u8 in_stack_ffffffec;" type_identifier identifier ;) (declaration "_func_void_void_ptr *in_stack_fffffff0;" type_identifier (pointer_declarator "*in_stack_fffffff0" * identifier) ;) (declaration "u8 in_stack_fffffff4;" type_identifier identifier ;) (if_statement "if (iCol == 1) {\n    if (pCursor[0x19].pVtab == (sqlite3_vtab *)0x0) {\n      setResultStrOrError(pCtx,"*",0,in_stack_fffffff4,unaff_EBX);\n    }\n    else {\n      sqlite3_result_int(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3));\n    }\n    return 0;\n  }" if (parenthesized_expression "(iCol == 1)" ( (binary_expression "iCol == 1" identifier == number_literal) )) (compound_statement "{\n    if (pCursor[0x19].pVtab == (sqlite3_vtab *)0x0) {\n      setResultStrOrError(pCtx,"*",0,in_stack_fffffff4,unaff_EBX);\n    }\n    else {\n      sqlite3_result_int(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3));\n    }\n    return 0;\n  }" { (if_statement "if (pCursor[0x19].pVtab == (sqlite3_vtab *)0x0) {\n      setResultStrOrError(pCtx,"*",0,in_stack_fffffff4,unaff_EBX);\n    }\n    else {\n      sqlite3_result_int(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3));\n    }" if (parenthesized_expression "(pCursor[0x19].pVtab == (sqlite3_vtab *)0x0)" ( (binary_expression "pCursor[0x19].pVtab == (sqlite3_vtab *)0x0" (field_expression "pCursor[0x19].pVtab" (subscript_expression "pCursor[0x19]" identifier [ number_literal ]) . field_identifier) == (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      setResultStrOrError(pCtx,"*",0,in_stack_fffffff4,unaff_EBX);\n    }" { (expression_statement "setResultStrOrError(pCtx,"*",0,in_stack_fffffff4,unaff_EBX);" (call_expression "setResultStrOrError(pCtx,"*",0,in_stack_fffffff4,unaff_EBX)" identifier (argument_list "(pCtx,"*",0,in_stack_fffffff4,unaff_EBX)" ( identifier , (string_literal ""*"" " string_content ") , number_literal , identifier , identifier ))) ;) }) (else_clause "else {\n      sqlite3_result_int(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3));\n    }" else (compound_statement "{\n      sqlite3_result_int(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3));\n    }" { (expression_statement "sqlite3_result_int(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3));" (call_expression "sqlite3_result_int(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3))" identifier (argument_list "(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3))" ( identifier , (cast_expression "(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3)" ( (binary_expression "(int)&pCursor[0x19].pVtab[-1].zErrMsg + 3" (cast_expression "(int)&pCursor[0x19].pVtab[-1].zErrMsg" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pCursor[0x19].pVtab[-1].zErrMsg" & (field_expression "pCursor[0x19].pVtab[-1].zErrMsg" (subscript_expression "pCursor[0x19].pVtab[-1]" (field_expression "pCursor[0x19].pVtab" (subscript_expression "pCursor[0x19]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier))) + number_literal) ))) ))) ;) }))) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iCol < 2) {\n    if (iCol == 0) {\n      setResultStrOrError(pCtx,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0);\n      return 0;\n    }\n  }\n  else {\n    if (iCol == 2) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab));\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8));\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,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0);\n      return 0;\n    }\n  }" { (if_statement "if (iCol == 0) {\n      setResultStrOrError(pCtx,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0);\n      return 0;\n    }" if (parenthesized_expression "(iCol == 0)" ( (binary_expression "iCol == 0" identifier == number_literal) )) (compound_statement "{\n      setResultStrOrError(pCtx,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0);\n      return 0;\n    }" { (expression_statement "setResultStrOrError(pCtx,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0);" (call_expression "setResultStrOrError(pCtx,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0)" identifier (argument_list "(pCtx,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0)" ( identifier , (pointer_expression "&DAT_ffffffff" & identifier) , identifier , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (iCol == 2) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab));\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8));\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (iCol == 2) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab));\n      return 0;\n    }\n    if (iCol == 3) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8));\n      return 0;\n    }\n  }" { (if_statement "if (iCol == 2) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab));\n      return 0;\n    }" if (parenthesized_expression "(iCol == 2)" ( (binary_expression "iCol == 2" identifier == number_literal) )) (compound_statement "{\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab));\n      return 0;\n    }" { (expression_statement "sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab));" (call_expression "sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab))" identifier (argument_list "(pCtx,*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab))" ( identifier , (pointer_expression "*(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab)" * (cast_expression "(i64 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab)" ( (type_descriptor "i64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab)" ( (binary_expression "(int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab" (binary_expression "(int)pCursor[0x19].pVtab * 0x10" (cast_expression "(int)pCursor[0x19].pVtab" ( (type_descriptor "int" primitive_type) ) (field_expression "pCursor[0x19].pVtab" (subscript_expression "pCursor[0x19]" identifier [ number_literal ]) . field_identifier)) * number_literal) + (cast_expression "(int)pCursor[0x1b].pVtab" ( (type_descriptor "int" primitive_type) ) (field_expression "pCursor[0x1b].pVtab" (subscript_expression "pCursor[0x1b]" identifier [ number_literal ]) . field_identifier))) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iCol == 3) {\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8));\n      return 0;\n    }" if (parenthesized_expression "(iCol == 3)" ( (binary_expression "iCol == 3" identifier == number_literal) )) (compound_statement "{\n      sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8));\n      return 0;\n    }" { (expression_statement "sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8));" (call_expression "sqlite3_result_int64\n                (pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8))" identifier (argument_list "(pCtx,*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8))" ( identifier , (pointer_expression "*(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8)" * (cast_expression "(i64 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8)" ( (type_descriptor "i64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8)" ( (binary_expression "(int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8" (binary_expression "(int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10" (cast_expression "(int)pCursor[0x1b].pVtab" ( (type_descriptor "int" primitive_type) ) (field_expression "pCursor[0x1b].pVtab" (subscript_expression "pCursor[0x1b]" identifier [ number_literal ]) . field_identifier)) + (binary_expression "(int)pCursor[0x19].pVtab * 0x10" (cast_expression "(int)pCursor[0x19].pVtab" ( (type_descriptor "int" primitive_type) ) (field_expression "pCursor[0x19].pVtab" (subscript_expression "pCursor[0x19]" identifier [ number_literal ]) . field_identifier)) * number_literal)) + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "sqlite3_result_int(pCtx,(int)pCursor[0x15].pVtab);" (call_expression "sqlite3_result_int(pCtx,(int)pCursor[0x15].pVtab)" identifier (argument_list "(pCtx,(int)pCursor[0x15].pVtab)" ( identifier , (cast_expression "(int)pCursor[0x15].pVtab" ( (type_descriptor "int" primitive_type) ) (field_expression "pCursor[0x15].pVtab" (subscript_expression "pCursor[0x15]" identifier [ number_literal ]) . field_identifier)) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00071b50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (param_3 == 1) {\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }\n  FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00071b50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (param_3 == 1) {\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }\n  FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));\n  return 0;\n}" type_identifier (function_declarator "FUN_00071b50(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  int iVar1;\n  undefined4 *puVar2;\n  \n  if (param_3 == 1) {\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }\n  FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_3 == 1) {\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }" { (if_statement "if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 100) == 0)" ( (binary_expression "*(int *)(param_1 + 100) == 0" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00070c50();\n    }" { (expression_statement "FUN_00070c50();" (call_expression "FUN_00070c50()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }" else (compound_statement "{\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }" { (expression_statement "FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);" (call_expression "FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1)" identifier (argument_list "(param_2,*(int *)(param_1 + 100) + -1)" ( identifier , (binary_expression "*(int *)(param_1 + 100) + -1" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) + number_literal) ))) ;) }))) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\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_00071af0(0xffffffff);\n      return 0;\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }" { (expression_statement "FUN_00071af0(0xffffffff);" (call_expression "FUN_00071af0(0xffffffff)" identifier (argument_list "(0xffffffff)" ( number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }" { (if_statement "if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }" { (expression_statement "puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));" (assignment_expression "puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c))" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c))" ( (binary_expression "*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c)" (binary_expression "*(int *)(param_1 + 100) * 0x10" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) * number_literal) + (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) )))) ;) (expression_statement "FUN_0004c300(param_2,*puVar2,puVar2[1]);" (call_expression "FUN_0004c300(param_2,*puVar2,puVar2[1])" identifier (argument_list "(param_2,*puVar2,puVar2[1])" ( identifier , (pointer_expression "*puVar2" * identifier) , (subscript_expression "puVar2[1]" identifier [ number_literal ]) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }" if (parenthesized_expression "(param_3 == 3)" ( (binary_expression "param_3 == 3" identifier == number_literal) )) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }" { (expression_statement "iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);" (assignment_expression "iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c)" identifier = (binary_expression "*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c)" (binary_expression "*(int *)(param_1 + 100) * 0x10" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) * number_literal) + (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))))) ;) (expression_statement "FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));" (call_expression "FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc))" identifier (argument_list "(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc))" ( 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) )))) , (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) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));" (call_expression "FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54))" identifier (argument_list "(param_2,*(undefined4 *)(param_1 + 0x54))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" 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 { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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 ))) ;) (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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) )))) , (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_00071b50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (param_3 == 1) {\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }\n  FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00071b50(int param_1,undefined4 param_2,int param_3)" (identifier "FUN_00071b50") (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  int iVar1;\n  undefined4 *puVar2;\n  \n  if (param_3 == 1) {\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }\n  if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }\n  FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (param_3 == 1) {\n    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\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    if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }\n    return 0;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 100) == 0) {\n      FUN_00070c50();\n    }\n    else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 100) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 100) == 0" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00070c50();\n    }" ({ "{") (expression_statement "FUN_00070c50();" (call_expression "FUN_00070c50()" (identifier "FUN_00070c50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }" (else "else") (compound_statement "{\n      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);\n    }" ({ "{") (expression_statement "FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);" (call_expression "FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1)" (identifier "FUN_0004c2c0") (argument_list "(param_2,*(int *)(param_1 + 100) + -1)" (( "(") (identifier "param_2") (, ",") (binary_expression "*(int *)(param_1 + 100) + -1" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_3 < 2) {\n    if (param_3 == 0) {\n      FUN_00071af0(0xffffffff);\n      return 0;\n    }\n  }\n  else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\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_00071af0(0xffffffff);\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (param_3 == 0) {\n      FUN_00071af0(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_00071af0(0xffffffff);\n      return 0;\n    }" ({ "{") (expression_statement "FUN_00071af0(0xffffffff);" (call_expression "FUN_00071af0(0xffffffff)" (identifier "FUN_00071af0") (argument_list "(0xffffffff)" (( "(") (number_literal "0xffffffff") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }\n    if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (param_3 == 2) {\n      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\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      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));\n      FUN_0004c300(param_2,*puVar2,puVar2[1]);\n      return 0;\n    }" ({ "{") (expression_statement "puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));" (assignment_expression "puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c))" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c))" (( "(") (binary_expression "*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c)" (binary_expression "*(int *)(param_1 + 100) * 0x10" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (* "*") (number_literal "0x10")) (+ "+") (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) () ")")))) (; ";")) (expression_statement "FUN_0004c300(param_2,*puVar2,puVar2[1]);" (call_expression "FUN_0004c300(param_2,*puVar2,puVar2[1])" (identifier "FUN_0004c300") (argument_list "(param_2,*puVar2,puVar2[1])" (( "(") (identifier "param_2") (, ",") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_3 == 3) {\n      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\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      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);\n      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));\n      return 0;\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);" (assignment_expression "iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c)" (identifier "iVar1") (= "=") (binary_expression "*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c)" (binary_expression "*(int *)(param_1 + 100) * 0x10" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (* "*") (number_literal "0x10")) (+ "+") (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))))) (; ";")) (expression_statement "FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));" (call_expression "FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc))" (identifier "FUN_0004c300") (argument_list "(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc))" (( "(") (identifier "param_2") (, ",") (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")) () ")")))) (, ",") (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")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));" (call_expression "FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54))" (identifier "FUN_0004c2c0") (argument_list "(param_2,*(undefined4 *)(param_1 + 0x54))" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

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

{
  type_3 *unaff_EBX;
  int in_stack_ffffffe8;
  type_4 in_stack_ffffffec;
  type_3 *in_stack_fffffff0;
  type_4 in_stack_fffffff4;
  
  if (var_1 == 1) {
    if (pCursor[0x19].pVtab == (type_5 *)0x0) {
      var_2(pCtx,"*",0,in_stack_fffffff4,unaff_EBX);
    }
    else {
      var_3(pCtx,(int)((int)&pCursor[0x19].pVtab[-1].zErrMsg + 3));
    }
    return 0;
  }
  if (var_1 < 2) {
    if (var_1 == 0) {
      var_2(pCtx,&DAT_ffffffff,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0);
      return 0;
    }
  }
  else {
    if (var_1 == 2) {
      var_4
                (pCtx,*(type_6 *)((int)pCursor[0x19].pVtab * 0x10 + (int)pCursor[0x1b].pVtab));
      return 0;
    }
    if (var_1 == 3) {
      var_4
                (pCtx,*(type_6 *)((int)pCursor[0x1b].pVtab + (int)pCursor[0x19].pVtab * 0x10 + 8));
      return 0;
    }
  }
  var_3(pCtx,(int)pCursor[0x15].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 (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (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)))) (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 (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (number_literal)) right: (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)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (subscript_expression argument: (identifier) index: (number_literal))))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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: (number_literal)) right: (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)))))))) (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))))) (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)))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

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

{
  int iVar1;
  undefined4 *puVar2;
  
  if (param_3 == 1) {
    if (*(int *)(param_1 + 100) == 0) {
      FUN_00070c50();
    }
    else {
      FUN_0004c2c0(param_2,*(int *)(param_1 + 100) + -1);
    }
    return 0;
  }
  if (param_3 < 2) {
    if (param_3 == 0) {
      FUN_00071af0(0xffffffff);
      return 0;
    }
  }
  else {
    if (param_3 == 2) {
      puVar2 = (undefined4 *)(*(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c));
      FUN_0004c300(param_2,*puVar2,puVar2[1]);
      return 0;
    }
    if (param_3 == 3) {
      iVar1 = *(int *)(param_1 + 100) * 0x10 + *(int *)(param_1 + 0x6c);
      FUN_0004c300(param_2,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc));
      return 0;
    }
  }
  FUN_0004c2c0(param_2,*(undefined4 *)(param_1 + 0x54));
  return 0;
}

