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

void __regparm3 fts5ExprAddChildren(Fts5ExprNode *p,Fts5ExprNode *pSub)

{
  int iVar1;
  
  iVar1 = p->nChild;
  if ((p->eType != 3) && (p->eType == pSub->eType)) {
    memcpy(p->apChild + iVar1,pSub->apChild,pSub->nChild << 2);
    p->nChild = p->nChild + pSub->nChild;
    sqlite3_free(pSub);
    return;
  }
  p->nChild = iVar1 + 1;
  p->apChild[iVar1] = pSub;
  return;
}



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

void __regparm3 FUN_00050740(int *param_1,int *param_2)

{
  int iVar1;
  size_t __n;
  int *__src;
  undefined4 uVar2;
  
  uVar2 = 0x5074a;
  iVar1 = param_1[7];
  if ((*param_1 != 3) && (*param_1 == *param_2)) {
    __src = param_2 + 8;
    __n = param_2[7] << 2;
    memcpy(param_1 + iVar1 + 8,__src,__n);
    param_1[7] = param_1[7] + param_2[7];
    FUN_00042800(param_2,__src,__n,uVar2);
    return;
  }
  param_1[7] = iVar1 + 1;
  param_1[iVar1 + 8] = (int)param_2;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [EAX]
CALL 0x00017230
ADD EBX,0x12b6de
MOV ECX,dword ptr [EAX + 0x1c]
CMP ESI,0x3
JZ 0x0005075c
CMP ESI,dword ptr [EDX]
JZ 0x00050770
LEA EBX,[ECX + 0x1]
MOV dword ptr [EAX + 0x1c],EBX
MOV dword ptr [EAX + ECX*0x4 + 0x20],EDX
POP EBX
POP ESI
POP EDI
RET
MOV ESI,EDX
MOV EDI,EAX
LEA EDX,[EAX + ECX*0x4 + 0x20]
SUB ESP,0x4
MOV EAX,dword ptr [ESI + 0x1c]
LEA ECX,[ESI + 0x20]
SHL EAX,0x2
PUSH EAX
PUSH ECX
PUSH EDX
CALL 0x00015130
MOV EAX,dword ptr [ESI + 0x1c]
ADD dword ptr [EDI + 0x1c],EAX
MOV dword ptr [ESP],ESI
CALL 0x00042800
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00050740(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  size_t __n;\n  int *__src;\n  undefined4 uVar2;\n  \n  uVar2 = 0x5074a;\n  iVar1 = param_1[7];\n  if ((*param_1 != 3) && (*param_1 == *param_2)) {\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }\n  param_1[7] = iVar1 + 1;\n  param_1[iVar1 + 8] = (int)param_2;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00050740(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  size_t __n;\n  int *__src;\n  undefined4 uVar2;\n  \n  uVar2 = 0x5074a;\n  iVar1 = param_1[7];\n  if ((*param_1 != 3) && (*param_1 == *param_2)) {\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }\n  param_1[7] = iVar1 + 1;\n  param_1[iVar1 + 8] = (int)param_2;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00050740(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t __n;\n  int *__src;\n  undefined4 uVar2;\n  \n  uVar2 = 0x5074a;\n  iVar1 = param_1[7];\n  if ((*param_1 != 3) && (*param_1 == *param_2)) {\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }\n  param_1[7] = iVar1 + 1;\n  param_1[iVar1 + 8] = (int)param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0x5074a;" (assignment_expression "uVar2 = 0x5074a" identifier = number_literal) ;) (expression_statement "iVar1 = param_1[7];" (assignment_expression "iVar1 = param_1[7]" identifier = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (if_statement "if ((*param_1 != 3) && (*param_1 == *param_2)) {\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }" if (parenthesized_expression "((*param_1 != 3) && (*param_1 == *param_2))" ( (binary_expression "(*param_1 != 3) && (*param_1 == *param_2)" (parenthesized_expression "(*param_1 != 3)" ( (binary_expression "*param_1 != 3" (pointer_expression "*param_1" * identifier) != number_literal) )) && (parenthesized_expression "(*param_1 == *param_2)" ( (binary_expression "*param_1 == *param_2" (pointer_expression "*param_1" * identifier) == (pointer_expression "*param_2" * identifier)) ))) )) (compound_statement "{\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }" { (expression_statement "__src = param_2 + 8;" (assignment_expression "__src = param_2 + 8" identifier = (binary_expression "param_2 + 8" identifier + number_literal)) ;) (expression_statement "__n = param_2[7] << 2;" (assignment_expression "__n = param_2[7] << 2" identifier = (binary_expression "param_2[7] << 2" (subscript_expression "param_2[7]" identifier [ number_literal ]) << number_literal)) ;) (expression_statement "memcpy(param_1 + iVar1 + 8,__src,__n);" (call_expression "memcpy(param_1 + iVar1 + 8,__src,__n)" identifier (argument_list "(param_1 + iVar1 + 8,__src,__n)" ( (binary_expression "param_1 + iVar1 + 8" (binary_expression "param_1 + iVar1" identifier + identifier) + number_literal) , identifier , identifier ))) ;) (expression_statement "param_1[7] = param_1[7] + param_2[7];" (assignment_expression "param_1[7] = param_1[7] + param_2[7]" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (binary_expression "param_1[7] + param_2[7]" (subscript_expression "param_1[7]" identifier [ number_literal ]) + (subscript_expression "param_2[7]" identifier [ number_literal ]))) ;) (expression_statement "FUN_00042800(param_2,__src,__n,uVar2);" (call_expression "FUN_00042800(param_2,__src,__n,uVar2)" identifier (argument_list "(param_2,__src,__n,uVar2)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "param_1[7] = iVar1 + 1;" (assignment_expression "param_1[7] = iVar1 + 1" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "param_1[iVar1 + 8] = (int)param_2;" (assignment_expression "param_1[iVar1 + 8] = (int)param_2" (subscript_expression "param_1[iVar1 + 8]" identifier [ (binary_expression "iVar1 + 8" identifier + number_literal) ]) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 fts5ExprAddChildren(Fts5ExprNode *p,Fts5ExprNode *pSub)\n\n{\n  int iVar1;\n  \n  iVar1 = p->nChild;\n  if ((p->eType != 3) && (p->eType == pSub->eType)) {\n    memcpy(p->apChild + iVar1,pSub->apChild,pSub->nChild << 2);\n    p->nChild = p->nChild + pSub->nChild;\n    sqlite3_free(pSub);\n    return;\n  }\n  p->nChild = iVar1 + 1;\n  p->apChild[iVar1] = pSub;\n  return;\n}\n\n" comment (function_definition "void __regparm3 fts5ExprAddChildren(Fts5ExprNode *p,Fts5ExprNode *pSub)\n\n{\n  int iVar1;\n  \n  iVar1 = p->nChild;\n  if ((p->eType != 3) && (p->eType == pSub->eType)) {\n    memcpy(p->apChild + iVar1,pSub->apChild,pSub->nChild << 2);\n    p->nChild = p->nChild + pSub->nChild;\n    sqlite3_free(pSub);\n    return;\n  }\n  p->nChild = iVar1 + 1;\n  p->apChild[iVar1] = pSub;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "fts5ExprAddChildren(Fts5ExprNode *p,Fts5ExprNode *pSub)" identifier (parameter_list "(Fts5ExprNode *p,Fts5ExprNode *pSub)" ( (parameter_declaration "Fts5ExprNode *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "Fts5ExprNode *pSub" type_identifier (pointer_declarator "*pSub" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = p->nChild;\n  if ((p->eType != 3) && (p->eType == pSub->eType)) {\n    memcpy(p->apChild + iVar1,pSub->apChild,pSub->nChild << 2);\n    p->nChild = p->nChild + pSub->nChild;\n    sqlite3_free(pSub);\n    return;\n  }\n  p->nChild = iVar1 + 1;\n  p->apChild[iVar1] = pSub;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = p->nChild;" (assignment_expression "iVar1 = p->nChild" identifier = (field_expression "p->nChild" identifier -> field_identifier)) ;) (if_statement "if ((p->eType != 3) && (p->eType == pSub->eType)) {\n    memcpy(p->apChild + iVar1,pSub->apChild,pSub->nChild << 2);\n    p->nChild = p->nChild + pSub->nChild;\n    sqlite3_free(pSub);\n    return;\n  }" if (parenthesized_expression "((p->eType != 3) && (p->eType == pSub->eType))" ( (binary_expression "(p->eType != 3) && (p->eType == pSub->eType)" (parenthesized_expression "(p->eType != 3)" ( (binary_expression "p->eType != 3" (field_expression "p->eType" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(p->eType == pSub->eType)" ( (binary_expression "p->eType == pSub->eType" (field_expression "p->eType" identifier -> field_identifier) == (field_expression "pSub->eType" identifier -> field_identifier)) ))) )) (compound_statement "{\n    memcpy(p->apChild + iVar1,pSub->apChild,pSub->nChild << 2);\n    p->nChild = p->nChild + pSub->nChild;\n    sqlite3_free(pSub);\n    return;\n  }" { (expression_statement "memcpy(p->apChild + iVar1,pSub->apChild,pSub->nChild << 2);" (call_expression "memcpy(p->apChild + iVar1,pSub->apChild,pSub->nChild << 2)" identifier (argument_list "(p->apChild + iVar1,pSub->apChild,pSub->nChild << 2)" ( (binary_expression "p->apChild + iVar1" (field_expression "p->apChild" identifier -> field_identifier) + identifier) , (field_expression "pSub->apChild" identifier -> field_identifier) , (binary_expression "pSub->nChild << 2" (field_expression "pSub->nChild" identifier -> field_identifier) << number_literal) ))) ;) (expression_statement "p->nChild = p->nChild + pSub->nChild;" (assignment_expression "p->nChild = p->nChild + pSub->nChild" (field_expression "p->nChild" identifier -> field_identifier) = (binary_expression "p->nChild + pSub->nChild" (field_expression "p->nChild" identifier -> field_identifier) + (field_expression "pSub->nChild" identifier -> field_identifier))) ;) (expression_statement "sqlite3_free(pSub);" (call_expression "sqlite3_free(pSub)" identifier (argument_list "(pSub)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "p->nChild = iVar1 + 1;" (assignment_expression "p->nChild = iVar1 + 1" (field_expression "p->nChild" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "p->apChild[iVar1] = pSub;" (assignment_expression "p->apChild[iVar1] = pSub" (subscript_expression "p->apChild[iVar1]" (field_expression "p->apChild" identifier -> field_identifier) [ identifier ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00050740(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  size_t __n;\n  int *__src;\n  undefined4 uVar2;\n  \n  uVar2 = 0x5074a;\n  iVar1 = param_1[7];\n  if ((*param_1 != 3) && (*param_1 == *param_2)) {\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }\n  param_1[7] = iVar1 + 1;\n  param_1[iVar1 + 8] = (int)param_2;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00050740(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  size_t __n;\n  int *__src;\n  undefined4 uVar2;\n  \n  uVar2 = 0x5074a;\n  iVar1 = param_1[7];\n  if ((*param_1 != 3) && (*param_1 == *param_2)) {\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }\n  param_1[7] = iVar1 + 1;\n  param_1[iVar1 + 8] = (int)param_2;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00050740(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t __n;\n  int *__src;\n  undefined4 uVar2;\n  \n  uVar2 = 0x5074a;\n  iVar1 = param_1[7];\n  if ((*param_1 != 3) && (*param_1 == *param_2)) {\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }\n  param_1[7] = iVar1 + 1;\n  param_1[iVar1 + 8] = (int)param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0x5074a;" (assignment_expression "uVar2 = 0x5074a" identifier = number_literal) ;) (expression_statement "iVar1 = param_1[7];" (assignment_expression "iVar1 = param_1[7]" identifier = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (if_statement "if ((*param_1 != 3) && (*param_1 == *param_2)) {\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }" if (parenthesized_expression "((*param_1 != 3) && (*param_1 == *param_2))" ( (binary_expression "(*param_1 != 3) && (*param_1 == *param_2)" (parenthesized_expression "(*param_1 != 3)" ( (binary_expression "*param_1 != 3" (pointer_expression "*param_1" * identifier) != number_literal) )) && (parenthesized_expression "(*param_1 == *param_2)" ( (binary_expression "*param_1 == *param_2" (pointer_expression "*param_1" * identifier) == (pointer_expression "*param_2" * identifier)) ))) )) (compound_statement "{\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }" { (expression_statement "__src = param_2 + 8;" (assignment_expression "__src = param_2 + 8" identifier = (binary_expression "param_2 + 8" identifier + number_literal)) ;) (expression_statement "__n = param_2[7] << 2;" (assignment_expression "__n = param_2[7] << 2" identifier = (binary_expression "param_2[7] << 2" (subscript_expression "param_2[7]" identifier [ number_literal ]) << number_literal)) ;) (expression_statement "memcpy(param_1 + iVar1 + 8,__src,__n);" (call_expression "memcpy(param_1 + iVar1 + 8,__src,__n)" identifier (argument_list "(param_1 + iVar1 + 8,__src,__n)" ( (binary_expression "param_1 + iVar1 + 8" (binary_expression "param_1 + iVar1" identifier + identifier) + number_literal) , identifier , identifier ))) ;) (expression_statement "param_1[7] = param_1[7] + param_2[7];" (assignment_expression "param_1[7] = param_1[7] + param_2[7]" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (binary_expression "param_1[7] + param_2[7]" (subscript_expression "param_1[7]" identifier [ number_literal ]) + (subscript_expression "param_2[7]" identifier [ number_literal ]))) ;) (expression_statement "FUN_00042800(param_2,__src,__n,uVar2);" (call_expression "FUN_00042800(param_2,__src,__n,uVar2)" identifier (argument_list "(param_2,__src,__n,uVar2)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "param_1[7] = iVar1 + 1;" (assignment_expression "param_1[7] = iVar1 + 1" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "param_1[iVar1 + 8] = (int)param_2;" (assignment_expression "param_1[iVar1 + 8] = (int)param_2" (subscript_expression "param_1[iVar1 + 8]" identifier [ (binary_expression "iVar1 + 8" identifier + number_literal) ]) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) << LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00050740(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  size_t __n;\n  int *__src;\n  undefined4 uVar2;\n  \n  uVar2 = 0x5074a;\n  iVar1 = param_1[7];\n  if ((*param_1 != 3) && (*param_1 == *param_2)) {\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }\n  param_1[7] = iVar1 + 1;\n  param_1[iVar1 + 8] = (int)param_2;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00050740(int *param_1,int *param_2)" (identifier "FUN_00050740") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  size_t __n;\n  int *__src;\n  undefined4 uVar2;\n  \n  uVar2 = 0x5074a;\n  iVar1 = param_1[7];\n  if ((*param_1 != 3) && (*param_1 == *param_2)) {\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }\n  param_1[7] = iVar1 + 1;\n  param_1[iVar1 + 8] = (int)param_2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int *__src;" (primitive_type "int") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = 0x5074a;" (assignment_expression "uVar2 = 0x5074a" (identifier "uVar2") (= "=") (number_literal "0x5074a")) (; ";")) (expression_statement "iVar1 = param_1[7];" (assignment_expression "iVar1 = param_1[7]" (identifier "iVar1") (= "=") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) (; ";")) (if_statement "if ((*param_1 != 3) && (*param_1 == *param_2)) {\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }" (if "if") (parenthesized_expression "((*param_1 != 3) && (*param_1 == *param_2))" (( "(") (binary_expression "(*param_1 != 3) && (*param_1 == *param_2)" (parenthesized_expression "(*param_1 != 3)" (( "(") (binary_expression "*param_1 != 3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "3")) () ")")) (&& "&&") (parenthesized_expression "(*param_1 == *param_2)" (( "(") (binary_expression "*param_1 == *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")"))) () ")")) (compound_statement "{\n    __src = param_2 + 8;\n    __n = param_2[7] << 2;\n    memcpy(param_1 + iVar1 + 8,__src,__n);\n    param_1[7] = param_1[7] + param_2[7];\n    FUN_00042800(param_2,__src,__n,uVar2);\n    return;\n  }" ({ "{") (expression_statement "__src = param_2 + 8;" (assignment_expression "__src = param_2 + 8" (identifier "__src") (= "=") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "__n = param_2[7] << 2;" (assignment_expression "__n = param_2[7] << 2" (identifier "__n") (= "=") (binary_expression "param_2[7] << 2" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (<< "<<") (number_literal "2"))) (; ";")) (expression_statement "memcpy(param_1 + iVar1 + 8,__src,__n);" (call_expression "memcpy(param_1 + iVar1 + 8,__src,__n)" (identifier "memcpy") (argument_list "(param_1 + iVar1 + 8,__src,__n)" (( "(") (binary_expression "param_1 + iVar1 + 8" (binary_expression "param_1 + iVar1" (identifier "param_1") (+ "+") (identifier "iVar1")) (+ "+") (number_literal "8")) (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "param_1[7] = param_1[7] + param_2[7];" (assignment_expression "param_1[7] = param_1[7] + param_2[7]" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (binary_expression "param_1[7] + param_2[7]" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (+ "+") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")))) (; ";")) (expression_statement "FUN_00042800(param_2,__src,__n,uVar2);" (call_expression "FUN_00042800(param_2,__src,__n,uVar2)" (identifier "FUN_00042800") (argument_list "(param_2,__src,__n,uVar2)" (( "(") (identifier "param_2") (, ",") (identifier "__src") (, ",") (identifier "__n") (, ",") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_1[7] = iVar1 + 1;" (assignment_expression "param_1[7] = iVar1 + 1" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_1[iVar1 + 8] = (int)param_2;" (assignment_expression "param_1[iVar1 + 8] = (int)param_2" (subscript_expression "param_1[iVar1 + 8]" (identifier "param_1") ([ "[") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) (] "]")) (= "=") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *p,type_1 *pSub)

{
  int var_2;
  
  var_2 = p->nChild;
  if ((p->eType != 3) && (p->eType == pSub->eType)) {
    var_1(p->apChild + var_2,pSub->apChild,pSub->nChild << 2);
    p->nChild = p->nChild + pSub->nChild;
    var_3(pSub);
    return;
  }
  p->nChild = var_2 + 1;
  p->apChild[var_2] = pSub;
  return;
}


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

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

void __regparm3 MASKED(int *param_1,int *param_2)

{
  int iVar1;
  size_t __n;
  int *__src;
  undefined4 uVar2;
  
  uVar2 = 0x5074a;
  iVar1 = param_1[7];
  if ((*param_1 != 3) && (*param_1 == *param_2)) {
    __src = param_2 + 8;
    __n = param_2[7] << 2;
    memcpy(param_1 + iVar1 + 8,__src,__n);
    param_1[7] = param_1[7] + param_2[7];
    FUN_00042800(param_2,__src,__n,uVar2);
    return;
  }
  param_1[7] = iVar1 + 1;
  param_1[iVar1 + 8] = (int)param_2;
  return;
}

