
void delete_callbacks_for_context(void *ctx)

{
  callback *pcVar1;
  callback *ptr;
  callback *pcVar2;
  callback *pcVar3;
  callback *pcVar4;
  
  ptr = (callback *)0x0;
  pcVar2 = (callback *)0x0;
  pcVar1 = cbhead;
  while (cbhead = pcVar1, pcVar4 = pcVar2, pcVar3 = ptr, ptr = cbhead, cbhead != (callback *)0x0) {
    pcVar1 = cbhead->next;
    if (cbhead->ctx == ctx) {
      cbhead = pcVar1;
      safefree(ptr);
      ptr = pcVar3;
      pcVar2 = pcVar4;
      pcVar1 = cbhead;
    }
    else {
      pcVar2 = cbhead;
      if (pcVar4 != (callback *)0x0) {
        pcVar3->next = cbhead;
        cbhead = pcVar1;
        pcVar2 = pcVar4;
        pcVar1 = cbhead;
      }
    }
  }
  cbhead = pcVar4;
  cbtail = pcVar3;
  return;
}



void FUN_00111074(long param_1)

{
  undefined8 *puVar1;
  undefined8 *puVar2;
  undefined8 *puVar3;
  undefined8 *puVar4;
  undefined8 *puVar5;
  
  puVar2 = (undefined8 *)0x0;
  puVar3 = (undefined8 *)0x0;
  puVar1 = DAT_0018d150;
  while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,
        DAT_0018d150 != (undefined8 *)0x0) {
    puVar1 = (undefined8 *)*DAT_0018d150;
    if (DAT_0018d150[2] == param_1) {
      DAT_0018d150 = puVar1;
      FUN_001217b3();
      puVar2 = puVar4;
      puVar3 = puVar5;
      puVar1 = DAT_0018d150;
    }
    else {
      puVar3 = DAT_0018d150;
      if (puVar5 != (undefined8 *)0x0) {
        *puVar4 = DAT_0018d150;
        DAT_0018d150 = puVar1;
        puVar3 = puVar5;
        puVar1 = DAT_0018d150;
      }
    }
  }
  DAT_0018d150 = puVar5;
  DAT_0018d148 = puVar4;
  return;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV R12,RDI
MOV EBX,0x0
MOV EBP,0x0
JMP 0x00111094
CALL 0x001217b3
JMP 0x00111094
MOV RBX,RDI
MOV RBP,RDI
MOV RDI,qword ptr [0x0018d150]
TEST RDI,RDI
JZ 0x001110bd
MOV RAX,qword ptr [RDI]
MOV qword ptr [0x0018d150],RAX
CMP qword ptr [RDI + 0x10],R12
JZ 0x00111087
TEST RBP,RBP
JZ 0x0011108e
MOV qword ptr [RBX],RDI
MOV RBX,RDI
JMP 0x00111094
MOV qword ptr [0x0018d150],RBP
MOV qword ptr [0x0018d148],RBX
POP RBX
POP RBP
POP R12
RET
(translation_unit "void FUN_00111074(long param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  \n  puVar2 = (undefined8 *)0x0;\n  puVar3 = (undefined8 *)0x0;\n  puVar1 = DAT_0018d150;\n  while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }\n  DAT_0018d150 = puVar5;\n  DAT_0018d148 = puVar4;\n  return;\n}\n\n" (function_definition "void FUN_00111074(long param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  \n  puVar2 = (undefined8 *)0x0;\n  puVar3 = (undefined8 *)0x0;\n  puVar1 = DAT_0018d150;\n  while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }\n  DAT_0018d150 = puVar5;\n  DAT_0018d148 = puVar4;\n  return;\n}" primitive_type (function_declarator "FUN_00111074(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  \n  puVar2 = (undefined8 *)0x0;\n  puVar3 = (undefined8 *)0x0;\n  puVar1 = DAT_0018d150;\n  while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }\n  DAT_0018d150 = puVar5;\n  DAT_0018d148 = puVar4;\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar2 = (undefined8 *)0x0;" (assignment_expression "puVar2 = (undefined8 *)0x0" identifier = (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar3 = (undefined8 *)0x0;" (assignment_expression "puVar3 = (undefined8 *)0x0" identifier = (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar1 = DAT_0018d150;" (assignment_expression "puVar1 = DAT_0018d150" identifier = identifier) ;) (while_statement "while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }" while (parenthesized_expression "(DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0)" ( (comma_expression "DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "DAT_0018d150 = puVar1" identifier = identifier) , (comma_expression "puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "puVar5 = puVar3" identifier = identifier) , (comma_expression "puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "puVar4 = puVar2" identifier = identifier) , (comma_expression "puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "puVar2 = DAT_0018d150" identifier = identifier) , (binary_expression "DAT_0018d150 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)))))) )) (compound_statement "{\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }" { (expression_statement "puVar1 = (undefined8 *)*DAT_0018d150;" (assignment_expression "puVar1 = (undefined8 *)*DAT_0018d150" identifier = (cast_expression "(undefined8 *)*DAT_0018d150" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_0018d150" * identifier))) ;) (if_statement "if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }" if (parenthesized_expression "(DAT_0018d150[2] == param_1)" ( (binary_expression "DAT_0018d150[2] == param_1" (subscript_expression "DAT_0018d150[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }" { (expression_statement "DAT_0018d150 = puVar1;" (assignment_expression "DAT_0018d150 = puVar1" identifier = identifier) ;) (expression_statement "FUN_001217b3();" (call_expression "FUN_001217b3()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" identifier = identifier) ;) (expression_statement "puVar3 = puVar5;" (assignment_expression "puVar3 = puVar5" identifier = identifier) ;) (expression_statement "puVar1 = DAT_0018d150;" (assignment_expression "puVar1 = DAT_0018d150" identifier = identifier) ;) }) (else_clause "else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }" else (compound_statement "{\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }" { (expression_statement "puVar3 = DAT_0018d150;" (assignment_expression "puVar3 = DAT_0018d150" identifier = identifier) ;) (if_statement "if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }" if (parenthesized_expression "(puVar5 != (undefined8 *)0x0)" ( (binary_expression "puVar5 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }" { (expression_statement "*puVar4 = DAT_0018d150;" (assignment_expression "*puVar4 = DAT_0018d150" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "DAT_0018d150 = puVar1;" (assignment_expression "DAT_0018d150 = puVar1" identifier = identifier) ;) (expression_statement "puVar3 = puVar5;" (assignment_expression "puVar3 = puVar5" identifier = identifier) ;) (expression_statement "puVar1 = DAT_0018d150;" (assignment_expression "puVar1 = DAT_0018d150" identifier = identifier) ;) })) }))) })) (expression_statement "DAT_0018d150 = puVar5;" (assignment_expression "DAT_0018d150 = puVar5" identifier = identifier) ;) (expression_statement "DAT_0018d148 = puVar4;" (assignment_expression "DAT_0018d148 = puVar4" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void delete_callbacks_for_context(void *ctx)\n\n{\n  callback *pcVar1;\n  callback *ptr;\n  callback *pcVar2;\n  callback *pcVar3;\n  callback *pcVar4;\n  \n  ptr = (callback *)0x0;\n  pcVar2 = (callback *)0x0;\n  pcVar1 = cbhead;\n  while (cbhead = pcVar1, pcVar4 = pcVar2, pcVar3 = ptr, ptr = cbhead, cbhead != (callback *)0x0) {\n    pcVar1 = cbhead->next;\n    if (cbhead->ctx == ctx) {\n      cbhead = pcVar1;\n      safefree(ptr);\n      ptr = pcVar3;\n      pcVar2 = pcVar4;\n      pcVar1 = cbhead;\n    }\n    else {\n      pcVar2 = cbhead;\n      if (pcVar4 != (callback *)0x0) {\n        pcVar3->next = cbhead;\n        cbhead = pcVar1;\n        pcVar2 = pcVar4;\n        pcVar1 = cbhead;\n      }\n    }\n  }\n  cbhead = pcVar4;\n  cbtail = pcVar3;\n  return;\n}\n\n" (function_definition "void delete_callbacks_for_context(void *ctx)\n\n{\n  callback *pcVar1;\n  callback *ptr;\n  callback *pcVar2;\n  callback *pcVar3;\n  callback *pcVar4;\n  \n  ptr = (callback *)0x0;\n  pcVar2 = (callback *)0x0;\n  pcVar1 = cbhead;\n  while (cbhead = pcVar1, pcVar4 = pcVar2, pcVar3 = ptr, ptr = cbhead, cbhead != (callback *)0x0) {\n    pcVar1 = cbhead->next;\n    if (cbhead->ctx == ctx) {\n      cbhead = pcVar1;\n      safefree(ptr);\n      ptr = pcVar3;\n      pcVar2 = pcVar4;\n      pcVar1 = cbhead;\n    }\n    else {\n      pcVar2 = cbhead;\n      if (pcVar4 != (callback *)0x0) {\n        pcVar3->next = cbhead;\n        cbhead = pcVar1;\n        pcVar2 = pcVar4;\n        pcVar1 = cbhead;\n      }\n    }\n  }\n  cbhead = pcVar4;\n  cbtail = pcVar3;\n  return;\n}" primitive_type (function_declarator "delete_callbacks_for_context(void *ctx)" identifier (parameter_list "(void *ctx)" ( (parameter_declaration "void *ctx" primitive_type (pointer_declarator "*ctx" * identifier)) ))) (compound_statement "{\n  callback *pcVar1;\n  callback *ptr;\n  callback *pcVar2;\n  callback *pcVar3;\n  callback *pcVar4;\n  \n  ptr = (callback *)0x0;\n  pcVar2 = (callback *)0x0;\n  pcVar1 = cbhead;\n  while (cbhead = pcVar1, pcVar4 = pcVar2, pcVar3 = ptr, ptr = cbhead, cbhead != (callback *)0x0) {\n    pcVar1 = cbhead->next;\n    if (cbhead->ctx == ctx) {\n      cbhead = pcVar1;\n      safefree(ptr);\n      ptr = pcVar3;\n      pcVar2 = pcVar4;\n      pcVar1 = cbhead;\n    }\n    else {\n      pcVar2 = cbhead;\n      if (pcVar4 != (callback *)0x0) {\n        pcVar3->next = cbhead;\n        cbhead = pcVar1;\n        pcVar2 = pcVar4;\n        pcVar1 = cbhead;\n      }\n    }\n  }\n  cbhead = pcVar4;\n  cbtail = pcVar3;\n  return;\n}" { (declaration "callback *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "callback *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "callback *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "callback *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "callback *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "ptr = (callback *)0x0;" (assignment_expression "ptr = (callback *)0x0" identifier = (cast_expression "(callback *)0x0" ( (type_descriptor "callback *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar2 = (callback *)0x0;" (assignment_expression "pcVar2 = (callback *)0x0" identifier = (cast_expression "(callback *)0x0" ( (type_descriptor "callback *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar1 = cbhead;" (assignment_expression "pcVar1 = cbhead" identifier = identifier) ;) (while_statement "while (cbhead = pcVar1, pcVar4 = pcVar2, pcVar3 = ptr, ptr = cbhead, cbhead != (callback *)0x0) {\n    pcVar1 = cbhead->next;\n    if (cbhead->ctx == ctx) {\n      cbhead = pcVar1;\n      safefree(ptr);\n      ptr = pcVar3;\n      pcVar2 = pcVar4;\n      pcVar1 = cbhead;\n    }\n    else {\n      pcVar2 = cbhead;\n      if (pcVar4 != (callback *)0x0) {\n        pcVar3->next = cbhead;\n        cbhead = pcVar1;\n        pcVar2 = pcVar4;\n        pcVar1 = cbhead;\n      }\n    }\n  }" while (parenthesized_expression "(cbhead = pcVar1, pcVar4 = pcVar2, pcVar3 = ptr, ptr = cbhead, cbhead != (callback *)0x0)" ( (comma_expression "cbhead = pcVar1, pcVar4 = pcVar2, pcVar3 = ptr, ptr = cbhead, cbhead != (callback *)0x0" (assignment_expression "cbhead = pcVar1" identifier = identifier) , (comma_expression "pcVar4 = pcVar2, pcVar3 = ptr, ptr = cbhead, cbhead != (callback *)0x0" (assignment_expression "pcVar4 = pcVar2" identifier = identifier) , (comma_expression "pcVar3 = ptr, ptr = cbhead, cbhead != (callback *)0x0" (assignment_expression "pcVar3 = ptr" identifier = identifier) , (comma_expression "ptr = cbhead, cbhead != (callback *)0x0" (assignment_expression "ptr = cbhead" identifier = identifier) , (binary_expression "cbhead != (callback *)0x0" identifier != (cast_expression "(callback *)0x0" ( (type_descriptor "callback *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)))))) )) (compound_statement "{\n    pcVar1 = cbhead->next;\n    if (cbhead->ctx == ctx) {\n      cbhead = pcVar1;\n      safefree(ptr);\n      ptr = pcVar3;\n      pcVar2 = pcVar4;\n      pcVar1 = cbhead;\n    }\n    else {\n      pcVar2 = cbhead;\n      if (pcVar4 != (callback *)0x0) {\n        pcVar3->next = cbhead;\n        cbhead = pcVar1;\n        pcVar2 = pcVar4;\n        pcVar1 = cbhead;\n      }\n    }\n  }" { (expression_statement "pcVar1 = cbhead->next;" (assignment_expression "pcVar1 = cbhead->next" identifier = (field_expression "cbhead->next" identifier -> field_identifier)) ;) (if_statement "if (cbhead->ctx == ctx) {\n      cbhead = pcVar1;\n      safefree(ptr);\n      ptr = pcVar3;\n      pcVar2 = pcVar4;\n      pcVar1 = cbhead;\n    }\n    else {\n      pcVar2 = cbhead;\n      if (pcVar4 != (callback *)0x0) {\n        pcVar3->next = cbhead;\n        cbhead = pcVar1;\n        pcVar2 = pcVar4;\n        pcVar1 = cbhead;\n      }\n    }" if (parenthesized_expression "(cbhead->ctx == ctx)" ( (binary_expression "cbhead->ctx == ctx" (field_expression "cbhead->ctx" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      cbhead = pcVar1;\n      safefree(ptr);\n      ptr = pcVar3;\n      pcVar2 = pcVar4;\n      pcVar1 = cbhead;\n    }" { (expression_statement "cbhead = pcVar1;" (assignment_expression "cbhead = pcVar1" identifier = identifier) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (expression_statement "ptr = pcVar3;" (assignment_expression "ptr = pcVar3" identifier = identifier) ;) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" identifier = identifier) ;) (expression_statement "pcVar1 = cbhead;" (assignment_expression "pcVar1 = cbhead" identifier = identifier) ;) }) (else_clause "else {\n      pcVar2 = cbhead;\n      if (pcVar4 != (callback *)0x0) {\n        pcVar3->next = cbhead;\n        cbhead = pcVar1;\n        pcVar2 = pcVar4;\n        pcVar1 = cbhead;\n      }\n    }" else (compound_statement "{\n      pcVar2 = cbhead;\n      if (pcVar4 != (callback *)0x0) {\n        pcVar3->next = cbhead;\n        cbhead = pcVar1;\n        pcVar2 = pcVar4;\n        pcVar1 = cbhead;\n      }\n    }" { (expression_statement "pcVar2 = cbhead;" (assignment_expression "pcVar2 = cbhead" identifier = identifier) ;) (if_statement "if (pcVar4 != (callback *)0x0) {\n        pcVar3->next = cbhead;\n        cbhead = pcVar1;\n        pcVar2 = pcVar4;\n        pcVar1 = cbhead;\n      }" if (parenthesized_expression "(pcVar4 != (callback *)0x0)" ( (binary_expression "pcVar4 != (callback *)0x0" identifier != (cast_expression "(callback *)0x0" ( (type_descriptor "callback *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar3->next = cbhead;\n        cbhead = pcVar1;\n        pcVar2 = pcVar4;\n        pcVar1 = cbhead;\n      }" { (expression_statement "pcVar3->next = cbhead;" (assignment_expression "pcVar3->next = cbhead" (field_expression "pcVar3->next" identifier -> field_identifier) = identifier) ;) (expression_statement "cbhead = pcVar1;" (assignment_expression "cbhead = pcVar1" identifier = identifier) ;) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" identifier = identifier) ;) (expression_statement "pcVar1 = cbhead;" (assignment_expression "pcVar1 = cbhead" identifier = identifier) ;) })) }))) })) (expression_statement "cbhead = pcVar4;" (assignment_expression "cbhead = pcVar4" identifier = identifier) ;) (expression_statement "cbtail = pcVar3;" (assignment_expression "cbtail = pcVar3" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00111074(long param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  \n  puVar2 = (undefined8 *)0x0;\n  puVar3 = (undefined8 *)0x0;\n  puVar1 = DAT_0018d150;\n  while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }\n  DAT_0018d150 = puVar5;\n  DAT_0018d148 = puVar4;\n  return;\n}\n\n" (function_definition "void FUN_00111074(long param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  \n  puVar2 = (undefined8 *)0x0;\n  puVar3 = (undefined8 *)0x0;\n  puVar1 = DAT_0018d150;\n  while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }\n  DAT_0018d150 = puVar5;\n  DAT_0018d148 = puVar4;\n  return;\n}" primitive_type (function_declarator "FUN_00111074(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  \n  puVar2 = (undefined8 *)0x0;\n  puVar3 = (undefined8 *)0x0;\n  puVar1 = DAT_0018d150;\n  while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }\n  DAT_0018d150 = puVar5;\n  DAT_0018d148 = puVar4;\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar2 = (undefined8 *)0x0;" (assignment_expression "puVar2 = (undefined8 *)0x0" identifier = (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar3 = (undefined8 *)0x0;" (assignment_expression "puVar3 = (undefined8 *)0x0" identifier = (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar1 = DAT_0018d150;" (assignment_expression "puVar1 = DAT_0018d150" identifier = identifier) ;) (while_statement "while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }" while (parenthesized_expression "(DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0)" ( (comma_expression "DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "DAT_0018d150 = puVar1" identifier = identifier) , (comma_expression "puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "puVar5 = puVar3" identifier = identifier) , (comma_expression "puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "puVar4 = puVar2" identifier = identifier) , (comma_expression "puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "puVar2 = DAT_0018d150" identifier = identifier) , (binary_expression "DAT_0018d150 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)))))) )) (compound_statement "{\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }" { (expression_statement "puVar1 = (undefined8 *)*DAT_0018d150;" (assignment_expression "puVar1 = (undefined8 *)*DAT_0018d150" identifier = (cast_expression "(undefined8 *)*DAT_0018d150" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_0018d150" * identifier))) ;) (if_statement "if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }" if (parenthesized_expression "(DAT_0018d150[2] == param_1)" ( (binary_expression "DAT_0018d150[2] == param_1" (subscript_expression "DAT_0018d150[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }" { (expression_statement "DAT_0018d150 = puVar1;" (assignment_expression "DAT_0018d150 = puVar1" identifier = identifier) ;) (expression_statement "FUN_001217b3();" (call_expression "FUN_001217b3()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" identifier = identifier) ;) (expression_statement "puVar3 = puVar5;" (assignment_expression "puVar3 = puVar5" identifier = identifier) ;) (expression_statement "puVar1 = DAT_0018d150;" (assignment_expression "puVar1 = DAT_0018d150" identifier = identifier) ;) }) (else_clause "else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }" else (compound_statement "{\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }" { (expression_statement "puVar3 = DAT_0018d150;" (assignment_expression "puVar3 = DAT_0018d150" identifier = identifier) ;) (if_statement "if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }" if (parenthesized_expression "(puVar5 != (undefined8 *)0x0)" ( (binary_expression "puVar5 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }" { (expression_statement "*puVar4 = DAT_0018d150;" (assignment_expression "*puVar4 = DAT_0018d150" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "DAT_0018d150 = puVar1;" (assignment_expression "DAT_0018d150 = puVar1" identifier = identifier) ;) (expression_statement "puVar3 = puVar5;" (assignment_expression "puVar3 = puVar5" identifier = identifier) ;) (expression_statement "puVar1 = DAT_0018d150;" (assignment_expression "puVar1 = DAT_0018d150" identifier = identifier) ;) })) }))) })) (expression_statement "DAT_0018d150 = puVar5;" (assignment_expression "DAT_0018d150 = puVar5" identifier = identifier) ;) (expression_statement "DAT_0018d148 = puVar4;" (assignment_expression "DAT_0018d148 = puVar4" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (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 IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) }))) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00111074(long param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  \n  puVar2 = (undefined8 *)0x0;\n  puVar3 = (undefined8 *)0x0;\n  puVar1 = DAT_0018d150;\n  while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }\n  DAT_0018d150 = puVar5;\n  DAT_0018d148 = puVar4;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00111074(long param_1)" (identifier "FUN_00111074") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  undefined8 *puVar4;\n  undefined8 *puVar5;\n  \n  puVar2 = (undefined8 *)0x0;\n  puVar3 = (undefined8 *)0x0;\n  puVar1 = DAT_0018d150;\n  while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }\n  DAT_0018d150 = puVar5;\n  DAT_0018d148 = puVar4;\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined8 *puVar3;" (type_identifier "undefined8") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined8 *puVar4;" (type_identifier "undefined8") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined8 *puVar5;" (type_identifier "undefined8") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "puVar2 = (undefined8 *)0x0;" (assignment_expression "puVar2 = (undefined8 *)0x0" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "puVar3 = (undefined8 *)0x0;" (assignment_expression "puVar3 = (undefined8 *)0x0" (identifier "puVar3") (= "=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "puVar1 = DAT_0018d150;" (assignment_expression "puVar1 = DAT_0018d150" (identifier "puVar1") (= "=") (identifier "DAT_0018d150")) (; ";")) (while_statement "while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }" (while "while") (parenthesized_expression "(DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0)" (( "(") (comma_expression "DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "DAT_0018d150 = puVar1" (identifier "DAT_0018d150") (= "=") (identifier "puVar1")) (, ",") (comma_expression "puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "puVar5 = puVar3" (identifier "puVar5") (= "=") (identifier "puVar3")) (, ",") (comma_expression "puVar4 = puVar2, puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "puVar4 = puVar2" (identifier "puVar4") (= "=") (identifier "puVar2")) (, ",") (comma_expression "puVar2 = DAT_0018d150,\n        DAT_0018d150 != (undefined8 *)0x0" (assignment_expression "puVar2 = DAT_0018d150" (identifier "puVar2") (= "=") (identifier "DAT_0018d150")) (, ",") (binary_expression "DAT_0018d150 != (undefined8 *)0x0" (identifier "DAT_0018d150") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))))))) () ")")) (compound_statement "{\n    puVar1 = (undefined8 *)*DAT_0018d150;\n    if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }\n  }" ({ "{") (expression_statement "puVar1 = (undefined8 *)*DAT_0018d150;" (assignment_expression "puVar1 = (undefined8 *)*DAT_0018d150" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)*DAT_0018d150" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*DAT_0018d150" (* "*") (identifier "DAT_0018d150")))) (; ";")) (if_statement "if (DAT_0018d150[2] == param_1) {\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }\n    else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }" (if "if") (parenthesized_expression "(DAT_0018d150[2] == param_1)" (( "(") (binary_expression "DAT_0018d150[2] == param_1" (subscript_expression "DAT_0018d150[2]" (identifier "DAT_0018d150") ([ "[") (number_literal "2") (] "]")) (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      DAT_0018d150 = puVar1;\n      FUN_001217b3();\n      puVar2 = puVar4;\n      puVar3 = puVar5;\n      puVar1 = DAT_0018d150;\n    }" ({ "{") (expression_statement "DAT_0018d150 = puVar1;" (assignment_expression "DAT_0018d150 = puVar1" (identifier "DAT_0018d150") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "FUN_001217b3();" (call_expression "FUN_001217b3()" (identifier "FUN_001217b3") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" (identifier "puVar2") (= "=") (identifier "puVar4")) (; ";")) (expression_statement "puVar3 = puVar5;" (assignment_expression "puVar3 = puVar5" (identifier "puVar3") (= "=") (identifier "puVar5")) (; ";")) (expression_statement "puVar1 = DAT_0018d150;" (assignment_expression "puVar1 = DAT_0018d150" (identifier "puVar1") (= "=") (identifier "DAT_0018d150")) (; ";")) (} "}")) (else_clause "else {\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }" (else "else") (compound_statement "{\n      puVar3 = DAT_0018d150;\n      if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }\n    }" ({ "{") (expression_statement "puVar3 = DAT_0018d150;" (assignment_expression "puVar3 = DAT_0018d150" (identifier "puVar3") (= "=") (identifier "DAT_0018d150")) (; ";")) (if_statement "if (puVar5 != (undefined8 *)0x0) {\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }" (if "if") (parenthesized_expression "(puVar5 != (undefined8 *)0x0)" (( "(") (binary_expression "puVar5 != (undefined8 *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *puVar4 = DAT_0018d150;\n        DAT_0018d150 = puVar1;\n        puVar3 = puVar5;\n        puVar1 = DAT_0018d150;\n      }" ({ "{") (expression_statement "*puVar4 = DAT_0018d150;" (assignment_expression "*puVar4 = DAT_0018d150" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "DAT_0018d150")) (; ";")) (expression_statement "DAT_0018d150 = puVar1;" (assignment_expression "DAT_0018d150 = puVar1" (identifier "DAT_0018d150") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "puVar3 = puVar5;" (assignment_expression "puVar3 = puVar5" (identifier "puVar3") (= "=") (identifier "puVar5")) (; ";")) (expression_statement "puVar1 = DAT_0018d150;" (assignment_expression "puVar1 = DAT_0018d150" (identifier "puVar1") (= "=") (identifier "DAT_0018d150")) (; ";")) (} "}"))) (} "}")))) (} "}"))) (expression_statement "DAT_0018d150 = puVar5;" (assignment_expression "DAT_0018d150 = puVar5" (identifier "DAT_0018d150") (= "=") (identifier "puVar5")) (; ";")) (expression_statement "DAT_0018d148 = puVar4;" (assignment_expression "DAT_0018d148 = puVar4" (identifier "DAT_0018d148") (= "=") (identifier "puVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(void *var_2)

{
  type_1 *pcVar1;
  type_1 *ptr;
  type_1 *pcVar2;
  type_1 *pcVar3;
  type_1 *var_4;
  
  ptr = (type_1 *)0x0;
  pcVar2 = (type_1 *)0x0;
  pcVar1 = var_1;
  while (var_1 = pcVar1, var_4 = pcVar2, pcVar3 = ptr, ptr = var_1, var_1 != (type_1 *)0x0) {
    pcVar1 = var_1->next;
    if (var_1->var_2 == var_2) {
      var_1 = pcVar1;
      var_3(ptr);
      ptr = pcVar3;
      pcVar2 = var_4;
      pcVar1 = var_1;
    }
    else {
      pcVar2 = var_1;
      if (var_4 != (type_1 *)0x0) {
        pcVar3->next = var_1;
        var_1 = pcVar1;
        pcVar2 = var_4;
        pcVar1 = var_1;
      }
    }
  }
  var_1 = var_4;
  cbtail = pcVar3;
  return;
}


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

void MASKED(long param_1)

{
  undefined8 *puVar1;
  undefined8 *puVar2;
  undefined8 *puVar3;
  undefined8 *puVar4;
  undefined8 *puVar5;
  
  puVar2 = (undefined8 *)0x0;
  puVar3 = (undefined8 *)0x0;
  puVar1 = DAT_0018d150;
  while (DAT_0018d150 = puVar1, puVar5 = puVar3, puVar4 = puVar2, puVar2 = DAT_0018d150,
        DAT_0018d150 != (undefined8 *)0x0) {
    puVar1 = (undefined8 *)*DAT_0018d150;
    if (DAT_0018d150[2] == param_1) {
      DAT_0018d150 = puVar1;
      FUN_001217b3();
      puVar2 = puVar4;
      puVar3 = puVar5;
      puVar1 = DAT_0018d150;
    }
    else {
      puVar3 = DAT_0018d150;
      if (puVar5 != (undefined8 *)0x0) {
        *puVar4 = DAT_0018d150;
        DAT_0018d150 = puVar1;
        puVar3 = puVar5;
        puVar1 = DAT_0018d150;
      }
    }
  }
  DAT_0018d150 = puVar5;
  DAT_0018d148 = puVar4;
  return;
}

