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

void jsonExtractFunc(sqlite3_context *ctx,int argc,sqlite3_value **argv)

{
  int iVar1;
  JsonParse *pParse;
  uchar *zPath;
  JsonNode *pNode;
  sqlite3_value **aReplace;
  undefined **ppuVar2;
  int iVar3;
  int in_GS_OFFSET;
  JsonString jx;
  
  ppuVar2 = &_GLOBAL_OFFSET_TABLE_;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((1 < argc) && (pParse = jsonParseCached(ctx,argv,ctx), pParse != (JsonParse *)0x0)) {
    jx.pCtx = ctx;
    jx.zBuf = jx.zSpace;
    jx.bStatic = '\x01';
    jx.bErr = '\0';
    jx.nAlloc._0_4_ = 100;
    jx.nAlloc._4_4_ = 0;
    jx.nUsed._0_4_ = 0;
    jx.nUsed._4_4_ = 0;
    jsonAppendChar(&jx,'[');
    iVar3 = 1;
    do {
      zPath = sqlite3_value_text(argv[iVar3]);
      pNode = jsonLookup(pParse,(char *)zPath,(int *)0x0,ctx);
      if (pParse->nErr != '\0') {
        if ((argc < 3) || (argc != iVar3)) goto LAB_00078c95;
        break;
      }
      if (argc == 2) {
        if (pNode != (JsonNode *)0x0) {
          jsonReturn(pNode,ctx,aReplace);
        }
        goto LAB_00078c95;
      }
      jsonAppendSeparator(&jx);
      if (pNode == (JsonNode *)0x0) {
        jsonAppendRaw(&jx,"null",4);
      }
      else {
        jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);
      }
      iVar3 = iVar3 + 1;
    } while (argc != iVar3);
    jsonAppendChar(&jx,']');
    if (jx.bErr == '\0') {
      jsonResult(&jx);
    }
    sqlite3_result_subtype(ctx,0x4a);
LAB_00078c95:
    if (jx.bStatic == '\0') {
      sqlite3_free(jx.zBuf);
    }
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local(ppuVar2);
  }
  return;
}



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

void FUN_00078b90(undefined4 param_1,int param_2,int param_3)

{
  int iVar1;
  int iVar2;
  undefined **ppuVar3;
  int iVar4;
  int in_GS_OFFSET;
  undefined4 local_a0;
  undefined1 *local_9c;
  undefined4 local_98;
  undefined4 local_94;
  undefined4 local_90;
  undefined4 local_8c;
  undefined2 local_88;
  undefined1 local_86 [102];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x78b99;
  ppuVar3 = &__DT_PLTGOT;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {
    local_a0 = param_1;
    local_9c = local_86;
    local_88 = 1;
    local_98 = 100;
    local_94 = 0;
    local_90 = 0;
    local_8c = 0;
    FUN_0006df10(ppuVar3,param_3,&local_a0);
    iVar4 = 1;
    do {
      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));
      iVar2 = FUN_00078a30(param_1);
      if (*(char *)(iVar1 + 0x15) != '\0') {
        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;
        break;
      }
      if (param_2 == 2) {
        if (iVar2 != 0) {
          FUN_0006e380();
        }
        goto LAB_00078c95;
      }
      FUN_0006df70();
      if (iVar2 == 0) {
        FUN_0006dc80();
      }
      else {
        FUN_0006dfa0();
      }
      iVar4 = iVar4 + 1;
    } while (param_2 != iVar4);
    FUN_0006df10();
    if (local_88._1_1_ == '\0') {
      FUN_00048740();
    }
    FUN_0001d2a0(param_1,0x4a);
LAB_00078c95:
    if ((char)local_88 == '\0') {
      FUN_000264d0(local_9c);
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f6410();
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014d20
ADD EBX,0xd233b
SUB ESP,0xac
MOV EAX,dword ptr [ESP + 0xc8]
MOV EBP,dword ptr [ESP + 0xc0]
MOV dword ptr [ESP + 0x4],EAX
MOV dword ptr [ESP],EBX
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x9c],ECX
XOR ECX,ECX
CMP dword ptr [ESP + 0xc4],0x1
JLE 0x00078c9c
MOV EDX,EAX
MOV ECX,EBP
MOV EAX,EBP
CALL 0x0006ce50
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00078c9c
LEA EAX,[ESP + 0x1c]
MOV EDX,0x5b
MOV dword ptr [ESP + 0x1c],EBP
MOV ESI,0x1
MOV ECX,EAX
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[ESP + 0x36]
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,0x1
MOV word ptr [ESP + 0x34],AX
MOV EAX,ECX
MOV dword ptr [ESP + 0x24],0x64
MOV dword ptr [ESP + 0x28],0x0
MOV dword ptr [ESP + 0x2c],0x0
MOV dword ptr [ESP + 0x30],0x0
CALL 0x0006df10
LEA EAX,[EBX + 0xfffadb08]
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
NOP
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x10]
PUSH dword ptr [EAX + ESI*0x4]
MOV EBX,dword ptr [ESP + 0x10]
CALL 0x0004e670
XOR ECX,ECX
MOV dword ptr [ESP],EBP
MOV EDX,EAX
MOV EAX,EDI
CALL 0x00078a30
ADD ESP,0x10
CMP byte ptr [EDI + 0x15],0x0
MOV EBX,EAX
JNZ 0x00078d20
CMP dword ptr [ESP + 0xc4],0x2
JNZ 0x00078cc0
TEST EAX,EAX
JZ 0x00078c95
MOV EDX,EBP
CALL 0x0006e380
CMP byte ptr [ESP + 0x34],0x0
JZ 0x00078d08
MOV EAX,dword ptr [ESP + 0x9c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00078d70
ADD ESP,0xac
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x8]
CALL 0x0006df70
TEST EBX,EBX
JZ 0x00078cf0
MOV EDX,dword ptr [ESP + 0x8]
XOR ECX,ECX
MOV EAX,EBX
CALL 0x0006dfa0
ADD ESI,0x1
CMP dword ptr [ESP + 0xc4],ESI
JNZ 0x00078c50
JMP 0x00078d3b
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,0x4
CALL 0x0006dc80
JMP 0x00078cda
SUB ESP,0xc
PUSH dword ptr [ESP + 0x2c]
MOV EBX,dword ptr [ESP + 0x10]
CALL 0x000264d0
ADD ESP,0x10
JMP 0x00078c9c
CMP dword ptr [ESP + 0xc4],0x2
JLE 0x00078c95
CMP dword ptr [ESP + 0xc4],ESI
JNZ 0x00078c95
MOV EDI,dword ptr [ESP + 0x8]
MOV EDX,0x5d
MOV EAX,EDI
CALL 0x0006df10
CMP byte ptr [ESP + 0x35],0x0
JNZ 0x00078d59
MOV EAX,EDI
CALL 0x00048740
SUB ESP,0x8
PUSH 0x4a
PUSH EBP
MOV EBX,dword ptr [ESP + 0x10]
CALL 0x0001d2a0
ADD ESP,0x10
JMP 0x00078c95
CALL 0x000f6410
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00078b90(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined **ppuVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  undefined4 local_a0;\n  undefined1 *local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined2 local_88;\n  undefined1 local_86 [102];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x78b99;\n  ppuVar3 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00078b90(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined **ppuVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  undefined4 local_a0;\n  undefined1 *local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined2 local_88;\n  undefined1 local_86 [102];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x78b99;\n  ppuVar3 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00078b90(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined **ppuVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  undefined4 local_a0;\n  undefined1 *local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined2 local_88;\n  undefined1 local_86 [102];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x78b99;\n  ppuVar3 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_a0;" type_identifier identifier ;) (declaration "undefined1 *local_9c;" type_identifier (pointer_declarator "*local_9c" * identifier) ;) (declaration "undefined4 local_98;" type_identifier identifier ;) (declaration "undefined4 local_94;" type_identifier identifier ;) (declaration "undefined4 local_90;" type_identifier identifier ;) (declaration "undefined4 local_8c;" type_identifier identifier ;) (declaration "undefined2 local_88;" type_identifier identifier ;) (declaration "undefined1 local_86 [102];" type_identifier (array_declarator "local_86 [102]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x78b99;" (assignment_expression "uStack_14 = 0x78b99" identifier = number_literal) ;) (expression_statement "ppuVar3 = &__DT_PLTGOT;" (assignment_expression "ppuVar3 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }" if (parenthesized_expression "((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0))" ( (binary_expression "(1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)" (parenthesized_expression "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) )) && (parenthesized_expression "(iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0" (assignment_expression "iVar1 = FUN_0006ce50(&__DT_PLTGOT)" identifier = (call_expression "FUN_0006ce50(&__DT_PLTGOT)" identifier (argument_list "(&__DT_PLTGOT)" ( (pointer_expression "&__DT_PLTGOT" & identifier) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }" { (expression_statement "local_a0 = param_1;" (assignment_expression "local_a0 = param_1" identifier = identifier) ;) (expression_statement "local_9c = local_86;" (assignment_expression "local_9c = local_86" identifier = identifier) ;) (expression_statement "local_88 = 1;" (assignment_expression "local_88 = 1" identifier = number_literal) ;) (expression_statement "local_98 = 100;" (assignment_expression "local_98 = 100" identifier = number_literal) ;) (expression_statement "local_94 = 0;" (assignment_expression "local_94 = 0" identifier = number_literal) ;) (expression_statement "local_90 = 0;" (assignment_expression "local_90 = 0" identifier = number_literal) ;) (expression_statement "local_8c = 0;" (assignment_expression "local_8c = 0" identifier = number_literal) ;) (expression_statement "FUN_0006df10(ppuVar3,param_3,&local_a0);" (call_expression "FUN_0006df10(ppuVar3,param_3,&local_a0)" identifier (argument_list "(ppuVar3,param_3,&local_a0)" ( identifier , identifier , (pointer_expression "&local_a0" & identifier) ))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (do_statement "do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);" do (compound_statement "{\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    }" { (expression_statement "FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));" (call_expression "FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4))" identifier (argument_list "(*(undefined4 *)(param_3 + iVar4 * 4))" ( (pointer_expression "*(undefined4 *)(param_3 + iVar4 * 4)" * (cast_expression "(undefined4 *)(param_3 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + iVar4 * 4)" ( (binary_expression "param_3 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ))) ;) (expression_statement "iVar2 = FUN_00078a30(param_1);" (assignment_expression "iVar2 = FUN_00078a30(param_1)" identifier = (call_expression "FUN_00078a30(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }" if (parenthesized_expression "(*(char *)(iVar1 + 0x15) != '\0')" ( (binary_expression "*(char *)(iVar1 + 0x15) != '\0'" (pointer_expression "*(char *)(iVar1 + 0x15)" * (cast_expression "(char *)(iVar1 + 0x15)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x15)" ( (binary_expression "iVar1 + 0x15" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }" { (if_statement "if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;" if (parenthesized_expression "((param_2 < 3) || (param_2 != iVar4))" ( (binary_expression "(param_2 < 3) || (param_2 != iVar4)" (parenthesized_expression "(param_2 < 3)" ( (binary_expression "param_2 < 3" identifier < number_literal) )) || (parenthesized_expression "(param_2 != iVar4)" ( (binary_expression "param_2 != iVar4" identifier != identifier) ))) )) (goto_statement "goto LAB_00078c95;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (if_statement "if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }" { (if_statement "if (iVar2 != 0) {\n          FUN_0006e380();\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_0006e380();\n        }" { (expression_statement "FUN_0006e380();" (call_expression "FUN_0006e380()" identifier (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_00078c95;" goto statement_identifier ;) })) (expression_statement "FUN_0006df70();" (call_expression "FUN_0006df70()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_0006dc80();\n      }" { (expression_statement "FUN_0006dc80();" (call_expression "FUN_0006dc80()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n        FUN_0006dfa0();\n      }" else (compound_statement "{\n        FUN_0006dfa0();\n      }" { (expression_statement "FUN_0006dfa0();" (call_expression "FUN_0006dfa0()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != iVar4)" ( (binary_expression "param_2 != iVar4" identifier != identifier) )) ;) (expression_statement "FUN_0006df10();" (call_expression "FUN_0006df10()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }" if (parenthesized_expression "(local_88._1_1_ == '\0')" ( (binary_expression "local_88._1_1_ == '\0'" (field_expression "local_88._1_1_" identifier . field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00048740();\n    }" { (expression_statement "FUN_00048740();" (call_expression "FUN_00048740()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_0001d2a0(param_1,0x4a);" (call_expression "FUN_0001d2a0(param_1,0x4a)" identifier (argument_list "(param_1,0x4a)" ( identifier , number_literal ))) ;) (labeled_statement "LAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }" statement_identifier : (if_statement "if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }" if (parenthesized_expression "((char)local_88 == '\0')" ( (binary_expression "(char)local_88 == '\0'" (cast_expression "(char)local_88" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_000264d0(local_9c);\n    }" { (expression_statement "FUN_000264d0(local_9c);" (call_expression "FUN_000264d0(local_9c)" identifier (argument_list "(local_9c)" ( identifier ))) ;) }))) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }" { comment (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid jsonExtractFunc(sqlite3_context *ctx,int argc,sqlite3_value **argv)\n\n{\n  int iVar1;\n  JsonParse *pParse;\n  uchar *zPath;\n  JsonNode *pNode;\n  sqlite3_value **aReplace;\n  undefined **ppuVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  JsonString jx;\n  \n  ppuVar2 = &_GLOBAL_OFFSET_TABLE_;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((1 < argc) && (pParse = jsonParseCached(ctx,argv,ctx), pParse != (JsonParse *)0x0)) {\n    jx.pCtx = ctx;\n    jx.zBuf = jx.zSpace;\n    jx.bStatic = '\x01';\n    jx.bErr = '\0';\n    jx.nAlloc._0_4_ = 100;\n    jx.nAlloc._4_4_ = 0;\n    jx.nUsed._0_4_ = 0;\n    jx.nUsed._4_4_ = 0;\n    jsonAppendChar(&jx,'[');\n    iVar3 = 1;\n    do {\n      zPath = sqlite3_value_text(argv[iVar3]);\n      pNode = jsonLookup(pParse,(char *)zPath,(int *)0x0,ctx);\n      if (pParse->nErr != '\0') {\n        if ((argc < 3) || (argc != iVar3)) goto LAB_00078c95;\n        break;\n      }\n      if (argc == 2) {\n        if (pNode != (JsonNode *)0x0) {\n          jsonReturn(pNode,ctx,aReplace);\n        }\n        goto LAB_00078c95;\n      }\n      jsonAppendSeparator(&jx);\n      if (pNode == (JsonNode *)0x0) {\n        jsonAppendRaw(&jx,"null",4);\n      }\n      else {\n        jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);\n      }\n      iVar3 = iVar3 + 1;\n    } while (argc != iVar3);\n    jsonAppendChar(&jx,']');\n    if (jx.bErr == '\0') {\n      jsonResult(&jx);\n    }\n    sqlite3_result_subtype(ctx,0x4a);\nLAB_00078c95:\n    if (jx.bStatic == '\0') {\n      sqlite3_free(jx.zBuf);\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local(ppuVar2);\n  }\n  return;\n}\n\n" comment comment (function_definition "void jsonExtractFunc(sqlite3_context *ctx,int argc,sqlite3_value **argv)\n\n{\n  int iVar1;\n  JsonParse *pParse;\n  uchar *zPath;\n  JsonNode *pNode;\n  sqlite3_value **aReplace;\n  undefined **ppuVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  JsonString jx;\n  \n  ppuVar2 = &_GLOBAL_OFFSET_TABLE_;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((1 < argc) && (pParse = jsonParseCached(ctx,argv,ctx), pParse != (JsonParse *)0x0)) {\n    jx.pCtx = ctx;\n    jx.zBuf = jx.zSpace;\n    jx.bStatic = '\x01';\n    jx.bErr = '\0';\n    jx.nAlloc._0_4_ = 100;\n    jx.nAlloc._4_4_ = 0;\n    jx.nUsed._0_4_ = 0;\n    jx.nUsed._4_4_ = 0;\n    jsonAppendChar(&jx,'[');\n    iVar3 = 1;\n    do {\n      zPath = sqlite3_value_text(argv[iVar3]);\n      pNode = jsonLookup(pParse,(char *)zPath,(int *)0x0,ctx);\n      if (pParse->nErr != '\0') {\n        if ((argc < 3) || (argc != iVar3)) goto LAB_00078c95;\n        break;\n      }\n      if (argc == 2) {\n        if (pNode != (JsonNode *)0x0) {\n          jsonReturn(pNode,ctx,aReplace);\n        }\n        goto LAB_00078c95;\n      }\n      jsonAppendSeparator(&jx);\n      if (pNode == (JsonNode *)0x0) {\n        jsonAppendRaw(&jx,"null",4);\n      }\n      else {\n        jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);\n      }\n      iVar3 = iVar3 + 1;\n    } while (argc != iVar3);\n    jsonAppendChar(&jx,']');\n    if (jx.bErr == '\0') {\n      jsonResult(&jx);\n    }\n    sqlite3_result_subtype(ctx,0x4a);\nLAB_00078c95:\n    if (jx.bStatic == '\0') {\n      sqlite3_free(jx.zBuf);\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local(ppuVar2);\n  }\n  return;\n}" primitive_type (function_declarator "jsonExtractFunc(sqlite3_context *ctx,int argc,sqlite3_value **argv)" identifier (parameter_list "(sqlite3_context *ctx,int argc,sqlite3_value **argv)" ( (parameter_declaration "sqlite3_context *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "sqlite3_value **argv" type_identifier (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  int iVar1;\n  JsonParse *pParse;\n  uchar *zPath;\n  JsonNode *pNode;\n  sqlite3_value **aReplace;\n  undefined **ppuVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  JsonString jx;\n  \n  ppuVar2 = &_GLOBAL_OFFSET_TABLE_;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((1 < argc) && (pParse = jsonParseCached(ctx,argv,ctx), pParse != (JsonParse *)0x0)) {\n    jx.pCtx = ctx;\n    jx.zBuf = jx.zSpace;\n    jx.bStatic = '\x01';\n    jx.bErr = '\0';\n    jx.nAlloc._0_4_ = 100;\n    jx.nAlloc._4_4_ = 0;\n    jx.nUsed._0_4_ = 0;\n    jx.nUsed._4_4_ = 0;\n    jsonAppendChar(&jx,'[');\n    iVar3 = 1;\n    do {\n      zPath = sqlite3_value_text(argv[iVar3]);\n      pNode = jsonLookup(pParse,(char *)zPath,(int *)0x0,ctx);\n      if (pParse->nErr != '\0') {\n        if ((argc < 3) || (argc != iVar3)) goto LAB_00078c95;\n        break;\n      }\n      if (argc == 2) {\n        if (pNode != (JsonNode *)0x0) {\n          jsonReturn(pNode,ctx,aReplace);\n        }\n        goto LAB_00078c95;\n      }\n      jsonAppendSeparator(&jx);\n      if (pNode == (JsonNode *)0x0) {\n        jsonAppendRaw(&jx,"null",4);\n      }\n      else {\n        jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);\n      }\n      iVar3 = iVar3 + 1;\n    } while (argc != iVar3);\n    jsonAppendChar(&jx,']');\n    if (jx.bErr == '\0') {\n      jsonResult(&jx);\n    }\n    sqlite3_result_subtype(ctx,0x4a);\nLAB_00078c95:\n    if (jx.bStatic == '\0') {\n      sqlite3_free(jx.zBuf);\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local(ppuVar2);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "JsonParse *pParse;" type_identifier (pointer_declarator "*pParse" * identifier) ;) (declaration "uchar *zPath;" type_identifier (pointer_declarator "*zPath" * identifier) ;) (declaration "JsonNode *pNode;" type_identifier (pointer_declarator "*pNode" * identifier) ;) (declaration "sqlite3_value **aReplace;" type_identifier (pointer_declarator "**aReplace" * (pointer_declarator "*aReplace" * identifier)) ;) (declaration "undefined **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "JsonString jx;" type_identifier identifier ;) (expression_statement "ppuVar2 = &_GLOBAL_OFFSET_TABLE_;" (assignment_expression "ppuVar2 = &_GLOBAL_OFFSET_TABLE_" identifier = (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & identifier)) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((1 < argc) && (pParse = jsonParseCached(ctx,argv,ctx), pParse != (JsonParse *)0x0)) {\n    jx.pCtx = ctx;\n    jx.zBuf = jx.zSpace;\n    jx.bStatic = '\x01';\n    jx.bErr = '\0';\n    jx.nAlloc._0_4_ = 100;\n    jx.nAlloc._4_4_ = 0;\n    jx.nUsed._0_4_ = 0;\n    jx.nUsed._4_4_ = 0;\n    jsonAppendChar(&jx,'[');\n    iVar3 = 1;\n    do {\n      zPath = sqlite3_value_text(argv[iVar3]);\n      pNode = jsonLookup(pParse,(char *)zPath,(int *)0x0,ctx);\n      if (pParse->nErr != '\0') {\n        if ((argc < 3) || (argc != iVar3)) goto LAB_00078c95;\n        break;\n      }\n      if (argc == 2) {\n        if (pNode != (JsonNode *)0x0) {\n          jsonReturn(pNode,ctx,aReplace);\n        }\n        goto LAB_00078c95;\n      }\n      jsonAppendSeparator(&jx);\n      if (pNode == (JsonNode *)0x0) {\n        jsonAppendRaw(&jx,"null",4);\n      }\n      else {\n        jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);\n      }\n      iVar3 = iVar3 + 1;\n    } while (argc != iVar3);\n    jsonAppendChar(&jx,']');\n    if (jx.bErr == '\0') {\n      jsonResult(&jx);\n    }\n    sqlite3_result_subtype(ctx,0x4a);\nLAB_00078c95:\n    if (jx.bStatic == '\0') {\n      sqlite3_free(jx.zBuf);\n    }\n  }" if (parenthesized_expression "((1 < argc) && (pParse = jsonParseCached(ctx,argv,ctx), pParse != (JsonParse *)0x0))" ( (binary_expression "(1 < argc) && (pParse = jsonParseCached(ctx,argv,ctx), pParse != (JsonParse *)0x0)" (parenthesized_expression "(1 < argc)" ( (binary_expression "1 < argc" number_literal < identifier) )) && (parenthesized_expression "(pParse = jsonParseCached(ctx,argv,ctx), pParse != (JsonParse *)0x0)" ( (comma_expression "pParse = jsonParseCached(ctx,argv,ctx), pParse != (JsonParse *)0x0" (assignment_expression "pParse = jsonParseCached(ctx,argv,ctx)" identifier = (call_expression "jsonParseCached(ctx,argv,ctx)" identifier (argument_list "(ctx,argv,ctx)" ( identifier , identifier , identifier )))) , (binary_expression "pParse != (JsonParse *)0x0" identifier != (cast_expression "(JsonParse *)0x0" ( (type_descriptor "JsonParse *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    jx.pCtx = ctx;\n    jx.zBuf = jx.zSpace;\n    jx.bStatic = '\x01';\n    jx.bErr = '\0';\n    jx.nAlloc._0_4_ = 100;\n    jx.nAlloc._4_4_ = 0;\n    jx.nUsed._0_4_ = 0;\n    jx.nUsed._4_4_ = 0;\n    jsonAppendChar(&jx,'[');\n    iVar3 = 1;\n    do {\n      zPath = sqlite3_value_text(argv[iVar3]);\n      pNode = jsonLookup(pParse,(char *)zPath,(int *)0x0,ctx);\n      if (pParse->nErr != '\0') {\n        if ((argc < 3) || (argc != iVar3)) goto LAB_00078c95;\n        break;\n      }\n      if (argc == 2) {\n        if (pNode != (JsonNode *)0x0) {\n          jsonReturn(pNode,ctx,aReplace);\n        }\n        goto LAB_00078c95;\n      }\n      jsonAppendSeparator(&jx);\n      if (pNode == (JsonNode *)0x0) {\n        jsonAppendRaw(&jx,"null",4);\n      }\n      else {\n        jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);\n      }\n      iVar3 = iVar3 + 1;\n    } while (argc != iVar3);\n    jsonAppendChar(&jx,']');\n    if (jx.bErr == '\0') {\n      jsonResult(&jx);\n    }\n    sqlite3_result_subtype(ctx,0x4a);\nLAB_00078c95:\n    if (jx.bStatic == '\0') {\n      sqlite3_free(jx.zBuf);\n    }\n  }" { (expression_statement "jx.pCtx = ctx;" (assignment_expression "jx.pCtx = ctx" (field_expression "jx.pCtx" identifier . field_identifier) = identifier) ;) (expression_statement "jx.zBuf = jx.zSpace;" (assignment_expression "jx.zBuf = jx.zSpace" (field_expression "jx.zBuf" identifier . field_identifier) = (field_expression "jx.zSpace" identifier . field_identifier)) ;) (expression_statement "jx.bStatic = '\x01';" (assignment_expression "jx.bStatic = '\x01'" (field_expression "jx.bStatic" identifier . field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "jx.bErr = '\0';" (assignment_expression "jx.bErr = '\0'" (field_expression "jx.bErr" identifier . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "jx.nAlloc._0_4_ = 100;" (assignment_expression "jx.nAlloc._0_4_ = 100" (field_expression "jx.nAlloc._0_4_" (field_expression "jx.nAlloc" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "jx.nAlloc._4_4_ = 0;" (assignment_expression "jx.nAlloc._4_4_ = 0" (field_expression "jx.nAlloc._4_4_" (field_expression "jx.nAlloc" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "jx.nUsed._0_4_ = 0;" (assignment_expression "jx.nUsed._0_4_ = 0" (field_expression "jx.nUsed._0_4_" (field_expression "jx.nUsed" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "jx.nUsed._4_4_ = 0;" (assignment_expression "jx.nUsed._4_4_ = 0" (field_expression "jx.nUsed._4_4_" (field_expression "jx.nUsed" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "jsonAppendChar(&jx,'[');" (call_expression "jsonAppendChar(&jx,'[')" identifier (argument_list "(&jx,'[')" ( (pointer_expression "&jx" & identifier) , (char_literal "'['" ' character ') ))) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (do_statement "do {\n      zPath = sqlite3_value_text(argv[iVar3]);\n      pNode = jsonLookup(pParse,(char *)zPath,(int *)0x0,ctx);\n      if (pParse->nErr != '\0') {\n        if ((argc < 3) || (argc != iVar3)) goto LAB_00078c95;\n        break;\n      }\n      if (argc == 2) {\n        if (pNode != (JsonNode *)0x0) {\n          jsonReturn(pNode,ctx,aReplace);\n        }\n        goto LAB_00078c95;\n      }\n      jsonAppendSeparator(&jx);\n      if (pNode == (JsonNode *)0x0) {\n        jsonAppendRaw(&jx,"null",4);\n      }\n      else {\n        jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);\n      }\n      iVar3 = iVar3 + 1;\n    } while (argc != iVar3);" do (compound_statement "{\n      zPath = sqlite3_value_text(argv[iVar3]);\n      pNode = jsonLookup(pParse,(char *)zPath,(int *)0x0,ctx);\n      if (pParse->nErr != '\0') {\n        if ((argc < 3) || (argc != iVar3)) goto LAB_00078c95;\n        break;\n      }\n      if (argc == 2) {\n        if (pNode != (JsonNode *)0x0) {\n          jsonReturn(pNode,ctx,aReplace);\n        }\n        goto LAB_00078c95;\n      }\n      jsonAppendSeparator(&jx);\n      if (pNode == (JsonNode *)0x0) {\n        jsonAppendRaw(&jx,"null",4);\n      }\n      else {\n        jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);\n      }\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "zPath = sqlite3_value_text(argv[iVar3]);" (assignment_expression "zPath = sqlite3_value_text(argv[iVar3])" identifier = (call_expression "sqlite3_value_text(argv[iVar3])" identifier (argument_list "(argv[iVar3])" ( (subscript_expression "argv[iVar3]" identifier [ identifier ]) )))) ;) (expression_statement "pNode = jsonLookup(pParse,(char *)zPath,(int *)0x0,ctx);" (assignment_expression "pNode = jsonLookup(pParse,(char *)zPath,(int *)0x0,ctx)" identifier = (call_expression "jsonLookup(pParse,(char *)zPath,(int *)0x0,ctx)" identifier (argument_list "(pParse,(char *)zPath,(int *)0x0,ctx)" ( identifier , (cast_expression "(char *)zPath" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) (if_statement "if (pParse->nErr != '\0') {\n        if ((argc < 3) || (argc != iVar3)) goto LAB_00078c95;\n        break;\n      }" if (parenthesized_expression "(pParse->nErr != '\0')" ( (binary_expression "pParse->nErr != '\0'" (field_expression "pParse->nErr" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if ((argc < 3) || (argc != iVar3)) goto LAB_00078c95;\n        break;\n      }" { (if_statement "if ((argc < 3) || (argc != iVar3)) goto LAB_00078c95;" if (parenthesized_expression "((argc < 3) || (argc != iVar3))" ( (binary_expression "(argc < 3) || (argc != iVar3)" (parenthesized_expression "(argc < 3)" ( (binary_expression "argc < 3" identifier < number_literal) )) || (parenthesized_expression "(argc != iVar3)" ( (binary_expression "argc != iVar3" identifier != identifier) ))) )) (goto_statement "goto LAB_00078c95;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (if_statement "if (argc == 2) {\n        if (pNode != (JsonNode *)0x0) {\n          jsonReturn(pNode,ctx,aReplace);\n        }\n        goto LAB_00078c95;\n      }" if (parenthesized_expression "(argc == 2)" ( (binary_expression "argc == 2" identifier == number_literal) )) (compound_statement "{\n        if (pNode != (JsonNode *)0x0) {\n          jsonReturn(pNode,ctx,aReplace);\n        }\n        goto LAB_00078c95;\n      }" { (if_statement "if (pNode != (JsonNode *)0x0) {\n          jsonReturn(pNode,ctx,aReplace);\n        }" if (parenthesized_expression "(pNode != (JsonNode *)0x0)" ( (binary_expression "pNode != (JsonNode *)0x0" identifier != (cast_expression "(JsonNode *)0x0" ( (type_descriptor "JsonNode *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          jsonReturn(pNode,ctx,aReplace);\n        }" { (expression_statement "jsonReturn(pNode,ctx,aReplace);" (call_expression "jsonReturn(pNode,ctx,aReplace)" identifier (argument_list "(pNode,ctx,aReplace)" ( identifier , identifier , identifier ))) ;) })) (goto_statement "goto LAB_00078c95;" goto statement_identifier ;) })) (expression_statement "jsonAppendSeparator(&jx);" (call_expression "jsonAppendSeparator(&jx)" identifier (argument_list "(&jx)" ( (pointer_expression "&jx" & identifier) ))) ;) (if_statement "if (pNode == (JsonNode *)0x0) {\n        jsonAppendRaw(&jx,"null",4);\n      }\n      else {\n        jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);\n      }" if (parenthesized_expression "(pNode == (JsonNode *)0x0)" ( (binary_expression "pNode == (JsonNode *)0x0" identifier == (cast_expression "(JsonNode *)0x0" ( (type_descriptor "JsonNode *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        jsonAppendRaw(&jx,"null",4);\n      }" { (expression_statement "jsonAppendRaw(&jx,"null",4);" (call_expression "jsonAppendRaw(&jx,"null",4)" identifier (argument_list "(&jx,"null",4)" ( (pointer_expression "&jx" & identifier) , (string_literal ""null"" " string_content ") , number_literal ))) ;) }) (else_clause "else {\n        jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);\n      }" else (compound_statement "{\n        jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);\n      }" { (expression_statement "jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0);" (call_expression "jsonRenderNode(pNode,&jx,(sqlite3_value **)0x0)" identifier (argument_list "(pNode,&jx,(sqlite3_value **)0x0)" ( identifier , (pointer_expression "&jx" & identifier) , (cast_expression "(sqlite3_value **)0x0" ( (type_descriptor "sqlite3_value **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) ))) ;) }))) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(argc != iVar3)" ( (binary_expression "argc != iVar3" identifier != identifier) )) ;) (expression_statement "jsonAppendChar(&jx,']');" (call_expression "jsonAppendChar(&jx,']')" identifier (argument_list "(&jx,']')" ( (pointer_expression "&jx" & identifier) , (char_literal "']'" ' character ') ))) ;) (if_statement "if (jx.bErr == '\0') {\n      jsonResult(&jx);\n    }" if (parenthesized_expression "(jx.bErr == '\0')" ( (binary_expression "jx.bErr == '\0'" (field_expression "jx.bErr" identifier . field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      jsonResult(&jx);\n    }" { (expression_statement "jsonResult(&jx);" (call_expression "jsonResult(&jx)" identifier (argument_list "(&jx)" ( (pointer_expression "&jx" & identifier) ))) ;) })) (expression_statement "sqlite3_result_subtype(ctx,0x4a);" (call_expression "sqlite3_result_subtype(ctx,0x4a)" identifier (argument_list "(ctx,0x4a)" ( identifier , number_literal ))) ;) (labeled_statement "LAB_00078c95:\n    if (jx.bStatic == '\0') {\n      sqlite3_free(jx.zBuf);\n    }" statement_identifier : (if_statement "if (jx.bStatic == '\0') {\n      sqlite3_free(jx.zBuf);\n    }" if (parenthesized_expression "(jx.bStatic == '\0')" ( (binary_expression "jx.bStatic == '\0'" (field_expression "jx.bStatic" identifier . field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      sqlite3_free(jx.zBuf);\n    }" { (expression_statement "sqlite3_free(jx.zBuf);" (call_expression "sqlite3_free(jx.zBuf)" identifier (argument_list "(jx.zBuf)" ( (field_expression "jx.zBuf" identifier . field_identifier) ))) ;) }))) })) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local(ppuVar2);\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local(ppuVar2);\n  }" { comment (expression_statement "__stack_chk_fail_local(ppuVar2);" (call_expression "__stack_chk_fail_local(ppuVar2)" identifier (argument_list "(ppuVar2)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00078b90(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined **ppuVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  undefined4 local_a0;\n  undefined1 *local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined2 local_88;\n  undefined1 local_86 [102];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x78b99;\n  ppuVar3 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return;\n}\n\n" (function_definition "void FUN_00078b90(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined **ppuVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  undefined4 local_a0;\n  undefined1 *local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined2 local_88;\n  undefined1 local_86 [102];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x78b99;\n  ppuVar3 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00078b90(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined **ppuVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  undefined4 local_a0;\n  undefined1 *local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined2 local_88;\n  undefined1 local_86 [102];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x78b99;\n  ppuVar3 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_a0;" type_identifier identifier ;) (declaration "undefined1 *local_9c;" type_identifier (pointer_declarator "*local_9c" * identifier) ;) (declaration "undefined4 local_98;" type_identifier identifier ;) (declaration "undefined4 local_94;" type_identifier identifier ;) (declaration "undefined4 local_90;" type_identifier identifier ;) (declaration "undefined4 local_8c;" type_identifier identifier ;) (declaration "undefined2 local_88;" type_identifier identifier ;) (declaration "undefined1 local_86 [102];" type_identifier (array_declarator "local_86 [102]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x78b99;" (assignment_expression "uStack_14 = 0x78b99" identifier = number_literal) ;) (expression_statement "ppuVar3 = &__DT_PLTGOT;" (assignment_expression "ppuVar3 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }" if (parenthesized_expression "((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0))" ( (binary_expression "(1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)" (parenthesized_expression "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) )) && (parenthesized_expression "(iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0" (assignment_expression "iVar1 = FUN_0006ce50(&__DT_PLTGOT)" identifier = (call_expression "FUN_0006ce50(&__DT_PLTGOT)" identifier (argument_list "(&__DT_PLTGOT)" ( (pointer_expression "&__DT_PLTGOT" & identifier) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }" { (expression_statement "local_a0 = param_1;" (assignment_expression "local_a0 = param_1" identifier = identifier) ;) (expression_statement "local_9c = local_86;" (assignment_expression "local_9c = local_86" identifier = identifier) ;) (expression_statement "local_88 = 1;" (assignment_expression "local_88 = 1" identifier = number_literal) ;) (expression_statement "local_98 = 100;" (assignment_expression "local_98 = 100" identifier = number_literal) ;) (expression_statement "local_94 = 0;" (assignment_expression "local_94 = 0" identifier = number_literal) ;) (expression_statement "local_90 = 0;" (assignment_expression "local_90 = 0" identifier = number_literal) ;) (expression_statement "local_8c = 0;" (assignment_expression "local_8c = 0" identifier = number_literal) ;) (expression_statement "FUN_0006df10(ppuVar3,param_3,&local_a0);" (call_expression "FUN_0006df10(ppuVar3,param_3,&local_a0)" identifier (argument_list "(ppuVar3,param_3,&local_a0)" ( identifier , identifier , (pointer_expression "&local_a0" & identifier) ))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (do_statement "do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);" do (compound_statement "{\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    }" { (expression_statement "FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));" (call_expression "FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4))" identifier (argument_list "(*(undefined4 *)(param_3 + iVar4 * 4))" ( (pointer_expression "*(undefined4 *)(param_3 + iVar4 * 4)" * (cast_expression "(undefined4 *)(param_3 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + iVar4 * 4)" ( (binary_expression "param_3 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ))) ;) (expression_statement "iVar2 = FUN_00078a30(param_1);" (assignment_expression "iVar2 = FUN_00078a30(param_1)" identifier = (call_expression "FUN_00078a30(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }" if (parenthesized_expression "(*(char *)(iVar1 + 0x15) != '\0')" ( (binary_expression "*(char *)(iVar1 + 0x15) != '\0'" (pointer_expression "*(char *)(iVar1 + 0x15)" * (cast_expression "(char *)(iVar1 + 0x15)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x15)" ( (binary_expression "iVar1 + 0x15" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }" { (if_statement "if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;" if (parenthesized_expression "((param_2 < 3) || (param_2 != iVar4))" ( (binary_expression "(param_2 < 3) || (param_2 != iVar4)" (parenthesized_expression "(param_2 < 3)" ( (binary_expression "param_2 < 3" identifier < number_literal) )) || (parenthesized_expression "(param_2 != iVar4)" ( (binary_expression "param_2 != iVar4" identifier != identifier) ))) )) (goto_statement "goto LAB_00078c95;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (if_statement "if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }" { (if_statement "if (iVar2 != 0) {\n          FUN_0006e380();\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_0006e380();\n        }" { (expression_statement "FUN_0006e380();" (call_expression "FUN_0006e380()" identifier (argument_list "()" ( ))) ;) })) (goto_statement "goto LAB_00078c95;" goto statement_identifier ;) })) (expression_statement "FUN_0006df70();" (call_expression "FUN_0006df70()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_0006dc80();\n      }" { (expression_statement "FUN_0006dc80();" (call_expression "FUN_0006dc80()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n        FUN_0006dfa0();\n      }" else (compound_statement "{\n        FUN_0006dfa0();\n      }" { (expression_statement "FUN_0006dfa0();" (call_expression "FUN_0006dfa0()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != iVar4)" ( (binary_expression "param_2 != iVar4" identifier != identifier) )) ;) (expression_statement "FUN_0006df10();" (call_expression "FUN_0006df10()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }" if (parenthesized_expression "(local_88._1_1_ == '\0')" ( (binary_expression "local_88._1_1_ == '\0'" (field_expression "local_88._1_1_" identifier . field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00048740();\n    }" { (expression_statement "FUN_00048740();" (call_expression "FUN_00048740()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_0001d2a0(param_1,0x4a);" (call_expression "FUN_0001d2a0(param_1,0x4a)" identifier (argument_list "(param_1,0x4a)" ( identifier , number_literal ))) ;) (labeled_statement "LAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }" statement_identifier : (if_statement "if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }" if (parenthesized_expression "((char)local_88 == '\0')" ( (binary_expression "(char)local_88 == '\0'" (cast_expression "(char)local_88" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_000264d0(local_9c);\n    }" { (expression_statement "FUN_000264d0(local_9c);" (call_expression "FUN_000264d0(local_9c)" identifier (argument_list "(local_9c)" ( identifier ))) ;) }))) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_000f6410();\n  }" { (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) (goto_statement goto statement_identifier ;)) (break_statement break ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00078b90(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined **ppuVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  undefined4 local_a0;\n  undefined1 *local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined2 local_88;\n  undefined1 local_86 [102];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x78b99;\n  ppuVar3 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00078b90(undefined4 param_1,int param_2,int param_3)" (identifier "FUN_00078b90") (parameter_list "(undefined4 param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined **ppuVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  undefined4 local_a0;\n  undefined1 *local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  undefined4 local_90;\n  undefined4 local_8c;\n  undefined2 local_88;\n  undefined1 local_86 [102];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x78b99;\n  ppuVar3 = &__DT_PLTGOT;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined **ppuVar3;" (type_identifier "undefined") (pointer_declarator "**ppuVar3" (* "*") (pointer_declarator "*ppuVar3" (* "*") (identifier "ppuVar3"))) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_a0;" (type_identifier "undefined4") (identifier "local_a0") (; ";")) (declaration "undefined1 *local_9c;" (type_identifier "undefined1") (pointer_declarator "*local_9c" (* "*") (identifier "local_9c")) (; ";")) (declaration "undefined4 local_98;" (type_identifier "undefined4") (identifier "local_98") (; ";")) (declaration "undefined4 local_94;" (type_identifier "undefined4") (identifier "local_94") (; ";")) (declaration "undefined4 local_90;" (type_identifier "undefined4") (identifier "local_90") (; ";")) (declaration "undefined4 local_8c;" (type_identifier "undefined4") (identifier "local_8c") (; ";")) (declaration "undefined2 local_88;" (type_identifier "undefined2") (identifier "local_88") (; ";")) (declaration "undefined1 local_86 [102];" (type_identifier "undefined1") (array_declarator "local_86 [102]" (identifier "local_86") ([ "[") (number_literal "102") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x78b99;" (assignment_expression "uStack_14 = 0x78b99" (identifier "uStack_14") (= "=") (number_literal "0x78b99")) (; ";")) (expression_statement "ppuVar3 = &__DT_PLTGOT;" (assignment_expression "ppuVar3 = &__DT_PLTGOT" (identifier "ppuVar3") (= "=") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }" (if "if") (parenthesized_expression "((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0))" (( "(") (binary_expression "(1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)" (parenthesized_expression "(1 < param_2)" (( "(") (binary_expression "1 < param_2" (number_literal "1") (< "<") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0" (assignment_expression "iVar1 = FUN_0006ce50(&__DT_PLTGOT)" (identifier "iVar1") (= "=") (call_expression "FUN_0006ce50(&__DT_PLTGOT)" (identifier "FUN_0006ce50") (argument_list "(&__DT_PLTGOT)" (( "(") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT")) () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    local_a0 = param_1;\n    local_9c = local_86;\n    local_88 = 1;\n    local_98 = 100;\n    local_94 = 0;\n    local_90 = 0;\n    local_8c = 0;\n    FUN_0006df10(ppuVar3,param_3,&local_a0);\n    iVar4 = 1;\n    do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);\n    FUN_0006df10();\n    if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }\n    FUN_0001d2a0(param_1,0x4a);\nLAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }\n  }" ({ "{") (expression_statement "local_a0 = param_1;" (assignment_expression "local_a0 = param_1" (identifier "local_a0") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_9c = local_86;" (assignment_expression "local_9c = local_86" (identifier "local_9c") (= "=") (identifier "local_86")) (; ";")) (expression_statement "local_88 = 1;" (assignment_expression "local_88 = 1" (identifier "local_88") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_98 = 100;" (assignment_expression "local_98 = 100" (identifier "local_98") (= "=") (number_literal "100")) (; ";")) (expression_statement "local_94 = 0;" (assignment_expression "local_94 = 0" (identifier "local_94") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_90 = 0;" (assignment_expression "local_90 = 0" (identifier "local_90") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_8c = 0;" (assignment_expression "local_8c = 0" (identifier "local_8c") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0006df10(ppuVar3,param_3,&local_a0);" (call_expression "FUN_0006df10(ppuVar3,param_3,&local_a0)" (identifier "FUN_0006df10") (argument_list "(ppuVar3,param_3,&local_a0)" (( "(") (identifier "ppuVar3") (, ",") (identifier "param_3") (, ",") (pointer_expression "&local_a0" (& "&") (identifier "local_a0")) () ")"))) (; ";")) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    } while (param_2 != iVar4);" (do "do") (compound_statement "{\n      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));\n      iVar2 = FUN_00078a30(param_1);\n      if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }\n      if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }\n      FUN_0006df70();\n      if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }\n      iVar4 = iVar4 + 1;\n    }" ({ "{") (expression_statement "FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));" (call_expression "FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4))" (identifier "FUN_0004e670") (argument_list "(*(undefined4 *)(param_3 + iVar4 * 4))" (( "(") (pointer_expression "*(undefined4 *)(param_3 + iVar4 * 4)" (* "*") (cast_expression "(undefined4 *)(param_3 + iVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + iVar4 * 4)" (( "(") (binary_expression "param_3 + iVar4 * 4" (identifier "param_3") (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) () ")"))) (; ";")) (expression_statement "iVar2 = FUN_00078a30(param_1);" (assignment_expression "iVar2 = FUN_00078a30(param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_00078a30(param_1)" (identifier "FUN_00078a30") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (*(char *)(iVar1 + 0x15) != '\0') {\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }" (if "if") (parenthesized_expression "(*(char *)(iVar1 + 0x15) != '\0')" (( "(") (binary_expression "*(char *)(iVar1 + 0x15) != '\0'" (pointer_expression "*(char *)(iVar1 + 0x15)" (* "*") (cast_expression "(char *)(iVar1 + 0x15)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x15)" (( "(") (binary_expression "iVar1 + 0x15" (identifier "iVar1") (+ "+") (number_literal "0x15")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;\n        break;\n      }" ({ "{") (if_statement "if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;" (if "if") (parenthesized_expression "((param_2 < 3) || (param_2 != iVar4))" (( "(") (binary_expression "(param_2 < 3) || (param_2 != iVar4)" (parenthesized_expression "(param_2 < 3)" (( "(") (binary_expression "param_2 < 3" (identifier "param_2") (< "<") (number_literal "3")) () ")")) (|| "||") (parenthesized_expression "(param_2 != iVar4)" (( "(") (binary_expression "param_2 != iVar4" (identifier "param_2") (!= "!=") (identifier "iVar4")) () ")"))) () ")")) (goto_statement "goto LAB_00078c95;" (goto "goto") (statement_identifier "LAB_00078c95") (; ";"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (if_statement "if (param_2 == 2) {\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }" (if "if") (parenthesized_expression "(param_2 == 2)" (( "(") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        if (iVar2 != 0) {\n          FUN_0006e380();\n        }\n        goto LAB_00078c95;\n      }" ({ "{") (if_statement "if (iVar2 != 0) {\n          FUN_0006e380();\n        }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_0006e380();\n        }" ({ "{") (expression_statement "FUN_0006e380();" (call_expression "FUN_0006e380()" (identifier "FUN_0006e380") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00078c95;" (goto "goto") (statement_identifier "LAB_00078c95") (; ";")) (} "}"))) (expression_statement "FUN_0006df70();" (call_expression "FUN_0006df70()" (identifier "FUN_0006df70") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar2 == 0) {\n        FUN_0006dc80();\n      }\n      else {\n        FUN_0006dfa0();\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0006dc80();\n      }" ({ "{") (expression_statement "FUN_0006dc80();" (call_expression "FUN_0006dc80()" (identifier "FUN_0006dc80") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        FUN_0006dfa0();\n      }" (else "else") (compound_statement "{\n        FUN_0006dfa0();\n      }" ({ "{") (expression_statement "FUN_0006dfa0();" (call_expression "FUN_0006dfa0()" (identifier "FUN_0006dfa0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != iVar4)" (( "(") (binary_expression "param_2 != iVar4" (identifier "param_2") (!= "!=") (identifier "iVar4")) () ")")) (; ";")) (expression_statement "FUN_0006df10();" (call_expression "FUN_0006df10()" (identifier "FUN_0006df10") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_88._1_1_ == '\0') {\n      FUN_00048740();\n    }" (if "if") (parenthesized_expression "(local_88._1_1_ == '\0')" (( "(") (binary_expression "local_88._1_1_ == '\0'" (field_expression "local_88._1_1_" (identifier "local_88") (. ".") (field_identifier "_1_1_")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      FUN_00048740();\n    }" ({ "{") (expression_statement "FUN_00048740();" (call_expression "FUN_00048740()" (identifier "FUN_00048740") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0001d2a0(param_1,0x4a);" (call_expression "FUN_0001d2a0(param_1,0x4a)" (identifier "FUN_0001d2a0") (argument_list "(param_1,0x4a)" (( "(") (identifier "param_1") (, ",") (number_literal "0x4a") () ")"))) (; ";")) (labeled_statement "LAB_00078c95:\n    if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }" (statement_identifier "LAB_00078c95") (: ":") (if_statement "if ((char)local_88 == '\0') {\n      FUN_000264d0(local_9c);\n    }" (if "if") (parenthesized_expression "((char)local_88 == '\0')" (( "(") (binary_expression "(char)local_88 == '\0'" (cast_expression "(char)local_88" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "local_88")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      FUN_000264d0(local_9c);\n    }" ({ "{") (expression_statement "FUN_000264d0(local_9c);" (call_expression "FUN_000264d0(local_9c)" (identifier "FUN_000264d0") (argument_list "(local_9c)" (( "(") (identifier "local_9c") () ")"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_000f6410();\n  }" ({ "{") (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" (identifier "FUN_000f6410") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *ctx,int var_2,type_2 **argv)

{
  int var_17;
  type_3 *var_4;
  type_4 *zPath;
  type_5 *var_9;
  type_2 **aReplace;
  type_6 **ppuVar2;
  int var_8;
  int var_1;
  type_7 jx;
  
  ppuVar2 = &_GLOBAL_OFFSET_TABLE_;
  var_17 = *(int *)(var_1 + 0x14);
  if ((1 < var_2) && (var_4 = var_3(ctx,argv,ctx), var_4 != (type_3 *)0x0)) {
    jx.pCtx = ctx;
    jx.zBuf = jx.zSpace;
    jx.bStatic = '\x01';
    jx.bErr = '\0';
    jx.nAlloc._0_4_ = 100;
    jx.nAlloc._4_4_ = 0;
    jx.nUsed._0_4_ = 0;
    jx.nUsed._4_4_ = 0;
    var_5(&jx,'[');
    var_8 = 1;
    do {
      zPath = var_6(argv[var_8]);
      var_9 = var_7(var_4,(char *)zPath,(int *)0x0,ctx);
      if (var_4->nErr != '\0') {
        if ((var_2 < 3) || (var_2 != var_8)) goto LAB_00078c95;
        break;
      }
      if (var_2 == 2) {
        if (var_9 != (type_5 *)0x0) {
          var_10(var_9,ctx,aReplace);
        }
        goto LAB_00078c95;
      }
      var_11(&jx);
      if (var_9 == (type_5 *)0x0) {
        var_12(&jx,"null",4);
      }
      else {
        var_13(var_9,&jx,(type_2 **)0x0);
      }
      var_8 = var_8 + 1;
    } while (var_2 != var_8);
    var_5(&jx,']');
    if (jx.bErr == '\0') {
      var_14(&jx);
    }
    var_15(ctx,0x4a);
LAB_00078c95:
    if (jx.bStatic == '\0') {
      var_16(jx.zBuf);
    }
  }
  if (var_17 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_18(ppuVar2);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) right: (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_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))))) (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: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (goto_statement label: (statement_identifier))) (break_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (goto_statement label: (statement_identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement))))

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

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

{
  int iVar1;
  int iVar2;
  undefined **ppuVar3;
  int iVar4;
  int in_GS_OFFSET;
  undefined4 local_a0;
  undefined1 *local_9c;
  undefined4 local_98;
  undefined4 local_94;
  undefined4 local_90;
  undefined4 local_8c;
  undefined2 local_88;
  undefined1 local_86 [102];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x78b99;
  ppuVar3 = &__DT_PLTGOT;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((1 < param_2) && (iVar1 = FUN_0006ce50(&__DT_PLTGOT), iVar1 != 0)) {
    local_a0 = param_1;
    local_9c = local_86;
    local_88 = 1;
    local_98 = 100;
    local_94 = 0;
    local_90 = 0;
    local_8c = 0;
    FUN_0006df10(ppuVar3,param_3,&local_a0);
    iVar4 = 1;
    do {
      FUN_0004e670(*(undefined4 *)(param_3 + iVar4 * 4));
      iVar2 = FUN_00078a30(param_1);
      if (*(char *)(iVar1 + 0x15) != '\0') {
        if ((param_2 < 3) || (param_2 != iVar4)) goto LAB_00078c95;
        break;
      }
      if (param_2 == 2) {
        if (iVar2 != 0) {
          FUN_0006e380();
        }
        goto LAB_00078c95;
      }
      FUN_0006df70();
      if (iVar2 == 0) {
        FUN_0006dc80();
      }
      else {
        FUN_0006dfa0();
      }
      iVar4 = iVar4 + 1;
    } while (param_2 != iVar4);
    FUN_0006df10();
    if (local_88._1_1_ == '\0') {
      FUN_00048740();
    }
    FUN_0001d2a0(param_1,0x4a);
LAB_00078c95:
    if ((char)local_88 == '\0') {
      FUN_000264d0(local_9c);
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f6410();
  }
  return;
}

