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

MagickBooleanType InsertValueInLinkedList(LinkedListInfo *list_info,size_t index,void *value)

{
  size_t sVar1;
  _ElementInfo *p_Var2;
  ElementInfo *pEVar3;
  size_t sVar4;
  ElementInfo *pEVar5;
  _ElementInfo *p_Var6;
  
  if (list_info == (LinkedListInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,
                  "InsertValueInLinkedList");
  }
  if (list_info->signature == 0xabacadab) {
    if (((value != (void *)0x0) && (index <= list_info->elements)) &&
       (list_info->elements != list_info->capacity)) {
      pEVar3 = (ElementInfo *)AcquireMagickMemory(8);
      if (pEVar3 != (ElementInfo *)0x0) {
        pEVar3->value = value;
        pEVar3->next = (_ElementInfo *)0x0;
        LockSemaphoreInfo(list_info->semaphore);
        sVar1 = list_info->elements;
        if (sVar1 == 0) {
          if (list_info->next == (ElementInfo *)0x0) {
            list_info->next = pEVar3;
          }
          list_info->head = pEVar3;
          list_info->tail = pEVar3;
        }
        else {
          p_Var2 = list_info->next;
          if (index == 0) {
            if (list_info->head == p_Var2) {
              list_info->next = pEVar3;
            }
            pEVar3->next = list_info->head;
            list_info->head = pEVar3;
          }
          else if (sVar1 == index) {
            if (p_Var2 == (_ElementInfo *)0x0) {
              list_info->next = pEVar3;
            }
            list_info->tail->next = pEVar3;
            list_info->tail = pEVar3;
          }
          else {
            pEVar5 = list_info->head;
            p_Var6 = pEVar5->next;
            pEVar3->next = p_Var6;
            if (1 < (int)index) {
              sVar4 = 1;
              do {
                pEVar5 = pEVar5->next;
                sVar4 = sVar4 + 1;
                p_Var6 = pEVar5->next;
                pEVar3->next = p_Var6;
              } while (sVar4 != index);
            }
            pEVar5->next = p_Var6;
            if (p_Var6->next == p_Var2) {
              list_info->next = p_Var6;
            }
          }
        }
        list_info->elements = sVar1 + 1;
        UnlockSemaphoreInfo(list_info->semaphore);
        return MagickTrue;
      }
    }
    return MagickFalse;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,
                "InsertValueInLinkedList");
}



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

undefined4 InsertValueInLinkedList(uint *param_1,uint param_2,int param_3)

{
  uint uVar1;
  uint uVar2;
  int *piVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  
  if (param_1 == (uint *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,
                  "InsertValueInLinkedList");
  }
  if (param_1[6] == 0xabacadab) {
    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {
      piVar3 = (int *)AcquireMagickMemory(8);
      if (piVar3 != (int *)0x0) {
        *piVar3 = param_3;
        piVar3[1] = 0;
        LockSemaphoreInfo(param_1[5]);
        uVar1 = param_1[1];
        if (uVar1 == 0) {
          if (param_1[4] == 0) {
            param_1[4] = (uint)piVar3;
          }
          param_1[2] = (uint)piVar3;
          param_1[3] = (uint)piVar3;
        }
        else {
          uVar2 = param_1[4];
          if (param_2 == 0) {
            if (param_1[2] == uVar2) {
              param_1[4] = (uint)piVar3;
            }
            piVar3[1] = param_1[2];
            param_1[2] = (uint)piVar3;
          }
          else if (uVar1 == param_2) {
            if (uVar2 == 0) {
              param_1[4] = (uint)piVar3;
            }
            *(int **)(param_1[3] + 4) = piVar3;
            param_1[3] = (uint)piVar3;
          }
          else {
            uVar5 = param_1[2];
            uVar6 = *(uint *)(uVar5 + 4);
            piVar3[1] = uVar6;
            if (1 < (int)param_2) {
              uVar4 = 1;
              do {
                uVar5 = *(uint *)(uVar5 + 4);
                uVar4 = uVar4 + 1;
                uVar6 = *(uint *)(uVar5 + 4);
                piVar3[1] = uVar6;
              } while (uVar4 != param_2);
            }
            *(uint *)(uVar5 + 4) = uVar6;
            if (*(uint *)(uVar6 + 4) == uVar2) {
              param_1[4] = uVar6;
            }
          }
        }
        param_1[1] = uVar1 + 1;
        UnlockSemaphoreInfo(param_1[5]);
        return 1;
      }
    }
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,
                "InsertValueInLinkedList");
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00039d70
ADD EBX,0x31ccb7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x38]
TEST ESI,ESI
JZ 0x001014bf
CMP dword ptr [ESI + 0x18],0xabacadab
JNZ 0x001014a0
TEST EDI,EDI
JZ 0x001013e8
MOV EAX,dword ptr [ESI + 0x4]
CMP EAX,dword ptr [ESP + 0x34]
JC 0x001013e8
CMP EAX,dword ptr [ESI]
JZ 0x001013e8
SUB ESP,0xc
PUSH 0x8
CALL 0x00030900
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x001013e8
MOV dword ptr [EAX],EDI
SUB ESP,0xc
MOV dword ptr [EAX + 0x4],0x0
PUSH dword ptr [ESI + 0x14]
CALL 0x00031050
MOV EAX,dword ptr [ESI + 0x4]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001013f8
MOV EDX,dword ptr [ESI + 0x10]
TEST EDX,EDX
JZ 0x00101470
MOV dword ptr [ESI + 0x8],EBP
MOV dword ptr [ESI + 0xc],EBP
ADD EAX,0x1
SUB ESP,0xc
MOV dword ptr [ESI + 0x4],EAX
PUSH dword ptr [ESI + 0x14]
CALL 0x00031da0
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [ESI + 0x10]
MOV EDI,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],ECX
TEST EDI,EDI
JZ 0x00101458
CMP EAX,dword ptr [ESP + 0x34]
JZ 0x00101480
MOV EDX,dword ptr [ESI + 0x8]
CMP dword ptr [ESP + 0x34],0x1
MOV EDI,dword ptr [EDX + 0x4]
MOV dword ptr [EBP + 0x4],EDI
JLE 0x0010143a
MOV ECX,0x1
LEA ESI,[ESI]
MOV EDX,dword ptr [EDX + 0x4]
ADD ECX,0x1
MOV EDI,dword ptr [EDX + 0x4]
MOV dword ptr [EBP + 0x4],EDI
CMP ECX,dword ptr [ESP + 0x34]
JNZ 0x00101428
MOV dword ptr [EDX + 0x4],EDI
MOV EDX,dword ptr [ESP + 0xc]
CMP dword ptr [EDI + 0x4],EDX
JNZ 0x001013c2
MOV dword ptr [ESI + 0x10],EDI
JMP 0x001013c2
MOV EDX,dword ptr [ESI + 0x8]
CMP EDX,ECX
JZ 0x00101496
MOV dword ptr [EBP + 0x4],EDX
MOV dword ptr [ESI + 0x8],EBP
JMP 0x001013c2
MOV dword ptr [ESI + 0x10],EBP
JMP 0x001013bc
MOV EDX,dword ptr [ESP + 0xc]
TEST EDX,EDX
JZ 0x0010149b
MOV EDX,dword ptr [ESI + 0xc]
MOV dword ptr [EDX + 0x4],EBP
MOV dword ptr [ESI + 0xc],EBP
JMP 0x001013c2
MOV dword ptr [ESI + 0x10],EBP
JMP 0x0010145f
MOV dword ptr [ESI + 0x10],EBP
JMP 0x00101488
LEA EAX,[EBX + 0xffedac4c]
PUSH EAX
LEA EAX,[EBX + 0xffedab03]
PUSH 0x1c9
PUSH EAX
LEA EAX,[EBX + 0xffedab44]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffedac4c]
PUSH EAX
LEA EAX,[EBX + 0xffedab03]
PUSH 0x1c8
PUSH EAX
LEA EAX,[EBX + 0xffedab1c]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 InsertValueInLinkedList(uint *param_1,uint param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_1 == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }\n  if (param_1[6] == 0xabacadab) {\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");\n}\n\n" comment (function_definition "undefined4 InsertValueInLinkedList(uint *param_1,uint param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_1 == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }\n  if (param_1[6] == 0xabacadab) {\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");\n}" type_identifier (function_declarator "InsertValueInLinkedList(uint *param_1,uint param_2,int param_3)" identifier (parameter_list "(uint *param_1,uint param_2,int param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_1 == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }\n  if (param_1[6] == 0xabacadab) {\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (if_statement "if (param_1 == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }" if (parenthesized_expression "(param_1 == (uint *)0x0)" ( (binary_expression "param_1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }" { comment (expression_statement "__assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");" (call_expression "__assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList")" identifier (argument_list "("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList")" ( (string_literal ""list_info != (LinkedListInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/linked-list.c"" " string_content ") , number_literal , (string_literal ""InsertValueInLinkedList"" " string_content ") ))) ;) })) (if_statement "if (param_1[6] == 0xabacadab) {\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }" if (parenthesized_expression "(param_1[6] == 0xabacadab)" ( (binary_expression "param_1[6] == 0xabacadab" (subscript_expression "param_1[6]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }" { (if_statement "if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }" if (parenthesized_expression "(((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1))" ( (binary_expression "((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)" (parenthesized_expression "((param_3 != 0) && (param_2 <= param_1[1]))" ( (binary_expression "(param_3 != 0) && (param_2 <= param_1[1])" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 <= param_1[1])" ( (binary_expression "param_2 <= param_1[1]" identifier <= (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) )) && (parenthesized_expression "(param_1[1] != *param_1)" ( (binary_expression "param_1[1] != *param_1" (subscript_expression "param_1[1]" identifier [ number_literal ]) != (pointer_expression "*param_1" * identifier)) ))) )) (compound_statement "{\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }" { (expression_statement "piVar3 = (int *)AcquireMagickMemory(8);" (assignment_expression "piVar3 = (int *)AcquireMagickMemory(8)" identifier = (cast_expression "(int *)AcquireMagickMemory(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }" { (expression_statement "*piVar3 = param_3;" (assignment_expression "*piVar3 = param_3" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[1] = 0;" (assignment_expression "piVar3[1] = 0" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "LockSemaphoreInfo(param_1[5]);" (call_expression "LockSemaphoreInfo(param_1[5])" identifier (argument_list "(param_1[5])" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }" { (if_statement "if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            param_1[4] = (uint)piVar3;\n          }" { (expression_statement "param_1[4] = (uint)piVar3;" (assignment_expression "param_1[4] = (uint)piVar3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) })) (expression_statement "param_1[2] = (uint)piVar3;" (assignment_expression "param_1[2] = (uint)piVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "param_1[3] = (uint)piVar3;" (assignment_expression "param_1[3] = (uint)piVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) (else_clause "else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }" else (compound_statement "{\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }" { (expression_statement "uVar2 = param_1[4];" (assignment_expression "uVar2 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (if_statement "if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }" { (if_statement "if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }" if (parenthesized_expression "(param_1[2] == uVar2)" ( (binary_expression "param_1[2] == uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n              param_1[4] = (uint)piVar3;\n            }" { (expression_statement "param_1[4] = (uint)piVar3;" (assignment_expression "param_1[4] = (uint)piVar3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) })) (expression_statement "piVar3[1] = param_1[2];" (assignment_expression "piVar3[1] = param_1[2]" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = (uint)piVar3;" (assignment_expression "param_1[2] = (uint)piVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) (else_clause "else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" else (if_statement "if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" if (parenthesized_expression "(uVar1 == param_2)" ( (binary_expression "uVar1 == param_2" identifier == identifier) )) (compound_statement "{\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }" { (if_statement "if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n              param_1[4] = (uint)piVar3;\n            }" { (expression_statement "param_1[4] = (uint)piVar3;" (assignment_expression "param_1[4] = (uint)piVar3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) })) (expression_statement "*(int **)(param_1[3] + 4) = piVar3;" (assignment_expression "*(int **)(param_1[3] + 4) = piVar3" (pointer_expression "*(int **)(param_1[3] + 4)" * (cast_expression "(int **)(param_1[3] + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[3] + 4)" ( (binary_expression "param_1[3] + 4" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) (expression_statement "param_1[3] = (uint)piVar3;" (assignment_expression "param_1[3] = (uint)piVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) (else_clause "else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" else (compound_statement "{\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" { (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = *(uint *)(uVar5 + 4);" (assignment_expression "uVar6 = *(uint *)(uVar5 + 4)" identifier = (pointer_expression "*(uint *)(uVar5 + 4)" * (cast_expression "(uint *)(uVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 + 4)" ( (binary_expression "uVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar3[1] = uVar6;" (assignment_expression "piVar3[1] = uVar6" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }" if (parenthesized_expression "(1 < (int)param_2)" ( (binary_expression "1 < (int)param_2" number_literal < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (do_statement "do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);" do (compound_statement "{\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              }" { (expression_statement "uVar5 = *(uint *)(uVar5 + 4);" (assignment_expression "uVar5 = *(uint *)(uVar5 + 4)" identifier = (pointer_expression "*(uint *)(uVar5 + 4)" * (cast_expression "(uint *)(uVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 + 4)" ( (binary_expression "uVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = *(uint *)(uVar5 + 4);" (assignment_expression "uVar6 = *(uint *)(uVar5 + 4)" identifier = (pointer_expression "*(uint *)(uVar5 + 4)" * (cast_expression "(uint *)(uVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 + 4)" ( (binary_expression "uVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar3[1] = uVar6;" (assignment_expression "piVar3[1] = uVar6" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(uVar4 != param_2)" ( (binary_expression "uVar4 != param_2" identifier != identifier) )) ;) })) (expression_statement "*(uint *)(uVar5 + 4) = uVar6;" (assignment_expression "*(uint *)(uVar5 + 4) = uVar6" (pointer_expression "*(uint *)(uVar5 + 4)" * (cast_expression "(uint *)(uVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 + 4)" ( (binary_expression "uVar5 + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }" if (parenthesized_expression "(*(uint *)(uVar6 + 4) == uVar2)" ( (binary_expression "*(uint *)(uVar6 + 4) == uVar2" (pointer_expression "*(uint *)(uVar6 + 4)" * (cast_expression "(uint *)(uVar6 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar6 + 4)" ( (binary_expression "uVar6 + 4" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n              param_1[4] = uVar6;\n            }" { (expression_statement "param_1[4] = uVar6;" (assignment_expression "param_1[4] = uVar6" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) })) }))))) }))) (expression_statement "param_1[1] = uVar1 + 1;" (assignment_expression "param_1[1] = uVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "UnlockSemaphoreInfo(param_1[5]);" (call_expression "UnlockSemaphoreInfo(param_1[5])" identifier (argument_list "(param_1[5])" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "__assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");" (call_expression "__assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList")" identifier (argument_list "("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList")" ( (string_literal ""list_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/linked-list.c"" " string_content ") , number_literal , (string_literal ""InsertValueInLinkedList"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nMagickBooleanType InsertValueInLinkedList(LinkedListInfo *list_info,size_t index,void *value)\n\n{\n  size_t sVar1;\n  _ElementInfo *p_Var2;\n  ElementInfo *pEVar3;\n  size_t sVar4;\n  ElementInfo *pEVar5;\n  _ElementInfo *p_Var6;\n  \n  if (list_info == (LinkedListInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }\n  if (list_info->signature == 0xabacadab) {\n    if (((value != (void *)0x0) && (index <= list_info->elements)) &&\n       (list_info->elements != list_info->capacity)) {\n      pEVar3 = (ElementInfo *)AcquireMagickMemory(8);\n      if (pEVar3 != (ElementInfo *)0x0) {\n        pEVar3->value = value;\n        pEVar3->next = (_ElementInfo *)0x0;\n        LockSemaphoreInfo(list_info->semaphore);\n        sVar1 = list_info->elements;\n        if (sVar1 == 0) {\n          if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }\n          list_info->head = pEVar3;\n          list_info->tail = pEVar3;\n        }\n        else {\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }\n        list_info->elements = sVar1 + 1;\n        UnlockSemaphoreInfo(list_info->semaphore);\n        return MagickTrue;\n      }\n    }\n    return MagickFalse;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");\n}\n\n" comment comment (function_definition "MagickBooleanType InsertValueInLinkedList(LinkedListInfo *list_info,size_t index,void *value)\n\n{\n  size_t sVar1;\n  _ElementInfo *p_Var2;\n  ElementInfo *pEVar3;\n  size_t sVar4;\n  ElementInfo *pEVar5;\n  _ElementInfo *p_Var6;\n  \n  if (list_info == (LinkedListInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }\n  if (list_info->signature == 0xabacadab) {\n    if (((value != (void *)0x0) && (index <= list_info->elements)) &&\n       (list_info->elements != list_info->capacity)) {\n      pEVar3 = (ElementInfo *)AcquireMagickMemory(8);\n      if (pEVar3 != (ElementInfo *)0x0) {\n        pEVar3->value = value;\n        pEVar3->next = (_ElementInfo *)0x0;\n        LockSemaphoreInfo(list_info->semaphore);\n        sVar1 = list_info->elements;\n        if (sVar1 == 0) {\n          if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }\n          list_info->head = pEVar3;\n          list_info->tail = pEVar3;\n        }\n        else {\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }\n        list_info->elements = sVar1 + 1;\n        UnlockSemaphoreInfo(list_info->semaphore);\n        return MagickTrue;\n      }\n    }\n    return MagickFalse;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");\n}" type_identifier (function_declarator "InsertValueInLinkedList(LinkedListInfo *list_info,size_t index,void *value)" identifier (parameter_list "(LinkedListInfo *list_info,size_t index,void *value)" ( (parameter_declaration "LinkedListInfo *list_info" type_identifier (pointer_declarator "*list_info" * identifier)) , (parameter_declaration "size_t index" primitive_type identifier) , (parameter_declaration "void *value" primitive_type (pointer_declarator "*value" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  _ElementInfo *p_Var2;\n  ElementInfo *pEVar3;\n  size_t sVar4;\n  ElementInfo *pEVar5;\n  _ElementInfo *p_Var6;\n  \n  if (list_info == (LinkedListInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }\n  if (list_info->signature == 0xabacadab) {\n    if (((value != (void *)0x0) && (index <= list_info->elements)) &&\n       (list_info->elements != list_info->capacity)) {\n      pEVar3 = (ElementInfo *)AcquireMagickMemory(8);\n      if (pEVar3 != (ElementInfo *)0x0) {\n        pEVar3->value = value;\n        pEVar3->next = (_ElementInfo *)0x0;\n        LockSemaphoreInfo(list_info->semaphore);\n        sVar1 = list_info->elements;\n        if (sVar1 == 0) {\n          if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }\n          list_info->head = pEVar3;\n          list_info->tail = pEVar3;\n        }\n        else {\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }\n        list_info->elements = sVar1 + 1;\n        UnlockSemaphoreInfo(list_info->semaphore);\n        return MagickTrue;\n      }\n    }\n    return MagickFalse;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "_ElementInfo *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "ElementInfo *pEVar3;" type_identifier (pointer_declarator "*pEVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "ElementInfo *pEVar5;" type_identifier (pointer_declarator "*pEVar5" * identifier) ;) (declaration "_ElementInfo *p_Var6;" type_identifier (pointer_declarator "*p_Var6" * identifier) ;) (if_statement "if (list_info == (LinkedListInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }" if (parenthesized_expression "(list_info == (LinkedListInfo *)0x0)" ( (binary_expression "list_info == (LinkedListInfo *)0x0" identifier == (cast_expression "(LinkedListInfo *)0x0" ( (type_descriptor "LinkedListInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }" { comment (expression_statement "__assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");" (call_expression "__assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList")" identifier (argument_list "("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList")" ( (string_literal ""list_info != (LinkedListInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/linked-list.c"" " string_content ") , number_literal , (string_literal ""InsertValueInLinkedList"" " string_content ") ))) ;) })) (if_statement "if (list_info->signature == 0xabacadab) {\n    if (((value != (void *)0x0) && (index <= list_info->elements)) &&\n       (list_info->elements != list_info->capacity)) {\n      pEVar3 = (ElementInfo *)AcquireMagickMemory(8);\n      if (pEVar3 != (ElementInfo *)0x0) {\n        pEVar3->value = value;\n        pEVar3->next = (_ElementInfo *)0x0;\n        LockSemaphoreInfo(list_info->semaphore);\n        sVar1 = list_info->elements;\n        if (sVar1 == 0) {\n          if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }\n          list_info->head = pEVar3;\n          list_info->tail = pEVar3;\n        }\n        else {\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }\n        list_info->elements = sVar1 + 1;\n        UnlockSemaphoreInfo(list_info->semaphore);\n        return MagickTrue;\n      }\n    }\n    return MagickFalse;\n  }" if (parenthesized_expression "(list_info->signature == 0xabacadab)" ( (binary_expression "list_info->signature == 0xabacadab" (field_expression "list_info->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (((value != (void *)0x0) && (index <= list_info->elements)) &&\n       (list_info->elements != list_info->capacity)) {\n      pEVar3 = (ElementInfo *)AcquireMagickMemory(8);\n      if (pEVar3 != (ElementInfo *)0x0) {\n        pEVar3->value = value;\n        pEVar3->next = (_ElementInfo *)0x0;\n        LockSemaphoreInfo(list_info->semaphore);\n        sVar1 = list_info->elements;\n        if (sVar1 == 0) {\n          if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }\n          list_info->head = pEVar3;\n          list_info->tail = pEVar3;\n        }\n        else {\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }\n        list_info->elements = sVar1 + 1;\n        UnlockSemaphoreInfo(list_info->semaphore);\n        return MagickTrue;\n      }\n    }\n    return MagickFalse;\n  }" { (if_statement "if (((value != (void *)0x0) && (index <= list_info->elements)) &&\n       (list_info->elements != list_info->capacity)) {\n      pEVar3 = (ElementInfo *)AcquireMagickMemory(8);\n      if (pEVar3 != (ElementInfo *)0x0) {\n        pEVar3->value = value;\n        pEVar3->next = (_ElementInfo *)0x0;\n        LockSemaphoreInfo(list_info->semaphore);\n        sVar1 = list_info->elements;\n        if (sVar1 == 0) {\n          if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }\n          list_info->head = pEVar3;\n          list_info->tail = pEVar3;\n        }\n        else {\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }\n        list_info->elements = sVar1 + 1;\n        UnlockSemaphoreInfo(list_info->semaphore);\n        return MagickTrue;\n      }\n    }" if (parenthesized_expression "(((value != (void *)0x0) && (index <= list_info->elements)) &&\n       (list_info->elements != list_info->capacity))" ( (binary_expression "((value != (void *)0x0) && (index <= list_info->elements)) &&\n       (list_info->elements != list_info->capacity)" (parenthesized_expression "((value != (void *)0x0) && (index <= list_info->elements))" ( (binary_expression "(value != (void *)0x0) && (index <= list_info->elements)" (parenthesized_expression "(value != (void *)0x0)" ( (binary_expression "value != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(index <= list_info->elements)" ( (binary_expression "index <= list_info->elements" identifier <= (field_expression "list_info->elements" identifier -> field_identifier)) ))) )) && (parenthesized_expression "(list_info->elements != list_info->capacity)" ( (binary_expression "list_info->elements != list_info->capacity" (field_expression "list_info->elements" identifier -> field_identifier) != (field_expression "list_info->capacity" identifier -> field_identifier)) ))) )) (compound_statement "{\n      pEVar3 = (ElementInfo *)AcquireMagickMemory(8);\n      if (pEVar3 != (ElementInfo *)0x0) {\n        pEVar3->value = value;\n        pEVar3->next = (_ElementInfo *)0x0;\n        LockSemaphoreInfo(list_info->semaphore);\n        sVar1 = list_info->elements;\n        if (sVar1 == 0) {\n          if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }\n          list_info->head = pEVar3;\n          list_info->tail = pEVar3;\n        }\n        else {\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }\n        list_info->elements = sVar1 + 1;\n        UnlockSemaphoreInfo(list_info->semaphore);\n        return MagickTrue;\n      }\n    }" { (expression_statement "pEVar3 = (ElementInfo *)AcquireMagickMemory(8);" (assignment_expression "pEVar3 = (ElementInfo *)AcquireMagickMemory(8)" identifier = (cast_expression "(ElementInfo *)AcquireMagickMemory(8)" ( (type_descriptor "ElementInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (if_statement "if (pEVar3 != (ElementInfo *)0x0) {\n        pEVar3->value = value;\n        pEVar3->next = (_ElementInfo *)0x0;\n        LockSemaphoreInfo(list_info->semaphore);\n        sVar1 = list_info->elements;\n        if (sVar1 == 0) {\n          if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }\n          list_info->head = pEVar3;\n          list_info->tail = pEVar3;\n        }\n        else {\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }\n        list_info->elements = sVar1 + 1;\n        UnlockSemaphoreInfo(list_info->semaphore);\n        return MagickTrue;\n      }" if (parenthesized_expression "(pEVar3 != (ElementInfo *)0x0)" ( (binary_expression "pEVar3 != (ElementInfo *)0x0" identifier != (cast_expression "(ElementInfo *)0x0" ( (type_descriptor "ElementInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pEVar3->value = value;\n        pEVar3->next = (_ElementInfo *)0x0;\n        LockSemaphoreInfo(list_info->semaphore);\n        sVar1 = list_info->elements;\n        if (sVar1 == 0) {\n          if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }\n          list_info->head = pEVar3;\n          list_info->tail = pEVar3;\n        }\n        else {\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }\n        list_info->elements = sVar1 + 1;\n        UnlockSemaphoreInfo(list_info->semaphore);\n        return MagickTrue;\n      }" { (expression_statement "pEVar3->value = value;" (assignment_expression "pEVar3->value = value" (field_expression "pEVar3->value" identifier -> field_identifier) = identifier) ;) (expression_statement "pEVar3->next = (_ElementInfo *)0x0;" (assignment_expression "pEVar3->next = (_ElementInfo *)0x0" (field_expression "pEVar3->next" identifier -> field_identifier) = (cast_expression "(_ElementInfo *)0x0" ( (type_descriptor "_ElementInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "LockSemaphoreInfo(list_info->semaphore);" (call_expression "LockSemaphoreInfo(list_info->semaphore)" identifier (argument_list "(list_info->semaphore)" ( (field_expression "list_info->semaphore" identifier -> field_identifier) ))) ;) (expression_statement "sVar1 = list_info->elements;" (assignment_expression "sVar1 = list_info->elements" identifier = (field_expression "list_info->elements" identifier -> field_identifier)) ;) (if_statement "if (sVar1 == 0) {\n          if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }\n          list_info->head = pEVar3;\n          list_info->tail = pEVar3;\n        }\n        else {\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }" if (parenthesized_expression "(sVar1 == 0)" ( (binary_expression "sVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }\n          list_info->head = pEVar3;\n          list_info->tail = pEVar3;\n        }" { (if_statement "if (list_info->next == (ElementInfo *)0x0) {\n            list_info->next = pEVar3;\n          }" if (parenthesized_expression "(list_info->next == (ElementInfo *)0x0)" ( (binary_expression "list_info->next == (ElementInfo *)0x0" (field_expression "list_info->next" identifier -> field_identifier) == (cast_expression "(ElementInfo *)0x0" ( (type_descriptor "ElementInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            list_info->next = pEVar3;\n          }" { (expression_statement "list_info->next = pEVar3;" (assignment_expression "list_info->next = pEVar3" (field_expression "list_info->next" identifier -> field_identifier) = identifier) ;) })) (expression_statement "list_info->head = pEVar3;" (assignment_expression "list_info->head = pEVar3" (field_expression "list_info->head" identifier -> field_identifier) = identifier) ;) (expression_statement "list_info->tail = pEVar3;" (assignment_expression "list_info->tail = pEVar3" (field_expression "list_info->tail" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }" else (compound_statement "{\n          p_Var2 = list_info->next;\n          if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }\n        }" { (expression_statement "p_Var2 = list_info->next;" (assignment_expression "p_Var2 = list_info->next" identifier = (field_expression "list_info->next" identifier -> field_identifier)) ;) (if_statement "if (index == 0) {\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }\n          else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }" if (parenthesized_expression "(index == 0)" ( (binary_expression "index == 0" identifier == number_literal) )) (compound_statement "{\n            if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }\n            pEVar3->next = list_info->head;\n            list_info->head = pEVar3;\n          }" { (if_statement "if (list_info->head == p_Var2) {\n              list_info->next = pEVar3;\n            }" if (parenthesized_expression "(list_info->head == p_Var2)" ( (binary_expression "list_info->head == p_Var2" (field_expression "list_info->head" identifier -> field_identifier) == identifier) )) (compound_statement "{\n              list_info->next = pEVar3;\n            }" { (expression_statement "list_info->next = pEVar3;" (assignment_expression "list_info->next = pEVar3" (field_expression "list_info->next" identifier -> field_identifier) = identifier) ;) })) (expression_statement "pEVar3->next = list_info->head;" (assignment_expression "pEVar3->next = list_info->head" (field_expression "pEVar3->next" identifier -> field_identifier) = (field_expression "list_info->head" identifier -> field_identifier)) ;) (expression_statement "list_info->head = pEVar3;" (assignment_expression "list_info->head = pEVar3" (field_expression "list_info->head" identifier -> field_identifier) = identifier) ;) }) (else_clause "else if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }" else (if_statement "if (sVar1 == index) {\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }\n          else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }" if (parenthesized_expression "(sVar1 == index)" ( (binary_expression "sVar1 == index" identifier == identifier) )) (compound_statement "{\n            if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }\n            list_info->tail->next = pEVar3;\n            list_info->tail = pEVar3;\n          }" { (if_statement "if (p_Var2 == (_ElementInfo *)0x0) {\n              list_info->next = pEVar3;\n            }" if (parenthesized_expression "(p_Var2 == (_ElementInfo *)0x0)" ( (binary_expression "p_Var2 == (_ElementInfo *)0x0" identifier == (cast_expression "(_ElementInfo *)0x0" ( (type_descriptor "_ElementInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              list_info->next = pEVar3;\n            }" { (expression_statement "list_info->next = pEVar3;" (assignment_expression "list_info->next = pEVar3" (field_expression "list_info->next" identifier -> field_identifier) = identifier) ;) })) (expression_statement "list_info->tail->next = pEVar3;" (assignment_expression "list_info->tail->next = pEVar3" (field_expression "list_info->tail->next" (field_expression "list_info->tail" identifier -> field_identifier) -> field_identifier) = identifier) ;) (expression_statement "list_info->tail = pEVar3;" (assignment_expression "list_info->tail = pEVar3" (field_expression "list_info->tail" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }" else (compound_statement "{\n            pEVar5 = list_info->head;\n            p_Var6 = pEVar5->next;\n            pEVar3->next = p_Var6;\n            if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }\n            pEVar5->next = p_Var6;\n            if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }\n          }" { (expression_statement "pEVar5 = list_info->head;" (assignment_expression "pEVar5 = list_info->head" identifier = (field_expression "list_info->head" identifier -> field_identifier)) ;) (expression_statement "p_Var6 = pEVar5->next;" (assignment_expression "p_Var6 = pEVar5->next" identifier = (field_expression "pEVar5->next" identifier -> field_identifier)) ;) (expression_statement "pEVar3->next = p_Var6;" (assignment_expression "pEVar3->next = p_Var6" (field_expression "pEVar3->next" identifier -> field_identifier) = identifier) ;) (if_statement "if (1 < (int)index) {\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }" if (parenthesized_expression "(1 < (int)index)" ( (binary_expression "1 < (int)index" number_literal < (cast_expression "(int)index" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n              sVar4 = 1;\n              do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);\n            }" { (expression_statement "sVar4 = 1;" (assignment_expression "sVar4 = 1" identifier = number_literal) ;) (do_statement "do {\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              } while (sVar4 != index);" do (compound_statement "{\n                pEVar5 = pEVar5->next;\n                sVar4 = sVar4 + 1;\n                p_Var6 = pEVar5->next;\n                pEVar3->next = p_Var6;\n              }" { (expression_statement "pEVar5 = pEVar5->next;" (assignment_expression "pEVar5 = pEVar5->next" identifier = (field_expression "pEVar5->next" identifier -> field_identifier)) ;) (expression_statement "sVar4 = sVar4 + 1;" (assignment_expression "sVar4 = sVar4 + 1" identifier = (binary_expression "sVar4 + 1" identifier + number_literal)) ;) (expression_statement "p_Var6 = pEVar5->next;" (assignment_expression "p_Var6 = pEVar5->next" identifier = (field_expression "pEVar5->next" identifier -> field_identifier)) ;) (expression_statement "pEVar3->next = p_Var6;" (assignment_expression "pEVar3->next = p_Var6" (field_expression "pEVar3->next" identifier -> field_identifier) = identifier) ;) }) while (parenthesized_expression "(sVar4 != index)" ( (binary_expression "sVar4 != index" identifier != identifier) )) ;) })) (expression_statement "pEVar5->next = p_Var6;" (assignment_expression "pEVar5->next = p_Var6" (field_expression "pEVar5->next" identifier -> field_identifier) = identifier) ;) (if_statement "if (p_Var6->next == p_Var2) {\n              list_info->next = p_Var6;\n            }" if (parenthesized_expression "(p_Var6->next == p_Var2)" ( (binary_expression "p_Var6->next == p_Var2" (field_expression "p_Var6->next" identifier -> field_identifier) == identifier) )) (compound_statement "{\n              list_info->next = p_Var6;\n            }" { (expression_statement "list_info->next = p_Var6;" (assignment_expression "list_info->next = p_Var6" (field_expression "list_info->next" identifier -> field_identifier) = identifier) ;) })) }))))) }))) (expression_statement "list_info->elements = sVar1 + 1;" (assignment_expression "list_info->elements = sVar1 + 1" (field_expression "list_info->elements" identifier -> field_identifier) = (binary_expression "sVar1 + 1" identifier + number_literal)) ;) (expression_statement "UnlockSemaphoreInfo(list_info->semaphore);" (call_expression "UnlockSemaphoreInfo(list_info->semaphore)" identifier (argument_list "(list_info->semaphore)" ( (field_expression "list_info->semaphore" identifier -> field_identifier) ))) ;) (return_statement "return MagickTrue;" return identifier ;) })) })) (return_statement "return MagickFalse;" return identifier ;) })) comment (expression_statement "__assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");" (call_expression "__assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList")" identifier (argument_list "("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList")" ( (string_literal ""list_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/linked-list.c"" " string_content ") , number_literal , (string_literal ""InsertValueInLinkedList"" " string_content ") ))) ;) })))
(translation_unit "undefined4 InsertValueInLinkedList(uint *param_1,uint param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_1 == (uint *)0x0) {\n                    \n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }\n  if (param_1[6] == 0xabacadab) {\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }\n                    \n  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");\n}\n\n" (function_definition "undefined4 InsertValueInLinkedList(uint *param_1,uint param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_1 == (uint *)0x0) {\n                    \n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }\n  if (param_1[6] == 0xabacadab) {\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }\n                    \n  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");\n}" type_identifier (function_declarator "InsertValueInLinkedList(uint *param_1,uint param_2,int param_3)" identifier (parameter_list "(uint *param_1,uint param_2,int param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_1 == (uint *)0x0) {\n                    \n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }\n  if (param_1[6] == 0xabacadab) {\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }\n                    \n  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (if_statement "if (param_1 == (uint *)0x0) {\n                    \n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }" if (parenthesized_expression "(param_1 == (uint *)0x0)" ( (binary_expression "param_1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }" { (expression_statement "__assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");" (call_expression "__assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList")" identifier (argument_list "("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList")" ( (string_literal ""list_info != (LinkedListInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/linked-list.c"" " string_content ") , number_literal , (string_literal ""InsertValueInLinkedList"" " string_content ") ))) ;) })) (if_statement "if (param_1[6] == 0xabacadab) {\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }" if (parenthesized_expression "(param_1[6] == 0xabacadab)" ( (binary_expression "param_1[6] == 0xabacadab" (subscript_expression "param_1[6]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }" { (if_statement "if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }" if (parenthesized_expression "(((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1))" ( (binary_expression "((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)" (parenthesized_expression "((param_3 != 0) && (param_2 <= param_1[1]))" ( (binary_expression "(param_3 != 0) && (param_2 <= param_1[1])" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 <= param_1[1])" ( (binary_expression "param_2 <= param_1[1]" identifier <= (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) )) && (parenthesized_expression "(param_1[1] != *param_1)" ( (binary_expression "param_1[1] != *param_1" (subscript_expression "param_1[1]" identifier [ number_literal ]) != (pointer_expression "*param_1" * identifier)) ))) )) (compound_statement "{\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }" { (expression_statement "piVar3 = (int *)AcquireMagickMemory(8);" (assignment_expression "piVar3 = (int *)AcquireMagickMemory(8)" identifier = (cast_expression "(int *)AcquireMagickMemory(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "AcquireMagickMemory(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }" { (expression_statement "*piVar3 = param_3;" (assignment_expression "*piVar3 = param_3" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[1] = 0;" (assignment_expression "piVar3[1] = 0" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "LockSemaphoreInfo(param_1[5]);" (call_expression "LockSemaphoreInfo(param_1[5])" identifier (argument_list "(param_1[5])" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }" { (if_statement "if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            param_1[4] = (uint)piVar3;\n          }" { (expression_statement "param_1[4] = (uint)piVar3;" (assignment_expression "param_1[4] = (uint)piVar3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) })) (expression_statement "param_1[2] = (uint)piVar3;" (assignment_expression "param_1[2] = (uint)piVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "param_1[3] = (uint)piVar3;" (assignment_expression "param_1[3] = (uint)piVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) (else_clause "else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }" else (compound_statement "{\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }" { (expression_statement "uVar2 = param_1[4];" (assignment_expression "uVar2 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (if_statement "if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }" { (if_statement "if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }" if (parenthesized_expression "(param_1[2] == uVar2)" ( (binary_expression "param_1[2] == uVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n              param_1[4] = (uint)piVar3;\n            }" { (expression_statement "param_1[4] = (uint)piVar3;" (assignment_expression "param_1[4] = (uint)piVar3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) })) (expression_statement "piVar3[1] = param_1[2];" (assignment_expression "piVar3[1] = param_1[2]" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = (uint)piVar3;" (assignment_expression "param_1[2] = (uint)piVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) (else_clause "else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" else (if_statement "if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" if (parenthesized_expression "(uVar1 == param_2)" ( (binary_expression "uVar1 == param_2" identifier == identifier) )) (compound_statement "{\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }" { (if_statement "if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n              param_1[4] = (uint)piVar3;\n            }" { (expression_statement "param_1[4] = (uint)piVar3;" (assignment_expression "param_1[4] = (uint)piVar3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) })) (expression_statement "*(int **)(param_1[3] + 4) = piVar3;" (assignment_expression "*(int **)(param_1[3] + 4) = piVar3" (pointer_expression "*(int **)(param_1[3] + 4)" * (cast_expression "(int **)(param_1[3] + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[3] + 4)" ( (binary_expression "param_1[3] + 4" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) (expression_statement "param_1[3] = (uint)piVar3;" (assignment_expression "param_1[3] = (uint)piVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(uint)piVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) (else_clause "else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" else (compound_statement "{\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" { (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = *(uint *)(uVar5 + 4);" (assignment_expression "uVar6 = *(uint *)(uVar5 + 4)" identifier = (pointer_expression "*(uint *)(uVar5 + 4)" * (cast_expression "(uint *)(uVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 + 4)" ( (binary_expression "uVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar3[1] = uVar6;" (assignment_expression "piVar3[1] = uVar6" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }" if (parenthesized_expression "(1 < (int)param_2)" ( (binary_expression "1 < (int)param_2" number_literal < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (do_statement "do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);" do (compound_statement "{\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              }" { (expression_statement "uVar5 = *(uint *)(uVar5 + 4);" (assignment_expression "uVar5 = *(uint *)(uVar5 + 4)" identifier = (pointer_expression "*(uint *)(uVar5 + 4)" * (cast_expression "(uint *)(uVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 + 4)" ( (binary_expression "uVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = *(uint *)(uVar5 + 4);" (assignment_expression "uVar6 = *(uint *)(uVar5 + 4)" identifier = (pointer_expression "*(uint *)(uVar5 + 4)" * (cast_expression "(uint *)(uVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 + 4)" ( (binary_expression "uVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar3[1] = uVar6;" (assignment_expression "piVar3[1] = uVar6" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(uVar4 != param_2)" ( (binary_expression "uVar4 != param_2" identifier != identifier) )) ;) })) (expression_statement "*(uint *)(uVar5 + 4) = uVar6;" (assignment_expression "*(uint *)(uVar5 + 4) = uVar6" (pointer_expression "*(uint *)(uVar5 + 4)" * (cast_expression "(uint *)(uVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 + 4)" ( (binary_expression "uVar5 + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }" if (parenthesized_expression "(*(uint *)(uVar6 + 4) == uVar2)" ( (binary_expression "*(uint *)(uVar6 + 4) == uVar2" (pointer_expression "*(uint *)(uVar6 + 4)" * (cast_expression "(uint *)(uVar6 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar6 + 4)" ( (binary_expression "uVar6 + 4" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n              param_1[4] = uVar6;\n            }" { (expression_statement "param_1[4] = uVar6;" (assignment_expression "param_1[4] = uVar6" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) })) }))))) }))) (expression_statement "param_1[1] = uVar1 + 1;" (assignment_expression "param_1[1] = uVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "UnlockSemaphoreInfo(param_1[5]);" (call_expression "UnlockSemaphoreInfo(param_1[5])" identifier (argument_list "(param_1[5])" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "__assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");" (call_expression "__assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList")" identifier (argument_list "("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList")" ( (string_literal ""list_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/linked-list.c"" " string_content ") , number_literal , (string_literal ""InsertValueInLinkedList"" " string_content ") ))) ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT <= (subscript_expression IDENT [ LIT ])) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (pointer_expression * IDENT)) ))) )) (compound_statement { (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 (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (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) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) }))))) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return LIT ;) })) })) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined4 InsertValueInLinkedList(uint *param_1,uint param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_1 == (uint *)0x0) {\n                    \n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }\n  if (param_1[6] == 0xabacadab) {\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }\n                    \n  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");\n}" (type_identifier "undefined4") (function_declarator "InsertValueInLinkedList(uint *param_1,uint param_2,int param_3)" (identifier "InsertValueInLinkedList") (parameter_list "(uint *param_1,uint param_2,int 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 "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_1 == (uint *)0x0) {\n                    \n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }\n  if (param_1[6] == 0xabacadab) {\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }\n                    \n  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (if_statement "if (param_1 == (uint *)0x0) {\n                    \n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }" (if "if") (parenthesized_expression "(param_1 == (uint *)0x0)" (( "(") (binary_expression "param_1 == (uint *)0x0" (identifier "param_1") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");\n  }" ({ "{") (expression_statement "__assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList");" (call_expression "__assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList")" (identifier "__assert_fail") (argument_list "("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,\n                  "InsertValueInLinkedList")" (( "(") (string_literal ""list_info != (LinkedListInfo *) NULL"" (" """) (string_content "list_info != (LinkedListInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/linked-list.c"" (" """) (string_content "MagickCore/linked-list.c") (" """)) (, ",") (number_literal "0x1c8") (, ",") (string_literal ""InsertValueInLinkedList"" (" """) (string_content "InsertValueInLinkedList") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1[6] == 0xabacadab) {\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1[6] == 0xabacadab)" (( "(") (binary_expression "param_1[6] == 0xabacadab" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (== "==") (number_literal "0xabacadab")) () ")")) (compound_statement "{\n    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }\n    return 0;\n  }" ({ "{") (if_statement "if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }" (if "if") (parenthesized_expression "(((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1))" (( "(") (binary_expression "((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)" (parenthesized_expression "((param_3 != 0) && (param_2 <= param_1[1]))" (( "(") (binary_expression "(param_3 != 0) && (param_2 <= param_1[1])" (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 <= param_1[1])" (( "(") (binary_expression "param_2 <= param_1[1]" (identifier "param_2") (<= "<=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] != *param_1)" (( "(") (binary_expression "param_1[1] != *param_1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) () ")")) (compound_statement "{\n      piVar3 = (int *)AcquireMagickMemory(8);\n      if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }\n    }" ({ "{") (expression_statement "piVar3 = (int *)AcquireMagickMemory(8);" (assignment_expression "piVar3 = (int *)AcquireMagickMemory(8)" (identifier "piVar3") (= "=") (cast_expression "(int *)AcquireMagickMemory(8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "AcquireMagickMemory(8)" (identifier "AcquireMagickMemory") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (if_statement "if (piVar3 != (int *)0x0) {\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *piVar3 = param_3;\n        piVar3[1] = 0;\n        LockSemaphoreInfo(param_1[5]);\n        uVar1 = param_1[1];\n        if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }\n        param_1[1] = uVar1 + 1;\n        UnlockSemaphoreInfo(param_1[5]);\n        return 1;\n      }" ({ "{") (expression_statement "*piVar3 = param_3;" (assignment_expression "*piVar3 = param_3" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar3[1] = 0;" (assignment_expression "piVar3[1] = 0" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "LockSemaphoreInfo(param_1[5]);" (call_expression "LockSemaphoreInfo(param_1[5])" (identifier "LockSemaphoreInfo") (argument_list "(param_1[5])" (( "(") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" (identifier "uVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (uVar1 == 0) {\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }\n        else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }\n          param_1[2] = (uint)piVar3;\n          param_1[3] = (uint)piVar3;\n        }" ({ "{") (if_statement "if (param_1[4] == 0) {\n            param_1[4] = (uint)piVar3;\n          }" (if "if") (parenthesized_expression "(param_1[4] == 0)" (( "(") (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            param_1[4] = (uint)piVar3;\n          }" ({ "{") (expression_statement "param_1[4] = (uint)piVar3;" (assignment_expression "param_1[4] = (uint)piVar3" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(uint)piVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar3"))) (; ";")) (} "}"))) (expression_statement "param_1[2] = (uint)piVar3;" (assignment_expression "param_1[2] = (uint)piVar3" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(uint)piVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar3"))) (; ";")) (expression_statement "param_1[3] = (uint)piVar3;" (assignment_expression "param_1[3] = (uint)piVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(uint)piVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar3"))) (; ";")) (} "}")) (else_clause "else {\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }" (else "else") (compound_statement "{\n          uVar2 = param_1[4];\n          if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }\n        }" ({ "{") (expression_statement "uVar2 = param_1[4];" (assignment_expression "uVar2 = param_1[4]" (identifier "uVar2") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (if_statement "if (param_2 == 0) {\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }\n          else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }\n            piVar3[1] = param_1[2];\n            param_1[2] = (uint)piVar3;\n          }" ({ "{") (if_statement "if (param_1[2] == uVar2) {\n              param_1[4] = (uint)piVar3;\n            }" (if "if") (parenthesized_expression "(param_1[2] == uVar2)" (( "(") (binary_expression "param_1[2] == uVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (identifier "uVar2")) () ")")) (compound_statement "{\n              param_1[4] = (uint)piVar3;\n            }" ({ "{") (expression_statement "param_1[4] = (uint)piVar3;" (assignment_expression "param_1[4] = (uint)piVar3" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(uint)piVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar3"))) (; ";")) (} "}"))) (expression_statement "piVar3[1] = param_1[2];" (assignment_expression "piVar3[1] = param_1[2]" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1[2] = (uint)piVar3;" (assignment_expression "param_1[2] = (uint)piVar3" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(uint)piVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar3"))) (; ";")) (} "}")) (else_clause "else if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" (else "else") (if_statement "if (uVar1 == param_2) {\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }\n          else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" (if "if") (parenthesized_expression "(uVar1 == param_2)" (( "(") (binary_expression "uVar1 == param_2" (identifier "uVar1") (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n            if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }\n            *(int **)(param_1[3] + 4) = piVar3;\n            param_1[3] = (uint)piVar3;\n          }" ({ "{") (if_statement "if (uVar2 == 0) {\n              param_1[4] = (uint)piVar3;\n            }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              param_1[4] = (uint)piVar3;\n            }" ({ "{") (expression_statement "param_1[4] = (uint)piVar3;" (assignment_expression "param_1[4] = (uint)piVar3" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(uint)piVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar3"))) (; ";")) (} "}"))) (expression_statement "*(int **)(param_1[3] + 4) = piVar3;" (assignment_expression "*(int **)(param_1[3] + 4) = piVar3" (pointer_expression "*(int **)(param_1[3] + 4)" (* "*") (cast_expression "(int **)(param_1[3] + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1[3] + 4)" (( "(") (binary_expression "param_1[3] + 4" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "piVar3")) (; ";")) (expression_statement "param_1[3] = (uint)piVar3;" (assignment_expression "param_1[3] = (uint)piVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(uint)piVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "piVar3"))) (; ";")) (} "}")) (else_clause "else {\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" (else "else") (compound_statement "{\n            uVar5 = param_1[2];\n            uVar6 = *(uint *)(uVar5 + 4);\n            piVar3[1] = uVar6;\n            if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }\n            *(uint *)(uVar5 + 4) = uVar6;\n            if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }\n          }" ({ "{") (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" (identifier "uVar5") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar6 = *(uint *)(uVar5 + 4);" (assignment_expression "uVar6 = *(uint *)(uVar5 + 4)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(uVar5 + 4)" (* "*") (cast_expression "(uint *)(uVar5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar5 + 4)" (( "(") (binary_expression "uVar5 + 4" (identifier "uVar5") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "piVar3[1] = uVar6;" (assignment_expression "piVar3[1] = uVar6" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (1 < (int)param_2) {\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }" (if "if") (parenthesized_expression "(1 < (int)param_2)" (( "(") (binary_expression "1 < (int)param_2" (number_literal "1") (< "<") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")) (compound_statement "{\n              uVar4 = 1;\n              do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);\n            }" ({ "{") (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              } while (uVar4 != param_2);" (do "do") (compound_statement "{\n                uVar5 = *(uint *)(uVar5 + 4);\n                uVar4 = uVar4 + 1;\n                uVar6 = *(uint *)(uVar5 + 4);\n                piVar3[1] = uVar6;\n              }" ({ "{") (expression_statement "uVar5 = *(uint *)(uVar5 + 4);" (assignment_expression "uVar5 = *(uint *)(uVar5 + 4)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(uVar5 + 4)" (* "*") (cast_expression "(uint *)(uVar5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar5 + 4)" (( "(") (binary_expression "uVar5 + 4" (identifier "uVar5") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar6 = *(uint *)(uVar5 + 4);" (assignment_expression "uVar6 = *(uint *)(uVar5 + 4)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(uVar5 + 4)" (* "*") (cast_expression "(uint *)(uVar5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar5 + 4)" (( "(") (binary_expression "uVar5 + 4" (identifier "uVar5") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "piVar3[1] = uVar6;" (assignment_expression "piVar3[1] = uVar6" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 != param_2)" (( "(") (binary_expression "uVar4 != param_2" (identifier "uVar4") (!= "!=") (identifier "param_2")) () ")")) (; ";")) (} "}"))) (expression_statement "*(uint *)(uVar5 + 4) = uVar6;" (assignment_expression "*(uint *)(uVar5 + 4) = uVar6" (pointer_expression "*(uint *)(uVar5 + 4)" (* "*") (cast_expression "(uint *)(uVar5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar5 + 4)" (( "(") (binary_expression "uVar5 + 4" (identifier "uVar5") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (*(uint *)(uVar6 + 4) == uVar2) {\n              param_1[4] = uVar6;\n            }" (if "if") (parenthesized_expression "(*(uint *)(uVar6 + 4) == uVar2)" (( "(") (binary_expression "*(uint *)(uVar6 + 4) == uVar2" (pointer_expression "*(uint *)(uVar6 + 4)" (* "*") (cast_expression "(uint *)(uVar6 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar6 + 4)" (( "(") (binary_expression "uVar6 + 4" (identifier "uVar6") (+ "+") (number_literal "4")) () ")")))) (== "==") (identifier "uVar2")) () ")")) (compound_statement "{\n              param_1[4] = uVar6;\n            }" ({ "{") (expression_statement "param_1[4] = uVar6;" (assignment_expression "param_1[4] = uVar6" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (} "}")))))) (} "}")))) (expression_statement "param_1[1] = uVar1 + 1;" (assignment_expression "param_1[1] = uVar1 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UnlockSemaphoreInfo(param_1[5]);" (call_expression "UnlockSemaphoreInfo(param_1[5])" (identifier "UnlockSemaphoreInfo") (argument_list "(param_1[5])" (( "(") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "__assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList");" (call_expression "__assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList")" (identifier "__assert_fail") (argument_list "("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,\n                "InsertValueInLinkedList")" (( "(") (string_literal ""list_info->signature == MagickCoreSignature"" (" """) (string_content "list_info->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/linked-list.c"" (" """) (string_content "MagickCore/linked-list.c") (" """)) (, ",") (number_literal "0x1c9") (, ",") (string_literal ""InsertValueInLinkedList"" (" """) (string_content "InsertValueInLinkedList") (" """)) () ")"))) (; ";")) (} "}")))

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

type_1 function_1(type_2 *var_1,size_t var_4,void *var_3)

{
  size_t var_8;
  type_3 *var_9;
  type_4 *var_6;
  size_t var_10;
  type_4 *pEVar5;
  type_3 *p_Var6;
  
  if (var_1 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,
                  "InsertValueInLinkedList");
  }
  if (var_1->signature == 0xabacadab) {
    if (((var_3 != (void *)0x0) && (var_4 <= var_1->elements)) &&
       (var_1->elements != var_1->capacity)) {
      var_6 = (type_4 *)var_5(8);
      if (var_6 != (type_4 *)0x0) {
        var_6->var_3 = var_3;
        var_6->next = (type_3 *)0x0;
        var_7(var_1->semaphore);
        var_8 = var_1->elements;
        if (var_8 == 0) {
          if (var_1->next == (type_4 *)0x0) {
            var_1->next = var_6;
          }
          var_1->head = var_6;
          var_1->tail = var_6;
        }
        else {
          var_9 = var_1->next;
          if (var_4 == 0) {
            if (var_1->head == var_9) {
              var_1->next = var_6;
            }
            var_6->next = var_1->head;
            var_1->head = var_6;
          }
          else if (var_8 == var_4) {
            if (var_9 == (type_3 *)0x0) {
              var_1->next = var_6;
            }
            var_1->tail->next = var_6;
            var_1->tail = var_6;
          }
          else {
            pEVar5 = var_1->head;
            p_Var6 = pEVar5->next;
            var_6->next = p_Var6;
            if (1 < (int)var_4) {
              var_10 = 1;
              do {
                pEVar5 = pEVar5->next;
                var_10 = var_10 + 1;
                p_Var6 = pEVar5->next;
                var_6->next = p_Var6;
              } while (var_10 != var_4);
            }
            pEVar5->next = p_Var6;
            if (p_Var6->next == var_9) {
              var_1->next = p_Var6;
            }
          }
        }
        var_1->elements = var_8 + 1;
        var_11(var_1->semaphore);
        return MagickTrue;
      }
    }
    return MagickFalse;
  }
                    /* WARNING: Subroutine does not return */
  var_2("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,
                "InsertValueInLinkedList");
}


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

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

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

{
  uint uVar1;
  uint uVar2;
  int *piVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  
  if (param_1 == (uint *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("list_info != (LinkedListInfo *) NULL","MagickCore/linked-list.c",0x1c8,
                  "MASKED");
  }
  if (param_1[6] == 0xabacadab) {
    if (((param_3 != 0) && (param_2 <= param_1[1])) && (param_1[1] != *param_1)) {
      piVar3 = (int *)AcquireMagickMemory(8);
      if (piVar3 != (int *)0x0) {
        *piVar3 = param_3;
        piVar3[1] = 0;
        LockSemaphoreInfo(param_1[5]);
        uVar1 = param_1[1];
        if (uVar1 == 0) {
          if (param_1[4] == 0) {
            param_1[4] = (uint)piVar3;
          }
          param_1[2] = (uint)piVar3;
          param_1[3] = (uint)piVar3;
        }
        else {
          uVar2 = param_1[4];
          if (param_2 == 0) {
            if (param_1[2] == uVar2) {
              param_1[4] = (uint)piVar3;
            }
            piVar3[1] = param_1[2];
            param_1[2] = (uint)piVar3;
          }
          else if (uVar1 == param_2) {
            if (uVar2 == 0) {
              param_1[4] = (uint)piVar3;
            }
            *(int **)(param_1[3] + 4) = piVar3;
            param_1[3] = (uint)piVar3;
          }
          else {
            uVar5 = param_1[2];
            uVar6 = *(uint *)(uVar5 + 4);
            piVar3[1] = uVar6;
            if (1 < (int)param_2) {
              uVar4 = 1;
              do {
                uVar5 = *(uint *)(uVar5 + 4);
                uVar4 = uVar4 + 1;
                uVar6 = *(uint *)(uVar5 + 4);
                piVar3[1] = uVar6;
              } while (uVar4 != param_2);
            }
            *(uint *)(uVar5 + 4) = uVar6;
            if (*(uint *)(uVar6 + 4) == uVar2) {
              param_1[4] = uVar6;
            }
          }
        }
        param_1[1] = uVar1 + 1;
        UnlockSemaphoreInfo(param_1[5]);
        return 1;
      }
    }
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("list_info->signature == MagickCoreSignature","MagickCore/linked-list.c",0x1c9,
                "MASKED");
}

