
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3
fts3MatchinfoSelectDoctotal(Fts3Table *pTab,sqlite3_stmt **ppStmt,sqlite3_int64 *pnDoc,char **paLen)

{
  char *pBuf;
  int iVar1;
  sqlite3_stmt *pStmt;
  int iVar2;
  int in_GS_OFFSET;
  sqlite3_int64 nDoc;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xcd22d;
  pStmt = *ppStmt;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (pStmt == (sqlite3_stmt *)0x0) {
    iVar2 = sqlite3Fts3SelectDoctotal(pTab,ppStmt);
    if (iVar2 != 0) goto LAB_000cd28b;
    pStmt = *ppStmt;
  }
  pBuf = (char *)sqlite3_column_blob(pStmt,0);
  iVar1 = sqlite3Fts3GetVarint(pBuf,&nDoc);
  iVar2 = 0x10b;
  if ((int)nDoc != 0 || nDoc._4_4_ != 0) {
    *(int *)pnDoc = (int)nDoc;
    iVar2 = 0;
    *(undefined4 *)((int)pnDoc + 4) = 0;
    if (paLen != (char **)0x0) {
      *paLen = pBuf + iVar1;
    }
  }
LAB_000cd28b:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 FUN_000cd220(undefined4 param_1,int *param_2,int *param_3,int *param_4)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int in_GS_OFFSET;
  int local_2c;
  int local_28;
  
  iVar4 = *param_2;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (iVar4 == 0) {
    iVar4 = FUN_000cd150();
    if (iVar4 != 0) goto LAB_000cd28b;
    iVar4 = *param_2;
  }
  iVar2 = FUN_0004cff0(iVar4,0);
  iVar3 = FUN_0001d6f0();
  iVar4 = 0x10b;
  if (local_2c != 0 || local_28 != 0) {
    *param_3 = local_2c;
    iVar4 = 0;
    param_3[1] = 0;
    if (param_4 != (int *)0x0) {
      *param_4 = iVar2 + iVar3;
    }
  }
LAB_000cd28b:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f4bf0();
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x7bca7
SUB ESP,0x1c
MOV EDX,dword ptr [EDX]
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0xc],ECX
XOR ECX,ECX
MOV ESI,dword ptr [ESP + 0x30]
TEST EDX,EDX
JZ 0x000cd2a8
SUB ESP,0x8
PUSH 0x0
PUSH EDX
CALL 0x0004cff0
LEA EDX,[ESP + 0x10]
MOV EBX,EAX
CALL 0x0001d6f0
MOV ECX,dword ptr [ESP + 0x10]
ADD ESP,0x10
MOV EDX,0x10b
MOV EDI,ECX
OR EDI,dword ptr [ESP + 0x4]
JZ 0x000cd28b
MOV dword ptr [EBP],ECX
XOR EDX,EDX
MOV dword ptr [EBP + 0x4],0x0
TEST ESI,ESI
JZ 0x000cd28b
ADD EBX,EAX
MOV dword ptr [ESI],EBX
MOV ESI,dword ptr [ESP + 0xc]
XOR ESI,dword ptr GS:[0x14]
MOV EAX,EDX
JNZ 0x000cd2b9
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,EDI
CALL 0x000cd150
MOV EDX,EAX
TEST EAX,EAX
JNZ 0x000cd28b
MOV EDX,dword ptr [EDI]
JMP 0x000cd24d
CALL 0x000f4bf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_000cd220(undefined4 param_1,int *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_2c;\n  int local_28;\n  \n  iVar4 = *param_2;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (iVar4 == 0) {\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }\n  iVar2 = FUN_0004cff0(iVar4,0);\n  iVar3 = FUN_0001d6f0();\n  iVar4 = 0x10b;\n  if (local_2c != 0 || local_28 != 0) {\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }\nLAB_000cd28b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}\n\n" comment (function_definition "int __regparm3 FUN_000cd220(undefined4 param_1,int *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_2c;\n  int local_28;\n  \n  iVar4 = *param_2;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (iVar4 == 0) {\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }\n  iVar2 = FUN_0004cff0(iVar4,0);\n  iVar3 = FUN_0001d6f0();\n  iVar4 = 0x10b;\n  if (local_2c != 0 || local_28 != 0) {\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }\nLAB_000cd28b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000cd220(undefined4 param_1,int *param_2,int *param_3,int *param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,int *param_3,int *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_2c;\n  int local_28;\n  \n  iVar4 = *param_2;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (iVar4 == 0) {\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }\n  iVar2 = FUN_0004cff0(iVar4,0);\n  iVar3 = FUN_0001d6f0();\n  iVar4 = 0x10b;\n  if (local_2c != 0 || local_28 != 0) {\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }\nLAB_000cd28b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }" { (expression_statement "iVar4 = FUN_000cd150();" (assignment_expression "iVar4 = FUN_000cd150()" identifier = (call_expression "FUN_000cd150()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) goto LAB_000cd28b;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000cd28b;" goto statement_identifier ;)) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "iVar2 = FUN_0004cff0(iVar4,0);" (assignment_expression "iVar2 = FUN_0004cff0(iVar4,0)" identifier = (call_expression "FUN_0004cff0(iVar4,0)" identifier (argument_list "(iVar4,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar3 = FUN_0001d6f0();" (assignment_expression "iVar3 = FUN_0001d6f0()" identifier = (call_expression "FUN_0001d6f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = 0x10b;" (assignment_expression "iVar4 = 0x10b" identifier = number_literal) ;) (if_statement "if (local_2c != 0 || local_28 != 0) {\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }" if (parenthesized_expression "(local_2c != 0 || local_28 != 0)" ( (binary_expression "local_2c != 0 || local_28 != 0" (binary_expression "local_2c != 0" identifier != number_literal) || (binary_expression "local_28 != 0" identifier != number_literal)) )) (compound_statement "{\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }" { (expression_statement "*param_3 = local_2c;" (assignment_expression "*param_3 = local_2c" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_4 = iVar2 + iVar3;\n    }" { (expression_statement "*param_4 = iVar2 + iVar3;" (assignment_expression "*param_4 = iVar2 + iVar3" (pointer_expression "*param_4" * identifier) = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) })) })) (labeled_statement "LAB_000cd28b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) }))) comment (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3\nfts3MatchinfoSelectDoctotal(Fts3Table *pTab,sqlite3_stmt **ppStmt,sqlite3_int64 *pnDoc,char **paLen)\n\n{\n  char *pBuf;\n  int iVar1;\n  sqlite3_stmt *pStmt;\n  int iVar2;\n  int in_GS_OFFSET;\n  sqlite3_int64 nDoc;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xcd22d;\n  pStmt = *ppStmt;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pStmt == (sqlite3_stmt *)0x0) {\n    iVar2 = sqlite3Fts3SelectDoctotal(pTab,ppStmt);\n    if (iVar2 != 0) goto LAB_000cd28b;\n    pStmt = *ppStmt;\n  }\n  pBuf = (char *)sqlite3_column_blob(pStmt,0);\n  iVar1 = sqlite3Fts3GetVarint(pBuf,&nDoc);\n  iVar2 = 0x10b;\n  if ((int)nDoc != 0 || nDoc._4_4_ != 0) {\n    *(int *)pnDoc = (int)nDoc;\n    iVar2 = 0;\n    *(undefined4 *)((int)pnDoc + 4) = 0;\n    if (paLen != (char **)0x0) {\n      *paLen = pBuf + iVar1;\n    }\n  }\nLAB_000cd28b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "int __regparm3\nfts3MatchinfoSelectDoctotal(Fts3Table *pTab,sqlite3_stmt **ppStmt,sqlite3_int64 *pnDoc,char **paLen)\n\n{\n  char *pBuf;\n  int iVar1;\n  sqlite3_stmt *pStmt;\n  int iVar2;\n  int in_GS_OFFSET;\n  sqlite3_int64 nDoc;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xcd22d;\n  pStmt = *ppStmt;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pStmt == (sqlite3_stmt *)0x0) {\n    iVar2 = sqlite3Fts3SelectDoctotal(pTab,ppStmt);\n    if (iVar2 != 0) goto LAB_000cd28b;\n    pStmt = *ppStmt;\n  }\n  pBuf = (char *)sqlite3_column_blob(pStmt,0);\n  iVar1 = sqlite3Fts3GetVarint(pBuf,&nDoc);\n  iVar2 = 0x10b;\n  if ((int)nDoc != 0 || nDoc._4_4_ != 0) {\n    *(int *)pnDoc = (int)nDoc;\n    iVar2 = 0;\n    *(undefined4 *)((int)pnDoc + 4) = 0;\n    if (paLen != (char **)0x0) {\n      *paLen = pBuf + iVar1;\n    }\n  }\nLAB_000cd28b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "fts3MatchinfoSelectDoctotal(Fts3Table *pTab,sqlite3_stmt **ppStmt,sqlite3_int64 *pnDoc,char **paLen)" identifier (parameter_list "(Fts3Table *pTab,sqlite3_stmt **ppStmt,sqlite3_int64 *pnDoc,char **paLen)" ( (parameter_declaration "Fts3Table *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) , (parameter_declaration "sqlite3_stmt **ppStmt" type_identifier (pointer_declarator "**ppStmt" * (pointer_declarator "*ppStmt" * identifier))) , (parameter_declaration "sqlite3_int64 *pnDoc" type_identifier (pointer_declarator "*pnDoc" * identifier)) , (parameter_declaration "char **paLen" primitive_type (pointer_declarator "**paLen" * (pointer_declarator "*paLen" * identifier))) ))) (compound_statement "{\n  char *pBuf;\n  int iVar1;\n  sqlite3_stmt *pStmt;\n  int iVar2;\n  int in_GS_OFFSET;\n  sqlite3_int64 nDoc;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xcd22d;\n  pStmt = *ppStmt;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pStmt == (sqlite3_stmt *)0x0) {\n    iVar2 = sqlite3Fts3SelectDoctotal(pTab,ppStmt);\n    if (iVar2 != 0) goto LAB_000cd28b;\n    pStmt = *ppStmt;\n  }\n  pBuf = (char *)sqlite3_column_blob(pStmt,0);\n  iVar1 = sqlite3Fts3GetVarint(pBuf,&nDoc);\n  iVar2 = 0x10b;\n  if ((int)nDoc != 0 || nDoc._4_4_ != 0) {\n    *(int *)pnDoc = (int)nDoc;\n    iVar2 = 0;\n    *(undefined4 *)((int)pnDoc + 4) = 0;\n    if (paLen != (char **)0x0) {\n      *paLen = pBuf + iVar1;\n    }\n  }\nLAB_000cd28b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "char *pBuf;" primitive_type (pointer_declarator "*pBuf" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite3_stmt *pStmt;" type_identifier (pointer_declarator "*pStmt" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "sqlite3_int64 nDoc;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xcd22d;" (assignment_expression "uStack_14 = 0xcd22d" identifier = number_literal) ;) (expression_statement "pStmt = *ppStmt;" (assignment_expression "pStmt = *ppStmt" identifier = (pointer_expression "*ppStmt" * identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (pStmt == (sqlite3_stmt *)0x0) {\n    iVar2 = sqlite3Fts3SelectDoctotal(pTab,ppStmt);\n    if (iVar2 != 0) goto LAB_000cd28b;\n    pStmt = *ppStmt;\n  }" if (parenthesized_expression "(pStmt == (sqlite3_stmt *)0x0)" ( (binary_expression "pStmt == (sqlite3_stmt *)0x0" identifier == (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = sqlite3Fts3SelectDoctotal(pTab,ppStmt);\n    if (iVar2 != 0) goto LAB_000cd28b;\n    pStmt = *ppStmt;\n  }" { (expression_statement "iVar2 = sqlite3Fts3SelectDoctotal(pTab,ppStmt);" (assignment_expression "iVar2 = sqlite3Fts3SelectDoctotal(pTab,ppStmt)" identifier = (call_expression "sqlite3Fts3SelectDoctotal(pTab,ppStmt)" identifier (argument_list "(pTab,ppStmt)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) goto LAB_000cd28b;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000cd28b;" goto statement_identifier ;)) (expression_statement "pStmt = *ppStmt;" (assignment_expression "pStmt = *ppStmt" identifier = (pointer_expression "*ppStmt" * identifier)) ;) })) (expression_statement "pBuf = (char *)sqlite3_column_blob(pStmt,0);" (assignment_expression "pBuf = (char *)sqlite3_column_blob(pStmt,0)" identifier = (cast_expression "(char *)sqlite3_column_blob(pStmt,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_column_blob(pStmt,0)" identifier (argument_list "(pStmt,0)" ( identifier , number_literal ))))) ;) (expression_statement "iVar1 = sqlite3Fts3GetVarint(pBuf,&nDoc);" (assignment_expression "iVar1 = sqlite3Fts3GetVarint(pBuf,&nDoc)" identifier = (call_expression "sqlite3Fts3GetVarint(pBuf,&nDoc)" identifier (argument_list "(pBuf,&nDoc)" ( identifier , (pointer_expression "&nDoc" & identifier) )))) ;) (expression_statement "iVar2 = 0x10b;" (assignment_expression "iVar2 = 0x10b" identifier = number_literal) ;) (if_statement "if ((int)nDoc != 0 || nDoc._4_4_ != 0) {\n    *(int *)pnDoc = (int)nDoc;\n    iVar2 = 0;\n    *(undefined4 *)((int)pnDoc + 4) = 0;\n    if (paLen != (char **)0x0) {\n      *paLen = pBuf + iVar1;\n    }\n  }" if (parenthesized_expression "((int)nDoc != 0 || nDoc._4_4_ != 0)" ( (binary_expression "(int)nDoc != 0 || nDoc._4_4_ != 0" (binary_expression "(int)nDoc != 0" (cast_expression "(int)nDoc" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) || (binary_expression "nDoc._4_4_ != 0" (field_expression "nDoc._4_4_" identifier . field_identifier) != number_literal)) )) (compound_statement "{\n    *(int *)pnDoc = (int)nDoc;\n    iVar2 = 0;\n    *(undefined4 *)((int)pnDoc + 4) = 0;\n    if (paLen != (char **)0x0) {\n      *paLen = pBuf + iVar1;\n    }\n  }" { (expression_statement "*(int *)pnDoc = (int)nDoc;" (assignment_expression "*(int *)pnDoc = (int)nDoc" (pointer_expression "*(int *)pnDoc" * (cast_expression "(int *)pnDoc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(int)nDoc" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)((int)pnDoc + 4) = 0;" (assignment_expression "*(undefined4 *)((int)pnDoc + 4) = 0" (pointer_expression "*(undefined4 *)((int)pnDoc + 4)" * (cast_expression "(undefined4 *)((int)pnDoc + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pnDoc + 4)" ( (binary_expression "(int)pnDoc + 4" (cast_expression "(int)pnDoc" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (paLen != (char **)0x0) {\n      *paLen = pBuf + iVar1;\n    }" if (parenthesized_expression "(paLen != (char **)0x0)" ( (binary_expression "paLen != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      *paLen = pBuf + iVar1;\n    }" { (expression_statement "*paLen = pBuf + iVar1;" (assignment_expression "*paLen = pBuf + iVar1" (pointer_expression "*paLen" * identifier) = (binary_expression "pBuf + iVar1" identifier + identifier)) ;) })) })) (labeled_statement "LAB_000cd28b:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 FUN_000cd220(undefined4 param_1,int *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_2c;\n  int local_28;\n  \n  iVar4 = *param_2;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (iVar4 == 0) {\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }\n  iVar2 = FUN_0004cff0(iVar4,0);\n  iVar3 = FUN_0001d6f0();\n  iVar4 = 0x10b;\n  if (local_2c != 0 || local_28 != 0) {\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }\nLAB_000cd28b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_000f4bf0();\n}\n\n" (function_definition "int __regparm3 FUN_000cd220(undefined4 param_1,int *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_2c;\n  int local_28;\n  \n  iVar4 = *param_2;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (iVar4 == 0) {\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }\n  iVar2 = FUN_0004cff0(iVar4,0);\n  iVar3 = FUN_0001d6f0();\n  iVar4 = 0x10b;\n  if (local_2c != 0 || local_28 != 0) {\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }\nLAB_000cd28b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_000f4bf0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000cd220(undefined4 param_1,int *param_2,int *param_3,int *param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,int *param_3,int *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_2c;\n  int local_28;\n  \n  iVar4 = *param_2;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (iVar4 == 0) {\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }\n  iVar2 = FUN_0004cff0(iVar4,0);\n  iVar3 = FUN_0001d6f0();\n  iVar4 = 0x10b;\n  if (local_2c != 0 || local_28 != 0) {\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }\nLAB_000cd28b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_000f4bf0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }" { (expression_statement "iVar4 = FUN_000cd150();" (assignment_expression "iVar4 = FUN_000cd150()" identifier = (call_expression "FUN_000cd150()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) goto LAB_000cd28b;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000cd28b;" goto statement_identifier ;)) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "iVar2 = FUN_0004cff0(iVar4,0);" (assignment_expression "iVar2 = FUN_0004cff0(iVar4,0)" identifier = (call_expression "FUN_0004cff0(iVar4,0)" identifier (argument_list "(iVar4,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar3 = FUN_0001d6f0();" (assignment_expression "iVar3 = FUN_0001d6f0()" identifier = (call_expression "FUN_0001d6f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = 0x10b;" (assignment_expression "iVar4 = 0x10b" identifier = number_literal) ;) (if_statement "if (local_2c != 0 || local_28 != 0) {\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }" if (parenthesized_expression "(local_2c != 0 || local_28 != 0)" ( (binary_expression "local_2c != 0 || local_28 != 0" (binary_expression "local_2c != 0" identifier != number_literal) || (binary_expression "local_28 != 0" identifier != number_literal)) )) (compound_statement "{\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }" { (expression_statement "*param_3 = local_2c;" (assignment_expression "*param_3 = local_2c" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }" if (parenthesized_expression "(param_4 != (int *)0x0)" ( (binary_expression "param_4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_4 = iVar2 + iVar3;\n    }" { (expression_statement "*param_4 = iVar2 + iVar3;" (assignment_expression "*param_4 = iVar2 + iVar3" (pointer_expression "*param_4" * identifier) = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) })) })) (labeled_statement "LAB_000cd28b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + IDENT)) ;) })) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int __regparm3 FUN_000cd220(undefined4 param_1,int *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_2c;\n  int local_28;\n  \n  iVar4 = *param_2;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (iVar4 == 0) {\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }\n  iVar2 = FUN_0004cff0(iVar4,0);\n  iVar3 = FUN_0001d6f0();\n  iVar4 = 0x10b;\n  if (local_2c != 0 || local_28 != 0) {\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }\nLAB_000cd28b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_000f4bf0();\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000cd220(undefined4 param_1,int *param_2,int *param_3,int *param_4)" (identifier "FUN_000cd220") (parameter_list "(undefined4 param_1,int *param_2,int *param_3,int *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int local_2c;\n  int local_28;\n  \n  iVar4 = *param_2;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (iVar4 == 0) {\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }\n  iVar2 = FUN_0004cff0(iVar4,0);\n  iVar3 = FUN_0001d6f0();\n  iVar4 = 0x10b;\n  if (local_2c != 0 || local_28 != 0) {\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }\nLAB_000cd28b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_000f4bf0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" (identifier "iVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (iVar4 == 0) {\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = FUN_000cd150();\n    if (iVar4 != 0) goto LAB_000cd28b;\n    iVar4 = *param_2;\n  }" ({ "{") (expression_statement "iVar4 = FUN_000cd150();" (assignment_expression "iVar4 = FUN_000cd150()" (identifier "iVar4") (= "=") (call_expression "FUN_000cd150()" (identifier "FUN_000cd150") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) goto LAB_000cd28b;" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000cd28b;" (goto "goto") (statement_identifier "LAB_000cd28b") (; ";"))) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" (identifier "iVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0004cff0(iVar4,0);" (assignment_expression "iVar2 = FUN_0004cff0(iVar4,0)" (identifier "iVar2") (= "=") (call_expression "FUN_0004cff0(iVar4,0)" (identifier "FUN_0004cff0") (argument_list "(iVar4,0)" (( "(") (identifier "iVar4") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar3 = FUN_0001d6f0();" (assignment_expression "iVar3 = FUN_0001d6f0()" (identifier "iVar3") (= "=") (call_expression "FUN_0001d6f0()" (identifier "FUN_0001d6f0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar4 = 0x10b;" (assignment_expression "iVar4 = 0x10b" (identifier "iVar4") (= "=") (number_literal "0x10b")) (; ";")) (if_statement "if (local_2c != 0 || local_28 != 0) {\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }" (if "if") (parenthesized_expression "(local_2c != 0 || local_28 != 0)" (( "(") (binary_expression "local_2c != 0 || local_28 != 0" (binary_expression "local_2c != 0" (identifier "local_2c") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "local_28 != 0" (identifier "local_28") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    *param_3 = local_2c;\n    iVar4 = 0;\n    param_3[1] = 0;\n    if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }\n  }" ({ "{") (expression_statement "*param_3 = local_2c;" (assignment_expression "*param_3 = local_2c" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "local_2c")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_4 != (int *)0x0) {\n      *param_4 = iVar2 + iVar3;\n    }" (if "if") (parenthesized_expression "(param_4 != (int *)0x0)" (( "(") (binary_expression "param_4 != (int *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_4 = iVar2 + iVar3;\n    }" ({ "{") (expression_statement "*param_4 = iVar2 + iVar3;" (assignment_expression "*param_4 = iVar2 + iVar3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3"))) (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_000cd28b:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" (statement_identifier "LAB_000cd28b") (: ":") (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar4;\n  }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" (identifier "FUN_000f4bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3
function_1(type_1 *pTab,type_2 **ppStmt,type_3 *pnDoc,char **var_7)

{
  char *var_8;
  int var_9;
  type_2 *var_2;
  int var_4;
  int var_1;
  type_3 nDoc;
  int var_10;
  type_4 uStack_14;
  
  uStack_14 = 0xcd22d;
  var_2 = *ppStmt;
  var_10 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_2 *)0x0) {
    var_4 = var_3(pTab,ppStmt);
    if (var_4 != 0) goto LAB_000cd28b;
    var_2 = *ppStmt;
  }
  var_8 = (char *)var_5(var_2,0);
  var_9 = var_6(var_8,&nDoc);
  var_4 = 0x10b;
  if ((int)nDoc != 0 || nDoc._4_4_ != 0) {
    *(int *)pnDoc = (int)nDoc;
    var_4 = 0;
    *(type_4 *)((int)pnDoc + 4) = 0;
    if (var_7 != (char **)0x0) {
      *var_7 = var_8 + var_9;
    }
  }
LAB_000cd28b:
  if (var_10 == *(int *)(var_1 + 0x14)) {
    return var_4;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int in_GS_OFFSET;
  int local_2c;
  int local_28;
  
  iVar4 = *param_2;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (iVar4 == 0) {
    iVar4 = FUN_000cd150();
    if (iVar4 != 0) goto LAB_000cd28b;
    iVar4 = *param_2;
  }
  iVar2 = FUN_0004cff0(iVar4,0);
  iVar3 = FUN_0001d6f0();
  iVar4 = 0x10b;
  if (local_2c != 0 || local_28 != 0) {
    *param_3 = local_2c;
    iVar4 = 0;
    param_3[1] = 0;
    if (param_4 != (int *)0x0) {
      *param_4 = iVar2 + iVar3;
    }
  }
LAB_000cd28b:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f4bf0();
}

