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

MagickBooleanType AddValueToSplayTree(SplayTreeInfo *splay_tree,void *key,void *value)

{
  NodeInfo_conflict1 *pNVar1;
  _NodeInfo_conflict1 *p_Var2;
  int iVar3;
  void *pvVar4;
  NodeInfo_conflict1 *pNVar5;
  
  LockSemaphoreInfo(splay_tree->semaphore);
  pNVar5 = splay_tree->root;
  if (pNVar5 == (NodeInfo_conflict1 *)0x0) {
LAB_001b1f40:
    iVar3 = 0;
  }
  else if (splay_tree->key == (void *)0x0) {
LAB_001b1e40:
    SplaySplayTree(splay_tree,key);
LAB_001b1e49:
    pNVar5 = splay_tree->root;
    if (pNVar5 == (NodeInfo_conflict1 *)0x0) goto LAB_001b1f40;
    pvVar4 = pNVar5->key;
    if (splay_tree->compare == (_func_int_void_ptr_void_ptr *)0x0) goto LAB_001b1ee0;
    iVar3 = (*splay_tree->compare)(pvVar4,key);
    if (iVar3 == 0) {
      pNVar5 = splay_tree->root;
      goto LAB_001b1e76;
    }
  }
  else {
    if (splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0) {
      iVar3 = (*splay_tree->compare)(pNVar5->key,key);
      if (iVar3 != 0) goto LAB_001b1e40;
      goto LAB_001b1e49;
    }
    if (key != splay_tree->key) goto LAB_001b1e40;
    pvVar4 = pNVar5->key;
LAB_001b1ee0:
    if (key < pvVar4) {
      iVar3 = 1;
    }
    else {
      if (key <= pvVar4) {
LAB_001b1e76:
        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&
           (pNVar5->value != (void *)0x0)) {
          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);
          pNVar5->value = pvVar4;
          pNVar5 = splay_tree->root;
        }
        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&
           (pNVar5->key != (void *)0x0)) {
          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);
          pNVar5->key = pvVar4;
          pNVar5 = splay_tree->root;
        }
        pNVar5->key = key;
        pNVar5->value = value;
        goto LAB_001b1eb5;
      }
      iVar3 = -1;
    }
  }
  pNVar5 = (NodeInfo_conflict1 *)AcquireMagickMemory(0x10);
  if (pNVar5 == (NodeInfo_conflict1 *)0x0) {
    UnlockSemaphoreInfo(splay_tree->semaphore);
    return MagickFalse;
  }
  pNVar5->key = key;
  pNVar1 = splay_tree->root;
  pNVar5->value = value;
  if (pNVar1 == (NodeInfo_conflict1 *)0x0) {
    pNVar5->left = (_NodeInfo_conflict1 *)0x0;
    pNVar5->right = (_NodeInfo_conflict1 *)0x0;
  }
  else if (iVar3 < 0) {
    p_Var2 = pNVar1->right;
    pNVar5->left = pNVar1;
    pNVar5->right = p_Var2;
    pNVar1->right = (_NodeInfo_conflict1 *)0x0;
  }
  else {
    p_Var2 = pNVar1->left;
    pNVar5->right = pNVar1;
    pNVar5->left = p_Var2;
    pNVar1->left = (_NodeInfo_conflict1 *)0x0;
  }
  splay_tree->nodes = splay_tree->nodes + 1;
  splay_tree->root = pNVar5;
  splay_tree->key = (void *)0x0;
LAB_001b1eb5:
  UnlockSemaphoreInfo(splay_tree->semaphore);
  return MagickTrue;
}



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

undefined4 AddValueToSplayTree(uint *param_1,uint param_2,uint param_3)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  uint *puVar4;
  
  LockSemaphoreInfo(param_1[9]);
  puVar4 = (uint *)*param_1;
  if (puVar4 == (uint *)0x0) {
LAB_001b1f40:
    iVar2 = 0;
  }
  else if (param_1[5] == 0) {
LAB_001b1e40:
    FUN_001b1790();
LAB_001b1e49:
    puVar4 = (uint *)*param_1;
    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;
    uVar3 = *puVar4;
    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;
    iVar2 = (*(code *)param_1[1])(uVar3,param_2);
    if (iVar2 == 0) {
      puVar4 = (uint *)*param_1;
      goto LAB_001b1e76;
    }
  }
  else {
    if ((code *)param_1[1] != (code *)0x0) {
      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);
      if (iVar2 != 0) goto LAB_001b1e40;
      goto LAB_001b1e49;
    }
    if (param_2 != param_1[5]) goto LAB_001b1e40;
    uVar3 = *puVar4;
LAB_001b1ee0:
    if (param_2 < uVar3) {
      iVar2 = 1;
    }
    else {
      if (param_2 <= uVar3) {
LAB_001b1e76:
        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {
          uVar3 = (*(code *)param_1[3])(puVar4[1]);
          puVar4[1] = uVar3;
          puVar4 = (uint *)*param_1;
        }
        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {
          uVar3 = (*(code *)param_1[2])(*puVar4);
          *puVar4 = uVar3;
          puVar4 = (uint *)*param_1;
        }
        *puVar4 = param_2;
        puVar4[1] = param_3;
        goto LAB_001b1eb5;
      }
      iVar2 = -1;
    }
  }
  puVar4 = (uint *)AcquireMagickMemory(0x10);
  if (puVar4 == (uint *)0x0) {
    UnlockSemaphoreInfo(param_1[9]);
    return 0;
  }
  *puVar4 = param_2;
  uVar3 = *param_1;
  puVar4[1] = param_3;
  if (uVar3 == 0) {
    puVar4[2] = 0;
    puVar4[3] = 0;
  }
  else if (iVar2 < 0) {
    uVar1 = *(uint *)(uVar3 + 0xc);
    puVar4[2] = uVar3;
    puVar4[3] = uVar1;
    *(undefined4 *)(uVar3 + 0xc) = 0;
  }
  else {
    uVar1 = *(uint *)(uVar3 + 8);
    puVar4[3] = uVar3;
    puVar4[2] = uVar1;
    *(undefined4 *)(uVar3 + 8) = 0;
  }
  param_1[7] = param_1[7] + 1;
  *param_1 = (uint)puVar4;
  param_1[5] = 0;
LAB_001b1eb5:
  UnlockSemaphoreInfo(param_1[9]);
  return 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00039d70
ADD EBX,0x26c207
SUB ESP,0x18
MOV ESI,dword ptr [ESP + 0x2c]
MOV EBP,dword ptr [ESP + 0x30]
PUSH dword ptr [ESI + 0x24]
CALL 0x00031050
MOV EDI,dword ptr [ESI]
ADD ESP,0x10
TEST EDI,EDI
JZ 0x001b1f40
MOV EDX,dword ptr [ESI + 0x14]
TEST EDX,EDX
JZ 0x001b1e40
MOV EAX,dword ptr [ESI + 0x4]
TEST EAX,EAX
JZ 0x001b1ed0
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [EDI]
CALL EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x001b1e49
MOV EDX,EBP
MOV EAX,ESI
CALL 0x001b1790
MOV EDI,dword ptr [ESI]
TEST EDI,EDI
JZ 0x001b1f40
MOV EAX,dword ptr [ESI + 0x4]
MOV EDX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x001b1ee0
SUB ESP,0x8
PUSH EBP
PUSH EDX
CALL EAX
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x001b1ef0
MOV EDI,dword ptr [ESI]
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x001b1e92
MOV EDX,dword ptr [EDI + 0x4]
TEST EDX,EDX
JZ 0x001b1e92
SUB ESP,0xc
PUSH EDX
CALL EAX
ADD ESP,0x10
MOV dword ptr [EDI + 0x4],EAX
MOV EDI,dword ptr [ESI]
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x001b1eac
MOV EDX,dword ptr [EDI]
TEST EDX,EDX
JZ 0x001b1eac
SUB ESP,0xc
PUSH EDX
CALL EAX
ADD ESP,0x10
MOV dword ptr [EDI],EAX
MOV EDI,dword ptr [ESI]
MOV EAX,dword ptr [ESP + 0x28]
MOV dword ptr [EDI],EBP
MOV dword ptr [EDI + 0x4],EAX
SUB ESP,0xc
PUSH dword ptr [ESI + 0x24]
CALL 0x00031da0
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EBP,EDX
JNZ 0x001b1e40
MOV EDX,dword ptr [EDI]
LEA ESI,[ESI]
CMP EBP,EDX
JC 0x001b1f90
JBE 0x001b1e76
MOV EDI,0xffffffff
NOP
SUB ESP,0xc
PUSH 0x10
CALL 0x00030900
ADD ESP,0x10
TEST EAX,EAX
JZ 0x001b1f78
MOV ECX,dword ptr [ESP + 0x28]
MOV dword ptr [EAX],EBP
MOV EDX,dword ptr [ESI]
MOV dword ptr [EAX + 0x4],ECX
TEST EDX,EDX
JZ 0x001b1f48
TEST EDI,EDI
JS 0x001b1f60
MOV ECX,dword ptr [EDX + 0x8]
MOV dword ptr [EAX + 0xc],EDX
MOV dword ptr [EAX + 0x8],ECX
MOV dword ptr [EDX + 0x8],0x0
ADD dword ptr [ESI + 0x1c],0x1
MOV dword ptr [ESI],EAX
MOV dword ptr [ESI + 0x14],0x0
JMP 0x001b1eb5
XOR EDI,EDI
JMP 0x001b1ef0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
JMP 0x001b1f24
MOV ECX,dword ptr [EDX + 0xc]
MOV dword ptr [EAX + 0x8],EDX
MOV dword ptr [EAX + 0xc],ECX
MOV dword ptr [EDX + 0xc],0x0
JMP 0x001b1f24
SUB ESP,0xc
PUSH dword ptr [ESI + 0x24]
CALL 0x00031da0
ADD ESP,0x10
XOR EAX,EAX
JMP 0x001b1ec8
MOV EDI,0x1
JMP 0x001b1ef0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 AddValueToSplayTree(uint *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  LockSemaphoreInfo(param_1[9]);\n  puVar4 = (uint *)*param_1;\n  if (puVar4 == (uint *)0x0) {\nLAB_001b1f40:\n    iVar2 = 0;\n  }\n  else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }\n  puVar4 = (uint *)AcquireMagickMemory(0x10);\n  if (puVar4 == (uint *)0x0) {\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }\n  *puVar4 = param_2;\n  uVar3 = *param_1;\n  puVar4[1] = param_3;\n  if (uVar3 == 0) {\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }\n  else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }\n  param_1[7] = param_1[7] + 1;\n  *param_1 = (uint)puVar4;\n  param_1[5] = 0;\nLAB_001b1eb5:\n  UnlockSemaphoreInfo(param_1[9]);\n  return 1;\n}\n\n" comment (function_definition "undefined4 AddValueToSplayTree(uint *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  LockSemaphoreInfo(param_1[9]);\n  puVar4 = (uint *)*param_1;\n  if (puVar4 == (uint *)0x0) {\nLAB_001b1f40:\n    iVar2 = 0;\n  }\n  else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }\n  puVar4 = (uint *)AcquireMagickMemory(0x10);\n  if (puVar4 == (uint *)0x0) {\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }\n  *puVar4 = param_2;\n  uVar3 = *param_1;\n  puVar4[1] = param_3;\n  if (uVar3 == 0) {\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }\n  else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }\n  param_1[7] = param_1[7] + 1;\n  *param_1 = (uint)puVar4;\n  param_1[5] = 0;\nLAB_001b1eb5:\n  UnlockSemaphoreInfo(param_1[9]);\n  return 1;\n}" type_identifier (function_declarator "AddValueToSplayTree(uint *param_1,uint param_2,uint param_3)" identifier (parameter_list "(uint *param_1,uint param_2,uint param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  LockSemaphoreInfo(param_1[9]);\n  puVar4 = (uint *)*param_1;\n  if (puVar4 == (uint *)0x0) {\nLAB_001b1f40:\n    iVar2 = 0;\n  }\n  else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }\n  puVar4 = (uint *)AcquireMagickMemory(0x10);\n  if (puVar4 == (uint *)0x0) {\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }\n  *puVar4 = param_2;\n  uVar3 = *param_1;\n  puVar4[1] = param_3;\n  if (uVar3 == 0) {\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }\n  else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }\n  param_1[7] = param_1[7] + 1;\n  *param_1 = (uint)puVar4;\n  param_1[5] = 0;\nLAB_001b1eb5:\n  UnlockSemaphoreInfo(param_1[9]);\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "LockSemaphoreInfo(param_1[9]);" (call_expression "LockSemaphoreInfo(param_1[9])" identifier (argument_list "(param_1[9])" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (puVar4 == (uint *)0x0) {\nLAB_001b1f40:\n    iVar2 = 0;\n  }\n  else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" if (parenthesized_expression "(puVar4 == (uint *)0x0)" ( (binary_expression "puVar4 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001b1f40:\n    iVar2 = 0;\n  }" { (labeled_statement "LAB_001b1f40:\n    iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) }) (else_clause "else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" else (if_statement "if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" if (parenthesized_expression "(param_1[5] == 0)" ( (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }" { (labeled_statement "LAB_001b1e40:\n    FUN_001b1790();" statement_identifier : (expression_statement "FUN_001b1790();" (call_expression "FUN_001b1790()" identifier (argument_list "()" ( ))) ;)) (labeled_statement "LAB_001b1e49:\n    puVar4 = (uint *)*param_1;" statement_identifier : (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;)) (if_statement "if (puVar4 == (uint *)0x0) goto LAB_001b1f40;" if (parenthesized_expression "(puVar4 == (uint *)0x0)" ( (binary_expression "puVar4 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001b1f40;" goto statement_identifier ;)) (expression_statement "uVar3 = *puVar4;" (assignment_expression "uVar3 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (if_statement "if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;" if (parenthesized_expression "((code *)param_1[1] == (code *)0x0)" ( (binary_expression "(code *)param_1[1] == (code *)0x0" (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001b1ee0;" goto statement_identifier ;)) (expression_statement "iVar2 = (*(code *)param_1[1])(uVar3,param_2);" (assignment_expression "iVar2 = (*(code *)param_1[1])(uVar3,param_2)" identifier = (call_expression "(*(code *)param_1[1])(uVar3,param_2)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(uVar3,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }" { (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (goto_statement "goto LAB_001b1e76;" goto statement_identifier ;) })) }) (else_clause "else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" else (compound_statement "{\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" { (if_statement "if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }" if (parenthesized_expression "((code *)param_1[1] != (code *)0x0)" ( (binary_expression "(code *)param_1[1] != (code *)0x0" (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }" { (expression_statement "iVar2 = (*(code *)param_1[1])(*puVar4,param_2);" (assignment_expression "iVar2 = (*(code *)param_1[1])(*puVar4,param_2)" identifier = (call_expression "(*(code *)param_1[1])(*puVar4,param_2)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(*puVar4,param_2)" ( (pointer_expression "*puVar4" * identifier) , identifier )))) ;) (if_statement "if (iVar2 != 0) goto LAB_001b1e40;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001b1e40;" goto statement_identifier ;)) (goto_statement "goto LAB_001b1e49;" goto statement_identifier ;) })) (if_statement "if (param_2 != param_1[5]) goto LAB_001b1e40;" if (parenthesized_expression "(param_2 != param_1[5])" ( (binary_expression "param_2 != param_1[5]" identifier != (subscript_expression "param_1[5]" identifier [ number_literal ])) )) (goto_statement "goto LAB_001b1e40;" goto statement_identifier ;)) (expression_statement "uVar3 = *puVar4;" (assignment_expression "uVar3 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (labeled_statement "LAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" statement_identifier : (if_statement "if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" if (parenthesized_expression "(param_2 < uVar3)" ( (binary_expression "param_2 < uVar3" identifier < identifier) )) (compound_statement "{\n      iVar2 = 1;\n    }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" else (compound_statement "{\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" { (if_statement "if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }" if (parenthesized_expression "(param_2 <= uVar3)" ( (binary_expression "param_2 <= uVar3" identifier <= identifier) )) (compound_statement "{\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }" { (labeled_statement "LAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" statement_identifier : (if_statement "if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" if (parenthesized_expression "(((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0))" ( (binary_expression "((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)" (parenthesized_expression "((code *)param_1[3] != (code *)0x0)" ( (binary_expression "(code *)param_1[3] != (code *)0x0" (cast_expression "(code *)param_1[3]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(puVar4[1] != 0)" ( (binary_expression "puVar4[1] != 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" { (expression_statement "uVar3 = (*(code *)param_1[3])(puVar4[1]);" (assignment_expression "uVar3 = (*(code *)param_1[3])(puVar4[1])" identifier = (call_expression "(*(code *)param_1[3])(puVar4[1])" (parenthesized_expression "(*(code *)param_1[3])" ( (pointer_expression "*(code *)param_1[3]" * (cast_expression "(code *)param_1[3]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (argument_list "(puVar4[1])" ( (subscript_expression "puVar4[1]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar4[1] = uVar3;" (assignment_expression "puVar4[1] = uVar3" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) (if_statement "if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" if (parenthesized_expression "(((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0))" ( (binary_expression "((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)" (parenthesized_expression "((code *)param_1[2] != (code *)0x0)" ( (binary_expression "(code *)param_1[2] != (code *)0x0" (cast_expression "(code *)param_1[2]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*puVar4 != 0)" ( (binary_expression "*puVar4 != 0" (pointer_expression "*puVar4" * identifier) != number_literal) ))) )) (compound_statement "{\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" { (expression_statement "uVar3 = (*(code *)param_1[2])(*puVar4);" (assignment_expression "uVar3 = (*(code *)param_1[2])(*puVar4)" identifier = (call_expression "(*(code *)param_1[2])(*puVar4)" (parenthesized_expression "(*(code *)param_1[2])" ( (pointer_expression "*(code *)param_1[2]" * (cast_expression "(code *)param_1[2]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) )) (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) )))) ;) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*puVar4 = param_2;" (assignment_expression "*puVar4 = param_2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = param_3;" (assignment_expression "puVar4[1] = param_3" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_001b1eb5;" goto statement_identifier ;) })) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) })))) }))))) (expression_statement "puVar4 = (uint *)AcquireMagickMemory(0x10);" (assignment_expression "puVar4 = (uint *)AcquireMagickMemory(0x10)" identifier = (cast_expression "(uint *)AcquireMagickMemory(0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (if_statement "if (puVar4 == (uint *)0x0) {\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }" if (parenthesized_expression "(puVar4 == (uint *)0x0)" ( (binary_expression "puVar4 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }" { (expression_statement "UnlockSemaphoreInfo(param_1[9]);" (call_expression "UnlockSemaphoreInfo(param_1[9])" identifier (argument_list "(param_1[9])" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar4 = param_2;" (assignment_expression "*puVar4 = param_2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar4[1] = param_3;" (assignment_expression "puVar4[1] = param_3" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar3 == 0) {\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }\n  else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }" { (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4[3] = 0;" (assignment_expression "puVar4[3] = 0" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" else (if_statement "if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }" { (expression_statement "uVar1 = *(uint *)(uVar3 + 0xc);" (assignment_expression "uVar1 = *(uint *)(uVar3 + 0xc)" identifier = (pointer_expression "*(uint *)(uVar3 + 0xc)" * (cast_expression "(uint *)(uVar3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 + 0xc)" ( (binary_expression "uVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar4[2] = uVar3;" (assignment_expression "puVar4[2] = uVar3" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = uVar1;" (assignment_expression "puVar4[3] = uVar1" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(uVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(uVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(uVar3 + 0xc)" * (cast_expression "(undefined4 *)(uVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 + 0xc)" ( (binary_expression "uVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" else (compound_statement "{\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" { (expression_statement "uVar1 = *(uint *)(uVar3 + 8);" (assignment_expression "uVar1 = *(uint *)(uVar3 + 8)" identifier = (pointer_expression "*(uint *)(uVar3 + 8)" * (cast_expression "(uint *)(uVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 + 8)" ( (binary_expression "uVar3 + 8" identifier + number_literal) ))))) ;) (expression_statement "puVar4[3] = uVar3;" (assignment_expression "puVar4[3] = uVar3" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[2] = uVar1;" (assignment_expression "puVar4[2] = uVar1" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(uVar3 + 8) = 0;" (assignment_expression "*(undefined4 *)(uVar3 + 8) = 0" (pointer_expression "*(undefined4 *)(uVar3 + 8)" * (cast_expression "(undefined4 *)(uVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 + 8)" ( (binary_expression "uVar3 + 8" identifier + number_literal) )))) = number_literal) ;) }))))) (expression_statement "param_1[7] = param_1[7] + 1;" (assignment_expression "param_1[7] = param_1[7] + 1" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (binary_expression "param_1[7] + 1" (subscript_expression "param_1[7]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "*param_1 = (uint)puVar4;" (assignment_expression "*param_1 = (uint)puVar4" (pointer_expression "*param_1" * identifier) = (cast_expression "(uint)puVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_001b1eb5:\n  UnlockSemaphoreInfo(param_1[9]);" statement_identifier : (expression_statement "UnlockSemaphoreInfo(param_1[9]);" (call_expression "UnlockSemaphoreInfo(param_1[9])" identifier (argument_list "(param_1[9])" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) ))) ;)) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nMagickBooleanType AddValueToSplayTree(SplayTreeInfo *splay_tree,void *key,void *value)\n\n{\n  NodeInfo_conflict1 *pNVar1;\n  _NodeInfo_conflict1 *p_Var2;\n  int iVar3;\n  void *pvVar4;\n  NodeInfo_conflict1 *pNVar5;\n  \n  LockSemaphoreInfo(splay_tree->semaphore);\n  pNVar5 = splay_tree->root;\n  if (pNVar5 == (NodeInfo_conflict1 *)0x0) {\nLAB_001b1f40:\n    iVar3 = 0;\n  }\n  else if (splay_tree->key == (void *)0x0) {\nLAB_001b1e40:\n    SplaySplayTree(splay_tree,key);\nLAB_001b1e49:\n    pNVar5 = splay_tree->root;\n    if (pNVar5 == (NodeInfo_conflict1 *)0x0) goto LAB_001b1f40;\n    pvVar4 = pNVar5->key;\n    if (splay_tree->compare == (_func_int_void_ptr_void_ptr *)0x0) goto LAB_001b1ee0;\n    iVar3 = (*splay_tree->compare)(pvVar4,key);\n    if (iVar3 == 0) {\n      pNVar5 = splay_tree->root;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if (splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0) {\n      iVar3 = (*splay_tree->compare)(pNVar5->key,key);\n      if (iVar3 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (key != splay_tree->key) goto LAB_001b1e40;\n    pvVar4 = pNVar5->key;\nLAB_001b1ee0:\n    if (key < pvVar4) {\n      iVar3 = 1;\n    }\n    else {\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }\n  }\n  pNVar5 = (NodeInfo_conflict1 *)AcquireMagickMemory(0x10);\n  if (pNVar5 == (NodeInfo_conflict1 *)0x0) {\n    UnlockSemaphoreInfo(splay_tree->semaphore);\n    return MagickFalse;\n  }\n  pNVar5->key = key;\n  pNVar1 = splay_tree->root;\n  pNVar5->value = value;\n  if (pNVar1 == (NodeInfo_conflict1 *)0x0) {\n    pNVar5->left = (_NodeInfo_conflict1 *)0x0;\n    pNVar5->right = (_NodeInfo_conflict1 *)0x0;\n  }\n  else if (iVar3 < 0) {\n    p_Var2 = pNVar1->right;\n    pNVar5->left = pNVar1;\n    pNVar5->right = p_Var2;\n    pNVar1->right = (_NodeInfo_conflict1 *)0x0;\n  }\n  else {\n    p_Var2 = pNVar1->left;\n    pNVar5->right = pNVar1;\n    pNVar5->left = p_Var2;\n    pNVar1->left = (_NodeInfo_conflict1 *)0x0;\n  }\n  splay_tree->nodes = splay_tree->nodes + 1;\n  splay_tree->root = pNVar5;\n  splay_tree->key = (void *)0x0;\nLAB_001b1eb5:\n  UnlockSemaphoreInfo(splay_tree->semaphore);\n  return MagickTrue;\n}\n\n" comment comment (function_definition "MagickBooleanType AddValueToSplayTree(SplayTreeInfo *splay_tree,void *key,void *value)\n\n{\n  NodeInfo_conflict1 *pNVar1;\n  _NodeInfo_conflict1 *p_Var2;\n  int iVar3;\n  void *pvVar4;\n  NodeInfo_conflict1 *pNVar5;\n  \n  LockSemaphoreInfo(splay_tree->semaphore);\n  pNVar5 = splay_tree->root;\n  if (pNVar5 == (NodeInfo_conflict1 *)0x0) {\nLAB_001b1f40:\n    iVar3 = 0;\n  }\n  else if (splay_tree->key == (void *)0x0) {\nLAB_001b1e40:\n    SplaySplayTree(splay_tree,key);\nLAB_001b1e49:\n    pNVar5 = splay_tree->root;\n    if (pNVar5 == (NodeInfo_conflict1 *)0x0) goto LAB_001b1f40;\n    pvVar4 = pNVar5->key;\n    if (splay_tree->compare == (_func_int_void_ptr_void_ptr *)0x0) goto LAB_001b1ee0;\n    iVar3 = (*splay_tree->compare)(pvVar4,key);\n    if (iVar3 == 0) {\n      pNVar5 = splay_tree->root;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if (splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0) {\n      iVar3 = (*splay_tree->compare)(pNVar5->key,key);\n      if (iVar3 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (key != splay_tree->key) goto LAB_001b1e40;\n    pvVar4 = pNVar5->key;\nLAB_001b1ee0:\n    if (key < pvVar4) {\n      iVar3 = 1;\n    }\n    else {\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }\n  }\n  pNVar5 = (NodeInfo_conflict1 *)AcquireMagickMemory(0x10);\n  if (pNVar5 == (NodeInfo_conflict1 *)0x0) {\n    UnlockSemaphoreInfo(splay_tree->semaphore);\n    return MagickFalse;\n  }\n  pNVar5->key = key;\n  pNVar1 = splay_tree->root;\n  pNVar5->value = value;\n  if (pNVar1 == (NodeInfo_conflict1 *)0x0) {\n    pNVar5->left = (_NodeInfo_conflict1 *)0x0;\n    pNVar5->right = (_NodeInfo_conflict1 *)0x0;\n  }\n  else if (iVar3 < 0) {\n    p_Var2 = pNVar1->right;\n    pNVar5->left = pNVar1;\n    pNVar5->right = p_Var2;\n    pNVar1->right = (_NodeInfo_conflict1 *)0x0;\n  }\n  else {\n    p_Var2 = pNVar1->left;\n    pNVar5->right = pNVar1;\n    pNVar5->left = p_Var2;\n    pNVar1->left = (_NodeInfo_conflict1 *)0x0;\n  }\n  splay_tree->nodes = splay_tree->nodes + 1;\n  splay_tree->root = pNVar5;\n  splay_tree->key = (void *)0x0;\nLAB_001b1eb5:\n  UnlockSemaphoreInfo(splay_tree->semaphore);\n  return MagickTrue;\n}" type_identifier (function_declarator "AddValueToSplayTree(SplayTreeInfo *splay_tree,void *key,void *value)" identifier (parameter_list "(SplayTreeInfo *splay_tree,void *key,void *value)" ( (parameter_declaration "SplayTreeInfo *splay_tree" type_identifier (pointer_declarator "*splay_tree" * identifier)) , (parameter_declaration "void *key" primitive_type (pointer_declarator "*key" * identifier)) , (parameter_declaration "void *value" primitive_type (pointer_declarator "*value" * identifier)) ))) (compound_statement "{\n  NodeInfo_conflict1 *pNVar1;\n  _NodeInfo_conflict1 *p_Var2;\n  int iVar3;\n  void *pvVar4;\n  NodeInfo_conflict1 *pNVar5;\n  \n  LockSemaphoreInfo(splay_tree->semaphore);\n  pNVar5 = splay_tree->root;\n  if (pNVar5 == (NodeInfo_conflict1 *)0x0) {\nLAB_001b1f40:\n    iVar3 = 0;\n  }\n  else if (splay_tree->key == (void *)0x0) {\nLAB_001b1e40:\n    SplaySplayTree(splay_tree,key);\nLAB_001b1e49:\n    pNVar5 = splay_tree->root;\n    if (pNVar5 == (NodeInfo_conflict1 *)0x0) goto LAB_001b1f40;\n    pvVar4 = pNVar5->key;\n    if (splay_tree->compare == (_func_int_void_ptr_void_ptr *)0x0) goto LAB_001b1ee0;\n    iVar3 = (*splay_tree->compare)(pvVar4,key);\n    if (iVar3 == 0) {\n      pNVar5 = splay_tree->root;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if (splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0) {\n      iVar3 = (*splay_tree->compare)(pNVar5->key,key);\n      if (iVar3 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (key != splay_tree->key) goto LAB_001b1e40;\n    pvVar4 = pNVar5->key;\nLAB_001b1ee0:\n    if (key < pvVar4) {\n      iVar3 = 1;\n    }\n    else {\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }\n  }\n  pNVar5 = (NodeInfo_conflict1 *)AcquireMagickMemory(0x10);\n  if (pNVar5 == (NodeInfo_conflict1 *)0x0) {\n    UnlockSemaphoreInfo(splay_tree->semaphore);\n    return MagickFalse;\n  }\n  pNVar5->key = key;\n  pNVar1 = splay_tree->root;\n  pNVar5->value = value;\n  if (pNVar1 == (NodeInfo_conflict1 *)0x0) {\n    pNVar5->left = (_NodeInfo_conflict1 *)0x0;\n    pNVar5->right = (_NodeInfo_conflict1 *)0x0;\n  }\n  else if (iVar3 < 0) {\n    p_Var2 = pNVar1->right;\n    pNVar5->left = pNVar1;\n    pNVar5->right = p_Var2;\n    pNVar1->right = (_NodeInfo_conflict1 *)0x0;\n  }\n  else {\n    p_Var2 = pNVar1->left;\n    pNVar5->right = pNVar1;\n    pNVar5->left = p_Var2;\n    pNVar1->left = (_NodeInfo_conflict1 *)0x0;\n  }\n  splay_tree->nodes = splay_tree->nodes + 1;\n  splay_tree->root = pNVar5;\n  splay_tree->key = (void *)0x0;\nLAB_001b1eb5:\n  UnlockSemaphoreInfo(splay_tree->semaphore);\n  return MagickTrue;\n}" { (declaration "NodeInfo_conflict1 *pNVar1;" type_identifier (pointer_declarator "*pNVar1" * identifier) ;) (declaration "_NodeInfo_conflict1 *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "NodeInfo_conflict1 *pNVar5;" type_identifier (pointer_declarator "*pNVar5" * identifier) ;) (expression_statement "LockSemaphoreInfo(splay_tree->semaphore);" (call_expression "LockSemaphoreInfo(splay_tree->semaphore)" identifier (argument_list "(splay_tree->semaphore)" ( (field_expression "splay_tree->semaphore" identifier -> field_identifier) ))) ;) (expression_statement "pNVar5 = splay_tree->root;" (assignment_expression "pNVar5 = splay_tree->root" identifier = (field_expression "splay_tree->root" identifier -> field_identifier)) ;) (if_statement "if (pNVar5 == (NodeInfo_conflict1 *)0x0) {\nLAB_001b1f40:\n    iVar3 = 0;\n  }\n  else if (splay_tree->key == (void *)0x0) {\nLAB_001b1e40:\n    SplaySplayTree(splay_tree,key);\nLAB_001b1e49:\n    pNVar5 = splay_tree->root;\n    if (pNVar5 == (NodeInfo_conflict1 *)0x0) goto LAB_001b1f40;\n    pvVar4 = pNVar5->key;\n    if (splay_tree->compare == (_func_int_void_ptr_void_ptr *)0x0) goto LAB_001b1ee0;\n    iVar3 = (*splay_tree->compare)(pvVar4,key);\n    if (iVar3 == 0) {\n      pNVar5 = splay_tree->root;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if (splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0) {\n      iVar3 = (*splay_tree->compare)(pNVar5->key,key);\n      if (iVar3 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (key != splay_tree->key) goto LAB_001b1e40;\n    pvVar4 = pNVar5->key;\nLAB_001b1ee0:\n    if (key < pvVar4) {\n      iVar3 = 1;\n    }\n    else {\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }\n  }" if (parenthesized_expression "(pNVar5 == (NodeInfo_conflict1 *)0x0)" ( (binary_expression "pNVar5 == (NodeInfo_conflict1 *)0x0" identifier == (cast_expression "(NodeInfo_conflict1 *)0x0" ( (type_descriptor "NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001b1f40:\n    iVar3 = 0;\n  }" { (labeled_statement "LAB_001b1f40:\n    iVar3 = 0;" statement_identifier : (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;)) }) (else_clause "else if (splay_tree->key == (void *)0x0) {\nLAB_001b1e40:\n    SplaySplayTree(splay_tree,key);\nLAB_001b1e49:\n    pNVar5 = splay_tree->root;\n    if (pNVar5 == (NodeInfo_conflict1 *)0x0) goto LAB_001b1f40;\n    pvVar4 = pNVar5->key;\n    if (splay_tree->compare == (_func_int_void_ptr_void_ptr *)0x0) goto LAB_001b1ee0;\n    iVar3 = (*splay_tree->compare)(pvVar4,key);\n    if (iVar3 == 0) {\n      pNVar5 = splay_tree->root;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if (splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0) {\n      iVar3 = (*splay_tree->compare)(pNVar5->key,key);\n      if (iVar3 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (key != splay_tree->key) goto LAB_001b1e40;\n    pvVar4 = pNVar5->key;\nLAB_001b1ee0:\n    if (key < pvVar4) {\n      iVar3 = 1;\n    }\n    else {\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }\n  }" else (if_statement "if (splay_tree->key == (void *)0x0) {\nLAB_001b1e40:\n    SplaySplayTree(splay_tree,key);\nLAB_001b1e49:\n    pNVar5 = splay_tree->root;\n    if (pNVar5 == (NodeInfo_conflict1 *)0x0) goto LAB_001b1f40;\n    pvVar4 = pNVar5->key;\n    if (splay_tree->compare == (_func_int_void_ptr_void_ptr *)0x0) goto LAB_001b1ee0;\n    iVar3 = (*splay_tree->compare)(pvVar4,key);\n    if (iVar3 == 0) {\n      pNVar5 = splay_tree->root;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if (splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0) {\n      iVar3 = (*splay_tree->compare)(pNVar5->key,key);\n      if (iVar3 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (key != splay_tree->key) goto LAB_001b1e40;\n    pvVar4 = pNVar5->key;\nLAB_001b1ee0:\n    if (key < pvVar4) {\n      iVar3 = 1;\n    }\n    else {\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }\n  }" if (parenthesized_expression "(splay_tree->key == (void *)0x0)" ( (binary_expression "splay_tree->key == (void *)0x0" (field_expression "splay_tree->key" identifier -> field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001b1e40:\n    SplaySplayTree(splay_tree,key);\nLAB_001b1e49:\n    pNVar5 = splay_tree->root;\n    if (pNVar5 == (NodeInfo_conflict1 *)0x0) goto LAB_001b1f40;\n    pvVar4 = pNVar5->key;\n    if (splay_tree->compare == (_func_int_void_ptr_void_ptr *)0x0) goto LAB_001b1ee0;\n    iVar3 = (*splay_tree->compare)(pvVar4,key);\n    if (iVar3 == 0) {\n      pNVar5 = splay_tree->root;\n      goto LAB_001b1e76;\n    }\n  }" { (labeled_statement "LAB_001b1e40:\n    SplaySplayTree(splay_tree,key);" statement_identifier : (expression_statement "SplaySplayTree(splay_tree,key);" (call_expression "SplaySplayTree(splay_tree,key)" identifier (argument_list "(splay_tree,key)" ( identifier , identifier ))) ;)) (labeled_statement "LAB_001b1e49:\n    pNVar5 = splay_tree->root;" statement_identifier : (expression_statement "pNVar5 = splay_tree->root;" (assignment_expression "pNVar5 = splay_tree->root" identifier = (field_expression "splay_tree->root" identifier -> field_identifier)) ;)) (if_statement "if (pNVar5 == (NodeInfo_conflict1 *)0x0) goto LAB_001b1f40;" if (parenthesized_expression "(pNVar5 == (NodeInfo_conflict1 *)0x0)" ( (binary_expression "pNVar5 == (NodeInfo_conflict1 *)0x0" identifier == (cast_expression "(NodeInfo_conflict1 *)0x0" ( (type_descriptor "NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001b1f40;" goto statement_identifier ;)) (expression_statement "pvVar4 = pNVar5->key;" (assignment_expression "pvVar4 = pNVar5->key" identifier = (field_expression "pNVar5->key" identifier -> field_identifier)) ;) (if_statement "if (splay_tree->compare == (_func_int_void_ptr_void_ptr *)0x0) goto LAB_001b1ee0;" if (parenthesized_expression "(splay_tree->compare == (_func_int_void_ptr_void_ptr *)0x0)" ( (binary_expression "splay_tree->compare == (_func_int_void_ptr_void_ptr *)0x0" (field_expression "splay_tree->compare" identifier -> field_identifier) == (cast_expression "(_func_int_void_ptr_void_ptr *)0x0" ( (type_descriptor "_func_int_void_ptr_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001b1ee0;" goto statement_identifier ;)) (expression_statement "iVar3 = (*splay_tree->compare)(pvVar4,key);" (assignment_expression "iVar3 = (*splay_tree->compare)(pvVar4,key)" identifier = (call_expression "(*splay_tree->compare)(pvVar4,key)" (parenthesized_expression "(*splay_tree->compare)" ( (pointer_expression "*splay_tree->compare" * (field_expression "splay_tree->compare" identifier -> field_identifier)) )) (argument_list "(pvVar4,key)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      pNVar5 = splay_tree->root;\n      goto LAB_001b1e76;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      pNVar5 = splay_tree->root;\n      goto LAB_001b1e76;\n    }" { (expression_statement "pNVar5 = splay_tree->root;" (assignment_expression "pNVar5 = splay_tree->root" identifier = (field_expression "splay_tree->root" identifier -> field_identifier)) ;) (goto_statement "goto LAB_001b1e76;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0) {\n      iVar3 = (*splay_tree->compare)(pNVar5->key,key);\n      if (iVar3 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (key != splay_tree->key) goto LAB_001b1e40;\n    pvVar4 = pNVar5->key;\nLAB_001b1ee0:\n    if (key < pvVar4) {\n      iVar3 = 1;\n    }\n    else {\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }\n  }" else (compound_statement "{\n    if (splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0) {\n      iVar3 = (*splay_tree->compare)(pNVar5->key,key);\n      if (iVar3 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (key != splay_tree->key) goto LAB_001b1e40;\n    pvVar4 = pNVar5->key;\nLAB_001b1ee0:\n    if (key < pvVar4) {\n      iVar3 = 1;\n    }\n    else {\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }\n  }" { (if_statement "if (splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0) {\n      iVar3 = (*splay_tree->compare)(pNVar5->key,key);\n      if (iVar3 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }" if (parenthesized_expression "(splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0)" ( (binary_expression "splay_tree->compare != (_func_int_void_ptr_void_ptr *)0x0" (field_expression "splay_tree->compare" identifier -> field_identifier) != (cast_expression "(_func_int_void_ptr_void_ptr *)0x0" ( (type_descriptor "_func_int_void_ptr_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = (*splay_tree->compare)(pNVar5->key,key);\n      if (iVar3 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }" { (expression_statement "iVar3 = (*splay_tree->compare)(pNVar5->key,key);" (assignment_expression "iVar3 = (*splay_tree->compare)(pNVar5->key,key)" identifier = (call_expression "(*splay_tree->compare)(pNVar5->key,key)" (parenthesized_expression "(*splay_tree->compare)" ( (pointer_expression "*splay_tree->compare" * (field_expression "splay_tree->compare" identifier -> field_identifier)) )) (argument_list "(pNVar5->key,key)" ( (field_expression "pNVar5->key" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_001b1e40;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001b1e40;" goto statement_identifier ;)) (goto_statement "goto LAB_001b1e49;" goto statement_identifier ;) })) (if_statement "if (key != splay_tree->key) goto LAB_001b1e40;" if (parenthesized_expression "(key != splay_tree->key)" ( (binary_expression "key != splay_tree->key" identifier != (field_expression "splay_tree->key" identifier -> field_identifier)) )) (goto_statement "goto LAB_001b1e40;" goto statement_identifier ;)) (expression_statement "pvVar4 = pNVar5->key;" (assignment_expression "pvVar4 = pNVar5->key" identifier = (field_expression "pNVar5->key" identifier -> field_identifier)) ;) (labeled_statement "LAB_001b1ee0:\n    if (key < pvVar4) {\n      iVar3 = 1;\n    }\n    else {\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }" statement_identifier : (if_statement "if (key < pvVar4) {\n      iVar3 = 1;\n    }\n    else {\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }" if (parenthesized_expression "(key < pvVar4)" ( (binary_expression "key < pvVar4" identifier < identifier) )) (compound_statement "{\n      iVar3 = 1;\n    }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }" else (compound_statement "{\n      if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }\n      iVar3 = -1;\n    }" { (if_statement "if (key <= pvVar4) {\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }" if (parenthesized_expression "(key <= pvVar4)" ( (binary_expression "key <= pvVar4" identifier <= identifier) )) (compound_statement "{\nLAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }\n        pNVar5->key = key;\n        pNVar5->value = value;\n        goto LAB_001b1eb5;\n      }" { (labeled_statement "LAB_001b1e76:\n        if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }" statement_identifier : (if_statement "if ((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }" if (parenthesized_expression "((splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0))" ( (binary_expression "(splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->value != (void *)0x0)" (parenthesized_expression "(splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0)" ( (binary_expression "splay_tree->relinquish_value != (_func_void_ptr_void_ptr *)0x0" (field_expression "splay_tree->relinquish_value" identifier -> field_identifier) != (cast_expression "(_func_void_ptr_void_ptr *)0x0" ( (type_descriptor "_func_void_ptr_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pNVar5->value != (void *)0x0)" ( (binary_expression "pNVar5->value != (void *)0x0" (field_expression "pNVar5->value" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);\n          pNVar5->value = pvVar4;\n          pNVar5 = splay_tree->root;\n        }" { (expression_statement "pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value);" (assignment_expression "pvVar4 = (*splay_tree->relinquish_value)(pNVar5->value)" identifier = (call_expression "(*splay_tree->relinquish_value)(pNVar5->value)" (parenthesized_expression "(*splay_tree->relinquish_value)" ( (pointer_expression "*splay_tree->relinquish_value" * (field_expression "splay_tree->relinquish_value" identifier -> field_identifier)) )) (argument_list "(pNVar5->value)" ( (field_expression "pNVar5->value" identifier -> field_identifier) )))) ;) (expression_statement "pNVar5->value = pvVar4;" (assignment_expression "pNVar5->value = pvVar4" (field_expression "pNVar5->value" identifier -> field_identifier) = identifier) ;) (expression_statement "pNVar5 = splay_tree->root;" (assignment_expression "pNVar5 = splay_tree->root" identifier = (field_expression "splay_tree->root" identifier -> field_identifier)) ;) }))) (if_statement "if ((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)) {\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }" if (parenthesized_expression "((splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0))" ( (binary_expression "(splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0) &&\n           (pNVar5->key != (void *)0x0)" (parenthesized_expression "(splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0)" ( (binary_expression "splay_tree->relinquish_key != (_func_void_ptr_void_ptr *)0x0" (field_expression "splay_tree->relinquish_key" identifier -> field_identifier) != (cast_expression "(_func_void_ptr_void_ptr *)0x0" ( (type_descriptor "_func_void_ptr_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pNVar5->key != (void *)0x0)" ( (binary_expression "pNVar5->key != (void *)0x0" (field_expression "pNVar5->key" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);\n          pNVar5->key = pvVar4;\n          pNVar5 = splay_tree->root;\n        }" { (expression_statement "pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key);" (assignment_expression "pvVar4 = (*splay_tree->relinquish_key)(pNVar5->key)" identifier = (call_expression "(*splay_tree->relinquish_key)(pNVar5->key)" (parenthesized_expression "(*splay_tree->relinquish_key)" ( (pointer_expression "*splay_tree->relinquish_key" * (field_expression "splay_tree->relinquish_key" identifier -> field_identifier)) )) (argument_list "(pNVar5->key)" ( (field_expression "pNVar5->key" identifier -> field_identifier) )))) ;) (expression_statement "pNVar5->key = pvVar4;" (assignment_expression "pNVar5->key = pvVar4" (field_expression "pNVar5->key" identifier -> field_identifier) = identifier) ;) (expression_statement "pNVar5 = splay_tree->root;" (assignment_expression "pNVar5 = splay_tree->root" identifier = (field_expression "splay_tree->root" identifier -> field_identifier)) ;) })) (expression_statement "pNVar5->key = key;" (assignment_expression "pNVar5->key = key" (field_expression "pNVar5->key" identifier -> field_identifier) = identifier) ;) (expression_statement "pNVar5->value = value;" (assignment_expression "pNVar5->value = value" (field_expression "pNVar5->value" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_001b1eb5;" goto statement_identifier ;) })) (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) })))) }))))) (expression_statement "pNVar5 = (NodeInfo_conflict1 *)AcquireMagickMemory(0x10);" (assignment_expression "pNVar5 = (NodeInfo_conflict1 *)AcquireMagickMemory(0x10)" identifier = (cast_expression "(NodeInfo_conflict1 *)AcquireMagickMemory(0x10)" ( (type_descriptor "NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (if_statement "if (pNVar5 == (NodeInfo_conflict1 *)0x0) {\n    UnlockSemaphoreInfo(splay_tree->semaphore);\n    return MagickFalse;\n  }" if (parenthesized_expression "(pNVar5 == (NodeInfo_conflict1 *)0x0)" ( (binary_expression "pNVar5 == (NodeInfo_conflict1 *)0x0" identifier == (cast_expression "(NodeInfo_conflict1 *)0x0" ( (type_descriptor "NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    UnlockSemaphoreInfo(splay_tree->semaphore);\n    return MagickFalse;\n  }" { (expression_statement "UnlockSemaphoreInfo(splay_tree->semaphore);" (call_expression "UnlockSemaphoreInfo(splay_tree->semaphore)" identifier (argument_list "(splay_tree->semaphore)" ( (field_expression "splay_tree->semaphore" identifier -> field_identifier) ))) ;) (return_statement "return MagickFalse;" return identifier ;) })) (expression_statement "pNVar5->key = key;" (assignment_expression "pNVar5->key = key" (field_expression "pNVar5->key" identifier -> field_identifier) = identifier) ;) (expression_statement "pNVar1 = splay_tree->root;" (assignment_expression "pNVar1 = splay_tree->root" identifier = (field_expression "splay_tree->root" identifier -> field_identifier)) ;) (expression_statement "pNVar5->value = value;" (assignment_expression "pNVar5->value = value" (field_expression "pNVar5->value" identifier -> field_identifier) = identifier) ;) (if_statement "if (pNVar1 == (NodeInfo_conflict1 *)0x0) {\n    pNVar5->left = (_NodeInfo_conflict1 *)0x0;\n    pNVar5->right = (_NodeInfo_conflict1 *)0x0;\n  }\n  else if (iVar3 < 0) {\n    p_Var2 = pNVar1->right;\n    pNVar5->left = pNVar1;\n    pNVar5->right = p_Var2;\n    pNVar1->right = (_NodeInfo_conflict1 *)0x0;\n  }\n  else {\n    p_Var2 = pNVar1->left;\n    pNVar5->right = pNVar1;\n    pNVar5->left = p_Var2;\n    pNVar1->left = (_NodeInfo_conflict1 *)0x0;\n  }" if (parenthesized_expression "(pNVar1 == (NodeInfo_conflict1 *)0x0)" ( (binary_expression "pNVar1 == (NodeInfo_conflict1 *)0x0" identifier == (cast_expression "(NodeInfo_conflict1 *)0x0" ( (type_descriptor "NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pNVar5->left = (_NodeInfo_conflict1 *)0x0;\n    pNVar5->right = (_NodeInfo_conflict1 *)0x0;\n  }" { (expression_statement "pNVar5->left = (_NodeInfo_conflict1 *)0x0;" (assignment_expression "pNVar5->left = (_NodeInfo_conflict1 *)0x0" (field_expression "pNVar5->left" identifier -> field_identifier) = (cast_expression "(_NodeInfo_conflict1 *)0x0" ( (type_descriptor "_NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pNVar5->right = (_NodeInfo_conflict1 *)0x0;" (assignment_expression "pNVar5->right = (_NodeInfo_conflict1 *)0x0" (field_expression "pNVar5->right" identifier -> field_identifier) = (cast_expression "(_NodeInfo_conflict1 *)0x0" ( (type_descriptor "_NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else if (iVar3 < 0) {\n    p_Var2 = pNVar1->right;\n    pNVar5->left = pNVar1;\n    pNVar5->right = p_Var2;\n    pNVar1->right = (_NodeInfo_conflict1 *)0x0;\n  }\n  else {\n    p_Var2 = pNVar1->left;\n    pNVar5->right = pNVar1;\n    pNVar5->left = p_Var2;\n    pNVar1->left = (_NodeInfo_conflict1 *)0x0;\n  }" else (if_statement "if (iVar3 < 0) {\n    p_Var2 = pNVar1->right;\n    pNVar5->left = pNVar1;\n    pNVar5->right = p_Var2;\n    pNVar1->right = (_NodeInfo_conflict1 *)0x0;\n  }\n  else {\n    p_Var2 = pNVar1->left;\n    pNVar5->right = pNVar1;\n    pNVar5->left = p_Var2;\n    pNVar1->left = (_NodeInfo_conflict1 *)0x0;\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    p_Var2 = pNVar1->right;\n    pNVar5->left = pNVar1;\n    pNVar5->right = p_Var2;\n    pNVar1->right = (_NodeInfo_conflict1 *)0x0;\n  }" { (expression_statement "p_Var2 = pNVar1->right;" (assignment_expression "p_Var2 = pNVar1->right" identifier = (field_expression "pNVar1->right" identifier -> field_identifier)) ;) (expression_statement "pNVar5->left = pNVar1;" (assignment_expression "pNVar5->left = pNVar1" (field_expression "pNVar5->left" identifier -> field_identifier) = identifier) ;) (expression_statement "pNVar5->right = p_Var2;" (assignment_expression "pNVar5->right = p_Var2" (field_expression "pNVar5->right" identifier -> field_identifier) = identifier) ;) (expression_statement "pNVar1->right = (_NodeInfo_conflict1 *)0x0;" (assignment_expression "pNVar1->right = (_NodeInfo_conflict1 *)0x0" (field_expression "pNVar1->right" identifier -> field_identifier) = (cast_expression "(_NodeInfo_conflict1 *)0x0" ( (type_descriptor "_NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    p_Var2 = pNVar1->left;\n    pNVar5->right = pNVar1;\n    pNVar5->left = p_Var2;\n    pNVar1->left = (_NodeInfo_conflict1 *)0x0;\n  }" else (compound_statement "{\n    p_Var2 = pNVar1->left;\n    pNVar5->right = pNVar1;\n    pNVar5->left = p_Var2;\n    pNVar1->left = (_NodeInfo_conflict1 *)0x0;\n  }" { (expression_statement "p_Var2 = pNVar1->left;" (assignment_expression "p_Var2 = pNVar1->left" identifier = (field_expression "pNVar1->left" identifier -> field_identifier)) ;) (expression_statement "pNVar5->right = pNVar1;" (assignment_expression "pNVar5->right = pNVar1" (field_expression "pNVar5->right" identifier -> field_identifier) = identifier) ;) (expression_statement "pNVar5->left = p_Var2;" (assignment_expression "pNVar5->left = p_Var2" (field_expression "pNVar5->left" identifier -> field_identifier) = identifier) ;) (expression_statement "pNVar1->left = (_NodeInfo_conflict1 *)0x0;" (assignment_expression "pNVar1->left = (_NodeInfo_conflict1 *)0x0" (field_expression "pNVar1->left" identifier -> field_identifier) = (cast_expression "(_NodeInfo_conflict1 *)0x0" ( (type_descriptor "_NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))))) (expression_statement "splay_tree->nodes = splay_tree->nodes + 1;" (assignment_expression "splay_tree->nodes = splay_tree->nodes + 1" (field_expression "splay_tree->nodes" identifier -> field_identifier) = (binary_expression "splay_tree->nodes + 1" (field_expression "splay_tree->nodes" identifier -> field_identifier) + number_literal)) ;) (expression_statement "splay_tree->root = pNVar5;" (assignment_expression "splay_tree->root = pNVar5" (field_expression "splay_tree->root" identifier -> field_identifier) = identifier) ;) (expression_statement "splay_tree->key = (void *)0x0;" (assignment_expression "splay_tree->key = (void *)0x0" (field_expression "splay_tree->key" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_001b1eb5:\n  UnlockSemaphoreInfo(splay_tree->semaphore);" statement_identifier : (expression_statement "UnlockSemaphoreInfo(splay_tree->semaphore);" (call_expression "UnlockSemaphoreInfo(splay_tree->semaphore)" identifier (argument_list "(splay_tree->semaphore)" ( (field_expression "splay_tree->semaphore" identifier -> field_identifier) ))) ;)) (return_statement "return MagickTrue;" return identifier ;) })))
(translation_unit "undefined4 AddValueToSplayTree(uint *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  LockSemaphoreInfo(param_1[9]);\n  puVar4 = (uint *)*param_1;\n  if (puVar4 == (uint *)0x0) {\nLAB_001b1f40:\n    iVar2 = 0;\n  }\n  else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }\n  puVar4 = (uint *)AcquireMagickMemory(0x10);\n  if (puVar4 == (uint *)0x0) {\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }\n  *puVar4 = param_2;\n  uVar3 = *param_1;\n  puVar4[1] = param_3;\n  if (uVar3 == 0) {\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }\n  else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }\n  param_1[7] = param_1[7] + 1;\n  *param_1 = (uint)puVar4;\n  param_1[5] = 0;\nLAB_001b1eb5:\n  UnlockSemaphoreInfo(param_1[9]);\n  return 1;\n}\n\n" (function_definition "undefined4 AddValueToSplayTree(uint *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  LockSemaphoreInfo(param_1[9]);\n  puVar4 = (uint *)*param_1;\n  if (puVar4 == (uint *)0x0) {\nLAB_001b1f40:\n    iVar2 = 0;\n  }\n  else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }\n  puVar4 = (uint *)AcquireMagickMemory(0x10);\n  if (puVar4 == (uint *)0x0) {\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }\n  *puVar4 = param_2;\n  uVar3 = *param_1;\n  puVar4[1] = param_3;\n  if (uVar3 == 0) {\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }\n  else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }\n  param_1[7] = param_1[7] + 1;\n  *param_1 = (uint)puVar4;\n  param_1[5] = 0;\nLAB_001b1eb5:\n  UnlockSemaphoreInfo(param_1[9]);\n  return 1;\n}" type_identifier (function_declarator "AddValueToSplayTree(uint *param_1,uint param_2,uint param_3)" identifier (parameter_list "(uint *param_1,uint param_2,uint param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  LockSemaphoreInfo(param_1[9]);\n  puVar4 = (uint *)*param_1;\n  if (puVar4 == (uint *)0x0) {\nLAB_001b1f40:\n    iVar2 = 0;\n  }\n  else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }\n  puVar4 = (uint *)AcquireMagickMemory(0x10);\n  if (puVar4 == (uint *)0x0) {\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }\n  *puVar4 = param_2;\n  uVar3 = *param_1;\n  puVar4[1] = param_3;\n  if (uVar3 == 0) {\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }\n  else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }\n  param_1[7] = param_1[7] + 1;\n  *param_1 = (uint)puVar4;\n  param_1[5] = 0;\nLAB_001b1eb5:\n  UnlockSemaphoreInfo(param_1[9]);\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "LockSemaphoreInfo(param_1[9]);" (call_expression "LockSemaphoreInfo(param_1[9])" identifier (argument_list "(param_1[9])" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (puVar4 == (uint *)0x0) {\nLAB_001b1f40:\n    iVar2 = 0;\n  }\n  else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" if (parenthesized_expression "(puVar4 == (uint *)0x0)" ( (binary_expression "puVar4 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001b1f40:\n    iVar2 = 0;\n  }" { (labeled_statement "LAB_001b1f40:\n    iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) }) (else_clause "else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" else (if_statement "if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" if (parenthesized_expression "(param_1[5] == 0)" ( (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }" { (labeled_statement "LAB_001b1e40:\n    FUN_001b1790();" statement_identifier : (expression_statement "FUN_001b1790();" (call_expression "FUN_001b1790()" identifier (argument_list "()" ( ))) ;)) (labeled_statement "LAB_001b1e49:\n    puVar4 = (uint *)*param_1;" statement_identifier : (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;)) (if_statement "if (puVar4 == (uint *)0x0) goto LAB_001b1f40;" if (parenthesized_expression "(puVar4 == (uint *)0x0)" ( (binary_expression "puVar4 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001b1f40;" goto statement_identifier ;)) (expression_statement "uVar3 = *puVar4;" (assignment_expression "uVar3 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (if_statement "if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;" if (parenthesized_expression "((code *)param_1[1] == (code *)0x0)" ( (binary_expression "(code *)param_1[1] == (code *)0x0" (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001b1ee0;" goto statement_identifier ;)) (expression_statement "iVar2 = (*(code *)param_1[1])(uVar3,param_2);" (assignment_expression "iVar2 = (*(code *)param_1[1])(uVar3,param_2)" identifier = (call_expression "(*(code *)param_1[1])(uVar3,param_2)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(uVar3,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }" { (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (goto_statement "goto LAB_001b1e76;" goto statement_identifier ;) })) }) (else_clause "else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" else (compound_statement "{\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" { (if_statement "if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }" if (parenthesized_expression "((code *)param_1[1] != (code *)0x0)" ( (binary_expression "(code *)param_1[1] != (code *)0x0" (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }" { (expression_statement "iVar2 = (*(code *)param_1[1])(*puVar4,param_2);" (assignment_expression "iVar2 = (*(code *)param_1[1])(*puVar4,param_2)" identifier = (call_expression "(*(code *)param_1[1])(*puVar4,param_2)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(*puVar4,param_2)" ( (pointer_expression "*puVar4" * identifier) , identifier )))) ;) (if_statement "if (iVar2 != 0) goto LAB_001b1e40;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001b1e40;" goto statement_identifier ;)) (goto_statement "goto LAB_001b1e49;" goto statement_identifier ;) })) (if_statement "if (param_2 != param_1[5]) goto LAB_001b1e40;" if (parenthesized_expression "(param_2 != param_1[5])" ( (binary_expression "param_2 != param_1[5]" identifier != (subscript_expression "param_1[5]" identifier [ number_literal ])) )) (goto_statement "goto LAB_001b1e40;" goto statement_identifier ;)) (expression_statement "uVar3 = *puVar4;" (assignment_expression "uVar3 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (labeled_statement "LAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" statement_identifier : (if_statement "if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" if (parenthesized_expression "(param_2 < uVar3)" ( (binary_expression "param_2 < uVar3" identifier < identifier) )) (compound_statement "{\n      iVar2 = 1;\n    }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" else (compound_statement "{\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" { (if_statement "if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }" if (parenthesized_expression "(param_2 <= uVar3)" ( (binary_expression "param_2 <= uVar3" identifier <= identifier) )) (compound_statement "{\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }" { (labeled_statement "LAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" statement_identifier : (if_statement "if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" if (parenthesized_expression "(((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0))" ( (binary_expression "((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)" (parenthesized_expression "((code *)param_1[3] != (code *)0x0)" ( (binary_expression "(code *)param_1[3] != (code *)0x0" (cast_expression "(code *)param_1[3]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(puVar4[1] != 0)" ( (binary_expression "puVar4[1] != 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" { (expression_statement "uVar3 = (*(code *)param_1[3])(puVar4[1]);" (assignment_expression "uVar3 = (*(code *)param_1[3])(puVar4[1])" identifier = (call_expression "(*(code *)param_1[3])(puVar4[1])" (parenthesized_expression "(*(code *)param_1[3])" ( (pointer_expression "*(code *)param_1[3]" * (cast_expression "(code *)param_1[3]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (argument_list "(puVar4[1])" ( (subscript_expression "puVar4[1]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar4[1] = uVar3;" (assignment_expression "puVar4[1] = uVar3" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) (if_statement "if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" if (parenthesized_expression "(((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0))" ( (binary_expression "((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)" (parenthesized_expression "((code *)param_1[2] != (code *)0x0)" ( (binary_expression "(code *)param_1[2] != (code *)0x0" (cast_expression "(code *)param_1[2]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*puVar4 != 0)" ( (binary_expression "*puVar4 != 0" (pointer_expression "*puVar4" * identifier) != number_literal) ))) )) (compound_statement "{\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" { (expression_statement "uVar3 = (*(code *)param_1[2])(*puVar4);" (assignment_expression "uVar3 = (*(code *)param_1[2])(*puVar4)" identifier = (call_expression "(*(code *)param_1[2])(*puVar4)" (parenthesized_expression "(*(code *)param_1[2])" ( (pointer_expression "*(code *)param_1[2]" * (cast_expression "(code *)param_1[2]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) )) (argument_list "(*puVar4)" ( (pointer_expression "*puVar4" * identifier) )))) ;) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*puVar4 = param_2;" (assignment_expression "*puVar4 = param_2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = param_3;" (assignment_expression "puVar4[1] = param_3" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_001b1eb5;" goto statement_identifier ;) })) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) })))) }))))) (expression_statement "puVar4 = (uint *)AcquireMagickMemory(0x10);" (assignment_expression "puVar4 = (uint *)AcquireMagickMemory(0x10)" identifier = (cast_expression "(uint *)AcquireMagickMemory(0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (if_statement "if (puVar4 == (uint *)0x0) {\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }" if (parenthesized_expression "(puVar4 == (uint *)0x0)" ( (binary_expression "puVar4 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }" { (expression_statement "UnlockSemaphoreInfo(param_1[9]);" (call_expression "UnlockSemaphoreInfo(param_1[9])" identifier (argument_list "(param_1[9])" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar4 = param_2;" (assignment_expression "*puVar4 = param_2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar4[1] = param_3;" (assignment_expression "puVar4[1] = param_3" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar3 == 0) {\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }\n  else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }" { (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4[3] = 0;" (assignment_expression "puVar4[3] = 0" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" else (if_statement "if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }" { (expression_statement "uVar1 = *(uint *)(uVar3 + 0xc);" (assignment_expression "uVar1 = *(uint *)(uVar3 + 0xc)" identifier = (pointer_expression "*(uint *)(uVar3 + 0xc)" * (cast_expression "(uint *)(uVar3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 + 0xc)" ( (binary_expression "uVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar4[2] = uVar3;" (assignment_expression "puVar4[2] = uVar3" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = uVar1;" (assignment_expression "puVar4[3] = uVar1" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(uVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(uVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(uVar3 + 0xc)" * (cast_expression "(undefined4 *)(uVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 + 0xc)" ( (binary_expression "uVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" else (compound_statement "{\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" { (expression_statement "uVar1 = *(uint *)(uVar3 + 8);" (assignment_expression "uVar1 = *(uint *)(uVar3 + 8)" identifier = (pointer_expression "*(uint *)(uVar3 + 8)" * (cast_expression "(uint *)(uVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 + 8)" ( (binary_expression "uVar3 + 8" identifier + number_literal) ))))) ;) (expression_statement "puVar4[3] = uVar3;" (assignment_expression "puVar4[3] = uVar3" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[2] = uVar1;" (assignment_expression "puVar4[2] = uVar1" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(uVar3 + 8) = 0;" (assignment_expression "*(undefined4 *)(uVar3 + 8) = 0" (pointer_expression "*(undefined4 *)(uVar3 + 8)" * (cast_expression "(undefined4 *)(uVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 + 8)" ( (binary_expression "uVar3 + 8" identifier + number_literal) )))) = number_literal) ;) }))))) (expression_statement "param_1[7] = param_1[7] + 1;" (assignment_expression "param_1[7] = param_1[7] + 1" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (binary_expression "param_1[7] + 1" (subscript_expression "param_1[7]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "*param_1 = (uint)puVar4;" (assignment_expression "*param_1 = (uint)puVar4" (pointer_expression "*param_1" * identifier) = (cast_expression "(uint)puVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_001b1eb5:\n  UnlockSemaphoreInfo(param_1[9]);" statement_identifier : (expression_statement "UnlockSemaphoreInfo(param_1[9]);" (call_expression "UnlockSemaphoreInfo(param_1[9])" identifier (argument_list "(param_1[9])" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) ))) ;)) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (subscript_expression IDENT [ LIT ])) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) })))) }))))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;)) (return_statement return LIT ;) })))
(function_definition "undefined4 AddValueToSplayTree(uint *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  LockSemaphoreInfo(param_1[9]);\n  puVar4 = (uint *)*param_1;\n  if (puVar4 == (uint *)0x0) {\nLAB_001b1f40:\n    iVar2 = 0;\n  }\n  else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }\n  puVar4 = (uint *)AcquireMagickMemory(0x10);\n  if (puVar4 == (uint *)0x0) {\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }\n  *puVar4 = param_2;\n  uVar3 = *param_1;\n  puVar4[1] = param_3;\n  if (uVar3 == 0) {\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }\n  else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }\n  param_1[7] = param_1[7] + 1;\n  *param_1 = (uint)puVar4;\n  param_1[5] = 0;\nLAB_001b1eb5:\n  UnlockSemaphoreInfo(param_1[9]);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "AddValueToSplayTree(uint *param_1,uint param_2,uint param_3)" (identifier "AddValueToSplayTree") (parameter_list "(uint *param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  \n  LockSemaphoreInfo(param_1[9]);\n  puVar4 = (uint *)*param_1;\n  if (puVar4 == (uint *)0x0) {\nLAB_001b1f40:\n    iVar2 = 0;\n  }\n  else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }\n  puVar4 = (uint *)AcquireMagickMemory(0x10);\n  if (puVar4 == (uint *)0x0) {\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }\n  *puVar4 = param_2;\n  uVar3 = *param_1;\n  puVar4[1] = param_3;\n  if (uVar3 == 0) {\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }\n  else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }\n  param_1[7] = param_1[7] + 1;\n  *param_1 = (uint)puVar4;\n  param_1[5] = 0;\nLAB_001b1eb5:\n  UnlockSemaphoreInfo(param_1[9]);\n  return 1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "LockSemaphoreInfo(param_1[9]);" (call_expression "LockSemaphoreInfo(param_1[9])" (identifier "LockSemaphoreInfo") (argument_list "(param_1[9])" (( "(") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) () ")"))) (; ";")) (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" (identifier "puVar4") (= "=") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (puVar4 == (uint *)0x0) {\nLAB_001b1f40:\n    iVar2 = 0;\n  }\n  else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" (if "if") (parenthesized_expression "(puVar4 == (uint *)0x0)" (( "(") (binary_expression "puVar4 == (uint *)0x0" (identifier "puVar4") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_001b1f40:\n    iVar2 = 0;\n  }" ({ "{") (labeled_statement "LAB_001b1f40:\n    iVar2 = 0;" (statement_identifier "LAB_001b1f40") (: ":") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" (else "else") (if_statement "if (param_1[5] == 0) {\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }\n  else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" (if "if") (parenthesized_expression "(param_1[5] == 0)" (( "(") (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_001b1e40:\n    FUN_001b1790();\nLAB_001b1e49:\n    puVar4 = (uint *)*param_1;\n    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;\n    uVar3 = *puVar4;\n    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;\n    iVar2 = (*(code *)param_1[1])(uVar3,param_2);\n    if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }\n  }" ({ "{") (labeled_statement "LAB_001b1e40:\n    FUN_001b1790();" (statement_identifier "LAB_001b1e40") (: ":") (expression_statement "FUN_001b1790();" (call_expression "FUN_001b1790()" (identifier "FUN_001b1790") (argument_list "()" (( "(") () ")"))) (; ";"))) (labeled_statement "LAB_001b1e49:\n    puVar4 = (uint *)*param_1;" (statement_identifier "LAB_001b1e49") (: ":") (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" (identifier "puVar4") (= "=") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";"))) (if_statement "if (puVar4 == (uint *)0x0) goto LAB_001b1f40;" (if "if") (parenthesized_expression "(puVar4 == (uint *)0x0)" (( "(") (binary_expression "puVar4 == (uint *)0x0" (identifier "puVar4") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_001b1f40;" (goto "goto") (statement_identifier "LAB_001b1f40") (; ";"))) (expression_statement "uVar3 = *puVar4;" (assignment_expression "uVar3 = *puVar4" (identifier "uVar3") (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (if_statement "if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;" (if "if") (parenthesized_expression "((code *)param_1[1] == (code *)0x0)" (( "(") (binary_expression "(code *)param_1[1] == (code *)0x0" (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_001b1ee0;" (goto "goto") (statement_identifier "LAB_001b1ee0") (; ";"))) (expression_statement "iVar2 = (*(code *)param_1[1])(uVar3,param_2);" (assignment_expression "iVar2 = (*(code *)param_1[1])(uVar3,param_2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)param_1[1])(uVar3,param_2)" (parenthesized_expression "(*(code *)param_1[1])" (( "(") (pointer_expression "*(code *)param_1[1]" (* "*") (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(uVar3,param_2)" (( "(") (identifier "uVar3") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar4 = (uint *)*param_1;\n      goto LAB_001b1e76;\n    }" ({ "{") (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" (identifier "puVar4") (= "=") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (goto_statement "goto LAB_001b1e76;" (goto "goto") (statement_identifier "LAB_001b1e76") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" (else "else") (compound_statement "{\n    if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }\n    if (param_2 != param_1[5]) goto LAB_001b1e40;\n    uVar3 = *puVar4;\nLAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }\n  }" ({ "{") (if_statement "if ((code *)param_1[1] != (code *)0x0) {\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }" (if "if") (parenthesized_expression "((code *)param_1[1] != (code *)0x0)" (( "(") (binary_expression "(code *)param_1[1] != (code *)0x0" (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);\n      if (iVar2 != 0) goto LAB_001b1e40;\n      goto LAB_001b1e49;\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)param_1[1])(*puVar4,param_2);" (assignment_expression "iVar2 = (*(code *)param_1[1])(*puVar4,param_2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)param_1[1])(*puVar4,param_2)" (parenthesized_expression "(*(code *)param_1[1])" (( "(") (pointer_expression "*(code *)param_1[1]" (* "*") (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(*puVar4,param_2)" (( "(") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_001b1e40;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001b1e40;" (goto "goto") (statement_identifier "LAB_001b1e40") (; ";"))) (goto_statement "goto LAB_001b1e49;" (goto "goto") (statement_identifier "LAB_001b1e49") (; ";")) (} "}"))) (if_statement "if (param_2 != param_1[5]) goto LAB_001b1e40;" (if "if") (parenthesized_expression "(param_2 != param_1[5])" (( "(") (binary_expression "param_2 != param_1[5]" (identifier "param_2") (!= "!=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) () ")")) (goto_statement "goto LAB_001b1e40;" (goto "goto") (statement_identifier "LAB_001b1e40") (; ";"))) (expression_statement "uVar3 = *puVar4;" (assignment_expression "uVar3 = *puVar4" (identifier "uVar3") (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (labeled_statement "LAB_001b1ee0:\n    if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" (statement_identifier "LAB_001b1ee0") (: ":") (if_statement "if (param_2 < uVar3) {\n      iVar2 = 1;\n    }\n    else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" (if "if") (parenthesized_expression "(param_2 < uVar3)" (( "(") (binary_expression "param_2 < uVar3" (identifier "param_2") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n      iVar2 = 1;\n    }" ({ "{") (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" (identifier "iVar2") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" (else "else") (compound_statement "{\n      if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }\n      iVar2 = -1;\n    }" ({ "{") (if_statement "if (param_2 <= uVar3) {\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }" (if "if") (parenthesized_expression "(param_2 <= uVar3)" (( "(") (binary_expression "param_2 <= uVar3" (identifier "param_2") (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\nLAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }\n        *puVar4 = param_2;\n        puVar4[1] = param_3;\n        goto LAB_001b1eb5;\n      }" ({ "{") (labeled_statement "LAB_001b1e76:\n        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" (statement_identifier "LAB_001b1e76") (: ":") (if_statement "if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" (if "if") (parenthesized_expression "(((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0))" (( "(") (binary_expression "((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)" (parenthesized_expression "((code *)param_1[3] != (code *)0x0)" (( "(") (binary_expression "(code *)param_1[3] != (code *)0x0" (cast_expression "(code *)param_1[3]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(puVar4[1] != 0)" (( "(") (binary_expression "puVar4[1] != 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          uVar3 = (*(code *)param_1[3])(puVar4[1]);\n          puVar4[1] = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" ({ "{") (expression_statement "uVar3 = (*(code *)param_1[3])(puVar4[1]);" (assignment_expression "uVar3 = (*(code *)param_1[3])(puVar4[1])" (identifier "uVar3") (= "=") (call_expression "(*(code *)param_1[3])(puVar4[1])" (parenthesized_expression "(*(code *)param_1[3])" (( "(") (pointer_expression "*(code *)param_1[3]" (* "*") (cast_expression "(code *)param_1[3]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) () ")")) (argument_list "(puVar4[1])" (( "(") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "puVar4[1] = uVar3;" (assignment_expression "puVar4[1] = uVar3" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" (identifier "puVar4") (= "=") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")))) (if_statement "if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" (if "if") (parenthesized_expression "(((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0))" (( "(") (binary_expression "((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)" (parenthesized_expression "((code *)param_1[2] != (code *)0x0)" (( "(") (binary_expression "(code *)param_1[2] != (code *)0x0" (cast_expression "(code *)param_1[2]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*puVar4 != 0)" (( "(") (binary_expression "*puVar4 != 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          uVar3 = (*(code *)param_1[2])(*puVar4);\n          *puVar4 = uVar3;\n          puVar4 = (uint *)*param_1;\n        }" ({ "{") (expression_statement "uVar3 = (*(code *)param_1[2])(*puVar4);" (assignment_expression "uVar3 = (*(code *)param_1[2])(*puVar4)" (identifier "uVar3") (= "=") (call_expression "(*(code *)param_1[2])(*puVar4)" (parenthesized_expression "(*(code *)param_1[2])" (( "(") (pointer_expression "*(code *)param_1[2]" (* "*") (cast_expression "(code *)param_1[2]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) () ")")) (argument_list "(*puVar4)" (( "(") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) () ")")))) (; ";")) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar4 = (uint *)*param_1;" (assignment_expression "puVar4 = (uint *)*param_1" (identifier "puVar4") (= "=") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}"))) (expression_statement "*puVar4 = param_2;" (assignment_expression "*puVar4 = param_2" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar4[1] = param_3;" (assignment_expression "puVar4[1] = param_3" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (goto_statement "goto LAB_001b1eb5;" (goto "goto") (statement_identifier "LAB_001b1eb5") (; ";")) (} "}"))) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";")) (} "}"))))) (} "}")))))) (expression_statement "puVar4 = (uint *)AcquireMagickMemory(0x10);" (assignment_expression "puVar4 = (uint *)AcquireMagickMemory(0x10)" (identifier "puVar4") (= "=") (cast_expression "(uint *)AcquireMagickMemory(0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "AcquireMagickMemory(0x10)" (identifier "AcquireMagickMemory") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (if_statement "if (puVar4 == (uint *)0x0) {\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }" (if "if") (parenthesized_expression "(puVar4 == (uint *)0x0)" (( "(") (binary_expression "puVar4 == (uint *)0x0" (identifier "puVar4") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    UnlockSemaphoreInfo(param_1[9]);\n    return 0;\n  }" ({ "{") (expression_statement "UnlockSemaphoreInfo(param_1[9]);" (call_expression "UnlockSemaphoreInfo(param_1[9])" (identifier "UnlockSemaphoreInfo") (argument_list "(param_1[9])" (( "(") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*puVar4 = param_2;" (assignment_expression "*puVar4 = param_2" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "puVar4[1] = param_3;" (assignment_expression "puVar4[1] = param_3" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (uVar3 == 0) {\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }\n  else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar4[2] = 0;\n    puVar4[3] = 0;\n  }" ({ "{") (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4[3] = 0;" (assignment_expression "puVar4[3] = 0" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" (else "else") (if_statement "if (iVar2 < 0) {\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }\n  else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = *(uint *)(uVar3 + 0xc);\n    puVar4[2] = uVar3;\n    puVar4[3] = uVar1;\n    *(undefined4 *)(uVar3 + 0xc) = 0;\n  }" ({ "{") (expression_statement "uVar1 = *(uint *)(uVar3 + 0xc);" (assignment_expression "uVar1 = *(uint *)(uVar3 + 0xc)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(uVar3 + 0xc)" (* "*") (cast_expression "(uint *)(uVar3 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar3 + 0xc)" (( "(") (binary_expression "uVar3 + 0xc" (identifier "uVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "puVar4[2] = uVar3;" (assignment_expression "puVar4[2] = uVar3" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar4[3] = uVar1;" (assignment_expression "puVar4[3] = uVar1" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 *)(uVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(uVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(uVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(uVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar3 + 0xc)" (( "(") (binary_expression "uVar3 + 0xc" (identifier "uVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" (else "else") (compound_statement "{\n    uVar1 = *(uint *)(uVar3 + 8);\n    puVar4[3] = uVar3;\n    puVar4[2] = uVar1;\n    *(undefined4 *)(uVar3 + 8) = 0;\n  }" ({ "{") (expression_statement "uVar1 = *(uint *)(uVar3 + 8);" (assignment_expression "uVar1 = *(uint *)(uVar3 + 8)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(uVar3 + 8)" (* "*") (cast_expression "(uint *)(uVar3 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar3 + 8)" (( "(") (binary_expression "uVar3 + 8" (identifier "uVar3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "puVar4[3] = uVar3;" (assignment_expression "puVar4[3] = uVar3" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar4[2] = uVar1;" (assignment_expression "puVar4[2] = uVar1" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 *)(uVar3 + 8) = 0;" (assignment_expression "*(undefined4 *)(uVar3 + 8) = 0" (pointer_expression "*(undefined4 *)(uVar3 + 8)" (* "*") (cast_expression "(undefined4 *)(uVar3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar3 + 8)" (( "(") (binary_expression "uVar3 + 8" (identifier "uVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))))) (expression_statement "param_1[7] = param_1[7] + 1;" (assignment_expression "param_1[7] = param_1[7] + 1" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (binary_expression "param_1[7] + 1" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = (uint)puVar4;" (assignment_expression "*param_1 = (uint)puVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(uint)puVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar4"))) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_001b1eb5:\n  UnlockSemaphoreInfo(param_1[9]);" (statement_identifier "LAB_001b1eb5") (: ":") (expression_statement "UnlockSemaphoreInfo(param_1[9]);" (call_expression "UnlockSemaphoreInfo(param_1[9])" (identifier "UnlockSemaphoreInfo") (argument_list "(param_1[9])" (( "(") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) () ")"))) (; ";"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 function_1(type_2 *splay_tree,void *var_5,void *value)

{
  type_3 *var_9;
  type_4 *p_Var2;
  int var_4;
  void *var_6;
  type_3 *var_2;
  
  var_1(splay_tree->semaphore);
  var_2 = splay_tree->root;
  if (var_2 == (type_3 *)0x0) {
LAB_001b1f40:
    var_4 = 0;
  }
  else if (splay_tree->var_5 == (void *)0x0) {
LAB_001b1e40:
    var_3(splay_tree,var_5);
LAB_001b1e49:
    var_2 = splay_tree->root;
    if (var_2 == (type_3 *)0x0) goto LAB_001b1f40;
    var_6 = var_2->var_5;
    if (splay_tree->compare == (type_5 *)0x0) goto LAB_001b1ee0;
    var_4 = (*splay_tree->compare)(var_6,var_5);
    if (var_4 == 0) {
      var_2 = splay_tree->root;
      goto LAB_001b1e76;
    }
  }
  else {
    if (splay_tree->compare != (type_5 *)0x0) {
      var_4 = (*splay_tree->compare)(var_2->var_5,var_5);
      if (var_4 != 0) goto LAB_001b1e40;
      goto LAB_001b1e49;
    }
    if (var_5 != splay_tree->var_5) goto LAB_001b1e40;
    var_6 = var_2->var_5;
LAB_001b1ee0:
    if (var_5 < var_6) {
      var_4 = 1;
    }
    else {
      if (var_5 <= var_6) {
LAB_001b1e76:
        if ((splay_tree->relinquish_value != (type_6 *)0x0) &&
           (var_2->value != (void *)0x0)) {
          var_6 = (*splay_tree->relinquish_value)(var_2->value);
          var_2->value = var_6;
          var_2 = splay_tree->root;
        }
        if ((splay_tree->relinquish_key != (type_6 *)0x0) &&
           (var_2->var_5 != (void *)0x0)) {
          var_6 = (*splay_tree->relinquish_key)(var_2->var_5);
          var_2->var_5 = var_6;
          var_2 = splay_tree->root;
        }
        var_2->var_5 = var_5;
        var_2->value = value;
        goto LAB_001b1eb5;
      }
      var_4 = -1;
    }
  }
  var_2 = (type_3 *)var_7(0x10);
  if (var_2 == (type_3 *)0x0) {
    var_8(splay_tree->semaphore);
    return MagickFalse;
  }
  var_2->var_5 = var_5;
  var_9 = splay_tree->root;
  var_2->value = value;
  if (var_9 == (type_3 *)0x0) {
    var_2->left = (type_4 *)0x0;
    var_2->right = (type_4 *)0x0;
  }
  else if (var_4 < 0) {
    p_Var2 = var_9->right;
    var_2->left = var_9;
    var_2->right = p_Var2;
    var_9->right = (type_4 *)0x0;
  }
  else {
    p_Var2 = var_9->left;
    var_2->right = var_9;
    var_2->left = p_Var2;
    var_9->left = (type_4 *)0x0;
  }
  splay_tree->nodes = splay_tree->nodes + 1;
  splay_tree->root = var_2;
  splay_tree->var_5 = (void *)0x0;
LAB_001b1eb5:
  var_8(splay_tree->semaphore);
  return MagickTrue;
}


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

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

undefined4 MASKED(uint *param_1,uint param_2,uint param_3)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  uint *puVar4;
  
  LockSemaphoreInfo(param_1[9]);
  puVar4 = (uint *)*param_1;
  if (puVar4 == (uint *)0x0) {
LAB_001b1f40:
    iVar2 = 0;
  }
  else if (param_1[5] == 0) {
LAB_001b1e40:
    FUN_001b1790();
LAB_001b1e49:
    puVar4 = (uint *)*param_1;
    if (puVar4 == (uint *)0x0) goto LAB_001b1f40;
    uVar3 = *puVar4;
    if ((code *)param_1[1] == (code *)0x0) goto LAB_001b1ee0;
    iVar2 = (*(code *)param_1[1])(uVar3,param_2);
    if (iVar2 == 0) {
      puVar4 = (uint *)*param_1;
      goto LAB_001b1e76;
    }
  }
  else {
    if ((code *)param_1[1] != (code *)0x0) {
      iVar2 = (*(code *)param_1[1])(*puVar4,param_2);
      if (iVar2 != 0) goto LAB_001b1e40;
      goto LAB_001b1e49;
    }
    if (param_2 != param_1[5]) goto LAB_001b1e40;
    uVar3 = *puVar4;
LAB_001b1ee0:
    if (param_2 < uVar3) {
      iVar2 = 1;
    }
    else {
      if (param_2 <= uVar3) {
LAB_001b1e76:
        if (((code *)param_1[3] != (code *)0x0) && (puVar4[1] != 0)) {
          uVar3 = (*(code *)param_1[3])(puVar4[1]);
          puVar4[1] = uVar3;
          puVar4 = (uint *)*param_1;
        }
        if (((code *)param_1[2] != (code *)0x0) && (*puVar4 != 0)) {
          uVar3 = (*(code *)param_1[2])(*puVar4);
          *puVar4 = uVar3;
          puVar4 = (uint *)*param_1;
        }
        *puVar4 = param_2;
        puVar4[1] = param_3;
        goto LAB_001b1eb5;
      }
      iVar2 = -1;
    }
  }
  puVar4 = (uint *)AcquireMagickMemory(0x10);
  if (puVar4 == (uint *)0x0) {
    UnlockSemaphoreInfo(param_1[9]);
    return 0;
  }
  *puVar4 = param_2;
  uVar3 = *param_1;
  puVar4[1] = param_3;
  if (uVar3 == 0) {
    puVar4[2] = 0;
    puVar4[3] = 0;
  }
  else if (iVar2 < 0) {
    uVar1 = *(uint *)(uVar3 + 0xc);
    puVar4[2] = uVar3;
    puVar4[3] = uVar1;
    *(undefined4 *)(uVar3 + 0xc) = 0;
  }
  else {
    uVar1 = *(uint *)(uVar3 + 8);
    puVar4[3] = uVar3;
    puVar4[2] = uVar1;
    *(undefined4 *)(uVar3 + 8) = 0;
  }
  param_1[7] = param_1[7] + 1;
  *param_1 = (uint)puVar4;
  param_1[5] = 0;
LAB_001b1eb5:
  UnlockSemaphoreInfo(param_1[9]);
  return 1;
}

