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

int __regparm3
renameEditSql(sqlite3_context *pCtx,RenameCtx *pRename,char *zSql,char *zNew,int bQuote)

{
  RenameToken **ppRVar1;
  byte *pbVar2;
  uint uVar3;
  size_t sVar4;
  sqlite3 *db;
  char *__s;
  char *z;
  int iVar5;
  RenameToken *pRVar6;
  RenameToken *pRVar7;
  RenameCtx *pRVar8;
  RenameToken *pRVar9;
  char *__src;
  uint __n;
  int iVar10;
  RenameToken *p;
  char *pcVar11;
  undefined4 in_stack_ffffffb4;
  undefined4 in_stack_ffffffb8;
  size_t local_44;
  uint local_34;
  
  if (zNew == (char *)0x0) {
    local_34 = 0;
  }
  else {
    sVar4 = strlen(zNew);
    local_34 = sVar4 & 0x3fffffff;
  }
  if (zSql == (char *)0x0) {
    local_44 = 0;
  }
  else {
    local_44 = strlen(zSql);
    local_44 = local_44 & 0x3fffffff;
  }
  db = sqlite3_context_db_handle(pCtx);
  __s = sqlite3MPrintf(db,"\"%w\"",zNew);
  if (__s != (char *)0x0) {
    sVar4 = strlen(__s);
    pcVar11 = __s;
    if (bQuote == 0) {
      pcVar11 = zNew;
    }
    iVar10 = 7;
    if (bQuote != 0) {
      local_34 = sVar4 & 0x3fffffff;
    }
    z = (char *)sqlite3DbMallocZero(db,CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4));
    if (z != (char *)0x0) {
      memcpy(z,zSql,local_44);
      pRVar7 = pRename->pList;
      while (pRVar7 != (RenameToken *)0x0) {
        pRVar9 = pRVar7->pNext;
        pRVar6 = pRVar9;
        p = pRVar7;
        pRVar8 = pRename;
        if (pRVar9 == (RenameToken *)0x0) {
          pRVar6 = (RenameToken *)0x0;
        }
        else {
          do {
            if ((p->t).z < (pRVar6->t).z) {
              p = pRVar6;
            }
            ppRVar1 = &pRVar6->pNext;
            pRVar6 = *ppRVar1;
          } while (*ppRVar1 != (RenameToken *)0x0);
          pRVar6 = p->pNext;
          if (p != pRVar7) {
            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {
              pRVar7 = pRVar9;
            }
            pRVar8 = (RenameCtx *)&pRVar7->pNext;
          }
        }
        pRVar8->pList = pRVar6;
        pbVar2 = (byte *)(p->t).z;
        __src = __s;
        __n = sVar4 & 0x3fffffff;
        if ((""[*pbVar2] & 0x46) != 0) {
          __src = pcVar11;
          __n = local_34;
        }
        uVar3 = (p->t).n;
        iVar10 = (int)pbVar2 - (int)zSql;
        if (uVar3 != __n) {
          iVar5 = uVar3 + iVar10;
          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);
          local_44 = (local_44 - (p->t).n) + __n;
          z[local_44] = '\0';
        }
        memcpy(z + iVar10,__src,__n);
        sqlite3DbFreeNN(db,p);
        pRVar7 = pRename->pList;
      }
      iVar10 = 0;
      sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);
      sqlite3DbFreeNN(db,z);
    }
    sqlite3_free(__s);
    return iVar10;
  }
  return 7;
}



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

undefined4 __regparm3
FUN_0005eb40(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)

{
  int *piVar1;
  size_t sVar2;
  undefined4 uVar3;
  char *__s;
  void *__dest;
  int iVar4;
  int iVar5;
  int *piVar6;
  char *__src;
  uint __n;
  int iVar7;
  char *pcVar8;
  int iVar9;
  size_t local_44;
  uint local_34;
  
  if (param_4 == (char *)0x0) {
    local_34 = 0;
  }
  else {
    sVar2 = strlen(param_4);
    local_34 = sVar2 & 0x3fffffff;
  }
  if (param_3 == (char *)0x0) {
    local_44 = 0;
  }
  else {
    local_44 = strlen(param_3);
    local_44 = local_44 & 0x3fffffff;
  }
  uVar3 = FUN_0001bac0(param_1);
  __s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);
  if (__s != (char *)0x0) {
    sVar2 = strlen(__s);
    pcVar8 = __s;
    if (param_5 == 0) {
      pcVar8 = param_4;
    }
    uVar3 = 7;
    if (param_5 != 0) {
      local_34 = sVar2 & 0x3fffffff;
    }
    __dest = (void *)FUN_00026c00();
    if (__dest != (void *)0x0) {
      memcpy(__dest,param_3,local_44);
      iVar9 = *param_2;
      while (iVar9 != 0) {
        iVar4 = *(int *)(iVar9 + 0xc);
        iVar5 = iVar4;
        iVar7 = iVar9;
        piVar6 = param_2;
        if (iVar4 == 0) {
          iVar5 = 0;
        }
        else {
          do {
            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {
              iVar7 = iVar5;
            }
            piVar1 = (int *)(iVar5 + 0xc);
            iVar5 = *piVar1;
          } while (*piVar1 != 0);
          iVar5 = *(int *)(iVar7 + 0xc);
          if (iVar7 != iVar9) {
            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {
              iVar9 = iVar4;
            }
            piVar6 = (int *)(iVar9 + 0xc);
          }
        }
        *piVar6 = iVar5;
        __src = __s;
        __n = sVar2 & 0x3fffffff;
        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {
          __src = pcVar8;
          __n = local_34;
        }
        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;
        if (*(size_t *)(iVar7 + 8) != __n) {
          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;
          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4
                 );
          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;
          *(undefined1 *)((int)__dest + local_44) = 0;
        }
        memcpy((void *)(iVar9 + (int)__dest),__src,__n);
        FUN_00024d80();
        iVar9 = *param_2;
      }
      uVar3 = 0;
      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);
      FUN_00024d80();
    }
    FUN_00024cc0(__s);
    return uVar3;
  }
  return 7;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0xea38b
SUB ESP,0x3c
MOV dword ptr [ESP + 0x2c],EAX
MOV EAX,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x10],EDX
MOV ESI,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0xc],ECX
TEST EAX,EAX
JZ 0x0005edaa
SUB ESP,0xc
PUSH dword ptr [ESP + 0x5c]
CALL 0x00014230
ADD ESP,0x10
AND EAX,0x3fffffff
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x0005ed9d
SUB ESP,0xc
PUSH EAX
CALL 0x00014230
ADD ESP,0x10
AND EAX,0x3fffffff
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x38]
CALL 0x0001bac0
MOV dword ptr [ESP + 0x24],EAX
MOV EBP,EAX
ADD ESP,0xc
LEA EAX,[EBX + 0xfffaed8e]
PUSH dword ptr [ESP + 0x54]
PUSH EAX
PUSH EBP
CALL 0x0005e630
MOV dword ptr [ESP + 0x30],EAX
MOV EDI,EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005edb7
SUB ESP,0xc
PUSH EAX
CALL 0x00014230
ADD ESP,0x10
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x18]
AND ECX,0x3fffffff
TEST ESI,ESI
CMOVZ EDI,dword ptr [ESP + 0x50]
MOV ESI,0x7
CMOVNZ EAX,ECX
MOV dword ptr [ESP + 0x28],ECX
MOV dword ptr [ESP + 0x50],EDI
MOV EDI,dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x18],EAX
IMUL ECX,dword ptr [EDI + 0x4]
MOV EAX,ECX
MOV ECX,dword ptr [ESP + 0x8]
LEA EDX,[ECX + EAX*0x1 + 0x1]
MOV EAX,EBP
MOV ECX,EDX
SAR ECX,0x1f
CALL 0x00026c00
MOV dword ptr [ESP + 0x4],EAX
TEST EAX,EAX
JZ 0x0005ed65
SUB ESP,0x4
PUSH dword ptr [ESP + 0xc]
PUSH dword ptr [ESP + 0x14]
PUSH EAX
CALL 0x000140d0
MOV ECX,dword ptr [EDI]
ADD ESP,0x10
LEA EAX,[EBX + 0xfffb992c]
MOV dword ptr [ESP + 0x1c],EAX
TEST ECX,ECX
JZ 0x0005ed43
LEA ESI,[ESI]
NOP
MOV EDX,dword ptr [ECX + 0xc]
TEST EDX,EDX
JZ 0x0005ed90
MOV ESI,ECX
MOV EAX,EDX
LEA ESI,[ESI]
NOP
MOV EDI,dword ptr [ESI + 0x4]
CMP dword ptr [EAX + 0x4],EDI
CMOVA ESI,EAX
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JNZ 0x0005ec80
MOV EAX,dword ptr [ESI + 0xc]
CMP ESI,ECX
JNZ 0x0005eca5
JMP 0x0005edc6
MOV ECX,EDX
MOV EDX,dword ptr [EDX + 0xc]
CMP EDX,ESI
JNZ 0x0005eca0
ADD ECX,0xc
MOV dword ptr [ECX],EAX
MOV EDI,dword ptr [ESI + 0x4]
MOV ECX,dword ptr [ESP + 0x1c]
MOVZX EAX,byte ptr [EDI]
TEST byte ptr [ECX + EAX*0x1],0x46
JZ 0x0005ed80
MOV EBP,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x50]
MOV EAX,dword ptr [ESI + 0x8]
SUB EDI,dword ptr [ESP + 0xc]
CMP EAX,EBP
JZ 0x0005ed18
MOV dword ptr [ESP + 0x24],EDX
SUB ESP,0x4
ADD EAX,EDI
MOV ECX,dword ptr [ESP + 0xc]
SUB ECX,EAX
PUSH ECX
MOV EDX,dword ptr [ESP + 0xc]
ADD EAX,EDX
PUSH EAX
LEA EAX,[EBP + EDI*0x1]
ADD EAX,EDX
MOV dword ptr [ESP + 0x10],EDX
PUSH EAX
CALL 0x000140b0
MOV EAX,dword ptr [ESP + 0x18]
SUB EAX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [ESP + 0x14]
ADD EAX,EBP
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
MOV byte ptr [EDX + EAX*0x1],0x0
MOV EDX,dword ptr [ESP + 0x24]
ADD EDI,dword ptr [ESP + 0x4]
SUB ESP,0x4
PUSH EBP
PUSH EDX
PUSH EDI
CALL 0x000140d0
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,ESI
CALL 0x00024d80
MOV EAX,dword ptr [ESP + 0x20]
ADD ESP,0x10
MOV ECX,dword ptr [EAX]
TEST ECX,ECX
JNZ 0x0005ec68
PUSH -0x1
XOR ESI,ESI
PUSH -0x1
MOV EDI,dword ptr [ESP + 0xc]
PUSH EDI
PUSH dword ptr [ESP + 0x38]
CALL 0x00046480
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,EDI
CALL 0x00024d80
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [ESP + 0x2c]
CALL 0x00024cc0
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [ESP + 0x28]
MOV EDX,dword ptr [ESP + 0x20]
JMP 0x0005ecca
MOV ESI,ECX
XOR EAX,EAX
MOV ECX,dword ptr [ESP + 0x10]
JMP 0x0005ecac
MOV dword ptr [ESP + 0x8],0x0
JMP 0x0005eba7
MOV dword ptr [ESP + 0x18],0x0
JMP 0x0005eb86
ADD ESP,0x3c
MOV ESI,0x7
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [ESP + 0x10]
JMP 0x0005ecac
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3\nFUN_0005eb40(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)\n\n{\n  int *piVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *__s;\n  void *__dest;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  char *__src;\n  uint __n;\n  int iVar7;\n  char *pcVar8;\n  int iVar9;\n  size_t local_44;\n  uint local_34;\n  \n  if (param_4 == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }\n  if (param_3 == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }\n  uVar3 = FUN_0001bac0(param_1);\n  __s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);\n  if (__s != (char *)0x0) {\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }\n  return 7;\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_0005eb40(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)\n\n{\n  int *piVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *__s;\n  void *__dest;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  char *__src;\n  uint __n;\n  int iVar7;\n  char *pcVar8;\n  int iVar9;\n  size_t local_44;\n  uint local_34;\n  \n  if (param_4 == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }\n  if (param_3 == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }\n  uVar3 = FUN_0001bac0(param_1);\n  __s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);\n  if (__s != (char *)0x0) {\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }\n  return 7;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0005eb40(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *__s;\n  void *__dest;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  char *__src;\n  uint __n;\n  int iVar7;\n  char *pcVar8;\n  int iVar9;\n  size_t local_44;\n  uint local_34;\n  \n  if (param_4 == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }\n  if (param_3 == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }\n  uVar3 = FUN_0001bac0(param_1);\n  __s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);\n  if (__s != (char *)0x0) {\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }\n  return 7;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "size_t local_44;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (if_statement "if (param_4 == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }" if (parenthesized_expression "(param_4 == (char *)0x0)" ( (binary_expression "param_4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_34 = 0;\n  }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }" else (compound_statement "{\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }" { (expression_statement "sVar2 = strlen(param_4);" (assignment_expression "sVar2 = strlen(param_4)" identifier = (call_expression "strlen(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "local_34 = sVar2 & 0x3fffffff;" (assignment_expression "local_34 = sVar2 & 0x3fffffff" identifier = (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal)) ;) }))) (if_statement "if (param_3 == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }" if (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_44 = 0;\n  }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }" else (compound_statement "{\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }" { (expression_statement "local_44 = strlen(param_3);" (assignment_expression "local_44 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "local_44 = local_44 & 0x3fffffff;" (assignment_expression "local_44 = local_44 & 0x3fffffff" identifier = (binary_expression "local_44 & 0x3fffffff" identifier & number_literal)) ;) }))) (expression_statement "uVar3 = FUN_0001bac0(param_1);" (assignment_expression "uVar3 = FUN_0001bac0(param_1)" identifier = (call_expression "FUN_0001bac0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "__s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);" (assignment_expression "__s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4)" identifier = (cast_expression "(char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005e630(uVar3,&DAT_000f7c62,param_4)" identifier (argument_list "(uVar3,&DAT_000f7c62,param_4)" ( identifier , (pointer_expression "&DAT_000f7c62" & identifier) , identifier ))))) ;) (if_statement "if (__s != (char *)0x0) {\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }" { (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar8 = __s;" (assignment_expression "pcVar8 = __s" identifier = identifier) ;) (if_statement "if (param_5 == 0) {\n      pcVar8 = param_4;\n    }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar8 = param_4;\n    }" { (expression_statement "pcVar8 = param_4;" (assignment_expression "pcVar8 = param_4" identifier = identifier) ;) })) (expression_statement "uVar3 = 7;" (assignment_expression "uVar3 = 7" identifier = number_literal) ;) (if_statement "if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n      local_34 = sVar2 & 0x3fffffff;\n    }" { (expression_statement "local_34 = sVar2 & 0x3fffffff;" (assignment_expression "local_34 = sVar2 & 0x3fffffff" identifier = (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal)) ;) })) (expression_statement "__dest = (void *)FUN_00026c00();" (assignment_expression "__dest = (void *)FUN_00026c00()" identifier = (cast_expression "(void *)FUN_00026c00()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00026c00()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }" if (parenthesized_expression "(__dest != (void *)0x0)" ( (binary_expression "__dest != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }" { (expression_statement "memcpy(__dest,param_3,local_44);" (call_expression "memcpy(__dest,param_3,local_44)" identifier (argument_list "(__dest,param_3,local_44)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (while_statement "while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }" while (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }" { (expression_statement "iVar4 = *(int *)(iVar9 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar9 + 0xc)" identifier = (pointer_expression "*(int *)(iVar9 + 0xc)" * (cast_expression "(int *)(iVar9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xc)" ( (binary_expression "iVar9 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" identifier = identifier) ;) (expression_statement "piVar6 = param_2;" (assignment_expression "piVar6 = param_2" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar5 = 0;\n        }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }" else (compound_statement "{\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }" { (do_statement "do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);" do (compound_statement "{\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          }" { (if_statement "if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }" if (parenthesized_expression "(*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4))" ( (binary_expression "*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)" (pointer_expression "*(uint *)(iVar7 + 4)" * (cast_expression "(uint *)(iVar7 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar5 + 4)" * (cast_expression "(uint *)(iVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n              iVar7 = iVar5;\n            }" { (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" identifier = identifier) ;) })) (expression_statement "piVar1 = (int *)(iVar5 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar5 + 0xc)" identifier = (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) )))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) (expression_statement "iVar5 = *(int *)(iVar7 + 0xc);" (assignment_expression "iVar5 = *(int *)(iVar7 + 0xc)" identifier = (pointer_expression "*(int *)(iVar7 + 0xc)" * (cast_expression "(int *)(iVar7 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xc)" ( (binary_expression "iVar7 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }" if (parenthesized_expression "(iVar7 != iVar9)" ( (binary_expression "iVar7 != iVar9" identifier != identifier) )) (compound_statement "{\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }" { (for_statement "for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }" for ( ; (binary_expression "iVar4 != iVar7" identifier != identifier) ; (assignment_expression "iVar4 = *(int *)(iVar4 + 0xc)" identifier = (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) ))))) ) (compound_statement "{\n              iVar9 = iVar4;\n            }" { (expression_statement "iVar9 = iVar4;" (assignment_expression "iVar9 = iVar4" identifier = identifier) ;) })) (expression_statement "piVar6 = (int *)(iVar9 + 0xc);" (assignment_expression "piVar6 = (int *)(iVar9 + 0xc)" identifier = (cast_expression "(int *)(iVar9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xc)" ( (binary_expression "iVar9 + 0xc" identifier + number_literal) )))) ;) })) }))) (expression_statement "*piVar6 = iVar5;" (assignment_expression "*piVar6 = iVar5" (pointer_expression "*piVar6" * identifier) = identifier) ;) (expression_statement "__src = __s;" (assignment_expression "__src = __s" identifier = identifier) ;) (expression_statement "__n = sVar2 & 0x3fffffff;" (assignment_expression "__n = sVar2 & 0x3fffffff" identifier = (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal)) ;) (if_statement "if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }" if (parenthesized_expression "(((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0)" ( (binary_expression "((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0" (parenthesized_expression "((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46)" ( (binary_expression "(&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46" (subscript_expression "(&DAT_00102800)[**(byte **)(iVar7 + 4)]" (parenthesized_expression "(&DAT_00102800)" ( (pointer_expression "&DAT_00102800" & identifier) )) [ (pointer_expression "**(byte **)(iVar7 + 4)" * (pointer_expression "*(byte **)(iVar7 + 4)" * (cast_expression "(byte **)(iVar7 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) ))))) ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          __src = pcVar8;\n          __n = local_34;\n        }" { (expression_statement "__src = pcVar8;" (assignment_expression "__src = pcVar8" identifier = identifier) ;) (expression_statement "__n = local_34;" (assignment_expression "__n = local_34" identifier = identifier) ;) })) (expression_statement "iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;" (assignment_expression "iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3" identifier = (binary_expression "(int)*(byte **)(iVar7 + 4) - (int)param_3" (cast_expression "(int)*(byte **)(iVar7 + 4)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(byte **)(iVar7 + 4)" * (cast_expression "(byte **)(iVar7 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) ))))) - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }" if (parenthesized_expression "(*(size_t *)(iVar7 + 8) != __n)" ( (binary_expression "*(size_t *)(iVar7 + 8) != __n" (pointer_expression "*(size_t *)(iVar7 + 8)" * (cast_expression "(size_t *)(iVar7 + 8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }" { (expression_statement "iVar4 = *(size_t *)(iVar7 + 8) + iVar9;" (assignment_expression "iVar4 = *(size_t *)(iVar7 + 8) + iVar9" identifier = (binary_expression "*(size_t *)(iVar7 + 8) + iVar9" (pointer_expression "*(size_t *)(iVar7 + 8)" * (cast_expression "(size_t *)(iVar7 + 8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) )))) + identifier)) ;) (expression_statement "memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );" (call_expression "memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 )" identifier (argument_list "((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 )" ( (cast_expression "(void *)(__n + iVar9 + (int)__dest)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__n + iVar9 + (int)__dest)" ( (binary_expression "__n + iVar9 + (int)__dest" (binary_expression "__n + iVar9" identifier + identifier) + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , (cast_expression "(void *)(iVar4 + (int)__dest)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (int)__dest)" ( (binary_expression "iVar4 + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , (binary_expression "local_44 - iVar4" identifier - identifier) ))) ;) (expression_statement "local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;" (assignment_expression "local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n" identifier = (binary_expression "(local_44 - *(int *)(iVar7 + 8)) + __n" (parenthesized_expression "(local_44 - *(int *)(iVar7 + 8))" ( (binary_expression "local_44 - *(int *)(iVar7 + 8)" identifier - (pointer_expression "*(int *)(iVar7 + 8)" * (cast_expression "(int *)(iVar7 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) ))))) )) + identifier)) ;) (expression_statement "*(undefined1 *)((int)__dest + local_44) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_44) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_44)" * (cast_expression "(undefined1 *)((int)__dest + local_44)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + local_44)" ( (binary_expression "(int)__dest + local_44" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) })) (expression_statement "memcpy((void *)(iVar9 + (int)__dest),__src,__n);" (call_expression "memcpy((void *)(iVar9 + (int)__dest),__src,__n)" identifier (argument_list "((void *)(iVar9 + (int)__dest),__src,__n)" ( (cast_expression "(void *)(iVar9 + (int)__dest)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + (int)__dest)" ( (binary_expression "iVar9 + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , identifier ))) ;) (expression_statement "FUN_00024d80();" (call_expression "FUN_00024d80()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);" (call_expression "FUN_00046480(param_1,__dest,0xffffffff,0xffffffff)" identifier (argument_list "(param_1,__dest,0xffffffff,0xffffffff)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_00024d80();" (call_expression "FUN_00024d80()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00024cc0(__s);" (call_expression "FUN_00024cc0(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3\nrenameEditSql(sqlite3_context *pCtx,RenameCtx *pRename,char *zSql,char *zNew,int bQuote)\n\n{\n  RenameToken **ppRVar1;\n  byte *pbVar2;\n  uint uVar3;\n  size_t sVar4;\n  sqlite3 *db;\n  char *__s;\n  char *z;\n  int iVar5;\n  RenameToken *pRVar6;\n  RenameToken *pRVar7;\n  RenameCtx *pRVar8;\n  RenameToken *pRVar9;\n  char *__src;\n  uint __n;\n  int iVar10;\n  RenameToken *p;\n  char *pcVar11;\n  undefined4 in_stack_ffffffb4;\n  undefined4 in_stack_ffffffb8;\n  size_t local_44;\n  uint local_34;\n  \n  if (zNew == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar4 = strlen(zNew);\n    local_34 = sVar4 & 0x3fffffff;\n  }\n  if (zSql == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(zSql);\n    local_44 = local_44 & 0x3fffffff;\n  }\n  db = sqlite3_context_db_handle(pCtx);\n  __s = sqlite3MPrintf(db,"\"%w\"",zNew);\n  if (__s != (char *)0x0) {\n    sVar4 = strlen(__s);\n    pcVar11 = __s;\n    if (bQuote == 0) {\n      pcVar11 = zNew;\n    }\n    iVar10 = 7;\n    if (bQuote != 0) {\n      local_34 = sVar4 & 0x3fffffff;\n    }\n    z = (char *)sqlite3DbMallocZero(db,CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4));\n    if (z != (char *)0x0) {\n      memcpy(z,zSql,local_44);\n      pRVar7 = pRename->pList;\n      while (pRVar7 != (RenameToken *)0x0) {\n        pRVar9 = pRVar7->pNext;\n        pRVar6 = pRVar9;\n        p = pRVar7;\n        pRVar8 = pRename;\n        if (pRVar9 == (RenameToken *)0x0) {\n          pRVar6 = (RenameToken *)0x0;\n        }\n        else {\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }\n        pRVar8->pList = pRVar6;\n        pbVar2 = (byte *)(p->t).z;\n        __src = __s;\n        __n = sVar4 & 0x3fffffff;\n        if ((""[*pbVar2] & 0x46) != 0) {\n          __src = pcVar11;\n          __n = local_34;\n        }\n        uVar3 = (p->t).n;\n        iVar10 = (int)pbVar2 - (int)zSql;\n        if (uVar3 != __n) {\n          iVar5 = uVar3 + iVar10;\n          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);\n          local_44 = (local_44 - (p->t).n) + __n;\n          z[local_44] = '\0';\n        }\n        memcpy(z + iVar10,__src,__n);\n        sqlite3DbFreeNN(db,p);\n        pRVar7 = pRename->pList;\n      }\n      iVar10 = 0;\n      sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n      sqlite3DbFreeNN(db,z);\n    }\n    sqlite3_free(__s);\n    return iVar10;\n  }\n  return 7;\n}\n\n" comment (function_definition "int __regparm3\nrenameEditSql(sqlite3_context *pCtx,RenameCtx *pRename,char *zSql,char *zNew,int bQuote)\n\n{\n  RenameToken **ppRVar1;\n  byte *pbVar2;\n  uint uVar3;\n  size_t sVar4;\n  sqlite3 *db;\n  char *__s;\n  char *z;\n  int iVar5;\n  RenameToken *pRVar6;\n  RenameToken *pRVar7;\n  RenameCtx *pRVar8;\n  RenameToken *pRVar9;\n  char *__src;\n  uint __n;\n  int iVar10;\n  RenameToken *p;\n  char *pcVar11;\n  undefined4 in_stack_ffffffb4;\n  undefined4 in_stack_ffffffb8;\n  size_t local_44;\n  uint local_34;\n  \n  if (zNew == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar4 = strlen(zNew);\n    local_34 = sVar4 & 0x3fffffff;\n  }\n  if (zSql == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(zSql);\n    local_44 = local_44 & 0x3fffffff;\n  }\n  db = sqlite3_context_db_handle(pCtx);\n  __s = sqlite3MPrintf(db,"\"%w\"",zNew);\n  if (__s != (char *)0x0) {\n    sVar4 = strlen(__s);\n    pcVar11 = __s;\n    if (bQuote == 0) {\n      pcVar11 = zNew;\n    }\n    iVar10 = 7;\n    if (bQuote != 0) {\n      local_34 = sVar4 & 0x3fffffff;\n    }\n    z = (char *)sqlite3DbMallocZero(db,CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4));\n    if (z != (char *)0x0) {\n      memcpy(z,zSql,local_44);\n      pRVar7 = pRename->pList;\n      while (pRVar7 != (RenameToken *)0x0) {\n        pRVar9 = pRVar7->pNext;\n        pRVar6 = pRVar9;\n        p = pRVar7;\n        pRVar8 = pRename;\n        if (pRVar9 == (RenameToken *)0x0) {\n          pRVar6 = (RenameToken *)0x0;\n        }\n        else {\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }\n        pRVar8->pList = pRVar6;\n        pbVar2 = (byte *)(p->t).z;\n        __src = __s;\n        __n = sVar4 & 0x3fffffff;\n        if ((""[*pbVar2] & 0x46) != 0) {\n          __src = pcVar11;\n          __n = local_34;\n        }\n        uVar3 = (p->t).n;\n        iVar10 = (int)pbVar2 - (int)zSql;\n        if (uVar3 != __n) {\n          iVar5 = uVar3 + iVar10;\n          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);\n          local_44 = (local_44 - (p->t).n) + __n;\n          z[local_44] = '\0';\n        }\n        memcpy(z + iVar10,__src,__n);\n        sqlite3DbFreeNN(db,p);\n        pRVar7 = pRename->pList;\n      }\n      iVar10 = 0;\n      sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n      sqlite3DbFreeNN(db,z);\n    }\n    sqlite3_free(__s);\n    return iVar10;\n  }\n  return 7;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "renameEditSql(sqlite3_context *pCtx,RenameCtx *pRename,char *zSql,char *zNew,int bQuote)" identifier (parameter_list "(sqlite3_context *pCtx,RenameCtx *pRename,char *zSql,char *zNew,int bQuote)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "RenameCtx *pRename" type_identifier (pointer_declarator "*pRename" * identifier)) , (parameter_declaration "char *zSql" primitive_type (pointer_declarator "*zSql" * identifier)) , (parameter_declaration "char *zNew" primitive_type (pointer_declarator "*zNew" * identifier)) , (parameter_declaration "int bQuote" primitive_type identifier) ))) (compound_statement "{\n  RenameToken **ppRVar1;\n  byte *pbVar2;\n  uint uVar3;\n  size_t sVar4;\n  sqlite3 *db;\n  char *__s;\n  char *z;\n  int iVar5;\n  RenameToken *pRVar6;\n  RenameToken *pRVar7;\n  RenameCtx *pRVar8;\n  RenameToken *pRVar9;\n  char *__src;\n  uint __n;\n  int iVar10;\n  RenameToken *p;\n  char *pcVar11;\n  undefined4 in_stack_ffffffb4;\n  undefined4 in_stack_ffffffb8;\n  size_t local_44;\n  uint local_34;\n  \n  if (zNew == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar4 = strlen(zNew);\n    local_34 = sVar4 & 0x3fffffff;\n  }\n  if (zSql == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(zSql);\n    local_44 = local_44 & 0x3fffffff;\n  }\n  db = sqlite3_context_db_handle(pCtx);\n  __s = sqlite3MPrintf(db,"\"%w\"",zNew);\n  if (__s != (char *)0x0) {\n    sVar4 = strlen(__s);\n    pcVar11 = __s;\n    if (bQuote == 0) {\n      pcVar11 = zNew;\n    }\n    iVar10 = 7;\n    if (bQuote != 0) {\n      local_34 = sVar4 & 0x3fffffff;\n    }\n    z = (char *)sqlite3DbMallocZero(db,CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4));\n    if (z != (char *)0x0) {\n      memcpy(z,zSql,local_44);\n      pRVar7 = pRename->pList;\n      while (pRVar7 != (RenameToken *)0x0) {\n        pRVar9 = pRVar7->pNext;\n        pRVar6 = pRVar9;\n        p = pRVar7;\n        pRVar8 = pRename;\n        if (pRVar9 == (RenameToken *)0x0) {\n          pRVar6 = (RenameToken *)0x0;\n        }\n        else {\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }\n        pRVar8->pList = pRVar6;\n        pbVar2 = (byte *)(p->t).z;\n        __src = __s;\n        __n = sVar4 & 0x3fffffff;\n        if ((""[*pbVar2] & 0x46) != 0) {\n          __src = pcVar11;\n          __n = local_34;\n        }\n        uVar3 = (p->t).n;\n        iVar10 = (int)pbVar2 - (int)zSql;\n        if (uVar3 != __n) {\n          iVar5 = uVar3 + iVar10;\n          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);\n          local_44 = (local_44 - (p->t).n) + __n;\n          z[local_44] = '\0';\n        }\n        memcpy(z + iVar10,__src,__n);\n        sqlite3DbFreeNN(db,p);\n        pRVar7 = pRename->pList;\n      }\n      iVar10 = 0;\n      sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n      sqlite3DbFreeNN(db,z);\n    }\n    sqlite3_free(__s);\n    return iVar10;\n  }\n  return 7;\n}" { (declaration "RenameToken **ppRVar1;" type_identifier (pointer_declarator "**ppRVar1" * (pointer_declarator "*ppRVar1" * identifier)) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *z;" primitive_type (pointer_declarator "*z" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "RenameToken *pRVar6;" type_identifier (pointer_declarator "*pRVar6" * identifier) ;) (declaration "RenameToken *pRVar7;" type_identifier (pointer_declarator "*pRVar7" * identifier) ;) (declaration "RenameCtx *pRVar8;" type_identifier (pointer_declarator "*pRVar8" * identifier) ;) (declaration "RenameToken *pRVar9;" type_identifier (pointer_declarator "*pRVar9" * identifier) ;) (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "RenameToken *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "undefined4 in_stack_ffffffb4;" type_identifier identifier ;) (declaration "undefined4 in_stack_ffffffb8;" type_identifier identifier ;) (declaration "size_t local_44;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (if_statement "if (zNew == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar4 = strlen(zNew);\n    local_34 = sVar4 & 0x3fffffff;\n  }" if (parenthesized_expression "(zNew == (char *)0x0)" ( (binary_expression "zNew == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_34 = 0;\n  }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    sVar4 = strlen(zNew);\n    local_34 = sVar4 & 0x3fffffff;\n  }" else (compound_statement "{\n    sVar4 = strlen(zNew);\n    local_34 = sVar4 & 0x3fffffff;\n  }" { (expression_statement "sVar4 = strlen(zNew);" (assignment_expression "sVar4 = strlen(zNew)" identifier = (call_expression "strlen(zNew)" identifier (argument_list "(zNew)" ( identifier )))) ;) (expression_statement "local_34 = sVar4 & 0x3fffffff;" (assignment_expression "local_34 = sVar4 & 0x3fffffff" identifier = (binary_expression "sVar4 & 0x3fffffff" identifier & number_literal)) ;) }))) (if_statement "if (zSql == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(zSql);\n    local_44 = local_44 & 0x3fffffff;\n  }" if (parenthesized_expression "(zSql == (char *)0x0)" ( (binary_expression "zSql == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_44 = 0;\n  }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_44 = strlen(zSql);\n    local_44 = local_44 & 0x3fffffff;\n  }" else (compound_statement "{\n    local_44 = strlen(zSql);\n    local_44 = local_44 & 0x3fffffff;\n  }" { (expression_statement "local_44 = strlen(zSql);" (assignment_expression "local_44 = strlen(zSql)" identifier = (call_expression "strlen(zSql)" identifier (argument_list "(zSql)" ( identifier )))) ;) (expression_statement "local_44 = local_44 & 0x3fffffff;" (assignment_expression "local_44 = local_44 & 0x3fffffff" identifier = (binary_expression "local_44 & 0x3fffffff" identifier & number_literal)) ;) }))) (expression_statement "db = sqlite3_context_db_handle(pCtx);" (assignment_expression "db = sqlite3_context_db_handle(pCtx)" identifier = (call_expression "sqlite3_context_db_handle(pCtx)" identifier (argument_list "(pCtx)" ( identifier )))) ;) (expression_statement "__s = sqlite3MPrintf(db,"\"%w\"",zNew);" (assignment_expression "__s = sqlite3MPrintf(db,"\"%w\"",zNew)" identifier = (call_expression "sqlite3MPrintf(db,"\"%w\"",zNew)" identifier (argument_list "(db,"\"%w\"",zNew)" ( identifier , (string_literal ""\"%w\""" " escape_sequence string_content escape_sequence ") , identifier )))) ;) (if_statement "if (__s != (char *)0x0) {\n    sVar4 = strlen(__s);\n    pcVar11 = __s;\n    if (bQuote == 0) {\n      pcVar11 = zNew;\n    }\n    iVar10 = 7;\n    if (bQuote != 0) {\n      local_34 = sVar4 & 0x3fffffff;\n    }\n    z = (char *)sqlite3DbMallocZero(db,CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4));\n    if (z != (char *)0x0) {\n      memcpy(z,zSql,local_44);\n      pRVar7 = pRename->pList;\n      while (pRVar7 != (RenameToken *)0x0) {\n        pRVar9 = pRVar7->pNext;\n        pRVar6 = pRVar9;\n        p = pRVar7;\n        pRVar8 = pRename;\n        if (pRVar9 == (RenameToken *)0x0) {\n          pRVar6 = (RenameToken *)0x0;\n        }\n        else {\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }\n        pRVar8->pList = pRVar6;\n        pbVar2 = (byte *)(p->t).z;\n        __src = __s;\n        __n = sVar4 & 0x3fffffff;\n        if ((""[*pbVar2] & 0x46) != 0) {\n          __src = pcVar11;\n          __n = local_34;\n        }\n        uVar3 = (p->t).n;\n        iVar10 = (int)pbVar2 - (int)zSql;\n        if (uVar3 != __n) {\n          iVar5 = uVar3 + iVar10;\n          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);\n          local_44 = (local_44 - (p->t).n) + __n;\n          z[local_44] = '\0';\n        }\n        memcpy(z + iVar10,__src,__n);\n        sqlite3DbFreeNN(db,p);\n        pRVar7 = pRename->pList;\n      }\n      iVar10 = 0;\n      sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n      sqlite3DbFreeNN(db,z);\n    }\n    sqlite3_free(__s);\n    return iVar10;\n  }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar4 = strlen(__s);\n    pcVar11 = __s;\n    if (bQuote == 0) {\n      pcVar11 = zNew;\n    }\n    iVar10 = 7;\n    if (bQuote != 0) {\n      local_34 = sVar4 & 0x3fffffff;\n    }\n    z = (char *)sqlite3DbMallocZero(db,CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4));\n    if (z != (char *)0x0) {\n      memcpy(z,zSql,local_44);\n      pRVar7 = pRename->pList;\n      while (pRVar7 != (RenameToken *)0x0) {\n        pRVar9 = pRVar7->pNext;\n        pRVar6 = pRVar9;\n        p = pRVar7;\n        pRVar8 = pRename;\n        if (pRVar9 == (RenameToken *)0x0) {\n          pRVar6 = (RenameToken *)0x0;\n        }\n        else {\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }\n        pRVar8->pList = pRVar6;\n        pbVar2 = (byte *)(p->t).z;\n        __src = __s;\n        __n = sVar4 & 0x3fffffff;\n        if ((""[*pbVar2] & 0x46) != 0) {\n          __src = pcVar11;\n          __n = local_34;\n        }\n        uVar3 = (p->t).n;\n        iVar10 = (int)pbVar2 - (int)zSql;\n        if (uVar3 != __n) {\n          iVar5 = uVar3 + iVar10;\n          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);\n          local_44 = (local_44 - (p->t).n) + __n;\n          z[local_44] = '\0';\n        }\n        memcpy(z + iVar10,__src,__n);\n        sqlite3DbFreeNN(db,p);\n        pRVar7 = pRename->pList;\n      }\n      iVar10 = 0;\n      sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n      sqlite3DbFreeNN(db,z);\n    }\n    sqlite3_free(__s);\n    return iVar10;\n  }" { (expression_statement "sVar4 = strlen(__s);" (assignment_expression "sVar4 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar11 = __s;" (assignment_expression "pcVar11 = __s" identifier = identifier) ;) (if_statement "if (bQuote == 0) {\n      pcVar11 = zNew;\n    }" if (parenthesized_expression "(bQuote == 0)" ( (binary_expression "bQuote == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar11 = zNew;\n    }" { (expression_statement "pcVar11 = zNew;" (assignment_expression "pcVar11 = zNew" identifier = identifier) ;) })) (expression_statement "iVar10 = 7;" (assignment_expression "iVar10 = 7" identifier = number_literal) ;) (if_statement "if (bQuote != 0) {\n      local_34 = sVar4 & 0x3fffffff;\n    }" if (parenthesized_expression "(bQuote != 0)" ( (binary_expression "bQuote != 0" identifier != number_literal) )) (compound_statement "{\n      local_34 = sVar4 & 0x3fffffff;\n    }" { (expression_statement "local_34 = sVar4 & 0x3fffffff;" (assignment_expression "local_34 = sVar4 & 0x3fffffff" identifier = (binary_expression "sVar4 & 0x3fffffff" identifier & number_literal)) ;) })) (expression_statement "z = (char *)sqlite3DbMallocZero(db,CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4));" (assignment_expression "z = (char *)sqlite3DbMallocZero(db,CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4))" identifier = (cast_expression "(char *)sqlite3DbMallocZero(db,CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocZero(db,CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4))" identifier (argument_list "(db,CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4))" ( identifier , (call_expression "CONCAT44(in_stack_ffffffb8,in_stack_ffffffb4)" identifier (argument_list "(in_stack_ffffffb8,in_stack_ffffffb4)" ( identifier , identifier ))) ))))) ;) (if_statement "if (z != (char *)0x0) {\n      memcpy(z,zSql,local_44);\n      pRVar7 = pRename->pList;\n      while (pRVar7 != (RenameToken *)0x0) {\n        pRVar9 = pRVar7->pNext;\n        pRVar6 = pRVar9;\n        p = pRVar7;\n        pRVar8 = pRename;\n        if (pRVar9 == (RenameToken *)0x0) {\n          pRVar6 = (RenameToken *)0x0;\n        }\n        else {\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }\n        pRVar8->pList = pRVar6;\n        pbVar2 = (byte *)(p->t).z;\n        __src = __s;\n        __n = sVar4 & 0x3fffffff;\n        if ((""[*pbVar2] & 0x46) != 0) {\n          __src = pcVar11;\n          __n = local_34;\n        }\n        uVar3 = (p->t).n;\n        iVar10 = (int)pbVar2 - (int)zSql;\n        if (uVar3 != __n) {\n          iVar5 = uVar3 + iVar10;\n          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);\n          local_44 = (local_44 - (p->t).n) + __n;\n          z[local_44] = '\0';\n        }\n        memcpy(z + iVar10,__src,__n);\n        sqlite3DbFreeNN(db,p);\n        pRVar7 = pRename->pList;\n      }\n      iVar10 = 0;\n      sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n      sqlite3DbFreeNN(db,z);\n    }" if (parenthesized_expression "(z != (char *)0x0)" ( (binary_expression "z != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      memcpy(z,zSql,local_44);\n      pRVar7 = pRename->pList;\n      while (pRVar7 != (RenameToken *)0x0) {\n        pRVar9 = pRVar7->pNext;\n        pRVar6 = pRVar9;\n        p = pRVar7;\n        pRVar8 = pRename;\n        if (pRVar9 == (RenameToken *)0x0) {\n          pRVar6 = (RenameToken *)0x0;\n        }\n        else {\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }\n        pRVar8->pList = pRVar6;\n        pbVar2 = (byte *)(p->t).z;\n        __src = __s;\n        __n = sVar4 & 0x3fffffff;\n        if ((""[*pbVar2] & 0x46) != 0) {\n          __src = pcVar11;\n          __n = local_34;\n        }\n        uVar3 = (p->t).n;\n        iVar10 = (int)pbVar2 - (int)zSql;\n        if (uVar3 != __n) {\n          iVar5 = uVar3 + iVar10;\n          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);\n          local_44 = (local_44 - (p->t).n) + __n;\n          z[local_44] = '\0';\n        }\n        memcpy(z + iVar10,__src,__n);\n        sqlite3DbFreeNN(db,p);\n        pRVar7 = pRename->pList;\n      }\n      iVar10 = 0;\n      sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);\n      sqlite3DbFreeNN(db,z);\n    }" { (expression_statement "memcpy(z,zSql,local_44);" (call_expression "memcpy(z,zSql,local_44)" identifier (argument_list "(z,zSql,local_44)" ( identifier , identifier , identifier ))) ;) (expression_statement "pRVar7 = pRename->pList;" (assignment_expression "pRVar7 = pRename->pList" identifier = (field_expression "pRename->pList" identifier -> field_identifier)) ;) (while_statement "while (pRVar7 != (RenameToken *)0x0) {\n        pRVar9 = pRVar7->pNext;\n        pRVar6 = pRVar9;\n        p = pRVar7;\n        pRVar8 = pRename;\n        if (pRVar9 == (RenameToken *)0x0) {\n          pRVar6 = (RenameToken *)0x0;\n        }\n        else {\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }\n        pRVar8->pList = pRVar6;\n        pbVar2 = (byte *)(p->t).z;\n        __src = __s;\n        __n = sVar4 & 0x3fffffff;\n        if ((""[*pbVar2] & 0x46) != 0) {\n          __src = pcVar11;\n          __n = local_34;\n        }\n        uVar3 = (p->t).n;\n        iVar10 = (int)pbVar2 - (int)zSql;\n        if (uVar3 != __n) {\n          iVar5 = uVar3 + iVar10;\n          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);\n          local_44 = (local_44 - (p->t).n) + __n;\n          z[local_44] = '\0';\n        }\n        memcpy(z + iVar10,__src,__n);\n        sqlite3DbFreeNN(db,p);\n        pRVar7 = pRename->pList;\n      }" while (parenthesized_expression "(pRVar7 != (RenameToken *)0x0)" ( (binary_expression "pRVar7 != (RenameToken *)0x0" identifier != (cast_expression "(RenameToken *)0x0" ( (type_descriptor "RenameToken *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pRVar9 = pRVar7->pNext;\n        pRVar6 = pRVar9;\n        p = pRVar7;\n        pRVar8 = pRename;\n        if (pRVar9 == (RenameToken *)0x0) {\n          pRVar6 = (RenameToken *)0x0;\n        }\n        else {\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }\n        pRVar8->pList = pRVar6;\n        pbVar2 = (byte *)(p->t).z;\n        __src = __s;\n        __n = sVar4 & 0x3fffffff;\n        if ((""[*pbVar2] & 0x46) != 0) {\n          __src = pcVar11;\n          __n = local_34;\n        }\n        uVar3 = (p->t).n;\n        iVar10 = (int)pbVar2 - (int)zSql;\n        if (uVar3 != __n) {\n          iVar5 = uVar3 + iVar10;\n          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);\n          local_44 = (local_44 - (p->t).n) + __n;\n          z[local_44] = '\0';\n        }\n        memcpy(z + iVar10,__src,__n);\n        sqlite3DbFreeNN(db,p);\n        pRVar7 = pRename->pList;\n      }" { (expression_statement "pRVar9 = pRVar7->pNext;" (assignment_expression "pRVar9 = pRVar7->pNext" identifier = (field_expression "pRVar7->pNext" identifier -> field_identifier)) ;) (expression_statement "pRVar6 = pRVar9;" (assignment_expression "pRVar6 = pRVar9" identifier = identifier) ;) (expression_statement "p = pRVar7;" (assignment_expression "p = pRVar7" identifier = identifier) ;) (expression_statement "pRVar8 = pRename;" (assignment_expression "pRVar8 = pRename" identifier = identifier) ;) (if_statement "if (pRVar9 == (RenameToken *)0x0) {\n          pRVar6 = (RenameToken *)0x0;\n        }\n        else {\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }" if (parenthesized_expression "(pRVar9 == (RenameToken *)0x0)" ( (binary_expression "pRVar9 == (RenameToken *)0x0" identifier == (cast_expression "(RenameToken *)0x0" ( (type_descriptor "RenameToken *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pRVar6 = (RenameToken *)0x0;\n        }" { (expression_statement "pRVar6 = (RenameToken *)0x0;" (assignment_expression "pRVar6 = (RenameToken *)0x0" identifier = (cast_expression "(RenameToken *)0x0" ( (type_descriptor "RenameToken *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }" else (compound_statement "{\n          do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);\n          pRVar6 = p->pNext;\n          if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }\n        }" { (do_statement "do {\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          } while (*ppRVar1 != (RenameToken *)0x0);" do (compound_statement "{\n            if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }\n            ppRVar1 = &pRVar6->pNext;\n            pRVar6 = *ppRVar1;\n          }" { (if_statement "if ((p->t).z < (pRVar6->t).z) {\n              p = pRVar6;\n            }" if (parenthesized_expression "((p->t).z < (pRVar6->t).z)" ( (binary_expression "(p->t).z < (pRVar6->t).z" (field_expression "(p->t).z" (parenthesized_expression "(p->t)" ( (field_expression "p->t" identifier -> field_identifier) )) . field_identifier) < (field_expression "(pRVar6->t).z" (parenthesized_expression "(pRVar6->t)" ( (field_expression "pRVar6->t" identifier -> field_identifier) )) . field_identifier)) )) (compound_statement "{\n              p = pRVar6;\n            }" { (expression_statement "p = pRVar6;" (assignment_expression "p = pRVar6" identifier = identifier) ;) })) (expression_statement "ppRVar1 = &pRVar6->pNext;" (assignment_expression "ppRVar1 = &pRVar6->pNext" identifier = (pointer_expression "&pRVar6->pNext" & (field_expression "pRVar6->pNext" identifier -> field_identifier))) ;) (expression_statement "pRVar6 = *ppRVar1;" (assignment_expression "pRVar6 = *ppRVar1" identifier = (pointer_expression "*ppRVar1" * identifier)) ;) }) while (parenthesized_expression "(*ppRVar1 != (RenameToken *)0x0)" ( (binary_expression "*ppRVar1 != (RenameToken *)0x0" (pointer_expression "*ppRVar1" * identifier) != (cast_expression "(RenameToken *)0x0" ( (type_descriptor "RenameToken *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "pRVar6 = p->pNext;" (assignment_expression "pRVar6 = p->pNext" identifier = (field_expression "p->pNext" identifier -> field_identifier)) ;) (if_statement "if (p != pRVar7) {\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }" if (parenthesized_expression "(p != pRVar7)" ( (binary_expression "p != pRVar7" identifier != identifier) )) (compound_statement "{\n            for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }\n            pRVar8 = (RenameCtx *)&pRVar7->pNext;\n          }" { (for_statement "for (; pRVar9 != p; pRVar9 = pRVar9->pNext) {\n              pRVar7 = pRVar9;\n            }" for ( ; (binary_expression "pRVar9 != p" identifier != identifier) ; (assignment_expression "pRVar9 = pRVar9->pNext" identifier = (field_expression "pRVar9->pNext" identifier -> field_identifier)) ) (compound_statement "{\n              pRVar7 = pRVar9;\n            }" { (expression_statement "pRVar7 = pRVar9;" (assignment_expression "pRVar7 = pRVar9" identifier = identifier) ;) })) (expression_statement "pRVar8 = (RenameCtx *)&pRVar7->pNext;" (assignment_expression "pRVar8 = (RenameCtx *)&pRVar7->pNext" identifier = (cast_expression "(RenameCtx *)&pRVar7->pNext" ( (type_descriptor "RenameCtx *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pRVar7->pNext" & (field_expression "pRVar7->pNext" identifier -> field_identifier)))) ;) })) }))) (expression_statement "pRVar8->pList = pRVar6;" (assignment_expression "pRVar8->pList = pRVar6" (field_expression "pRVar8->pList" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar2 = (byte *)(p->t).z;" (assignment_expression "pbVar2 = (byte *)(p->t).z" identifier = (cast_expression "(byte *)(p->t).z" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(p->t).z" (parenthesized_expression "(p->t)" ( (field_expression "p->t" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "__src = __s;" (assignment_expression "__src = __s" identifier = identifier) ;) (expression_statement "__n = sVar4 & 0x3fffffff;" (assignment_expression "__n = sVar4 & 0x3fffffff" identifier = (binary_expression "sVar4 & 0x3fffffff" identifier & number_literal)) ;) (if_statement "if ((""[*pbVar2] & 0x46) != 0) {\n          __src = pcVar11;\n          __n = local_34;\n        }" if (parenthesized_expression "((""[*pbVar2] & 0x46) != 0)" ( (binary_expression "(""[*pbVar2] & 0x46) != 0" (parenthesized_expression "(""[*pbVar2] & 0x46)" ( (binary_expression """[*pbVar2] & 0x46" (subscript_expression """[*pbVar2]" (string_literal """" " ") [ (pointer_expression "*pbVar2" * identifier) ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          __src = pcVar11;\n          __n = local_34;\n        }" { (expression_statement "__src = pcVar11;" (assignment_expression "__src = pcVar11" identifier = identifier) ;) (expression_statement "__n = local_34;" (assignment_expression "__n = local_34" identifier = identifier) ;) })) (expression_statement "uVar3 = (p->t).n;" (assignment_expression "uVar3 = (p->t).n" identifier = (field_expression "(p->t).n" (parenthesized_expression "(p->t)" ( (field_expression "p->t" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar10 = (int)pbVar2 - (int)zSql;" (assignment_expression "iVar10 = (int)pbVar2 - (int)zSql" identifier = (binary_expression "(int)pbVar2 - (int)zSql" (cast_expression "(int)pbVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)zSql" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (uVar3 != __n) {\n          iVar5 = uVar3 + iVar10;\n          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);\n          local_44 = (local_44 - (p->t).n) + __n;\n          z[local_44] = '\0';\n        }" if (parenthesized_expression "(uVar3 != __n)" ( (binary_expression "uVar3 != __n" identifier != identifier) )) (compound_statement "{\n          iVar5 = uVar3 + iVar10;\n          memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);\n          local_44 = (local_44 - (p->t).n) + __n;\n          z[local_44] = '\0';\n        }" { (expression_statement "iVar5 = uVar3 + iVar10;" (assignment_expression "iVar5 = uVar3 + iVar10" identifier = (binary_expression "uVar3 + iVar10" identifier + identifier)) ;) (expression_statement "memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5);" (call_expression "memmove(z + __n + iVar10,z + iVar5,local_44 - iVar5)" identifier (argument_list "(z + __n + iVar10,z + iVar5,local_44 - iVar5)" ( (binary_expression "z + __n + iVar10" (binary_expression "z + __n" identifier + identifier) + identifier) , (binary_expression "z + iVar5" identifier + identifier) , (binary_expression "local_44 - iVar5" identifier - identifier) ))) ;) (expression_statement "local_44 = (local_44 - (p->t).n) + __n;" (assignment_expression "local_44 = (local_44 - (p->t).n) + __n" identifier = (binary_expression "(local_44 - (p->t).n) + __n" (parenthesized_expression "(local_44 - (p->t).n)" ( (binary_expression "local_44 - (p->t).n" identifier - (field_expression "(p->t).n" (parenthesized_expression "(p->t)" ( (field_expression "p->t" identifier -> field_identifier) )) . field_identifier)) )) + identifier)) ;) (expression_statement "z[local_44] = '\0';" (assignment_expression "z[local_44] = '\0'" (subscript_expression "z[local_44]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "memcpy(z + iVar10,__src,__n);" (call_expression "memcpy(z + iVar10,__src,__n)" identifier (argument_list "(z + iVar10,__src,__n)" ( (binary_expression "z + iVar10" identifier + identifier) , identifier , identifier ))) ;) (expression_statement "sqlite3DbFreeNN(db,p);" (call_expression "sqlite3DbFreeNN(db,p)" identifier (argument_list "(db,p)" ( identifier , identifier ))) ;) (expression_statement "pRVar7 = pRename->pList;" (assignment_expression "pRVar7 = pRename->pList" identifier = (field_expression "pRename->pList" identifier -> field_identifier)) ;) })) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff);" (call_expression "sqlite3_result_text(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff)" identifier (argument_list "(pCtx,z,-1,(_func_void_void_ptr *)&DAT_ffffffff)" ( identifier , identifier , number_literal , (cast_expression "(_func_void_void_ptr *)&DAT_ffffffff" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier)) ))) ;) (expression_statement "sqlite3DbFreeNN(db,z);" (call_expression "sqlite3DbFreeNN(db,z)" identifier (argument_list "(db,z)" ( identifier , identifier ))) ;) })) (expression_statement "sqlite3_free(__s);" (call_expression "sqlite3_free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return iVar10;" return identifier ;) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3\nFUN_0005eb40(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)\n\n{\n  int *piVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *__s;\n  void *__dest;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  char *__src;\n  uint __n;\n  int iVar7;\n  char *pcVar8;\n  int iVar9;\n  size_t local_44;\n  uint local_34;\n  \n  if (param_4 == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }\n  if (param_3 == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }\n  uVar3 = FUN_0001bac0(param_1);\n  __s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);\n  if (__s != (char *)0x0) {\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }\n  return 7;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0005eb40(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)\n\n{\n  int *piVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *__s;\n  void *__dest;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  char *__src;\n  uint __n;\n  int iVar7;\n  char *pcVar8;\n  int iVar9;\n  size_t local_44;\n  uint local_34;\n  \n  if (param_4 == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }\n  if (param_3 == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }\n  uVar3 = FUN_0001bac0(param_1);\n  __s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);\n  if (__s != (char *)0x0) {\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }\n  return 7;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0005eb40(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *__s;\n  void *__dest;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  char *__src;\n  uint __n;\n  int iVar7;\n  char *pcVar8;\n  int iVar9;\n  size_t local_44;\n  uint local_34;\n  \n  if (param_4 == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }\n  if (param_3 == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }\n  uVar3 = FUN_0001bac0(param_1);\n  __s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);\n  if (__s != (char *)0x0) {\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }\n  return 7;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "size_t local_44;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (if_statement "if (param_4 == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }" if (parenthesized_expression "(param_4 == (char *)0x0)" ( (binary_expression "param_4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_34 = 0;\n  }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }" else (compound_statement "{\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }" { (expression_statement "sVar2 = strlen(param_4);" (assignment_expression "sVar2 = strlen(param_4)" identifier = (call_expression "strlen(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "local_34 = sVar2 & 0x3fffffff;" (assignment_expression "local_34 = sVar2 & 0x3fffffff" identifier = (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal)) ;) }))) (if_statement "if (param_3 == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }" if (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_44 = 0;\n  }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }" else (compound_statement "{\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }" { (expression_statement "local_44 = strlen(param_3);" (assignment_expression "local_44 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "local_44 = local_44 & 0x3fffffff;" (assignment_expression "local_44 = local_44 & 0x3fffffff" identifier = (binary_expression "local_44 & 0x3fffffff" identifier & number_literal)) ;) }))) (expression_statement "uVar3 = FUN_0001bac0(param_1);" (assignment_expression "uVar3 = FUN_0001bac0(param_1)" identifier = (call_expression "FUN_0001bac0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "__s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);" (assignment_expression "__s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4)" identifier = (cast_expression "(char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005e630(uVar3,&DAT_000f7c62,param_4)" identifier (argument_list "(uVar3,&DAT_000f7c62,param_4)" ( identifier , (pointer_expression "&DAT_000f7c62" & identifier) , identifier ))))) ;) (if_statement "if (__s != (char *)0x0) {\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }" { (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar8 = __s;" (assignment_expression "pcVar8 = __s" identifier = identifier) ;) (if_statement "if (param_5 == 0) {\n      pcVar8 = param_4;\n    }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar8 = param_4;\n    }" { (expression_statement "pcVar8 = param_4;" (assignment_expression "pcVar8 = param_4" identifier = identifier) ;) })) (expression_statement "uVar3 = 7;" (assignment_expression "uVar3 = 7" identifier = number_literal) ;) (if_statement "if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n      local_34 = sVar2 & 0x3fffffff;\n    }" { (expression_statement "local_34 = sVar2 & 0x3fffffff;" (assignment_expression "local_34 = sVar2 & 0x3fffffff" identifier = (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal)) ;) })) (expression_statement "__dest = (void *)FUN_00026c00();" (assignment_expression "__dest = (void *)FUN_00026c00()" identifier = (cast_expression "(void *)FUN_00026c00()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00026c00()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }" if (parenthesized_expression "(__dest != (void *)0x0)" ( (binary_expression "__dest != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }" { (expression_statement "memcpy(__dest,param_3,local_44);" (call_expression "memcpy(__dest,param_3,local_44)" identifier (argument_list "(__dest,param_3,local_44)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (while_statement "while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }" while (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }" { (expression_statement "iVar4 = *(int *)(iVar9 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar9 + 0xc)" identifier = (pointer_expression "*(int *)(iVar9 + 0xc)" * (cast_expression "(int *)(iVar9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xc)" ( (binary_expression "iVar9 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" identifier = identifier) ;) (expression_statement "piVar6 = param_2;" (assignment_expression "piVar6 = param_2" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar5 = 0;\n        }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }" else (compound_statement "{\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }" { (do_statement "do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);" do (compound_statement "{\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          }" { (if_statement "if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }" if (parenthesized_expression "(*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4))" ( (binary_expression "*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)" (pointer_expression "*(uint *)(iVar7 + 4)" * (cast_expression "(uint *)(iVar7 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) )))) < (pointer_expression "*(uint *)(iVar5 + 4)" * (cast_expression "(uint *)(iVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n              iVar7 = iVar5;\n            }" { (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" identifier = identifier) ;) })) (expression_statement "piVar1 = (int *)(iVar5 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar5 + 0xc)" identifier = (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) )))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) (expression_statement "iVar5 = *(int *)(iVar7 + 0xc);" (assignment_expression "iVar5 = *(int *)(iVar7 + 0xc)" identifier = (pointer_expression "*(int *)(iVar7 + 0xc)" * (cast_expression "(int *)(iVar7 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xc)" ( (binary_expression "iVar7 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }" if (parenthesized_expression "(iVar7 != iVar9)" ( (binary_expression "iVar7 != iVar9" identifier != identifier) )) (compound_statement "{\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }" { (for_statement "for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }" for ( ; (binary_expression "iVar4 != iVar7" identifier != identifier) ; (assignment_expression "iVar4 = *(int *)(iVar4 + 0xc)" identifier = (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) ))))) ) (compound_statement "{\n              iVar9 = iVar4;\n            }" { (expression_statement "iVar9 = iVar4;" (assignment_expression "iVar9 = iVar4" identifier = identifier) ;) })) (expression_statement "piVar6 = (int *)(iVar9 + 0xc);" (assignment_expression "piVar6 = (int *)(iVar9 + 0xc)" identifier = (cast_expression "(int *)(iVar9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xc)" ( (binary_expression "iVar9 + 0xc" identifier + number_literal) )))) ;) })) }))) (expression_statement "*piVar6 = iVar5;" (assignment_expression "*piVar6 = iVar5" (pointer_expression "*piVar6" * identifier) = identifier) ;) (expression_statement "__src = __s;" (assignment_expression "__src = __s" identifier = identifier) ;) (expression_statement "__n = sVar2 & 0x3fffffff;" (assignment_expression "__n = sVar2 & 0x3fffffff" identifier = (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal)) ;) (if_statement "if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }" if (parenthesized_expression "(((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0)" ( (binary_expression "((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0" (parenthesized_expression "((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46)" ( (binary_expression "(&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46" (subscript_expression "(&DAT_00102800)[**(byte **)(iVar7 + 4)]" (parenthesized_expression "(&DAT_00102800)" ( (pointer_expression "&DAT_00102800" & identifier) )) [ (pointer_expression "**(byte **)(iVar7 + 4)" * (pointer_expression "*(byte **)(iVar7 + 4)" * (cast_expression "(byte **)(iVar7 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) ))))) ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          __src = pcVar8;\n          __n = local_34;\n        }" { (expression_statement "__src = pcVar8;" (assignment_expression "__src = pcVar8" identifier = identifier) ;) (expression_statement "__n = local_34;" (assignment_expression "__n = local_34" identifier = identifier) ;) })) (expression_statement "iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;" (assignment_expression "iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3" identifier = (binary_expression "(int)*(byte **)(iVar7 + 4) - (int)param_3" (cast_expression "(int)*(byte **)(iVar7 + 4)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(byte **)(iVar7 + 4)" * (cast_expression "(byte **)(iVar7 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) ))))) - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }" if (parenthesized_expression "(*(size_t *)(iVar7 + 8) != __n)" ( (binary_expression "*(size_t *)(iVar7 + 8) != __n" (pointer_expression "*(size_t *)(iVar7 + 8)" * (cast_expression "(size_t *)(iVar7 + 8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }" { (expression_statement "iVar4 = *(size_t *)(iVar7 + 8) + iVar9;" (assignment_expression "iVar4 = *(size_t *)(iVar7 + 8) + iVar9" identifier = (binary_expression "*(size_t *)(iVar7 + 8) + iVar9" (pointer_expression "*(size_t *)(iVar7 + 8)" * (cast_expression "(size_t *)(iVar7 + 8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) )))) + identifier)) ;) (expression_statement "memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );" (call_expression "memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 )" identifier (argument_list "((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 )" ( (cast_expression "(void *)(__n + iVar9 + (int)__dest)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__n + iVar9 + (int)__dest)" ( (binary_expression "__n + iVar9 + (int)__dest" (binary_expression "__n + iVar9" identifier + identifier) + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , (cast_expression "(void *)(iVar4 + (int)__dest)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (int)__dest)" ( (binary_expression "iVar4 + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , (binary_expression "local_44 - iVar4" identifier - identifier) ))) ;) (expression_statement "local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;" (assignment_expression "local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n" identifier = (binary_expression "(local_44 - *(int *)(iVar7 + 8)) + __n" (parenthesized_expression "(local_44 - *(int *)(iVar7 + 8))" ( (binary_expression "local_44 - *(int *)(iVar7 + 8)" identifier - (pointer_expression "*(int *)(iVar7 + 8)" * (cast_expression "(int *)(iVar7 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) ))))) )) + identifier)) ;) (expression_statement "*(undefined1 *)((int)__dest + local_44) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_44) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_44)" * (cast_expression "(undefined1 *)((int)__dest + local_44)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + local_44)" ( (binary_expression "(int)__dest + local_44" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) })) (expression_statement "memcpy((void *)(iVar9 + (int)__dest),__src,__n);" (call_expression "memcpy((void *)(iVar9 + (int)__dest),__src,__n)" identifier (argument_list "((void *)(iVar9 + (int)__dest),__src,__n)" ( (cast_expression "(void *)(iVar9 + (int)__dest)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + (int)__dest)" ( (binary_expression "iVar9 + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , identifier ))) ;) (expression_statement "FUN_00024d80();" (call_expression "FUN_00024d80()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);" (call_expression "FUN_00046480(param_1,__dest,0xffffffff,0xffffffff)" identifier (argument_list "(param_1,__dest,0xffffffff,0xffffffff)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_00024d80();" (call_expression "FUN_00024d80()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00024cc0(__s);" (call_expression "FUN_00024cc0(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })) (return_statement "return 7;" return number_literal ;) })))
(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)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (do_statement do (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) )))) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) (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 != IDENT) )) (compound_statement { (for_statement for ( ; (binary_expression IDENT != IDENT) ; (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ]) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) , (binary_expression IDENT - IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3\nFUN_0005eb40(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)\n\n{\n  int *piVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *__s;\n  void *__dest;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  char *__src;\n  uint __n;\n  int iVar7;\n  char *pcVar8;\n  int iVar9;\n  size_t local_44;\n  uint local_34;\n  \n  if (param_4 == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }\n  if (param_3 == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }\n  uVar3 = FUN_0001bac0(param_1);\n  __s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);\n  if (__s != (char *)0x0) {\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }\n  return 7;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005eb40(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)" (identifier "FUN_0005eb40") (parameter_list "(undefined4 param_1,int *param_2,char *param_3,char *param_4,int param_5)" (( "(") (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 "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  int *piVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *__s;\n  void *__dest;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  char *__src;\n  uint __n;\n  int iVar7;\n  char *pcVar8;\n  int iVar9;\n  size_t local_44;\n  uint local_34;\n  \n  if (param_4 == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }\n  if (param_3 == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }\n  uVar3 = FUN_0001bac0(param_1);\n  __s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);\n  if (__s != (char *)0x0) {\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }\n  return 7;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "char *__src;" (primitive_type "char") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "size_t local_44;" (primitive_type "size_t") (identifier "local_44") (; ";")) (declaration "uint local_34;" (type_identifier "uint") (identifier "local_34") (; ";")) (if_statement "if (param_4 == (char *)0x0) {\n    local_34 = 0;\n  }\n  else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }" (if "if") (parenthesized_expression "(param_4 == (char *)0x0)" (( "(") (binary_expression "param_4 == (char *)0x0" (identifier "param_4") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_34 = 0;\n  }" ({ "{") (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }" (else "else") (compound_statement "{\n    sVar2 = strlen(param_4);\n    local_34 = sVar2 & 0x3fffffff;\n  }" ({ "{") (expression_statement "sVar2 = strlen(param_4);" (assignment_expression "sVar2 = strlen(param_4)" (identifier "sVar2") (= "=") (call_expression "strlen(param_4)" (identifier "strlen") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (expression_statement "local_34 = sVar2 & 0x3fffffff;" (assignment_expression "local_34 = sVar2 & 0x3fffffff" (identifier "local_34") (= "=") (binary_expression "sVar2 & 0x3fffffff" (identifier "sVar2") (& "&") (number_literal "0x3fffffff"))) (; ";")) (} "}")))) (if_statement "if (param_3 == (char *)0x0) {\n    local_44 = 0;\n  }\n  else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }" (if "if") (parenthesized_expression "(param_3 == (char *)0x0)" (( "(") (binary_expression "param_3 == (char *)0x0" (identifier "param_3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_44 = 0;\n  }" ({ "{") (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" (identifier "local_44") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }" (else "else") (compound_statement "{\n    local_44 = strlen(param_3);\n    local_44 = local_44 & 0x3fffffff;\n  }" ({ "{") (expression_statement "local_44 = strlen(param_3);" (assignment_expression "local_44 = strlen(param_3)" (identifier "local_44") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "local_44 = local_44 & 0x3fffffff;" (assignment_expression "local_44 = local_44 & 0x3fffffff" (identifier "local_44") (= "=") (binary_expression "local_44 & 0x3fffffff" (identifier "local_44") (& "&") (number_literal "0x3fffffff"))) (; ";")) (} "}")))) (expression_statement "uVar3 = FUN_0001bac0(param_1);" (assignment_expression "uVar3 = FUN_0001bac0(param_1)" (identifier "uVar3") (= "=") (call_expression "FUN_0001bac0(param_1)" (identifier "FUN_0001bac0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "__s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);" (assignment_expression "__s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4)" (identifier "__s") (= "=") (cast_expression "(char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005e630(uVar3,&DAT_000f7c62,param_4)" (identifier "FUN_0005e630") (argument_list "(uVar3,&DAT_000f7c62,param_4)" (( "(") (identifier "uVar3") (, ",") (pointer_expression "&DAT_000f7c62" (& "&") (identifier "DAT_000f7c62")) (, ",") (identifier "param_4") () ")"))))) (; ";")) (if_statement "if (__s != (char *)0x0) {\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar2 = strlen(__s);\n    pcVar8 = __s;\n    if (param_5 == 0) {\n      pcVar8 = param_4;\n    }\n    uVar3 = 7;\n    if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }\n    __dest = (void *)FUN_00026c00();\n    if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }\n    FUN_00024cc0(__s);\n    return uVar3;\n  }" ({ "{") (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" (identifier "sVar2") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "pcVar8 = __s;" (assignment_expression "pcVar8 = __s" (identifier "pcVar8") (= "=") (identifier "__s")) (; ";")) (if_statement "if (param_5 == 0) {\n      pcVar8 = param_4;\n    }" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar8 = param_4;\n    }" ({ "{") (expression_statement "pcVar8 = param_4;" (assignment_expression "pcVar8 = param_4" (identifier "pcVar8") (= "=") (identifier "param_4")) (; ";")) (} "}"))) (expression_statement "uVar3 = 7;" (assignment_expression "uVar3 = 7" (identifier "uVar3") (= "=") (number_literal "7")) (; ";")) (if_statement "if (param_5 != 0) {\n      local_34 = sVar2 & 0x3fffffff;\n    }" (if "if") (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_34 = sVar2 & 0x3fffffff;\n    }" ({ "{") (expression_statement "local_34 = sVar2 & 0x3fffffff;" (assignment_expression "local_34 = sVar2 & 0x3fffffff" (identifier "local_34") (= "=") (binary_expression "sVar2 & 0x3fffffff" (identifier "sVar2") (& "&") (number_literal "0x3fffffff"))) (; ";")) (} "}"))) (expression_statement "__dest = (void *)FUN_00026c00();" (assignment_expression "__dest = (void *)FUN_00026c00()" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_00026c00()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00026c00()" (identifier "FUN_00026c00") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (__dest != (void *)0x0) {\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }" (if "if") (parenthesized_expression "(__dest != (void *)0x0)" (( "(") (binary_expression "__dest != (void *)0x0" (identifier "__dest") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      memcpy(__dest,param_3,local_44);\n      iVar9 = *param_2;\n      while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }\n      uVar3 = 0;\n      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);\n      FUN_00024d80();\n    }" ({ "{") (expression_statement "memcpy(__dest,param_3,local_44);" (call_expression "memcpy(__dest,param_3,local_44)" (identifier "memcpy") (argument_list "(__dest,param_3,local_44)" (( "(") (identifier "__dest") (, ",") (identifier "param_3") (, ",") (identifier "local_44") () ")"))) (; ";")) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" (identifier "iVar9") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (while_statement "while (iVar9 != 0) {\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }" (while "while") (parenthesized_expression "(iVar9 != 0)" (( "(") (binary_expression "iVar9 != 0" (identifier "iVar9") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = *(int *)(iVar9 + 0xc);\n        iVar5 = iVar4;\n        iVar7 = iVar9;\n        piVar6 = param_2;\n        if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }\n        *piVar6 = iVar5;\n        __src = __s;\n        __n = sVar2 & 0x3fffffff;\n        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }\n        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;\n        if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }\n        memcpy((void *)(iVar9 + (int)__dest),__src,__n);\n        FUN_00024d80();\n        iVar9 = *param_2;\n      }" ({ "{") (expression_statement "iVar4 = *(int *)(iVar9 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar9 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar9 + 0xc)" (* "*") (cast_expression "(int *)(iVar9 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0xc)" (( "(") (binary_expression "iVar9 + 0xc" (identifier "iVar9") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" (identifier "iVar7") (= "=") (identifier "iVar9")) (; ";")) (expression_statement "piVar6 = param_2;" (assignment_expression "piVar6 = param_2" (identifier "piVar6") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (iVar4 == 0) {\n          iVar5 = 0;\n        }\n        else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar5 = 0;\n        }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }" (else "else") (compound_statement "{\n          do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);\n          iVar5 = *(int *)(iVar7 + 0xc);\n          if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }\n        }" ({ "{") (do_statement "do {\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          } while (*piVar1 != 0);" (do "do") (compound_statement "{\n            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }\n            piVar1 = (int *)(iVar5 + 0xc);\n            iVar5 = *piVar1;\n          }" ({ "{") (if_statement "if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {\n              iVar7 = iVar5;\n            }" (if "if") (parenthesized_expression "(*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4))" (( "(") (binary_expression "*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)" (pointer_expression "*(uint *)(iVar7 + 4)" (* "*") (cast_expression "(uint *)(iVar7 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 4)" (( "(") (binary_expression "iVar7 + 4" (identifier "iVar7") (+ "+") (number_literal "4")) () ")")))) (< "<") (pointer_expression "*(uint *)(iVar5 + 4)" (* "*") (cast_expression "(uint *)(iVar5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n              iVar7 = iVar5;\n            }" ({ "{") (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" (identifier "iVar7") (= "=") (identifier "iVar5")) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)(iVar5 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar5 + 0xc)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xc)" (( "(") (binary_expression "iVar5 + 0xc" (identifier "iVar5") (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" (identifier "iVar5") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar5 = *(int *)(iVar7 + 0xc);" (assignment_expression "iVar5 = *(int *)(iVar7 + 0xc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar7 + 0xc)" (* "*") (cast_expression "(int *)(iVar7 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0xc)" (( "(") (binary_expression "iVar7 + 0xc" (identifier "iVar7") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar7 != iVar9) {\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }" (if "if") (parenthesized_expression "(iVar7 != iVar9)" (( "(") (binary_expression "iVar7 != iVar9" (identifier "iVar7") (!= "!=") (identifier "iVar9")) () ")")) (compound_statement "{\n            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }\n            piVar6 = (int *)(iVar9 + 0xc);\n          }" ({ "{") (for_statement "for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {\n              iVar9 = iVar4;\n            }" (for "for") (( "(") (; ";") (binary_expression "iVar4 != iVar7" (identifier "iVar4") (!= "!=") (identifier "iVar7")) (; ";") (assignment_expression "iVar4 = *(int *)(iVar4 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar4 + 0xc)" (* "*") (cast_expression "(int *)(iVar4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")"))))) () ")") (compound_statement "{\n              iVar9 = iVar4;\n            }" ({ "{") (expression_statement "iVar9 = iVar4;" (assignment_expression "iVar9 = iVar4" (identifier "iVar9") (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (expression_statement "piVar6 = (int *)(iVar9 + 0xc);" (assignment_expression "piVar6 = (int *)(iVar9 + 0xc)" (identifier "piVar6") (= "=") (cast_expression "(int *)(iVar9 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0xc)" (( "(") (binary_expression "iVar9 + 0xc" (identifier "iVar9") (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (} "}"))) (} "}")))) (expression_statement "*piVar6 = iVar5;" (assignment_expression "*piVar6 = iVar5" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "__src = __s;" (assignment_expression "__src = __s" (identifier "__src") (= "=") (identifier "__s")) (; ";")) (expression_statement "__n = sVar2 & 0x3fffffff;" (assignment_expression "__n = sVar2 & 0x3fffffff" (identifier "__n") (= "=") (binary_expression "sVar2 & 0x3fffffff" (identifier "sVar2") (& "&") (number_literal "0x3fffffff"))) (; ";")) (if_statement "if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {\n          __src = pcVar8;\n          __n = local_34;\n        }" (if "if") (parenthesized_expression "(((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0)" (( "(") (binary_expression "((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0" (parenthesized_expression "((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46)" (( "(") (binary_expression "(&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46" (subscript_expression "(&DAT_00102800)[**(byte **)(iVar7 + 4)]" (parenthesized_expression "(&DAT_00102800)" (( "(") (pointer_expression "&DAT_00102800" (& "&") (identifier "DAT_00102800")) () ")")) ([ "[") (pointer_expression "**(byte **)(iVar7 + 4)" (* "*") (pointer_expression "*(byte **)(iVar7 + 4)" (* "*") (cast_expression "(byte **)(iVar7 + 4)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar7 + 4)" (( "(") (binary_expression "iVar7 + 4" (identifier "iVar7") (+ "+") (number_literal "4")) () ")"))))) (] "]")) (& "&") (number_literal "0x46")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          __src = pcVar8;\n          __n = local_34;\n        }" ({ "{") (expression_statement "__src = pcVar8;" (assignment_expression "__src = pcVar8" (identifier "__src") (= "=") (identifier "pcVar8")) (; ";")) (expression_statement "__n = local_34;" (assignment_expression "__n = local_34" (identifier "__n") (= "=") (identifier "local_34")) (; ";")) (} "}"))) (expression_statement "iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;" (assignment_expression "iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3" (identifier "iVar9") (= "=") (binary_expression "(int)*(byte **)(iVar7 + 4) - (int)param_3" (cast_expression "(int)*(byte **)(iVar7 + 4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(byte **)(iVar7 + 4)" (* "*") (cast_expression "(byte **)(iVar7 + 4)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar7 + 4)" (( "(") (binary_expression "iVar7 + 4" (identifier "iVar7") (+ "+") (number_literal "4")) () ")"))))) (- "-") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")))) (; ";")) (if_statement "if (*(size_t *)(iVar7 + 8) != __n) {\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }" (if "if") (parenthesized_expression "(*(size_t *)(iVar7 + 8) != __n)" (( "(") (binary_expression "*(size_t *)(iVar7 + 8) != __n" (pointer_expression "*(size_t *)(iVar7 + 8)" (* "*") (cast_expression "(size_t *)(iVar7 + 8)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 8)" (( "(") (binary_expression "iVar7 + 8" (identifier "iVar7") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (identifier "__n")) () ")")) (compound_statement "{\n          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;\n          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );\n          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;\n          *(undefined1 *)((int)__dest + local_44) = 0;\n        }" ({ "{") (expression_statement "iVar4 = *(size_t *)(iVar7 + 8) + iVar9;" (assignment_expression "iVar4 = *(size_t *)(iVar7 + 8) + iVar9" (identifier "iVar4") (= "=") (binary_expression "*(size_t *)(iVar7 + 8) + iVar9" (pointer_expression "*(size_t *)(iVar7 + 8)" (* "*") (cast_expression "(size_t *)(iVar7 + 8)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 8)" (( "(") (binary_expression "iVar7 + 8" (identifier "iVar7") (+ "+") (number_literal "8")) () ")")))) (+ "+") (identifier "iVar9"))) (; ";")) (expression_statement "memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 );" (call_expression "memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 )" (identifier "memmove") (argument_list "((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4\n                 )" (( "(") (cast_expression "(void *)(__n + iVar9 + (int)__dest)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(__n + iVar9 + (int)__dest)" (( "(") (binary_expression "__n + iVar9 + (int)__dest" (binary_expression "__n + iVar9" (identifier "__n") (+ "+") (identifier "iVar9")) (+ "+") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) () ")"))) (, ",") (cast_expression "(void *)(iVar4 + (int)__dest)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + (int)__dest)" (( "(") (binary_expression "iVar4 + (int)__dest" (identifier "iVar4") (+ "+") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) () ")"))) (, ",") (binary_expression "local_44 - iVar4" (identifier "local_44") (- "-") (identifier "iVar4")) () ")"))) (; ";")) (expression_statement "local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;" (assignment_expression "local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n" (identifier "local_44") (= "=") (binary_expression "(local_44 - *(int *)(iVar7 + 8)) + __n" (parenthesized_expression "(local_44 - *(int *)(iVar7 + 8))" (( "(") (binary_expression "local_44 - *(int *)(iVar7 + 8)" (identifier "local_44") (- "-") (pointer_expression "*(int *)(iVar7 + 8)" (* "*") (cast_expression "(int *)(iVar7 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 8)" (( "(") (binary_expression "iVar7 + 8" (identifier "iVar7") (+ "+") (number_literal "8")) () ")"))))) () ")")) (+ "+") (identifier "__n"))) (; ";")) (expression_statement "*(undefined1 *)((int)__dest + local_44) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_44) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_44)" (* "*") (cast_expression "(undefined1 *)((int)__dest + local_44)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + local_44)" (( "(") (binary_expression "(int)__dest + local_44" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "local_44")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "memcpy((void *)(iVar9 + (int)__dest),__src,__n);" (call_expression "memcpy((void *)(iVar9 + (int)__dest),__src,__n)" (identifier "memcpy") (argument_list "((void *)(iVar9 + (int)__dest),__src,__n)" (( "(") (cast_expression "(void *)(iVar9 + (int)__dest)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + (int)__dest)" (( "(") (binary_expression "iVar9 + (int)__dest" (identifier "iVar9") (+ "+") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) () ")"))) (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "FUN_00024d80();" (call_expression "FUN_00024d80()" (identifier "FUN_00024d80") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" (identifier "iVar9") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);" (call_expression "FUN_00046480(param_1,__dest,0xffffffff,0xffffffff)" (identifier "FUN_00046480") (argument_list "(param_1,__dest,0xffffffff,0xffffffff)" (( "(") (identifier "param_1") (, ",") (identifier "__dest") (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (expression_statement "FUN_00024d80();" (call_expression "FUN_00024d80()" (identifier "FUN_00024d80") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00024cc0(__s);" (call_expression "FUN_00024cc0(__s)" (identifier "FUN_00024cc0") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}")))

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

int __regparm3
function_1(type_1 *pCtx,type_2 *pRename,char *var_4,char *var_1,int var_9)

{
  type_3 **ppRVar1;
  type_4 *pbVar2;
  type_5 var_17;
  size_t var_3;
  type_6 *db;
  char *var_8;
  char *var_12;
  int var_21;
  type_3 *pRVar6;
  type_3 *var_14;
  type_2 *pRVar8;
  type_3 *var_15;
  char *__src;
  type_5 var_18;
  int var_19;
  type_3 *var_16;
  char *pcVar11;
  type_7 in_stack_ffffffb4;
  type_7 in_stack_ffffffb8;
  size_t var_5;
  type_5 local_34;
  
  if (var_1 == (char *)0x0) {
    local_34 = 0;
  }
  else {
    var_3 = var_2(var_1);
    local_34 = var_3 & 0x3fffffff;
  }
  if (var_4 == (char *)0x0) {
    var_5 = 0;
  }
  else {
    var_5 = var_2(var_4);
    var_5 = var_5 & 0x3fffffff;
  }
  db = var_6(pCtx);
  var_8 = var_7(db,"\"%w\"",var_1);
  if (var_8 != (char *)0x0) {
    var_3 = var_2(var_8);
    pcVar11 = var_8;
    if (var_9 == 0) {
      pcVar11 = var_1;
    }
    var_19 = 7;
    if (var_9 != 0) {
      local_34 = var_3 & 0x3fffffff;
    }
    var_12 = (char *)var_10(db,var_11(in_stack_ffffffb8,in_stack_ffffffb4));
    if (var_12 != (char *)0x0) {
      var_13(var_12,var_4,var_5);
      var_14 = pRename->pList;
      while (var_14 != (type_3 *)0x0) {
        var_15 = var_14->pNext;
        pRVar6 = var_15;
        var_16 = var_14;
        pRVar8 = pRename;
        if (var_15 == (type_3 *)0x0) {
          pRVar6 = (type_3 *)0x0;
        }
        else {
          do {
            if ((var_16->t).var_12 < (pRVar6->t).var_12) {
              var_16 = pRVar6;
            }
            ppRVar1 = &pRVar6->pNext;
            pRVar6 = *ppRVar1;
          } while (*ppRVar1 != (type_3 *)0x0);
          pRVar6 = var_16->pNext;
          if (var_16 != var_14) {
            for (; var_15 != var_16; var_15 = var_15->pNext) {
              var_14 = var_15;
            }
            pRVar8 = (type_2 *)&var_14->pNext;
          }
        }
        pRVar8->pList = pRVar6;
        pbVar2 = (type_4 *)(var_16->t).var_12;
        __src = var_8;
        var_18 = var_3 & 0x3fffffff;
        if ((""[*pbVar2] & 0x46) != 0) {
          __src = pcVar11;
          var_18 = local_34;
        }
        var_17 = (var_16->t).n;
        var_19 = (int)pbVar2 - (int)var_4;
        if (var_17 != var_18) {
          var_21 = var_17 + var_19;
          var_20(var_12 + var_18 + var_19,var_12 + var_21,var_5 - var_21);
          var_5 = (var_5 - (var_16->t).n) + var_18;
          var_12[var_5] = '\0';
        }
        var_13(var_12 + var_19,__src,var_18);
        var_22(db,var_16);
        var_14 = pRename->pList;
      }
      var_19 = 0;
      var_23(pCtx,var_12,-1,(type_8 *)&DAT_ffffffff);
      var_22(db,var_12);
    }
    var_24(var_8);
    return var_19;
  }
  return 7;
}


(translation_unit (function_definition type: (type_identifier) (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))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) 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: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier)))))) (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: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (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))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (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: (identifier))) consequence: (compound_statement (for_statement condition: (binary_expression left: (identifier) right: (identifier)) update: (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)))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (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: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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))))))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))) (return_statement (number_literal)))))

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

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

{
  int *piVar1;
  size_t sVar2;
  undefined4 uVar3;
  char *__s;
  void *__dest;
  int iVar4;
  int iVar5;
  int *piVar6;
  char *__src;
  uint __n;
  int iVar7;
  char *pcVar8;
  int iVar9;
  size_t local_44;
  uint local_34;
  
  if (param_4 == (char *)0x0) {
    local_34 = 0;
  }
  else {
    sVar2 = strlen(param_4);
    local_34 = sVar2 & 0x3fffffff;
  }
  if (param_3 == (char *)0x0) {
    local_44 = 0;
  }
  else {
    local_44 = strlen(param_3);
    local_44 = local_44 & 0x3fffffff;
  }
  uVar3 = FUN_0001bac0(param_1);
  __s = (char *)FUN_0005e630(uVar3,&DAT_000f7c62,param_4);
  if (__s != (char *)0x0) {
    sVar2 = strlen(__s);
    pcVar8 = __s;
    if (param_5 == 0) {
      pcVar8 = param_4;
    }
    uVar3 = 7;
    if (param_5 != 0) {
      local_34 = sVar2 & 0x3fffffff;
    }
    __dest = (void *)FUN_00026c00();
    if (__dest != (void *)0x0) {
      memcpy(__dest,param_3,local_44);
      iVar9 = *param_2;
      while (iVar9 != 0) {
        iVar4 = *(int *)(iVar9 + 0xc);
        iVar5 = iVar4;
        iVar7 = iVar9;
        piVar6 = param_2;
        if (iVar4 == 0) {
          iVar5 = 0;
        }
        else {
          do {
            if (*(uint *)(iVar7 + 4) < *(uint *)(iVar5 + 4)) {
              iVar7 = iVar5;
            }
            piVar1 = (int *)(iVar5 + 0xc);
            iVar5 = *piVar1;
          } while (*piVar1 != 0);
          iVar5 = *(int *)(iVar7 + 0xc);
          if (iVar7 != iVar9) {
            for (; iVar4 != iVar7; iVar4 = *(int *)(iVar4 + 0xc)) {
              iVar9 = iVar4;
            }
            piVar6 = (int *)(iVar9 + 0xc);
          }
        }
        *piVar6 = iVar5;
        __src = __s;
        __n = sVar2 & 0x3fffffff;
        if (((&DAT_00102800)[**(byte **)(iVar7 + 4)] & 0x46) != 0) {
          __src = pcVar8;
          __n = local_34;
        }
        iVar9 = (int)*(byte **)(iVar7 + 4) - (int)param_3;
        if (*(size_t *)(iVar7 + 8) != __n) {
          iVar4 = *(size_t *)(iVar7 + 8) + iVar9;
          memmove((void *)(__n + iVar9 + (int)__dest),(void *)(iVar4 + (int)__dest),local_44 - iVar4
                 );
          local_44 = (local_44 - *(int *)(iVar7 + 8)) + __n;
          *(undefined1 *)((int)__dest + local_44) = 0;
        }
        memcpy((void *)(iVar9 + (int)__dest),__src,__n);
        FUN_00024d80();
        iVar9 = *param_2;
      }
      uVar3 = 0;
      FUN_00046480(param_1,__dest,0xffffffff,0xffffffff);
      FUN_00024d80();
    }
    FUN_00024cc0(__s);
    return uVar3;
  }
  return 7;
}

