
void jsonArrayCompute(sqlite3_context *ctx,int isFinal)

{
  char *z;
  JsonString *p;
  int n;
  
  p = (JsonString *)sqlite3_aggregate_context(ctx,0);
  if (p == (JsonString *)0x0) {
    sqlite3_result_text(ctx,"[]",2,(_func_void_void_ptr *)0x0);
  }
  else {
    p->pCtx = ctx;
    jsonAppendChar(p,']');
    if (p->bErr == '\0') {
      z = p->zBuf;
      n = (int)p->nUsed;
      if (isFinal == 0) {
        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);
        p->nUsed = p->nUsed - 1;
      }
      else if (p->bStatic == '\0') {
        sqlite3_result_text(ctx,z,n,sqlite3_free);
        p->bStatic = '\x01';
      }
      else {
        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);
        p->bStatic = '\x01';
      }
    }
    else if (p->bErr == '\x01') {
      sqlite3_result_error_nomem(ctx);
    }
  }
  sqlite3_result_subtype(ctx,0x4a);
  return;
}



void FUN_00160270(undefined8 param_1,int param_2)

{
  undefined8 uVar1;
  undefined8 uVar2;
  undefined8 *puVar3;
  
  puVar3 = (undefined8 *)FUN_00138650(param_1,0);
  if (puVar3 == (undefined8 *)0x0) {
    FUN_00139d50(param_1,&DAT_001ea056,2,0);
  }
  else {
    *puVar3 = param_1;
    FUN_0015f5a0(puVar3,0x5d);
    if (*(char *)((long)puVar3 + 0x21) == '\0') {
      uVar1 = puVar3[3];
      uVar2 = puVar3[1];
      if (param_2 == 0) {
        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);
        puVar3[3] = puVar3[3] + -1;
      }
      else if (*(char *)(puVar3 + 4) == '\0') {
        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);
        *(undefined1 *)(puVar3 + 4) = 1;
      }
      else {
        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);
        *(undefined1 *)(puVar3 + 4) = 1;
      }
    }
    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {
      FUN_0011c700(param_1);
    }
  }
  FUN_001114d0(param_1,0x4a);
  return;
}


PUSH R12
MOV R12D,ESI
XOR ESI,ESI
PUSH RBP
MOV RBP,RDI
PUSH RBX
CALL 0x00138650
TEST RAX,RAX
JZ 0x001602f0
MOV qword ptr [RAX],RBP
MOV RBX,RAX
MOV RDI,RAX
MOV ESI,0x5d
CALL 0x0015f5a0
MOVZX EAX,byte ptr [RBX + 0x21]
TEST AL,AL
JZ 0x001602c0
CMP AL,0x1
JZ 0x00160348
POP RBX
MOV RDI,RBP
MOV ESI,0x4a
POP RBP
POP R12
JMP 0x001114d0
MOV RDX,qword ptr [RBX + 0x18]
MOV RSI,qword ptr [RBX + 0x8]
TEST R12D,R12D
JZ 0x00160328
CMP byte ptr [RBX + 0x20],0x0
MOV RCX,-0x1
JZ 0x00160310
MOV RDI,RBP
CALL 0x00139d50
MOV byte ptr [RBX + 0x20],0x1
JMP 0x001602a9
XOR ECX,ECX
MOV EDX,0x2
LEA RSI,[0x1ea056]
MOV RDI,RBP
CALL 0x00139d50
JMP 0x001602a9
LEA RCX,[0x119e00]
MOV RDI,RBP
CALL 0x00139d50
MOV byte ptr [RBX + 0x20],0x1
JMP 0x001602a9
MOV RCX,-0x1
MOV RDI,RBP
CALL 0x00139d50
SUB qword ptr [RBX + 0x18],0x1
JMP 0x001602a9
MOV RDI,RBP
CALL 0x0011c700
JMP 0x001602a9
(translation_unit "void FUN_00160270(undefined8 param_1,int param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  \n  puVar3 = (undefined8 *)FUN_00138650(param_1,0);\n  if (puVar3 == (undefined8 *)0x0) {\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }\n  else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }\n  FUN_001114d0(param_1,0x4a);\n  return;\n}\n\n" (function_definition "void FUN_00160270(undefined8 param_1,int param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  \n  puVar3 = (undefined8 *)FUN_00138650(param_1,0);\n  if (puVar3 == (undefined8 *)0x0) {\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }\n  else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }\n  FUN_001114d0(param_1,0x4a);\n  return;\n}" primitive_type (function_declarator "FUN_00160270(undefined8 param_1,int param_2)" identifier (parameter_list "(undefined8 param_1,int param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  \n  puVar3 = (undefined8 *)FUN_00138650(param_1,0);\n  if (puVar3 == (undefined8 *)0x0) {\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }\n  else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }\n  FUN_001114d0(param_1,0x4a);\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = (undefined8 *)FUN_00138650(param_1,0);" (assignment_expression "puVar3 = (undefined8 *)FUN_00138650(param_1,0)" identifier = (cast_expression "(undefined8 *)FUN_00138650(param_1,0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00138650(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar3 == (undefined8 *)0x0) {\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }\n  else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }" if (parenthesized_expression "(puVar3 == (undefined8 *)0x0)" ( (binary_expression "puVar3 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }" { (expression_statement "FUN_00139d50(param_1,&DAT_001ea056,2,0);" (call_expression "FUN_00139d50(param_1,&DAT_001ea056,2,0)" identifier (argument_list "(param_1,&DAT_001ea056,2,0)" ( identifier , (pointer_expression "&DAT_001ea056" & identifier) , number_literal , number_literal ))) ;) }) (else_clause "else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }" else (compound_statement "{\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }" { (expression_statement "*puVar3 = param_1;" (assignment_expression "*puVar3 = param_1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "FUN_0015f5a0(puVar3,0x5d);" (call_expression "FUN_0015f5a0(puVar3,0x5d)" identifier (argument_list "(puVar3,0x5d)" ( identifier , number_literal ))) ;) (if_statement "if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }" if (parenthesized_expression "(*(char *)((long)puVar3 + 0x21) == '\0')" ( (binary_expression "*(char *)((long)puVar3 + 0x21) == '\0'" (pointer_expression "*(char *)((long)puVar3 + 0x21)" * (cast_expression "(char *)((long)puVar3 + 0x21)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar3 + 0x21)" ( (binary_expression "(long)puVar3 + 0x21" (cast_expression "(long)puVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }" { (expression_statement "uVar1 = puVar3[3];" (assignment_expression "uVar1 = puVar3[3]" identifier = (subscript_expression "puVar3[3]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = puVar3[1];" (assignment_expression "uVar2 = puVar3[1]" identifier = (subscript_expression "puVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }" { (expression_statement "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);" (call_expression "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff)" identifier (argument_list "(param_1,uVar2,uVar1,0xffffffffffffffff)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "puVar3[3] = puVar3[3] + -1;" (assignment_expression "puVar3[3] = puVar3[3] + -1" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = (binary_expression "puVar3[3] + -1" (subscript_expression "puVar3[3]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" else (if_statement "if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" if (parenthesized_expression "(*(char *)(puVar3 + 4) == '\0')" ( (binary_expression "*(char *)(puVar3 + 4) == '\0'" (pointer_expression "*(char *)(puVar3 + 4)" * (cast_expression "(char *)(puVar3 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" { (expression_statement "FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);" (call_expression "FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00)" identifier (argument_list "(param_1,uVar2,uVar1,FUN_00119e00)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)(puVar3 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar3 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar3 + 4)" * (cast_expression "(undefined1 *)(puVar3 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" else (compound_statement "{\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" { (expression_statement "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);" (call_expression "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff)" identifier (argument_list "(param_1,uVar2,uVar1,0xffffffffffffffff)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "*(undefined1 *)(puVar3 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar3 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar3 + 4)" * (cast_expression "(undefined1 *)(puVar3 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = number_literal) ;) }))))) }) (else_clause "else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }" else (if_statement "if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }" if (parenthesized_expression "(*(char *)((long)puVar3 + 0x21) == '\x01')" ( (binary_expression "*(char *)((long)puVar3 + 0x21) == '\x01'" (pointer_expression "*(char *)((long)puVar3 + 0x21)" * (cast_expression "(char *)((long)puVar3 + 0x21)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar3 + 0x21)" ( (binary_expression "(long)puVar3 + 0x21" (cast_expression "(long)puVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_0011c700(param_1);\n    }" { (expression_statement "FUN_0011c700(param_1);" (call_expression "FUN_0011c700(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })))) }))) (expression_statement "FUN_001114d0(param_1,0x4a);" (call_expression "FUN_001114d0(param_1,0x4a)" identifier (argument_list "(param_1,0x4a)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void jsonArrayCompute(sqlite3_context *ctx,int isFinal)\n\n{\n  char *z;\n  JsonString *p;\n  int n;\n  \n  p = (JsonString *)sqlite3_aggregate_context(ctx,0);\n  if (p == (JsonString *)0x0) {\n    sqlite3_result_text(ctx,"[]",2,(_func_void_void_ptr *)0x0);\n  }\n  else {\n    p->pCtx = ctx;\n    jsonAppendChar(p,']');\n    if (p->bErr == '\0') {\n      z = p->zBuf;\n      n = (int)p->nUsed;\n      if (isFinal == 0) {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->nUsed = p->nUsed - 1;\n      }\n      else if (p->bStatic == '\0') {\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }\n      else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }\n    }\n    else if (p->bErr == '\x01') {\n      sqlite3_result_error_nomem(ctx);\n    }\n  }\n  sqlite3_result_subtype(ctx,0x4a);\n  return;\n}\n\n" (function_definition "void jsonArrayCompute(sqlite3_context *ctx,int isFinal)\n\n{\n  char *z;\n  JsonString *p;\n  int n;\n  \n  p = (JsonString *)sqlite3_aggregate_context(ctx,0);\n  if (p == (JsonString *)0x0) {\n    sqlite3_result_text(ctx,"[]",2,(_func_void_void_ptr *)0x0);\n  }\n  else {\n    p->pCtx = ctx;\n    jsonAppendChar(p,']');\n    if (p->bErr == '\0') {\n      z = p->zBuf;\n      n = (int)p->nUsed;\n      if (isFinal == 0) {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->nUsed = p->nUsed - 1;\n      }\n      else if (p->bStatic == '\0') {\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }\n      else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }\n    }\n    else if (p->bErr == '\x01') {\n      sqlite3_result_error_nomem(ctx);\n    }\n  }\n  sqlite3_result_subtype(ctx,0x4a);\n  return;\n}" primitive_type (function_declarator "jsonArrayCompute(sqlite3_context *ctx,int isFinal)" identifier (parameter_list "(sqlite3_context *ctx,int isFinal)" ( (parameter_declaration "sqlite3_context *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "int isFinal" primitive_type identifier) ))) (compound_statement "{\n  char *z;\n  JsonString *p;\n  int n;\n  \n  p = (JsonString *)sqlite3_aggregate_context(ctx,0);\n  if (p == (JsonString *)0x0) {\n    sqlite3_result_text(ctx,"[]",2,(_func_void_void_ptr *)0x0);\n  }\n  else {\n    p->pCtx = ctx;\n    jsonAppendChar(p,']');\n    if (p->bErr == '\0') {\n      z = p->zBuf;\n      n = (int)p->nUsed;\n      if (isFinal == 0) {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->nUsed = p->nUsed - 1;\n      }\n      else if (p->bStatic == '\0') {\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }\n      else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }\n    }\n    else if (p->bErr == '\x01') {\n      sqlite3_result_error_nomem(ctx);\n    }\n  }\n  sqlite3_result_subtype(ctx,0x4a);\n  return;\n}" { (declaration "char *z;" primitive_type (pointer_declarator "*z" * identifier) ;) (declaration "JsonString *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int n;" primitive_type identifier ;) (expression_statement "p = (JsonString *)sqlite3_aggregate_context(ctx,0);" (assignment_expression "p = (JsonString *)sqlite3_aggregate_context(ctx,0)" identifier = (cast_expression "(JsonString *)sqlite3_aggregate_context(ctx,0)" ( (type_descriptor "JsonString *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(ctx,0)" identifier (argument_list "(ctx,0)" ( identifier , number_literal ))))) ;) (if_statement "if (p == (JsonString *)0x0) {\n    sqlite3_result_text(ctx,"[]",2,(_func_void_void_ptr *)0x0);\n  }\n  else {\n    p->pCtx = ctx;\n    jsonAppendChar(p,']');\n    if (p->bErr == '\0') {\n      z = p->zBuf;\n      n = (int)p->nUsed;\n      if (isFinal == 0) {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->nUsed = p->nUsed - 1;\n      }\n      else if (p->bStatic == '\0') {\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }\n      else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }\n    }\n    else if (p->bErr == '\x01') {\n      sqlite3_result_error_nomem(ctx);\n    }\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    sqlite3_result_text(ctx,"[]",2,(_func_void_void_ptr *)0x0);\n  }" { (expression_statement "sqlite3_result_text(ctx,"[]",2,(_func_void_void_ptr *)0x0);" (call_expression "sqlite3_result_text(ctx,"[]",2,(_func_void_void_ptr *)0x0)" identifier (argument_list "(ctx,"[]",2,(_func_void_void_ptr *)0x0)" ( identifier , (string_literal ""[]"" " string_content ") , number_literal , (cast_expression "(_func_void_void_ptr *)0x0" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) }) (else_clause "else {\n    p->pCtx = ctx;\n    jsonAppendChar(p,']');\n    if (p->bErr == '\0') {\n      z = p->zBuf;\n      n = (int)p->nUsed;\n      if (isFinal == 0) {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->nUsed = p->nUsed - 1;\n      }\n      else if (p->bStatic == '\0') {\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }\n      else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }\n    }\n    else if (p->bErr == '\x01') {\n      sqlite3_result_error_nomem(ctx);\n    }\n  }" else (compound_statement "{\n    p->pCtx = ctx;\n    jsonAppendChar(p,']');\n    if (p->bErr == '\0') {\n      z = p->zBuf;\n      n = (int)p->nUsed;\n      if (isFinal == 0) {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->nUsed = p->nUsed - 1;\n      }\n      else if (p->bStatic == '\0') {\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }\n      else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }\n    }\n    else if (p->bErr == '\x01') {\n      sqlite3_result_error_nomem(ctx);\n    }\n  }" { (expression_statement "p->pCtx = ctx;" (assignment_expression "p->pCtx = ctx" (field_expression "p->pCtx" identifier -> field_identifier) = identifier) ;) (expression_statement "jsonAppendChar(p,']');" (call_expression "jsonAppendChar(p,']')" identifier (argument_list "(p,']')" ( identifier , (char_literal "']'" ' character ') ))) ;) (if_statement "if (p->bErr == '\0') {\n      z = p->zBuf;\n      n = (int)p->nUsed;\n      if (isFinal == 0) {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->nUsed = p->nUsed - 1;\n      }\n      else if (p->bStatic == '\0') {\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }\n      else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }\n    }\n    else if (p->bErr == '\x01') {\n      sqlite3_result_error_nomem(ctx);\n    }" if (parenthesized_expression "(p->bErr == '\0')" ( (binary_expression "p->bErr == '\0'" (field_expression "p->bErr" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      z = p->zBuf;\n      n = (int)p->nUsed;\n      if (isFinal == 0) {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->nUsed = p->nUsed - 1;\n      }\n      else if (p->bStatic == '\0') {\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }\n      else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }\n    }" { (expression_statement "z = p->zBuf;" (assignment_expression "z = p->zBuf" identifier = (field_expression "p->zBuf" identifier -> field_identifier)) ;) (expression_statement "n = (int)p->nUsed;" (assignment_expression "n = (int)p->nUsed" identifier = (cast_expression "(int)p->nUsed" ( (type_descriptor "int" primitive_type) ) (field_expression "p->nUsed" identifier -> field_identifier))) ;) (if_statement "if (isFinal == 0) {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->nUsed = p->nUsed - 1;\n      }\n      else if (p->bStatic == '\0') {\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }\n      else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }" if (parenthesized_expression "(isFinal == 0)" ( (binary_expression "isFinal == 0" identifier == number_literal) )) (compound_statement "{\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->nUsed = p->nUsed - 1;\n      }" { (expression_statement "sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);" (call_expression "sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff)" identifier (argument_list "(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff)" ( identifier , identifier , identifier , (cast_expression "(_func_void_void_ptr *)&DAT_ffffffffffffffff" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffffffffffff" & identifier)) ))) ;) (expression_statement "p->nUsed = p->nUsed - 1;" (assignment_expression "p->nUsed = p->nUsed - 1" (field_expression "p->nUsed" identifier -> field_identifier) = (binary_expression "p->nUsed - 1" (field_expression "p->nUsed" identifier -> field_identifier) - number_literal)) ;) }) (else_clause "else if (p->bStatic == '\0') {\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }\n      else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }" else (if_statement "if (p->bStatic == '\0') {\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }\n      else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }" if (parenthesized_expression "(p->bStatic == '\0')" ( (binary_expression "p->bStatic == '\0'" (field_expression "p->bStatic" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        sqlite3_result_text(ctx,z,n,sqlite3_free);\n        p->bStatic = '\x01';\n      }" { (expression_statement "sqlite3_result_text(ctx,z,n,sqlite3_free);" (call_expression "sqlite3_result_text(ctx,z,n,sqlite3_free)" identifier (argument_list "(ctx,z,n,sqlite3_free)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "p->bStatic = '\x01';" (assignment_expression "p->bStatic = '\x01'" (field_expression "p->bStatic" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) }) (else_clause "else {\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }" else (compound_statement "{\n        sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);\n        p->bStatic = '\x01';\n      }" { (expression_statement "sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff);" (call_expression "sqlite3_result_text(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff)" identifier (argument_list "(ctx,z,n,(_func_void_void_ptr *)&DAT_ffffffffffffffff)" ( identifier , identifier , identifier , (cast_expression "(_func_void_void_ptr *)&DAT_ffffffffffffffff" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffffffffffff" & identifier)) ))) ;) (expression_statement "p->bStatic = '\x01';" (assignment_expression "p->bStatic = '\x01'" (field_expression "p->bStatic" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) }))))) }) (else_clause "else if (p->bErr == '\x01') {\n      sqlite3_result_error_nomem(ctx);\n    }" else (if_statement "if (p->bErr == '\x01') {\n      sqlite3_result_error_nomem(ctx);\n    }" if (parenthesized_expression "(p->bErr == '\x01')" ( (binary_expression "p->bErr == '\x01'" (field_expression "p->bErr" identifier -> field_identifier) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      sqlite3_result_error_nomem(ctx);\n    }" { (expression_statement "sqlite3_result_error_nomem(ctx);" (call_expression "sqlite3_result_error_nomem(ctx)" identifier (argument_list "(ctx)" ( identifier ))) ;) })))) }))) (expression_statement "sqlite3_result_subtype(ctx,0x4a);" (call_expression "sqlite3_result_subtype(ctx,0x4a)" identifier (argument_list "(ctx,0x4a)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00160270(undefined8 param_1,int param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  \n  puVar3 = (undefined8 *)FUN_00138650(param_1,0);\n  if (puVar3 == (undefined8 *)0x0) {\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }\n  else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }\n  FUN_001114d0(param_1,0x4a);\n  return;\n}\n\n" (function_definition "void FUN_00160270(undefined8 param_1,int param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  \n  puVar3 = (undefined8 *)FUN_00138650(param_1,0);\n  if (puVar3 == (undefined8 *)0x0) {\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }\n  else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }\n  FUN_001114d0(param_1,0x4a);\n  return;\n}" primitive_type (function_declarator "FUN_00160270(undefined8 param_1,int param_2)" identifier (parameter_list "(undefined8 param_1,int param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  \n  puVar3 = (undefined8 *)FUN_00138650(param_1,0);\n  if (puVar3 == (undefined8 *)0x0) {\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }\n  else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }\n  FUN_001114d0(param_1,0x4a);\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = (undefined8 *)FUN_00138650(param_1,0);" (assignment_expression "puVar3 = (undefined8 *)FUN_00138650(param_1,0)" identifier = (cast_expression "(undefined8 *)FUN_00138650(param_1,0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00138650(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar3 == (undefined8 *)0x0) {\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }\n  else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }" if (parenthesized_expression "(puVar3 == (undefined8 *)0x0)" ( (binary_expression "puVar3 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }" { (expression_statement "FUN_00139d50(param_1,&DAT_001ea056,2,0);" (call_expression "FUN_00139d50(param_1,&DAT_001ea056,2,0)" identifier (argument_list "(param_1,&DAT_001ea056,2,0)" ( identifier , (pointer_expression "&DAT_001ea056" & identifier) , number_literal , number_literal ))) ;) }) (else_clause "else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }" else (compound_statement "{\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }" { (expression_statement "*puVar3 = param_1;" (assignment_expression "*puVar3 = param_1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "FUN_0015f5a0(puVar3,0x5d);" (call_expression "FUN_0015f5a0(puVar3,0x5d)" identifier (argument_list "(puVar3,0x5d)" ( identifier , number_literal ))) ;) (if_statement "if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }" if (parenthesized_expression "(*(char *)((long)puVar3 + 0x21) == '\0')" ( (binary_expression "*(char *)((long)puVar3 + 0x21) == '\0'" (pointer_expression "*(char *)((long)puVar3 + 0x21)" * (cast_expression "(char *)((long)puVar3 + 0x21)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar3 + 0x21)" ( (binary_expression "(long)puVar3 + 0x21" (cast_expression "(long)puVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }" { (expression_statement "uVar1 = puVar3[3];" (assignment_expression "uVar1 = puVar3[3]" identifier = (subscript_expression "puVar3[3]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = puVar3[1];" (assignment_expression "uVar2 = puVar3[1]" identifier = (subscript_expression "puVar3[1]" identifier [ number_literal ])) ;) (if_statement "if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }" { (expression_statement "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);" (call_expression "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff)" identifier (argument_list "(param_1,uVar2,uVar1,0xffffffffffffffff)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "puVar3[3] = puVar3[3] + -1;" (assignment_expression "puVar3[3] = puVar3[3] + -1" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = (binary_expression "puVar3[3] + -1" (subscript_expression "puVar3[3]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" else (if_statement "if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" if (parenthesized_expression "(*(char *)(puVar3 + 4) == '\0')" ( (binary_expression "*(char *)(puVar3 + 4) == '\0'" (pointer_expression "*(char *)(puVar3 + 4)" * (cast_expression "(char *)(puVar3 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" { (expression_statement "FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);" (call_expression "FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00)" identifier (argument_list "(param_1,uVar2,uVar1,FUN_00119e00)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)(puVar3 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar3 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar3 + 4)" * (cast_expression "(undefined1 *)(puVar3 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" else (compound_statement "{\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" { (expression_statement "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);" (call_expression "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff)" identifier (argument_list "(param_1,uVar2,uVar1,0xffffffffffffffff)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "*(undefined1 *)(puVar3 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar3 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar3 + 4)" * (cast_expression "(undefined1 *)(puVar3 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = number_literal) ;) }))))) }) (else_clause "else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }" else (if_statement "if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }" if (parenthesized_expression "(*(char *)((long)puVar3 + 0x21) == '\x01')" ( (binary_expression "*(char *)((long)puVar3 + 0x21) == '\x01'" (pointer_expression "*(char *)((long)puVar3 + 0x21)" * (cast_expression "(char *)((long)puVar3 + 0x21)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar3 + 0x21)" ( (binary_expression "(long)puVar3 + 0x21" (cast_expression "(long)puVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_0011c700(param_1);\n    }" { (expression_statement "FUN_0011c700(param_1);" (call_expression "FUN_0011c700(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })))) }))) (expression_statement "FUN_001114d0(param_1,0x4a);" (call_expression "FUN_001114d0(param_1,0x4a)" identifier (argument_list "(param_1,0x4a)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }) (else_clause else (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 { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })))) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00160270(undefined8 param_1,int param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  \n  puVar3 = (undefined8 *)FUN_00138650(param_1,0);\n  if (puVar3 == (undefined8 *)0x0) {\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }\n  else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }\n  FUN_001114d0(param_1,0x4a);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00160270(undefined8 param_1,int param_2)" (identifier "FUN_00160270") (parameter_list "(undefined8 param_1,int param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  undefined8 *puVar3;\n  \n  puVar3 = (undefined8 *)FUN_00138650(param_1,0);\n  if (puVar3 == (undefined8 *)0x0) {\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }\n  else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }\n  FUN_001114d0(param_1,0x4a);\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "undefined8 *puVar3;" (type_identifier "undefined8") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "puVar3 = (undefined8 *)FUN_00138650(param_1,0);" (assignment_expression "puVar3 = (undefined8 *)FUN_00138650(param_1,0)" (identifier "puVar3") (= "=") (cast_expression "(undefined8 *)FUN_00138650(param_1,0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00138650(param_1,0)" (identifier "FUN_00138650") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (puVar3 == (undefined8 *)0x0) {\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }\n  else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }" (if "if") (parenthesized_expression "(puVar3 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined8 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    FUN_00139d50(param_1,&DAT_001ea056,2,0);\n  }" ({ "{") (expression_statement "FUN_00139d50(param_1,&DAT_001ea056,2,0);" (call_expression "FUN_00139d50(param_1,&DAT_001ea056,2,0)" (identifier "FUN_00139d50") (argument_list "(param_1,&DAT_001ea056,2,0)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&DAT_001ea056" (& "&") (identifier "DAT_001ea056")) (, ",") (number_literal "2") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }" (else "else") (compound_statement "{\n    *puVar3 = param_1;\n    FUN_0015f5a0(puVar3,0x5d);\n    if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }\n  }" ({ "{") (expression_statement "*puVar3 = param_1;" (assignment_expression "*puVar3 = param_1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "FUN_0015f5a0(puVar3,0x5d);" (call_expression "FUN_0015f5a0(puVar3,0x5d)" (identifier "FUN_0015f5a0") (argument_list "(puVar3,0x5d)" (( "(") (identifier "puVar3") (, ",") (number_literal "0x5d") () ")"))) (; ";")) (if_statement "if (*(char *)((long)puVar3 + 0x21) == '\0') {\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }\n    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }" (if "if") (parenthesized_expression "(*(char *)((long)puVar3 + 0x21) == '\0')" (( "(") (binary_expression "*(char *)((long)puVar3 + 0x21) == '\0'" (pointer_expression "*(char *)((long)puVar3 + 0x21)" (* "*") (cast_expression "(char *)((long)puVar3 + 0x21)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar3 + 0x21)" (( "(") (binary_expression "(long)puVar3 + 0x21" (cast_expression "(long)puVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar3")) (+ "+") (number_literal "0x21")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar1 = puVar3[3];\n      uVar2 = puVar3[1];\n      if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n    }" ({ "{") (expression_statement "uVar1 = puVar3[3];" (assignment_expression "uVar1 = puVar3[3]" (identifier "uVar1") (= "=") (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "uVar2 = puVar3[1];" (assignment_expression "uVar2 = puVar3[1]" (identifier "uVar2") (= "=") (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (param_2 == 0) {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }\n      else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        puVar3[3] = puVar3[3] + -1;\n      }" ({ "{") (expression_statement "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);" (call_expression "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff)" (identifier "FUN_00139d50") (argument_list "(param_1,uVar2,uVar1,0xffffffffffffffff)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") (, ",") (identifier "uVar1") (, ",") (number_literal "0xffffffffffffffff") () ")"))) (; ";")) (expression_statement "puVar3[3] = puVar3[3] + -1;" (assignment_expression "puVar3[3] = puVar3[3] + -1" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "puVar3[3] + -1" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" (else "else") (if_statement "if (*(char *)(puVar3 + 4) == '\0') {\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }\n      else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" (if "if") (parenthesized_expression "(*(char *)(puVar3 + 4) == '\0')" (( "(") (binary_expression "*(char *)(puVar3 + 4) == '\0'" (pointer_expression "*(char *)(puVar3 + 4)" (* "*") (cast_expression "(char *)(puVar3 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 4)" (( "(") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" ({ "{") (expression_statement "FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);" (call_expression "FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00)" (identifier "FUN_00139d50") (argument_list "(param_1,uVar2,uVar1,FUN_00119e00)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") (, ",") (identifier "uVar1") (, ",") (identifier "FUN_00119e00") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(puVar3 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar3 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar3 + 4)" (* "*") (cast_expression "(undefined1 *)(puVar3 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 4)" (( "(") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" (else "else") (compound_statement "{\n        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);\n        *(undefined1 *)(puVar3 + 4) = 1;\n      }" ({ "{") (expression_statement "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);" (call_expression "FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff)" (identifier "FUN_00139d50") (argument_list "(param_1,uVar2,uVar1,0xffffffffffffffff)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") (, ",") (identifier "uVar1") (, ",") (number_literal "0xffffffffffffffff") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(puVar3 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar3 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar3 + 4)" (* "*") (cast_expression "(undefined1 *)(puVar3 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 4)" (( "(") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")))))) (} "}")) (else_clause "else if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }" (else "else") (if_statement "if (*(char *)((long)puVar3 + 0x21) == '\x01') {\n      FUN_0011c700(param_1);\n    }" (if "if") (parenthesized_expression "(*(char *)((long)puVar3 + 0x21) == '\x01')" (( "(") (binary_expression "*(char *)((long)puVar3 + 0x21) == '\x01'" (pointer_expression "*(char *)((long)puVar3 + 0x21)" (* "*") (cast_expression "(char *)((long)puVar3 + 0x21)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar3 + 0x21)" (( "(") (binary_expression "(long)puVar3 + 0x21" (cast_expression "(long)puVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar3")) (+ "+") (number_literal "0x21")) () ")")))) (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n      FUN_0011c700(param_1);\n    }" ({ "{") (expression_statement "FUN_0011c700(param_1);" (call_expression "FUN_0011c700(param_1)" (identifier "FUN_0011c700") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))))) (} "}")))) (expression_statement "FUN_001114d0(param_1,0x4a);" (call_expression "FUN_001114d0(param_1,0x4a)" (identifier "FUN_001114d0") (argument_list "(param_1,0x4a)" (( "(") (identifier "param_1") (, ",") (number_literal "0x4a") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *ctx,int var_5)

{
  char *z;
  type_2 *var_2;
  int n;
  
  var_2 = (type_2 *)var_1(ctx,0);
  if (var_2 == (type_2 *)0x0) {
    var_3(ctx,"[]",2,(type_3 *)0x0);
  }
  else {
    var_2->pCtx = ctx;
    var_4(var_2,']');
    if (var_2->bErr == '\0') {
      z = var_2->zBuf;
      n = (int)var_2->nUsed;
      if (var_5 == 0) {
        var_3(ctx,z,n,(type_3 *)&DAT_ffffffffffffffff);
        var_2->nUsed = var_2->nUsed - 1;
      }
      else if (var_2->bStatic == '\0') {
        var_3(ctx,z,n,sqlite3_free);
        var_2->bStatic = '\x01';
      }
      else {
        var_3(ctx,z,n,(type_3 *)&DAT_ffffffffffffffff);
        var_2->bStatic = '\x01';
      }
    }
    else if (var_2->bErr == '\x01') {
      var_6(ctx);
    }
  }
  var_7(ctx,0x4a);
  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)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal) (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) alternative: (else_clause (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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (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))))))))) alternative: (else_clause (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (return_statement))))

void MASKED(undefined8 param_1,int param_2)

{
  undefined8 uVar1;
  undefined8 uVar2;
  undefined8 *puVar3;
  
  puVar3 = (undefined8 *)FUN_00138650(param_1,0);
  if (puVar3 == (undefined8 *)0x0) {
    FUN_00139d50(param_1,&DAT_001ea056,2,0);
  }
  else {
    *puVar3 = param_1;
    FUN_0015f5a0(puVar3,0x5d);
    if (*(char *)((long)puVar3 + 0x21) == '\0') {
      uVar1 = puVar3[3];
      uVar2 = puVar3[1];
      if (param_2 == 0) {
        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);
        puVar3[3] = puVar3[3] + -1;
      }
      else if (*(char *)(puVar3 + 4) == '\0') {
        FUN_00139d50(param_1,uVar2,uVar1,FUN_00119e00);
        *(undefined1 *)(puVar3 + 4) = 1;
      }
      else {
        FUN_00139d50(param_1,uVar2,uVar1,0xffffffffffffffff);
        *(undefined1 *)(puVar3 + 4) = 1;
      }
    }
    else if (*(char *)((long)puVar3 + 0x21) == '\x01') {
      FUN_0011c700(param_1);
    }
  }
  FUN_001114d0(param_1,0x4a);
  return;
}

