
int vdbeCompareMemString(Mem *pMem1,Mem *pMem2,CollSeq *pColl,u8 *prcErr)

{
  long lVar1;
  int iVar2;
  void *pvVar3;
  void *pvVar4;
  long in_FS_OFFSET;
  Mem c1;
  Mem c2;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  if (pMem1->enc == pColl->enc) {
    iVar2 = (*pColl->xCmp)(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z);
  }
  else {
    c1.db = pMem1->db;
    c1.flags = 1;
    c1.szMalloc = 0;
    c2.flags = 1;
    c2.szMalloc = 0;
    c2.db = c1.db;
    sqlite3VdbeMemShallowCopy(&c1,pMem1,0x1000);
    sqlite3VdbeMemShallowCopy(&c2,pMem2,0x1000);
    pvVar3 = sqlite3ValueText(&c1,pColl->enc);
    pvVar4 = sqlite3ValueText(&c2,pColl->enc);
    if ((pvVar3 == (void *)0x0) || (pvVar4 == (void *)0x0)) {
      iVar2 = 0;
      if (prcErr != (u8 *)0x0) {
        *prcErr = '\a';
      }
    }
    else {
      iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4);
    }
    sqlite3VdbeMemRelease(&c1);
    sqlite3VdbeMemRelease(&c2);
  }
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined4 FUN_00131d30(long param_1,long param_2,long param_3,undefined1 *param_4)

{
  undefined4 uVar1;
  long lVar2;
  long lVar3;
  long in_FS_OFFSET;
  undefined1 auStack_a8 [8];
  undefined2 local_a0;
  undefined4 local_9c;
  undefined4 local_88;
  undefined8 local_80;
  undefined1 local_68 [8];
  undefined2 local_60;
  undefined4 local_5c;
  undefined4 local_48;
  undefined8 local_40;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {
    uVar1 = (**(code **)(param_3 + 0x18))
                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),
                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),
                       *(undefined8 *)(param_2 + 0x10));
  }
  else {
    local_80 = *(undefined8 *)(param_1 + 0x28);
    local_a0 = 1;
    local_88 = 0;
    local_60 = 1;
    local_48 = 0;
    local_40 = local_80;
    FUN_0011a4ea(auStack_a8,param_1,0x1000);
    FUN_0011a4ea(local_68,param_2,0x1000);
    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));
    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));
    if ((lVar2 == 0) || (lVar3 == 0)) {
      uVar1 = 0;
      if (param_4 != (undefined1 *)0x0) {
        *param_4 = 7;
      }
    }
    else {
      uVar1 = (**(code **)(param_3 + 0x18))
                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);
    }
    FUN_0011a565(auStack_a8);
    FUN_0011a565(local_68);
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
ADD RSP,-0x80
MOV RBP,RSI
MOV RBX,RDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x78],RAX
XOR EAX,EAX
MOVZX EAX,byte ptr [RDX + 0x8]
CMP byte ptr [RDI + 0xa],AL
JNZ 0x00131d95
MOV ECX,dword ptr [RSI + 0xc]
MOV RDX,qword ptr [RDI + 0x10]
MOV ESI,dword ptr [RDI + 0xc]
MOV RDI,qword ptr [RBX + 0x10]
MOV R8,qword ptr [RBP + 0x10]
CALL qword ptr [RBX + 0x18]
MOV EBX,EAX
MOV EAX,EBX
MOV RCX,qword ptr [RSP + 0x78]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x00131e50
SUB RSP,-0x80
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV R12,RCX
MOV RAX,qword ptr [RDI + 0x28]
MOV word ptr [RSP + 0x8],0x1
MOV qword ptr [RSP + 0x28],RAX
MOV dword ptr [RSP + 0x20],0x0
MOV word ptr [RSP + 0x48],0x1
MOV qword ptr [RSP + 0x68],RAX
MOV dword ptr [RSP + 0x60],0x0
MOV R14,RSP
MOV EDX,0x1000
MOV RSI,RDI
MOV RDI,R14
CALL 0x0011a4ea
LEA R13,[RSP + 0x40]
MOV EDX,0x1000
MOV RSI,RBP
MOV RDI,R13
CALL 0x0011a4ea
MOVZX ESI,byte ptr [RBX + 0x8]
MOV RDI,R14
CALL 0x00126086
MOV RBP,RAX
MOVZX ESI,byte ptr [RBX + 0x8]
MOV RDI,R13
CALL 0x00126086
MOV R8,RAX
TEST RBP,RBP
JZ 0x00131e3f
TEST RAX,RAX
JZ 0x00131e3f
MOV RDI,qword ptr [RBX + 0x10]
MOV ECX,dword ptr [RSP + 0x4c]
MOV RDX,RBP
MOV ESI,dword ptr [RSP + 0xc]
CALL qword ptr [RBX + 0x18]
MOV EBX,EAX
MOV RDI,RSP
CALL 0x0011a565
LEA RDI,[RSP + 0x40]
CALL 0x0011a565
JMP 0x00131d72
MOV EBX,0x0
TEST R12,R12
JZ 0x00131e28
MOV byte ptr [R12],0x7
JMP 0x00131e28
CALL 0x0010c0d0
(translation_unit "undefined4 FUN_00131d30(long param_1,long param_2,long param_3,undefined1 *param_4)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 auStack_a8 [8];\n  undefined2 local_a0;\n  undefined4 local_9c;\n  undefined4 local_88;\n  undefined8 local_80;\n  undefined1 local_68 [8];\n  undefined2 local_60;\n  undefined4 local_5c;\n  undefined4 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }\n  else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 FUN_00131d30(long param_1,long param_2,long param_3,undefined1 *param_4)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 auStack_a8 [8];\n  undefined2 local_a0;\n  undefined4 local_9c;\n  undefined4 local_88;\n  undefined8 local_80;\n  undefined1 local_68 [8];\n  undefined2 local_60;\n  undefined4 local_5c;\n  undefined4 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }\n  else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_00131d30(long param_1,long param_2,long param_3,undefined1 *param_4)" identifier (parameter_list "(long param_1,long param_2,long param_3,undefined1 *param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  long lVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 auStack_a8 [8];\n  undefined2 local_a0;\n  undefined4 local_9c;\n  undefined4 local_88;\n  undefined8 local_80;\n  undefined1 local_68 [8];\n  undefined2 local_60;\n  undefined4 local_5c;\n  undefined4 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }\n  else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_a8 [8];" type_identifier (array_declarator "auStack_a8 [8]" identifier [ number_literal ]) ;) (declaration "undefined2 local_a0;" type_identifier identifier ;) (declaration "undefined4 local_9c;" type_identifier identifier ;) (declaration "undefined4 local_88;" type_identifier identifier ;) (declaration "undefined8 local_80;" type_identifier identifier ;) (declaration "undefined1 local_68 [8];" type_identifier (array_declarator "local_68 [8]" identifier [ number_literal ]) ;) (declaration "undefined2 local_60;" type_identifier identifier ;) (declaration "undefined4 local_5c;" type_identifier identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "undefined8 local_40;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }\n  else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 10) == *(char *)(param_3 + 8))" ( (binary_expression "*(char *)(param_1 + 10) == *(char *)(param_3 + 8)" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) == (pointer_expression "*(char *)(param_3 + 8)" * (cast_expression "(char *)(param_3 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }" { (expression_statement "uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));" (assignment_expression "uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10))" identifier = (call_expression "(**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10))" (parenthesized_expression "(**(code **)(param_3 + 0x18))" ( (pointer_expression "**(code **)(param_3 + 0x18)" * (pointer_expression "*(code **)(param_3 + 0x18)" * (cast_expression "(code **)(param_3 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10))" ( (pointer_expression "*(undefined8 *)(param_3 + 0x10)" * (cast_expression "(undefined8 *)(param_3 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) )))) ;) }) (else_clause "else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }" else (compound_statement "{\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }" { (expression_statement "local_80 = *(undefined8 *)(param_1 + 0x28);" (assignment_expression "local_80 = *(undefined8 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_a0 = 1;" (assignment_expression "local_a0 = 1" identifier = number_literal) ;) (expression_statement "local_88 = 0;" (assignment_expression "local_88 = 0" identifier = number_literal) ;) (expression_statement "local_60 = 1;" (assignment_expression "local_60 = 1" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_40 = local_80;" (assignment_expression "local_40 = local_80" identifier = identifier) ;) (expression_statement "FUN_0011a4ea(auStack_a8,param_1,0x1000);" (call_expression "FUN_0011a4ea(auStack_a8,param_1,0x1000)" identifier (argument_list "(auStack_a8,param_1,0x1000)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_0011a4ea(local_68,param_2,0x1000);" (call_expression "FUN_0011a4ea(local_68,param_2,0x1000)" identifier (argument_list "(local_68,param_2,0x1000)" ( identifier , identifier , number_literal ))) ;) (expression_statement "lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));" (assignment_expression "lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8))" identifier = (call_expression "FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8))" identifier (argument_list "(auStack_a8,*(undefined1 *)(param_3 + 8))" ( identifier , (pointer_expression "*(undefined1 *)(param_3 + 8)" * (cast_expression "(undefined1 *)(param_3 + 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));" (assignment_expression "lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8))" identifier = (call_expression "FUN_00126086(local_68,*(undefined1 *)(param_3 + 8))" identifier (argument_list "(local_68,*(undefined1 *)(param_3 + 8))" ( identifier , (pointer_expression "*(undefined1 *)(param_3 + 8)" * (cast_expression "(undefined1 *)(param_3 + 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }" if (parenthesized_expression "((lVar2 == 0) || (lVar3 == 0))" ( (binary_expression "(lVar2 == 0) || (lVar3 == 0)" (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }" if (parenthesized_expression "(param_4 != (undefined1 *)0x0)" ( (binary_expression "param_4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_4 = 7;\n      }" { (expression_statement "*param_4 = 7;" (assignment_expression "*param_4 = 7" (pointer_expression "*param_4" * identifier) = number_literal) ;) })) }) (else_clause "else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }" else (compound_statement "{\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }" { (expression_statement "uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);" (assignment_expression "uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3)" identifier = (call_expression "(**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3)" (parenthesized_expression "(**(code **)(param_3 + 0x18))" ( (pointer_expression "**(code **)(param_3 + 0x18)" * (pointer_expression "*(code **)(param_3 + 0x18)" * (cast_expression "(code **)(param_3 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3)" ( (pointer_expression "*(undefined8 *)(param_3 + 0x10)" * (cast_expression "(undefined8 *)(param_3 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) , identifier , identifier , identifier , identifier )))) ;) }))) (expression_statement "FUN_0011a565(auStack_a8);" (call_expression "FUN_0011a565(auStack_a8)" identifier (argument_list "(auStack_a8)" ( identifier ))) ;) (expression_statement "FUN_0011a565(local_68);" (call_expression "FUN_0011a565(local_68)" identifier (argument_list "(local_68)" ( identifier ))) ;) }))) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int vdbeCompareMemString(Mem *pMem1,Mem *pMem2,CollSeq *pColl,u8 *prcErr)\n\n{\n  long lVar1;\n  int iVar2;\n  void *pvVar3;\n  void *pvVar4;\n  long in_FS_OFFSET;\n  Mem c1;\n  Mem c2;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (pMem1->enc == pColl->enc) {\n    iVar2 = (*pColl->xCmp)(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z);\n  }\n  else {\n    c1.db = pMem1->db;\n    c1.flags = 1;\n    c1.szMalloc = 0;\n    c2.flags = 1;\n    c2.szMalloc = 0;\n    c2.db = c1.db;\n    sqlite3VdbeMemShallowCopy(&c1,pMem1,0x1000);\n    sqlite3VdbeMemShallowCopy(&c2,pMem2,0x1000);\n    pvVar3 = sqlite3ValueText(&c1,pColl->enc);\n    pvVar4 = sqlite3ValueText(&c2,pColl->enc);\n    if ((pvVar3 == (void *)0x0) || (pvVar4 == (void *)0x0)) {\n      iVar2 = 0;\n      if (prcErr != (u8 *)0x0) {\n        *prcErr = '\a';\n      }\n    }\n    else {\n      iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4);\n    }\n    sqlite3VdbeMemRelease(&c1);\n    sqlite3VdbeMemRelease(&c2);\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int vdbeCompareMemString(Mem *pMem1,Mem *pMem2,CollSeq *pColl,u8 *prcErr)\n\n{\n  long lVar1;\n  int iVar2;\n  void *pvVar3;\n  void *pvVar4;\n  long in_FS_OFFSET;\n  Mem c1;\n  Mem c2;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (pMem1->enc == pColl->enc) {\n    iVar2 = (*pColl->xCmp)(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z);\n  }\n  else {\n    c1.db = pMem1->db;\n    c1.flags = 1;\n    c1.szMalloc = 0;\n    c2.flags = 1;\n    c2.szMalloc = 0;\n    c2.db = c1.db;\n    sqlite3VdbeMemShallowCopy(&c1,pMem1,0x1000);\n    sqlite3VdbeMemShallowCopy(&c2,pMem2,0x1000);\n    pvVar3 = sqlite3ValueText(&c1,pColl->enc);\n    pvVar4 = sqlite3ValueText(&c2,pColl->enc);\n    if ((pvVar3 == (void *)0x0) || (pvVar4 == (void *)0x0)) {\n      iVar2 = 0;\n      if (prcErr != (u8 *)0x0) {\n        *prcErr = '\a';\n      }\n    }\n    else {\n      iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4);\n    }\n    sqlite3VdbeMemRelease(&c1);\n    sqlite3VdbeMemRelease(&c2);\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "vdbeCompareMemString(Mem *pMem1,Mem *pMem2,CollSeq *pColl,u8 *prcErr)" identifier (parameter_list "(Mem *pMem1,Mem *pMem2,CollSeq *pColl,u8 *prcErr)" ( (parameter_declaration "Mem *pMem1" type_identifier (pointer_declarator "*pMem1" * identifier)) , (parameter_declaration "Mem *pMem2" type_identifier (pointer_declarator "*pMem2" * identifier)) , (parameter_declaration "CollSeq *pColl" type_identifier (pointer_declarator "*pColl" * identifier)) , (parameter_declaration "u8 *prcErr" type_identifier (pointer_declarator "*prcErr" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  void *pvVar3;\n  void *pvVar4;\n  long in_FS_OFFSET;\n  Mem c1;\n  Mem c2;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (pMem1->enc == pColl->enc) {\n    iVar2 = (*pColl->xCmp)(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z);\n  }\n  else {\n    c1.db = pMem1->db;\n    c1.flags = 1;\n    c1.szMalloc = 0;\n    c2.flags = 1;\n    c2.szMalloc = 0;\n    c2.db = c1.db;\n    sqlite3VdbeMemShallowCopy(&c1,pMem1,0x1000);\n    sqlite3VdbeMemShallowCopy(&c2,pMem2,0x1000);\n    pvVar3 = sqlite3ValueText(&c1,pColl->enc);\n    pvVar4 = sqlite3ValueText(&c2,pColl->enc);\n    if ((pvVar3 == (void *)0x0) || (pvVar4 == (void *)0x0)) {\n      iVar2 = 0;\n      if (prcErr != (u8 *)0x0) {\n        *prcErr = '\a';\n      }\n    }\n    else {\n      iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4);\n    }\n    sqlite3VdbeMemRelease(&c1);\n    sqlite3VdbeMemRelease(&c2);\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "Mem c1;" type_identifier identifier ;) (declaration "Mem c2;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (pMem1->enc == pColl->enc) {\n    iVar2 = (*pColl->xCmp)(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z);\n  }\n  else {\n    c1.db = pMem1->db;\n    c1.flags = 1;\n    c1.szMalloc = 0;\n    c2.flags = 1;\n    c2.szMalloc = 0;\n    c2.db = c1.db;\n    sqlite3VdbeMemShallowCopy(&c1,pMem1,0x1000);\n    sqlite3VdbeMemShallowCopy(&c2,pMem2,0x1000);\n    pvVar3 = sqlite3ValueText(&c1,pColl->enc);\n    pvVar4 = sqlite3ValueText(&c2,pColl->enc);\n    if ((pvVar3 == (void *)0x0) || (pvVar4 == (void *)0x0)) {\n      iVar2 = 0;\n      if (prcErr != (u8 *)0x0) {\n        *prcErr = '\a';\n      }\n    }\n    else {\n      iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4);\n    }\n    sqlite3VdbeMemRelease(&c1);\n    sqlite3VdbeMemRelease(&c2);\n  }" if (parenthesized_expression "(pMem1->enc == pColl->enc)" ( (binary_expression "pMem1->enc == pColl->enc" (field_expression "pMem1->enc" identifier -> field_identifier) == (field_expression "pColl->enc" identifier -> field_identifier)) )) (compound_statement "{\n    iVar2 = (*pColl->xCmp)(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z);\n  }" { (expression_statement "iVar2 = (*pColl->xCmp)(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z);" (assignment_expression "iVar2 = (*pColl->xCmp)(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z)" identifier = (call_expression "(*pColl->xCmp)(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z)" (parenthesized_expression "(*pColl->xCmp)" ( (pointer_expression "*pColl->xCmp" * (field_expression "pColl->xCmp" identifier -> field_identifier)) )) (argument_list "(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z)" ( (field_expression "pColl->pUser" identifier -> field_identifier) , (field_expression "pMem1->n" identifier -> field_identifier) , (field_expression "pMem1->z" identifier -> field_identifier) , (field_expression "pMem2->n" identifier -> field_identifier) , (field_expression "pMem2->z" identifier -> field_identifier) )))) ;) }) (else_clause "else {\n    c1.db = pMem1->db;\n    c1.flags = 1;\n    c1.szMalloc = 0;\n    c2.flags = 1;\n    c2.szMalloc = 0;\n    c2.db = c1.db;\n    sqlite3VdbeMemShallowCopy(&c1,pMem1,0x1000);\n    sqlite3VdbeMemShallowCopy(&c2,pMem2,0x1000);\n    pvVar3 = sqlite3ValueText(&c1,pColl->enc);\n    pvVar4 = sqlite3ValueText(&c2,pColl->enc);\n    if ((pvVar3 == (void *)0x0) || (pvVar4 == (void *)0x0)) {\n      iVar2 = 0;\n      if (prcErr != (u8 *)0x0) {\n        *prcErr = '\a';\n      }\n    }\n    else {\n      iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4);\n    }\n    sqlite3VdbeMemRelease(&c1);\n    sqlite3VdbeMemRelease(&c2);\n  }" else (compound_statement "{\n    c1.db = pMem1->db;\n    c1.flags = 1;\n    c1.szMalloc = 0;\n    c2.flags = 1;\n    c2.szMalloc = 0;\n    c2.db = c1.db;\n    sqlite3VdbeMemShallowCopy(&c1,pMem1,0x1000);\n    sqlite3VdbeMemShallowCopy(&c2,pMem2,0x1000);\n    pvVar3 = sqlite3ValueText(&c1,pColl->enc);\n    pvVar4 = sqlite3ValueText(&c2,pColl->enc);\n    if ((pvVar3 == (void *)0x0) || (pvVar4 == (void *)0x0)) {\n      iVar2 = 0;\n      if (prcErr != (u8 *)0x0) {\n        *prcErr = '\a';\n      }\n    }\n    else {\n      iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4);\n    }\n    sqlite3VdbeMemRelease(&c1);\n    sqlite3VdbeMemRelease(&c2);\n  }" { (expression_statement "c1.db = pMem1->db;" (assignment_expression "c1.db = pMem1->db" (field_expression "c1.db" identifier . field_identifier) = (field_expression "pMem1->db" identifier -> field_identifier)) ;) (expression_statement "c1.flags = 1;" (assignment_expression "c1.flags = 1" (field_expression "c1.flags" identifier . field_identifier) = number_literal) ;) (expression_statement "c1.szMalloc = 0;" (assignment_expression "c1.szMalloc = 0" (field_expression "c1.szMalloc" identifier . field_identifier) = number_literal) ;) (expression_statement "c2.flags = 1;" (assignment_expression "c2.flags = 1" (field_expression "c2.flags" identifier . field_identifier) = number_literal) ;) (expression_statement "c2.szMalloc = 0;" (assignment_expression "c2.szMalloc = 0" (field_expression "c2.szMalloc" identifier . field_identifier) = number_literal) ;) (expression_statement "c2.db = c1.db;" (assignment_expression "c2.db = c1.db" (field_expression "c2.db" identifier . field_identifier) = (field_expression "c1.db" identifier . field_identifier)) ;) (expression_statement "sqlite3VdbeMemShallowCopy(&c1,pMem1,0x1000);" (call_expression "sqlite3VdbeMemShallowCopy(&c1,pMem1,0x1000)" identifier (argument_list "(&c1,pMem1,0x1000)" ( (pointer_expression "&c1" & identifier) , identifier , number_literal ))) ;) (expression_statement "sqlite3VdbeMemShallowCopy(&c2,pMem2,0x1000);" (call_expression "sqlite3VdbeMemShallowCopy(&c2,pMem2,0x1000)" identifier (argument_list "(&c2,pMem2,0x1000)" ( (pointer_expression "&c2" & identifier) , identifier , number_literal ))) ;) (expression_statement "pvVar3 = sqlite3ValueText(&c1,pColl->enc);" (assignment_expression "pvVar3 = sqlite3ValueText(&c1,pColl->enc)" identifier = (call_expression "sqlite3ValueText(&c1,pColl->enc)" identifier (argument_list "(&c1,pColl->enc)" ( (pointer_expression "&c1" & identifier) , (field_expression "pColl->enc" identifier -> field_identifier) )))) ;) (expression_statement "pvVar4 = sqlite3ValueText(&c2,pColl->enc);" (assignment_expression "pvVar4 = sqlite3ValueText(&c2,pColl->enc)" identifier = (call_expression "sqlite3ValueText(&c2,pColl->enc)" identifier (argument_list "(&c2,pColl->enc)" ( (pointer_expression "&c2" & identifier) , (field_expression "pColl->enc" identifier -> field_identifier) )))) ;) (if_statement "if ((pvVar3 == (void *)0x0) || (pvVar4 == (void *)0x0)) {\n      iVar2 = 0;\n      if (prcErr != (u8 *)0x0) {\n        *prcErr = '\a';\n      }\n    }\n    else {\n      iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4);\n    }" if (parenthesized_expression "((pvVar3 == (void *)0x0) || (pvVar4 == (void *)0x0))" ( (binary_expression "(pvVar3 == (void *)0x0) || (pvVar4 == (void *)0x0)" (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pvVar4 == (void *)0x0)" ( (binary_expression "pvVar4 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      iVar2 = 0;\n      if (prcErr != (u8 *)0x0) {\n        *prcErr = '\a';\n      }\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (prcErr != (u8 *)0x0) {\n        *prcErr = '\a';\n      }" if (parenthesized_expression "(prcErr != (u8 *)0x0)" ( (binary_expression "prcErr != (u8 *)0x0" identifier != (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *prcErr = '\a';\n      }" { (expression_statement "*prcErr = '\a';" (assignment_expression "*prcErr = '\a'" (pointer_expression "*prcErr" * identifier) = (char_literal "'\a'" ' escape_sequence ')) ;) })) }) (else_clause "else {\n      iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4);\n    }" else (compound_statement "{\n      iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4);\n    }" { (expression_statement "iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4);" (assignment_expression "iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4)" identifier = (call_expression "(*pColl->xCmp)(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4)" (parenthesized_expression "(*pColl->xCmp)" ( (pointer_expression "*pColl->xCmp" * (field_expression "pColl->xCmp" identifier -> field_identifier)) )) (argument_list "(pColl->pUser,c1.n,pvVar3,c2.n,pvVar4)" ( (field_expression "pColl->pUser" identifier -> field_identifier) , (field_expression "c1.n" identifier . field_identifier) , identifier , (field_expression "c2.n" identifier . field_identifier) , identifier )))) ;) }))) (expression_statement "sqlite3VdbeMemRelease(&c1);" (call_expression "sqlite3VdbeMemRelease(&c1)" identifier (argument_list "(&c1)" ( (pointer_expression "&c1" & identifier) ))) ;) (expression_statement "sqlite3VdbeMemRelease(&c2);" (call_expression "sqlite3VdbeMemRelease(&c2)" identifier (argument_list "(&c2)" ( (pointer_expression "&c2" & identifier) ))) ;) }))) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_00131d30(long param_1,long param_2,long param_3,undefined1 *param_4)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 auStack_a8 [8];\n  undefined2 local_a0;\n  undefined4 local_9c;\n  undefined4 local_88;\n  undefined8 local_80;\n  undefined1 local_68 [8];\n  undefined2 local_60;\n  undefined4 local_5c;\n  undefined4 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }\n  else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 FUN_00131d30(long param_1,long param_2,long param_3,undefined1 *param_4)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 auStack_a8 [8];\n  undefined2 local_a0;\n  undefined4 local_9c;\n  undefined4 local_88;\n  undefined8 local_80;\n  undefined1 local_68 [8];\n  undefined2 local_60;\n  undefined4 local_5c;\n  undefined4 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }\n  else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_00131d30(long param_1,long param_2,long param_3,undefined1 *param_4)" identifier (parameter_list "(long param_1,long param_2,long param_3,undefined1 *param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  long lVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 auStack_a8 [8];\n  undefined2 local_a0;\n  undefined4 local_9c;\n  undefined4 local_88;\n  undefined8 local_80;\n  undefined1 local_68 [8];\n  undefined2 local_60;\n  undefined4 local_5c;\n  undefined4 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }\n  else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_a8 [8];" type_identifier (array_declarator "auStack_a8 [8]" identifier [ number_literal ]) ;) (declaration "undefined2 local_a0;" type_identifier identifier ;) (declaration "undefined4 local_9c;" type_identifier identifier ;) (declaration "undefined4 local_88;" type_identifier identifier ;) (declaration "undefined8 local_80;" type_identifier identifier ;) (declaration "undefined1 local_68 [8];" type_identifier (array_declarator "local_68 [8]" identifier [ number_literal ]) ;) (declaration "undefined2 local_60;" type_identifier identifier ;) (declaration "undefined4 local_5c;" type_identifier identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "undefined8 local_40;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }\n  else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 10) == *(char *)(param_3 + 8))" ( (binary_expression "*(char *)(param_1 + 10) == *(char *)(param_3 + 8)" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) == (pointer_expression "*(char *)(param_3 + 8)" * (cast_expression "(char *)(param_3 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }" { (expression_statement "uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));" (assignment_expression "uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10))" identifier = (call_expression "(**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10))" (parenthesized_expression "(**(code **)(param_3 + 0x18))" ( (pointer_expression "**(code **)(param_3 + 0x18)" * (pointer_expression "*(code **)(param_3 + 0x18)" * (cast_expression "(code **)(param_3 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10))" ( (pointer_expression "*(undefined8 *)(param_3 + 0x10)" * (cast_expression "(undefined8 *)(param_3 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) )))) ;) }) (else_clause "else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }" else (compound_statement "{\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }" { (expression_statement "local_80 = *(undefined8 *)(param_1 + 0x28);" (assignment_expression "local_80 = *(undefined8 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_a0 = 1;" (assignment_expression "local_a0 = 1" identifier = number_literal) ;) (expression_statement "local_88 = 0;" (assignment_expression "local_88 = 0" identifier = number_literal) ;) (expression_statement "local_60 = 1;" (assignment_expression "local_60 = 1" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_40 = local_80;" (assignment_expression "local_40 = local_80" identifier = identifier) ;) (expression_statement "FUN_0011a4ea(auStack_a8,param_1,0x1000);" (call_expression "FUN_0011a4ea(auStack_a8,param_1,0x1000)" identifier (argument_list "(auStack_a8,param_1,0x1000)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_0011a4ea(local_68,param_2,0x1000);" (call_expression "FUN_0011a4ea(local_68,param_2,0x1000)" identifier (argument_list "(local_68,param_2,0x1000)" ( identifier , identifier , number_literal ))) ;) (expression_statement "lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));" (assignment_expression "lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8))" identifier = (call_expression "FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8))" identifier (argument_list "(auStack_a8,*(undefined1 *)(param_3 + 8))" ( identifier , (pointer_expression "*(undefined1 *)(param_3 + 8)" * (cast_expression "(undefined1 *)(param_3 + 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));" (assignment_expression "lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8))" identifier = (call_expression "FUN_00126086(local_68,*(undefined1 *)(param_3 + 8))" identifier (argument_list "(local_68,*(undefined1 *)(param_3 + 8))" ( identifier , (pointer_expression "*(undefined1 *)(param_3 + 8)" * (cast_expression "(undefined1 *)(param_3 + 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }" if (parenthesized_expression "((lVar2 == 0) || (lVar3 == 0))" ( (binary_expression "(lVar2 == 0) || (lVar3 == 0)" (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }" if (parenthesized_expression "(param_4 != (undefined1 *)0x0)" ( (binary_expression "param_4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_4 = 7;\n      }" { (expression_statement "*param_4 = 7;" (assignment_expression "*param_4 = 7" (pointer_expression "*param_4" * identifier) = number_literal) ;) })) }) (else_clause "else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }" else (compound_statement "{\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }" { (expression_statement "uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);" (assignment_expression "uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3)" identifier = (call_expression "(**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3)" (parenthesized_expression "(**(code **)(param_3 + 0x18))" ( (pointer_expression "**(code **)(param_3 + 0x18)" * (pointer_expression "*(code **)(param_3 + 0x18)" * (cast_expression "(code **)(param_3 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3)" ( (pointer_expression "*(undefined8 *)(param_3 + 0x10)" * (cast_expression "(undefined8 *)(param_3 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) , identifier , identifier , identifier , identifier )))) ;) }))) (expression_statement "FUN_0011a565(auStack_a8);" (call_expression "FUN_0011a565(auStack_a8)" identifier (argument_list "(auStack_a8)" ( identifier ))) ;) (expression_statement "FUN_0011a565(local_68);" (call_expression "FUN_0011a565(local_68)" identifier (argument_list "(local_68)" ( identifier ))) ;) }))) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT , IDENT )))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_00131d30(long param_1,long param_2,long param_3,undefined1 *param_4)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 auStack_a8 [8];\n  undefined2 local_a0;\n  undefined4 local_9c;\n  undefined4 local_88;\n  undefined8 local_80;\n  undefined1 local_68 [8];\n  undefined2 local_60;\n  undefined4 local_5c;\n  undefined4 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }\n  else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined4") (function_declarator "FUN_00131d30(long param_1,long param_2,long param_3,undefined1 *param_4)" (identifier "FUN_00131d30") (parameter_list "(long param_1,long param_2,long param_3,undefined1 *param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "undefined1 *param_4" (type_identifier "undefined1") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  long lVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 auStack_a8 [8];\n  undefined2 local_a0;\n  undefined4 local_9c;\n  undefined4 local_88;\n  undefined8 local_80;\n  undefined1 local_68 [8];\n  undefined2 local_60;\n  undefined4 local_5c;\n  undefined4 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }\n  else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 auStack_a8 [8];" (type_identifier "undefined1") (array_declarator "auStack_a8 [8]" (identifier "auStack_a8") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined2 local_a0;" (type_identifier "undefined2") (identifier "local_a0") (; ";")) (declaration "undefined4 local_9c;" (type_identifier "undefined4") (identifier "local_9c") (; ";")) (declaration "undefined4 local_88;" (type_identifier "undefined4") (identifier "local_88") (; ";")) (declaration "undefined8 local_80;" (type_identifier "undefined8") (identifier "local_80") (; ";")) (declaration "undefined1 local_68 [8];" (type_identifier "undefined1") (array_declarator "local_68 [8]" (identifier "local_68") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined2 local_60;" (type_identifier "undefined2") (identifier "local_60") (; ";")) (declaration "undefined4 local_5c;" (type_identifier "undefined4") (identifier "local_5c") (; ";")) (declaration "undefined4 local_48;" (type_identifier "undefined4") (identifier "local_48") (; ";")) (declaration "undefined8 local_40;" (type_identifier "undefined8") (identifier "local_40") (; ";")) (declaration "long local_30;" (sized_type_specifier "long" (long "long")) (identifier "local_30") (; ";")) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }\n  else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 10) == *(char *)(param_3 + 8))" (( "(") (binary_expression "*(char *)(param_1 + 10) == *(char *)(param_3 + 8)" (pointer_expression "*(char *)(param_1 + 10)" (* "*") (cast_expression "(char *)(param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")")))) (== "==") (pointer_expression "*(char *)(param_3 + 8)" (* "*") (cast_expression "(char *)(param_3 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n    uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));\n  }" ({ "{") (expression_statement "uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10));" (assignment_expression "uVar1 = (**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10))" (identifier "uVar1") (= "=") (call_expression "(**(code **)(param_3 + 0x18))\n                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10))" (parenthesized_expression "(**(code **)(param_3 + 0x18))" (( "(") (pointer_expression "**(code **)(param_3 + 0x18)" (* "*") (pointer_expression "*(code **)(param_3 + 0x18)" (* "*") (cast_expression "(code **)(param_3 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_3 + 0x18)" (( "(") (binary_expression "param_3 + 0x18" (identifier "param_3") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),\n                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),\n                       *(undefined8 *)(param_2 + 0x10))" (( "(") (pointer_expression "*(undefined8 *)(param_3 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_3 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x10)" (( "(") (binary_expression "param_3 + 0x10" (identifier "param_3") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }" (else "else") (compound_statement "{\n    local_80 = *(undefined8 *)(param_1 + 0x28);\n    local_a0 = 1;\n    local_88 = 0;\n    local_60 = 1;\n    local_48 = 0;\n    local_40 = local_80;\n    FUN_0011a4ea(auStack_a8,param_1,0x1000);\n    FUN_0011a4ea(local_68,param_2,0x1000);\n    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));\n    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));\n    if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }\n    FUN_0011a565(auStack_a8);\n    FUN_0011a565(local_68);\n  }" ({ "{") (expression_statement "local_80 = *(undefined8 *)(param_1 + 0x28);" (assignment_expression "local_80 = *(undefined8 *)(param_1 + 0x28)" (identifier "local_80") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_a0 = 1;" (assignment_expression "local_a0 = 1" (identifier "local_a0") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_88 = 0;" (assignment_expression "local_88 = 0" (identifier "local_88") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_60 = 1;" (assignment_expression "local_60 = 1" (identifier "local_60") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = local_80;" (assignment_expression "local_40 = local_80" (identifier "local_40") (= "=") (identifier "local_80")) (; ";")) (expression_statement "FUN_0011a4ea(auStack_a8,param_1,0x1000);" (call_expression "FUN_0011a4ea(auStack_a8,param_1,0x1000)" (identifier "FUN_0011a4ea") (argument_list "(auStack_a8,param_1,0x1000)" (( "(") (identifier "auStack_a8") (, ",") (identifier "param_1") (, ",") (number_literal "0x1000") () ")"))) (; ";")) (expression_statement "FUN_0011a4ea(local_68,param_2,0x1000);" (call_expression "FUN_0011a4ea(local_68,param_2,0x1000)" (identifier "FUN_0011a4ea") (argument_list "(local_68,param_2,0x1000)" (( "(") (identifier "local_68") (, ",") (identifier "param_2") (, ",") (number_literal "0x1000") () ")"))) (; ";")) (expression_statement "lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));" (assignment_expression "lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8))" (identifier "lVar2") (= "=") (call_expression "FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8))" (identifier "FUN_00126086") (argument_list "(auStack_a8,*(undefined1 *)(param_3 + 8))" (( "(") (identifier "auStack_a8") (, ",") (pointer_expression "*(undefined1 *)(param_3 + 8)" (* "*") (cast_expression "(undefined1 *)(param_3 + 8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));" (assignment_expression "lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8))" (identifier "lVar3") (= "=") (call_expression "FUN_00126086(local_68,*(undefined1 *)(param_3 + 8))" (identifier "FUN_00126086") (argument_list "(local_68,*(undefined1 *)(param_3 + 8))" (( "(") (identifier "local_68") (, ",") (pointer_expression "*(undefined1 *)(param_3 + 8)" (* "*") (cast_expression "(undefined1 *)(param_3 + 8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (if_statement "if ((lVar2 == 0) || (lVar3 == 0)) {\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }\n    else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }" (if "if") (parenthesized_expression "((lVar2 == 0) || (lVar3 == 0))" (( "(") (binary_expression "(lVar2 == 0) || (lVar3 == 0)" (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(lVar3 == 0)" (( "(") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar1 = 0;\n      if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }\n    }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_4 != (undefined1 *)0x0) {\n        *param_4 = 7;\n      }" (if "if") (parenthesized_expression "(param_4 != (undefined1 *)0x0)" (( "(") (binary_expression "param_4 != (undefined1 *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_4 = 7;\n      }" ({ "{") (expression_statement "*param_4 = 7;" (assignment_expression "*param_4 = 7" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "7")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }" (else "else") (compound_statement "{\n      uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);\n    }" ({ "{") (expression_statement "uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);" (assignment_expression "uVar1 = (**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(param_3 + 0x18))\n                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3)" (parenthesized_expression "(**(code **)(param_3 + 0x18))" (( "(") (pointer_expression "**(code **)(param_3 + 0x18)" (* "*") (pointer_expression "*(code **)(param_3 + 0x18)" (* "*") (cast_expression "(code **)(param_3 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_3 + 0x18)" (( "(") (binary_expression "param_3 + 0x18" (identifier "param_3") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3)" (( "(") (pointer_expression "*(undefined8 *)(param_3 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_3 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x10)" (( "(") (binary_expression "param_3 + 0x10" (identifier "param_3") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "local_9c") (, ",") (identifier "lVar2") (, ",") (identifier "local_5c") (, ",") (identifier "lVar3") () ")")))) (; ";")) (} "}")))) (expression_statement "FUN_0011a565(auStack_a8);" (call_expression "FUN_0011a565(auStack_a8)" (identifier "FUN_0011a565") (argument_list "(auStack_a8)" (( "(") (identifier "auStack_a8") () ")"))) (; ";")) (expression_statement "FUN_0011a565(local_68);" (call_expression "FUN_0011a565(local_68)" (identifier "FUN_0011a565") (argument_list "(local_68)" (( "(") (identifier "local_68") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *pMem1,type_1 *pMem2,type_2 *pColl,type_3 *var_6)

{
  long var_8;
  int iVar2;
  void *var_4;
  void *var_5;
  long var_1;
  type_1 c1;
  type_1 c2;
  
  var_8 = *(long *)(var_1 + 0x28);
  if (pMem1->enc == pColl->enc) {
    iVar2 = (*pColl->xCmp)(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z);
  }
  else {
    c1.db = pMem1->db;
    c1.flags = 1;
    c1.szMalloc = 0;
    c2.flags = 1;
    c2.szMalloc = 0;
    c2.db = c1.db;
    var_2(&c1,pMem1,0x1000);
    var_2(&c2,pMem2,0x1000);
    var_4 = var_3(&c1,pColl->enc);
    var_5 = var_3(&c2,pColl->enc);
    if ((var_4 == (void *)0x0) || (var_5 == (void *)0x0)) {
      iVar2 = 0;
      if (var_6 != (type_3 *)0x0) {
        *var_6 = '\a';
      }
    }
    else {
      iVar2 = (*pColl->xCmp)(pColl->pUser,c1.n,var_4,c2.n,var_5);
    }
    var_7(&c1);
    var_7(&c2);
  }
  if (var_8 == *(long *)(var_1 + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_9();
}


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

undefined4 MASKED(long param_1,long param_2,long param_3,undefined1 *param_4)

{
  undefined4 uVar1;
  long lVar2;
  long lVar3;
  long in_FS_OFFSET;
  undefined1 auStack_a8 [8];
  undefined2 local_a0;
  undefined4 local_9c;
  undefined4 local_88;
  undefined8 local_80;
  undefined1 local_68 [8];
  undefined2 local_60;
  undefined4 local_5c;
  undefined4 local_48;
  undefined8 local_40;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  if (*(char *)(param_1 + 10) == *(char *)(param_3 + 8)) {
    uVar1 = (**(code **)(param_3 + 0x18))
                      (*(undefined8 *)(param_3 + 0x10),*(undefined4 *)(param_1 + 0xc),
                       *(undefined8 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0xc),
                       *(undefined8 *)(param_2 + 0x10));
  }
  else {
    local_80 = *(undefined8 *)(param_1 + 0x28);
    local_a0 = 1;
    local_88 = 0;
    local_60 = 1;
    local_48 = 0;
    local_40 = local_80;
    FUN_0011a4ea(auStack_a8,param_1,0x1000);
    FUN_0011a4ea(local_68,param_2,0x1000);
    lVar2 = FUN_00126086(auStack_a8,*(undefined1 *)(param_3 + 8));
    lVar3 = FUN_00126086(local_68,*(undefined1 *)(param_3 + 8));
    if ((lVar2 == 0) || (lVar3 == 0)) {
      uVar1 = 0;
      if (param_4 != (undefined1 *)0x0) {
        *param_4 = 7;
      }
    }
    else {
      uVar1 = (**(code **)(param_3 + 0x18))
                        (*(undefined8 *)(param_3 + 0x10),local_9c,lVar2,local_5c,lVar3);
    }
    FUN_0011a565(auStack_a8);
    FUN_0011a565(local_68);
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

