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

{
  Mem *nByte;
  char *zIn;
  u32 N;
  JsonString *p;
  
  nByte = ctx->pMem;
  if ((nByte->flags & 0x2000) == 0) {
    p = (JsonString *)
        createAggContext((sqlite3_context *)&ctx->pFunc,(int)nByte,(sqlite3_context *)0x80);
  }
  else {
    p = (JsonString *)nByte->z;
  }
  if (p != (JsonString *)0x0) {
    if (p->zBuf == (char *)0x0) {
      p->pCtx = ctx;
      p->zBuf = p->zSpace;
      p->bStatic = '\x01';
      p->bErr = '\0';
      *(undefined4 *)&p->nAlloc = 100;
      *(undefined4 *)((int)&p->nAlloc + 4) = 0;
      *(undefined4 *)&p->nUsed = 0;
      *(undefined4 *)((int)&p->nUsed + 4) = 0;
      jsonAppendChar(p,'{');
    }
    else {
      jsonAppendChar(p,',');
      p->pCtx = ctx;
    }
    zIn = (char *)sqlite3ValueText(*argv,'\x01');
    N = sqlite3ValueBytes(*argv,'\x01');
    jsonAppendString(p,zIn,N);
    jsonAppendChar(p,':');
    jsonAppendValue(p,argv[1]);
    return;
  }
  return;
}



void FUN_0008c590(int param_1)

{
  int *piVar1;
  
  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {
    piVar1 = (int *)FUN_00062700();
  }
  else {
    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);
  }
  if (piVar1 != (int *)0x0) {
    if (piVar1[1] == 0) {
      *piVar1 = param_1;
      piVar1[1] = (int)piVar1 + 0x1a;
      *(undefined2 *)(piVar1 + 6) = 1;
      piVar1[2] = 100;
      piVar1[3] = 0;
      piVar1[4] = 0;
      piVar1[5] = 0;
      FUN_0008b850();
    }
    else {
      FUN_0008b850();
      *piVar1 = param_1;
    }
    FUN_0006a450();
    FUN_0006a2a0();
    FUN_0008b320();
    FUN_0008b850();
    FUN_0008b680();
    return;
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [EDI + 0x8]
TEST byte ptr [EDX + 0x9],0x20
JZ 0x0008c650
MOV EBX,dword ptr [EDX + 0x10]
TEST EBX,EBX
JZ 0x0008c667
MOV EDX,dword ptr [EBX + 0x4]
TEST EDX,EDX
JZ 0x0008c610
MOV EDX,0x2c
MOV EAX,EBX
CALL 0x0008b850
MOV dword ptr [EBX],EDI
MOV EAX,dword ptr [ESI]
MOV EDX,0x1
CALL 0x0006a450
MOV EDX,0x1
MOV EDI,EAX
MOV EAX,dword ptr [ESI]
CALL 0x0006a2a0
MOV EDX,EDI
MOV ECX,EAX
MOV EAX,EBX
CALL 0x0008b320
MOV EAX,EBX
MOV EDX,0x3a
CALL 0x0008b850
MOV EDX,dword ptr [ESI + 0x4]
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
JMP 0x0008b680
LEA EAX,[EBX + 0x1a]
MOV dword ptr [EBX],EDI
MOV EDX,0x7b
MOV dword ptr [EBX + 0x4],EAX
MOV EAX,0x1
MOV word ptr [EBX + 0x18],AX
MOV EAX,EBX
MOV dword ptr [EBX + 0x8],0x64
MOV dword ptr [EBX + 0xc],0x0
MOV dword ptr [EBX + 0x10],0x0
MOV dword ptr [EBX + 0x14],0x0
CALL 0x0008b850
JMP 0x0008c5c8
LEA EAX,[EDI + 0x4]
MOV ECX,0x80
CALL 0x00062700
MOV EBX,EAX
TEST EBX,EBX
JNZ 0x0008c5b3
POP EBX
POP ESI
POP EDI
RET
(translation_unit "void FUN_0008c590(int param_1)\n\n{\n  int *piVar1;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar1 = (int *)FUN_00062700();\n  }\n  else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0008c590(int param_1)\n\n{\n  int *piVar1;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar1 = (int *)FUN_00062700();\n  }\n  else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0008c590(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar1 = (int *)FUN_00062700();\n  }\n  else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar1 = (int *)FUN_00062700();\n  }\n  else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" if (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0)" ( (binary_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20)" ( (binary_expression "*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20" (pointer_expression "*(byte *)(*(int *)(param_1 + 8) + 9)" * (cast_expression "(byte *)(*(int *)(param_1 + 8) + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 9)" ( (binary_expression "*(int *)(param_1 + 8) + 9" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    piVar1 = (int *)FUN_00062700();\n  }" { (expression_statement "piVar1 = (int *)FUN_00062700();" (assignment_expression "piVar1 = (int *)FUN_00062700()" identifier = (cast_expression "(int *)FUN_00062700()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00062700()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" else (compound_statement "{\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" { (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 8) + 0x10)" * (cast_expression "(int **)(*(int *)(param_1 + 8) + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 0x10)" ( (binary_expression "*(int *)(param_1 + 8) + 0x10" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) }))) (if_statement "if (piVar1 != (int *)0x0) {\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }" { (if_statement "if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }" if (parenthesized_expression "(piVar1[1] == 0)" ( (binary_expression "piVar1[1] == 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }" { (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[1] = (int)piVar1 + 0x1a;" (assignment_expression "piVar1[1] = (int)piVar1 + 0x1a" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (binary_expression "(int)piVar1 + 0x1a" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "*(undefined2 *)(piVar1 + 6) = 1;" (assignment_expression "*(undefined2 *)(piVar1 + 6) = 1" (pointer_expression "*(undefined2 *)(piVar1 + 6)" * (cast_expression "(undefined2 *)(piVar1 + 6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 6)" ( (binary_expression "piVar1 + 6" identifier + number_literal) )))) = number_literal) ;) (expression_statement "piVar1[2] = 100;" (assignment_expression "piVar1[2] = 100" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[5] = 0;" (assignment_expression "piVar1[5] = 0" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0008b850();" (call_expression "FUN_0008b850()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }" else (compound_statement "{\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }" { (expression_statement "FUN_0008b850();" (call_expression "FUN_0008b850()" identifier (argument_list "()" ( ))) ;) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) }))) (expression_statement "FUN_0006a450();" (call_expression "FUN_0006a450()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0006a2a0();" (call_expression "FUN_0006a2a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0008b320();" (call_expression "FUN_0008b320()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0008b850();" (call_expression "FUN_0008b850()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0008b680();" (call_expression "FUN_0008b680()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void jsonObjectStep(sqlite3_context *ctx,int argc,sqlite3_value **argv)\n\n{\n  Mem *nByte;\n  char *zIn;\n  u32 N;\n  JsonString *p;\n  \n  nByte = ctx->pMem;\n  if ((nByte->flags & 0x2000) == 0) {\n    p = (JsonString *)\n        createAggContext((sqlite3_context *)&ctx->pFunc,(int)nByte,(sqlite3_context *)0x80);\n  }\n  else {\n    p = (JsonString *)nByte->z;\n  }\n  if (p != (JsonString *)0x0) {\n    if (p->zBuf == (char *)0x0) {\n      p->pCtx = ctx;\n      p->zBuf = p->zSpace;\n      p->bStatic = '\x01';\n      p->bErr = '\0';\n      *(undefined4 *)&p->nAlloc = 100;\n      *(undefined4 *)((int)&p->nAlloc + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      jsonAppendChar(p,'{');\n    }\n    else {\n      jsonAppendChar(p,',');\n      p->pCtx = ctx;\n    }\n    zIn = (char *)sqlite3ValueText(*argv,'\x01');\n    N = sqlite3ValueBytes(*argv,'\x01');\n    jsonAppendString(p,zIn,N);\n    jsonAppendChar(p,':');\n    jsonAppendValue(p,argv[1]);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void jsonObjectStep(sqlite3_context *ctx,int argc,sqlite3_value **argv)\n\n{\n  Mem *nByte;\n  char *zIn;\n  u32 N;\n  JsonString *p;\n  \n  nByte = ctx->pMem;\n  if ((nByte->flags & 0x2000) == 0) {\n    p = (JsonString *)\n        createAggContext((sqlite3_context *)&ctx->pFunc,(int)nByte,(sqlite3_context *)0x80);\n  }\n  else {\n    p = (JsonString *)nByte->z;\n  }\n  if (p != (JsonString *)0x0) {\n    if (p->zBuf == (char *)0x0) {\n      p->pCtx = ctx;\n      p->zBuf = p->zSpace;\n      p->bStatic = '\x01';\n      p->bErr = '\0';\n      *(undefined4 *)&p->nAlloc = 100;\n      *(undefined4 *)((int)&p->nAlloc + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      jsonAppendChar(p,'{');\n    }\n    else {\n      jsonAppendChar(p,',');\n      p->pCtx = ctx;\n    }\n    zIn = (char *)sqlite3ValueText(*argv,'\x01');\n    N = sqlite3ValueBytes(*argv,'\x01');\n    jsonAppendString(p,zIn,N);\n    jsonAppendChar(p,':');\n    jsonAppendValue(p,argv[1]);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "jsonObjectStep(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  Mem *nByte;\n  char *zIn;\n  u32 N;\n  JsonString *p;\n  \n  nByte = ctx->pMem;\n  if ((nByte->flags & 0x2000) == 0) {\n    p = (JsonString *)\n        createAggContext((sqlite3_context *)&ctx->pFunc,(int)nByte,(sqlite3_context *)0x80);\n  }\n  else {\n    p = (JsonString *)nByte->z;\n  }\n  if (p != (JsonString *)0x0) {\n    if (p->zBuf == (char *)0x0) {\n      p->pCtx = ctx;\n      p->zBuf = p->zSpace;\n      p->bStatic = '\x01';\n      p->bErr = '\0';\n      *(undefined4 *)&p->nAlloc = 100;\n      *(undefined4 *)((int)&p->nAlloc + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      jsonAppendChar(p,'{');\n    }\n    else {\n      jsonAppendChar(p,',');\n      p->pCtx = ctx;\n    }\n    zIn = (char *)sqlite3ValueText(*argv,'\x01');\n    N = sqlite3ValueBytes(*argv,'\x01');\n    jsonAppendString(p,zIn,N);\n    jsonAppendChar(p,':');\n    jsonAppendValue(p,argv[1]);\n    return;\n  }\n  return;\n}" { (declaration "Mem *nByte;" type_identifier (pointer_declarator "*nByte" * identifier) ;) (declaration "char *zIn;" primitive_type (pointer_declarator "*zIn" * identifier) ;) (declaration "u32 N;" type_identifier identifier ;) (declaration "JsonString *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (expression_statement "nByte = ctx->pMem;" (assignment_expression "nByte = ctx->pMem" identifier = (field_expression "ctx->pMem" identifier -> field_identifier)) ;) (if_statement "if ((nByte->flags & 0x2000) == 0) {\n    p = (JsonString *)\n        createAggContext((sqlite3_context *)&ctx->pFunc,(int)nByte,(sqlite3_context *)0x80);\n  }\n  else {\n    p = (JsonString *)nByte->z;\n  }" if (parenthesized_expression "((nByte->flags & 0x2000) == 0)" ( (binary_expression "(nByte->flags & 0x2000) == 0" (parenthesized_expression "(nByte->flags & 0x2000)" ( (binary_expression "nByte->flags & 0x2000" (field_expression "nByte->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    p = (JsonString *)\n        createAggContext((sqlite3_context *)&ctx->pFunc,(int)nByte,(sqlite3_context *)0x80);\n  }" { (expression_statement "p = (JsonString *)\n        createAggContext((sqlite3_context *)&ctx->pFunc,(int)nByte,(sqlite3_context *)0x80);" (assignment_expression "p = (JsonString *)\n        createAggContext((sqlite3_context *)&ctx->pFunc,(int)nByte,(sqlite3_context *)0x80)" identifier = (cast_expression "(JsonString *)\n        createAggContext((sqlite3_context *)&ctx->pFunc,(int)nByte,(sqlite3_context *)0x80)" ( (type_descriptor "JsonString *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "createAggContext((sqlite3_context *)&ctx->pFunc,(int)nByte,(sqlite3_context *)0x80)" identifier (argument_list "((sqlite3_context *)&ctx->pFunc,(int)nByte,(sqlite3_context *)0x80)" ( (cast_expression "(sqlite3_context *)&ctx->pFunc" ( (type_descriptor "sqlite3_context *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ctx->pFunc" & (field_expression "ctx->pFunc" identifier -> field_identifier))) , (cast_expression "(int)nByte" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(sqlite3_context *)0x80" ( (type_descriptor "sqlite3_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))))) ;) }) (else_clause "else {\n    p = (JsonString *)nByte->z;\n  }" else (compound_statement "{\n    p = (JsonString *)nByte->z;\n  }" { (expression_statement "p = (JsonString *)nByte->z;" (assignment_expression "p = (JsonString *)nByte->z" identifier = (cast_expression "(JsonString *)nByte->z" ( (type_descriptor "JsonString *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "nByte->z" identifier -> field_identifier))) ;) }))) (if_statement "if (p != (JsonString *)0x0) {\n    if (p->zBuf == (char *)0x0) {\n      p->pCtx = ctx;\n      p->zBuf = p->zSpace;\n      p->bStatic = '\x01';\n      p->bErr = '\0';\n      *(undefined4 *)&p->nAlloc = 100;\n      *(undefined4 *)((int)&p->nAlloc + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      jsonAppendChar(p,'{');\n    }\n    else {\n      jsonAppendChar(p,',');\n      p->pCtx = ctx;\n    }\n    zIn = (char *)sqlite3ValueText(*argv,'\x01');\n    N = sqlite3ValueBytes(*argv,'\x01');\n    jsonAppendString(p,zIn,N);\n    jsonAppendChar(p,':');\n    jsonAppendValue(p,argv[1]);\n    return;\n  }" if (parenthesized_expression "(p != (JsonString *)0x0)" ( (binary_expression "p != (JsonString *)0x0" identifier != (cast_expression "(JsonString *)0x0" ( (type_descriptor "JsonString *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (p->zBuf == (char *)0x0) {\n      p->pCtx = ctx;\n      p->zBuf = p->zSpace;\n      p->bStatic = '\x01';\n      p->bErr = '\0';\n      *(undefined4 *)&p->nAlloc = 100;\n      *(undefined4 *)((int)&p->nAlloc + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      jsonAppendChar(p,'{');\n    }\n    else {\n      jsonAppendChar(p,',');\n      p->pCtx = ctx;\n    }\n    zIn = (char *)sqlite3ValueText(*argv,'\x01');\n    N = sqlite3ValueBytes(*argv,'\x01');\n    jsonAppendString(p,zIn,N);\n    jsonAppendChar(p,':');\n    jsonAppendValue(p,argv[1]);\n    return;\n  }" { (if_statement "if (p->zBuf == (char *)0x0) {\n      p->pCtx = ctx;\n      p->zBuf = p->zSpace;\n      p->bStatic = '\x01';\n      p->bErr = '\0';\n      *(undefined4 *)&p->nAlloc = 100;\n      *(undefined4 *)((int)&p->nAlloc + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      jsonAppendChar(p,'{');\n    }\n    else {\n      jsonAppendChar(p,',');\n      p->pCtx = ctx;\n    }" if (parenthesized_expression "(p->zBuf == (char *)0x0)" ( (binary_expression "p->zBuf == (char *)0x0" (field_expression "p->zBuf" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      p->pCtx = ctx;\n      p->zBuf = p->zSpace;\n      p->bStatic = '\x01';\n      p->bErr = '\0';\n      *(undefined4 *)&p->nAlloc = 100;\n      *(undefined4 *)((int)&p->nAlloc + 4) = 0;\n      *(undefined4 *)&p->nUsed = 0;\n      *(undefined4 *)((int)&p->nUsed + 4) = 0;\n      jsonAppendChar(p,'{');\n    }" { (expression_statement "p->pCtx = ctx;" (assignment_expression "p->pCtx = ctx" (field_expression "p->pCtx" identifier -> field_identifier) = identifier) ;) (expression_statement "p->zBuf = p->zSpace;" (assignment_expression "p->zBuf = p->zSpace" (field_expression "p->zBuf" identifier -> field_identifier) = (field_expression "p->zSpace" identifier -> field_identifier)) ;) (expression_statement "p->bStatic = '\x01';" (assignment_expression "p->bStatic = '\x01'" (field_expression "p->bStatic" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "p->bErr = '\0';" (assignment_expression "p->bErr = '\0'" (field_expression "p->bErr" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*(undefined4 *)&p->nAlloc = 100;" (assignment_expression "*(undefined4 *)&p->nAlloc = 100" (pointer_expression "*(undefined4 *)&p->nAlloc" * (cast_expression "(undefined4 *)&p->nAlloc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->nAlloc" & (field_expression "p->nAlloc" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&p->nAlloc + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&p->nAlloc + 4) = 0" (pointer_expression "*(undefined4 *)((int)&p->nAlloc + 4)" * (cast_expression "(undefined4 *)((int)&p->nAlloc + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->nAlloc + 4)" ( (binary_expression "(int)&p->nAlloc + 4" (cast_expression "(int)&p->nAlloc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->nAlloc" & (field_expression "p->nAlloc" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&p->nUsed = 0;" (assignment_expression "*(undefined4 *)&p->nUsed = 0" (pointer_expression "*(undefined4 *)&p->nUsed" * (cast_expression "(undefined4 *)&p->nUsed" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->nUsed" & (field_expression "p->nUsed" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&p->nUsed + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&p->nUsed + 4) = 0" (pointer_expression "*(undefined4 *)((int)&p->nUsed + 4)" * (cast_expression "(undefined4 *)((int)&p->nUsed + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->nUsed + 4)" ( (binary_expression "(int)&p->nUsed + 4" (cast_expression "(int)&p->nUsed" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->nUsed" & (field_expression "p->nUsed" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "jsonAppendChar(p,'{');" (call_expression "jsonAppendChar(p,'{')" identifier (argument_list "(p,'{')" ( identifier , (char_literal "'{'" ' character ') ))) ;) }) (else_clause "else {\n      jsonAppendChar(p,',');\n      p->pCtx = ctx;\n    }" else (compound_statement "{\n      jsonAppendChar(p,',');\n      p->pCtx = ctx;\n    }" { (expression_statement "jsonAppendChar(p,',');" (call_expression "jsonAppendChar(p,',')" identifier (argument_list "(p,',')" ( identifier , (char_literal "','" ' character ') ))) ;) (expression_statement "p->pCtx = ctx;" (assignment_expression "p->pCtx = ctx" (field_expression "p->pCtx" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "zIn = (char *)sqlite3ValueText(*argv,'\x01');" (assignment_expression "zIn = (char *)sqlite3ValueText(*argv,'\x01')" identifier = (cast_expression "(char *)sqlite3ValueText(*argv,'\x01')" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3ValueText(*argv,'\x01')" identifier (argument_list "(*argv,'\x01')" ( (pointer_expression "*argv" * identifier) , (char_literal "'\x01'" ' escape_sequence ') ))))) ;) (expression_statement "N = sqlite3ValueBytes(*argv,'\x01');" (assignment_expression "N = sqlite3ValueBytes(*argv,'\x01')" identifier = (call_expression "sqlite3ValueBytes(*argv,'\x01')" identifier (argument_list "(*argv,'\x01')" ( (pointer_expression "*argv" * identifier) , (char_literal "'\x01'" ' escape_sequence ') )))) ;) (expression_statement "jsonAppendString(p,zIn,N);" (call_expression "jsonAppendString(p,zIn,N)" identifier (argument_list "(p,zIn,N)" ( identifier , identifier , identifier ))) ;) (expression_statement "jsonAppendChar(p,':');" (call_expression "jsonAppendChar(p,':')" identifier (argument_list "(p,':')" ( identifier , (char_literal "':'" ' character ') ))) ;) (expression_statement "jsonAppendValue(p,argv[1]);" (call_expression "jsonAppendValue(p,argv[1])" identifier (argument_list "(p,argv[1])" ( identifier , (subscript_expression "argv[1]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0008c590(int param_1)\n\n{\n  int *piVar1;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar1 = (int *)FUN_00062700();\n  }\n  else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0008c590(int param_1)\n\n{\n  int *piVar1;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar1 = (int *)FUN_00062700();\n  }\n  else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0008c590(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar1 = (int *)FUN_00062700();\n  }\n  else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar1 = (int *)FUN_00062700();\n  }\n  else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" if (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0)" ( (binary_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20)" ( (binary_expression "*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20" (pointer_expression "*(byte *)(*(int *)(param_1 + 8) + 9)" * (cast_expression "(byte *)(*(int *)(param_1 + 8) + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 9)" ( (binary_expression "*(int *)(param_1 + 8) + 9" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    piVar1 = (int *)FUN_00062700();\n  }" { (expression_statement "piVar1 = (int *)FUN_00062700();" (assignment_expression "piVar1 = (int *)FUN_00062700()" identifier = (cast_expression "(int *)FUN_00062700()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00062700()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" else (compound_statement "{\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" { (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 8) + 0x10)" * (cast_expression "(int **)(*(int *)(param_1 + 8) + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 0x10)" ( (binary_expression "*(int *)(param_1 + 8) + 0x10" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) }))) (if_statement "if (piVar1 != (int *)0x0) {\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }" { (if_statement "if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }" if (parenthesized_expression "(piVar1[1] == 0)" ( (binary_expression "piVar1[1] == 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }" { (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[1] = (int)piVar1 + 0x1a;" (assignment_expression "piVar1[1] = (int)piVar1 + 0x1a" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (binary_expression "(int)piVar1 + 0x1a" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "*(undefined2 *)(piVar1 + 6) = 1;" (assignment_expression "*(undefined2 *)(piVar1 + 6) = 1" (pointer_expression "*(undefined2 *)(piVar1 + 6)" * (cast_expression "(undefined2 *)(piVar1 + 6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 6)" ( (binary_expression "piVar1 + 6" identifier + number_literal) )))) = number_literal) ;) (expression_statement "piVar1[2] = 100;" (assignment_expression "piVar1[2] = 100" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[5] = 0;" (assignment_expression "piVar1[5] = 0" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0008b850();" (call_expression "FUN_0008b850()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }" else (compound_statement "{\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }" { (expression_statement "FUN_0008b850();" (call_expression "FUN_0008b850()" identifier (argument_list "()" ( ))) ;) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) }))) (expression_statement "FUN_0006a450();" (call_expression "FUN_0006a450()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0006a2a0();" (call_expression "FUN_0006a2a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0008b320();" (call_expression "FUN_0008b320()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0008b850();" (call_expression "FUN_0008b850()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0008b680();" (call_expression "FUN_0008b680()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0008c590(int param_1)\n\n{\n  int *piVar1;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar1 = (int *)FUN_00062700();\n  }\n  else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0008c590(int param_1)" (identifier "FUN_0008c590") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar1 = (int *)FUN_00062700();\n  }\n  else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (if_statement "if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar1 = (int *)FUN_00062700();\n  }\n  else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" (if "if") (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20)" (( "(") (binary_expression "*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20" (pointer_expression "*(byte *)(*(int *)(param_1 + 8) + 9)" (* "*") (cast_expression "(byte *)(*(int *)(param_1 + 8) + 9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + 9)" (( "(") (binary_expression "*(int *)(param_1 + 8) + 9" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "9")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar1 = (int *)FUN_00062700();\n  }" ({ "{") (expression_statement "piVar1 = (int *)FUN_00062700();" (assignment_expression "piVar1 = (int *)FUN_00062700()" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_00062700()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00062700()" (identifier "FUN_00062700") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" (else "else") (compound_statement "{\n    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" ({ "{") (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(*(int *)(param_1 + 8) + 0x10)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 8) + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 8) + 0x10" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (piVar1 != (int *)0x0) {\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }\n    FUN_0006a450();\n    FUN_0006a2a0();\n    FUN_0008b320();\n    FUN_0008b850();\n    FUN_0008b680();\n    return;\n  }" ({ "{") (if_statement "if (piVar1[1] == 0) {\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }\n    else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }" (if "if") (parenthesized_expression "(piVar1[1] == 0)" (( "(") (binary_expression "piVar1[1] == 0" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *piVar1 = param_1;\n      piVar1[1] = (int)piVar1 + 0x1a;\n      *(undefined2 *)(piVar1 + 6) = 1;\n      piVar1[2] = 100;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      FUN_0008b850();\n    }" ({ "{") (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar1[1] = (int)piVar1 + 0x1a;" (assignment_expression "piVar1[1] = (int)piVar1 + 0x1a" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(int)piVar1 + 0x1a" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x1a"))) (; ";")) (expression_statement "*(undefined2 *)(piVar1 + 6) = 1;" (assignment_expression "*(undefined2 *)(piVar1 + 6) = 1" (pointer_expression "*(undefined2 *)(piVar1 + 6)" (* "*") (cast_expression "(undefined2 *)(piVar1 + 6)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 6)" (( "(") (binary_expression "piVar1 + 6" (identifier "piVar1") (+ "+") (number_literal "6")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar1[2] = 100;" (assignment_expression "piVar1[2] = 100" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "100")) (; ";")) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[5] = 0;" (assignment_expression "piVar1[5] = 0" (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0008b850();" (call_expression "FUN_0008b850()" (identifier "FUN_0008b850") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }" (else "else") (compound_statement "{\n      FUN_0008b850();\n      *piVar1 = param_1;\n    }" ({ "{") (expression_statement "FUN_0008b850();" (call_expression "FUN_0008b850()" (identifier "FUN_0008b850") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_1")) (; ";")) (} "}")))) (expression_statement "FUN_0006a450();" (call_expression "FUN_0006a450()" (identifier "FUN_0006a450") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0006a2a0();" (call_expression "FUN_0006a2a0()" (identifier "FUN_0006a2a0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0008b320();" (call_expression "FUN_0008b320()" (identifier "FUN_0008b320") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0008b850();" (call_expression "FUN_0008b850()" (identifier "FUN_0008b850") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0008b680();" (call_expression "FUN_0008b680()" (identifier "FUN_0008b680") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

{
  type_3 *nByte;
  char *zIn;
  type_4 N;
  type_5 *var_2;
  
  nByte = ctx->pMem;
  if ((nByte->flags & 0x2000) == 0) {
    var_2 = (type_5 *)
        var_1((type_1 *)&ctx->pFunc,(int)nByte,(type_1 *)0x80);
  }
  else {
    var_2 = (type_5 *)nByte->z;
  }
  if (var_2 != (type_5 *)0x0) {
    if (var_2->zBuf == (char *)0x0) {
      var_2->pCtx = ctx;
      var_2->zBuf = var_2->zSpace;
      var_2->bStatic = '\x01';
      var_2->bErr = '\0';
      *(type_6 *)&var_2->nAlloc = 100;
      *(type_6 *)((int)&var_2->nAlloc + 4) = 0;
      *(type_6 *)&var_2->nUsed = 0;
      *(type_6 *)((int)&var_2->nUsed + 4) = 0;
      var_3(var_2,'{');
    }
    else {
      var_3(var_2,',');
      var_2->pCtx = ctx;
    }
    zIn = (char *)var_4(*argv,'\x01');
    N = var_5(*argv,'\x01');
    var_6(var_2,zIn,N);
    var_3(var_2,':');
    var_7(var_2,argv[1]);
    return;
  }
  return;
}


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

void MASKED(int param_1)

{
  int *piVar1;
  
  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {
    piVar1 = (int *)FUN_00062700();
  }
  else {
    piVar1 = *(int **)(*(int *)(param_1 + 8) + 0x10);
  }
  if (piVar1 != (int *)0x0) {
    if (piVar1[1] == 0) {
      *piVar1 = param_1;
      piVar1[1] = (int)piVar1 + 0x1a;
      *(undefined2 *)(piVar1 + 6) = 1;
      piVar1[2] = 100;
      piVar1[3] = 0;
      piVar1[4] = 0;
      piVar1[5] = 0;
      FUN_0008b850();
    }
    else {
      FUN_0008b850();
      *piVar1 = param_1;
    }
    FUN_0006a450();
    FUN_0006a2a0();
    FUN_0008b320();
    FUN_0008b850();
    FUN_0008b680();
    return;
  }
  return;
}

