
void * GetNextKeyInSplayTree(SplayTreeInfo *splay_tree)

{
  undefined *puVar1;
  _NodeInfo_conflict1 *p_Var2;
  _NodeInfo_conflict1 *p_Var3;
  SemaphoreInfo *pSVar4;
  void *pvVar5;
  
  if (splay_tree == (SplayTreeInfo *)0x0) {
    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)
                               (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,
                                0x309,PTR_s_courses_003a88ec + -0x41c8);
    return pvVar5;
  }
  if (splay_tree->signature != 0xabacadab) {
    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)
                               (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,
                                0x30a,PTR_s_courses_003a88ec + -0x41c8);
    return pvVar5;
  }
  if (splay_tree->debug != MagickFalse) {
    (*(code *)PTR_LogMagickEvent_003a91e0)
              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,
               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);
  }
  if ((splay_tree->root != (NodeInfo_conflict1 *)0x0) && (splay_tree->next != (void *)0x0)) {
    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(splay_tree->semaphore);
    SplaySplayTree(splay_tree,splay_tree->next);
    splay_tree->next = (void *)0x0;
    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;
    p_Var2 = splay_tree->root->right;
    if (p_Var2 == (_NodeInfo_conflict1 *)0x0) {
      pSVar4 = splay_tree->semaphore;
    }
    else {
      do {
        p_Var3 = p_Var2;
        p_Var2 = p_Var3->left;
      } while (p_Var2 != (_NodeInfo_conflict1 *)0x0);
      splay_tree->next = p_Var3->key;
      pSVar4 = splay_tree->semaphore;
    }
    pvVar5 = splay_tree->root->key;
    (*(code *)puVar1)(pSVar4);
    return pvVar5;
  }
  return (void *)0x0;
}



undefined4 GetNextKeyInSplayTree(int *param_1)

{
  undefined *puVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  undefined4 uVar5;
  
  if (param_1 == (int *)0x0) {
    uVar5 = (*(code *)PTR___assert_fail_003a9608)
                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,
                       PTR_s_courses_003a88ec + -0x41c8);
    return uVar5;
  }
  if (param_1[10] != -0x54535255) {
    uVar5 = (*(code *)PTR___assert_fail_003a9608)
                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,
                       PTR_s_courses_003a88ec + -0x41c8);
    return uVar5;
  }
  if (param_1[8] != 0) {
    (*(code *)PTR_LogMagickEvent_003a91e0)
              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,
               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);
  }
  if ((*param_1 != 0) && (param_1[6] != 0)) {
    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);
    FUN_001a96a8(param_1,param_1[6]);
    param_1[6] = 0;
    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;
    piVar2 = (int *)((undefined4 *)*param_1)[3];
    if (piVar2 == (int *)0x0) {
      iVar4 = param_1[9];
    }
    else {
      do {
        piVar3 = piVar2;
        piVar2 = (int *)piVar3[2];
      } while (piVar2 != (int *)0x0);
      param_1[6] = *piVar3;
      iVar4 = param_1[9];
    }
    uVar5 = *(undefined4 *)*param_1;
    (*(code *)puVar1)(iVar4);
    return uVar5;
  }
  return 0;
}


lui gp,0x20
addiu gp,gp,0x63a0
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x18(sp)
sw ra,0x24(sp)
beq a0,zero,0x001aa624
_sw s0,0x20(sp)
lui v0,0xabac
lw v1,0x28(a0)
ori v0,v0,0xadab
bne v1,v0,0x001aa648
_or s0,a0,zero
lw v0,0x20(a0)
bne v0,zero,0x001aa5e0
_lw v0,-0x7fc8(gp)
lw v0,0x0(s0)
beq v0,zero,0x001aa610
_lw ra,0x24(sp)
lw v0,0x18(s0)
beq v0,zero,0x001aa610
_lw t9,-0x71c8(gp)
jalr t9
_lw a0,0x24(s0)
or a0,s0,zero
lw gp,0x18(sp)
lw t9,-0x7f30(gp)
addiu t9,t9,-0x6958
bal 0x001a96a8
_lw a1,0x18(s0)
lw a1,0x0(s0)
lw gp,0x18(sp)
sw zero,0x18(s0)
lw v1,0xc(a1)
bne v1,zero,0x001aa5ac
_lw t9,-0x7530(gp)
b 0x001aa5c4
_lw a0,0x24(s0)
or v1,v0,zero
lw v0,0x8(v1)
bne v0,zero,0x001aa5a8
_lw t9,-0x7530(gp)
lw v0,0x0(v1)
sw v0,0x18(s0)
lw a0,0x24(s0)
jalr t9
_lw s0,0x0(a1)
lw ra,0x24(sp)
or v0,s0,zero
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
li a3,0x30c
lw a2,-0x7fc4(gp)
ori a0,zero,0x8000
lw a1,-0x7fc4(gp)
lw t9,-0x76d0(gp)
addiu v0,v0,-0x1fec
addiu a2,a2,-0x41e0
addiu a1,a1,-0x43e0
jalr t9
_sw v0,0x10(sp)
b 0x001aa550
_lw gp,0x18(sp)
or s0,zero,zero
or v0,s0,zero
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw a3,-0x7fc4(gp)
li a2,0x309
lw a1,-0x7fc4(gp)
lw a0,-0x7fc4(gp)
lw t9,-0x72a8(gp)
addiu a3,a3,-0x41c8
addiu a1,a1,-0x43e0
jalr t9
_addiu a0,a0,-0x43c8
lw a3,-0x7fc4(gp)
li a2,0x30a
lw a1,-0x7fc4(gp)
lw a0,-0x7fc4(gp)
lw t9,-0x72a8(gp)
addiu a3,a3,-0x41c8
addiu a1,a1,-0x43e0
jalr t9
_addiu a0,a0,-0x43a0
(translation_unit "undefined4 GetNextKeyInSplayTree(int *param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (param_1 == (int *)0x0) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[10] != -0x54535255) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[8] != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }\n  if ((*param_1 != 0) && (param_1[6] != 0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 GetNextKeyInSplayTree(int *param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (param_1 == (int *)0x0) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[10] != -0x54535255) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[8] != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }\n  if ((*param_1 != 0) && (param_1[6] != 0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }\n  return 0;\n}" type_identifier (function_declarator "GetNextKeyInSplayTree(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (param_1 == (int *)0x0) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[10] != -0x54535255) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[8] != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }\n  if ((*param_1 != 0) && (param_1[6] != 0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" { (expression_statement "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);" (assignment_expression "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8)" ( (binary_expression "PTR_s_courses_003a88ec + -0x43c8" identifier + number_literal) , (binary_expression "PTR_s_courses_003a88ec + -0x43e0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_courses_003a88ec + -0x41c8" identifier + number_literal) )))) ;) (return_statement "return uVar5;" return identifier ;) })) (if_statement "if (param_1[10] != -0x54535255) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" if (parenthesized_expression "(param_1[10] != -0x54535255)" ( (binary_expression "param_1[10] != -0x54535255" (subscript_expression "param_1[10]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" { (expression_statement "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);" (assignment_expression "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8)" ( (binary_expression "PTR_s_courses_003a88ec + -0x43a0" identifier + number_literal) , (binary_expression "PTR_s_courses_003a88ec + -0x43e0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_courses_003a88ec + -0x41c8" identifier + number_literal) )))) ;) (return_statement "return uVar5;" return identifier ;) })) (if_statement "if (param_1[8] != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }" if (parenthesized_expression "(param_1[8] != 0)" ( (binary_expression "param_1[8] != 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }" { (expression_statement "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);" (call_expression "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_003a91e0)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_003a91e0" * (cast_expression "(code *)PTR_LogMagickEvent_003a91e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec)" ( number_literal , (binary_expression "PTR_s_courses_003a88ec + -0x43e0" identifier + number_literal) , (binary_expression "PTR_s_courses_003a88ec + -0x41e0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec" identifier + number_literal) ))) ;) })) (if_statement "if ((*param_1 != 0) && (param_1[6] != 0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }" if (parenthesized_expression "((*param_1 != 0) && (param_1[6] != 0))" ( (binary_expression "(*param_1 != 0) && (param_1[6] != 0)" (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) && (parenthesized_expression "(param_1[6] != 0)" ( (binary_expression "param_1[6] != 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }" { (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9])" (parenthesized_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)" ( (pointer_expression "*(code *)PTR_LockSemaphoreInfo_003a96e8" * (cast_expression "(code *)PTR_LockSemaphoreInfo_003a96e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[9])" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_001a96a8(param_1,param_1[6]);" (call_expression "FUN_001a96a8(param_1,param_1[6])" identifier (argument_list "(param_1,param_1[6])" ( identifier , (subscript_expression "param_1[6]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar1 = PTR_UnlockSemaphoreInfo_003a9380" identifier = identifier) ;) (expression_statement "piVar2 = (int *)((undefined4 *)*param_1)[3];" (assignment_expression "piVar2 = (int *)((undefined4 *)*param_1)[3]" identifier = (cast_expression "(int *)((undefined4 *)*param_1)[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "((undefined4 *)*param_1)[3]" (parenthesized_expression "((undefined4 *)*param_1)" ( (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )) [ number_literal ]))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar4 = param_1[9];\n    }" { (expression_statement "iVar4 = param_1[9];" (assignment_expression "iVar4 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }" else (compound_statement "{\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }" { (do_statement "do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);" do (compound_statement "{\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      }" { (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" identifier = identifier) ;) (expression_statement "piVar2 = (int *)piVar3[2];" (assignment_expression "piVar2 = (int *)piVar3[2]" identifier = (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "param_1[6] = *piVar3;" (assignment_expression "param_1[6] = *piVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iVar4 = param_1[9];" (assignment_expression "iVar4 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) }))) (expression_statement "uVar5 = *(undefined4 *)*param_1;" (assignment_expression "uVar5 = *(undefined4 *)*param_1" identifier = (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)))) ;) (expression_statement "(*(code *)puVar1)(iVar4);" (call_expression "(*(code *)puVar1)(iVar4)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return uVar5;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void * GetNextKeyInSplayTree(SplayTreeInfo *splay_tree)\n\n{\n  undefined *puVar1;\n  _NodeInfo_conflict1 *p_Var2;\n  _NodeInfo_conflict1 *p_Var3;\n  SemaphoreInfo *pSVar4;\n  void *pvVar5;\n  \n  if (splay_tree == (SplayTreeInfo *)0x0) {\n    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,\n                                0x309,PTR_s_courses_003a88ec + -0x41c8);\n    return pvVar5;\n  }\n  if (splay_tree->signature != 0xabacadab) {\n    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,\n                                0x30a,PTR_s_courses_003a88ec + -0x41c8);\n    return pvVar5;\n  }\n  if (splay_tree->debug != MagickFalse) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }\n  if ((splay_tree->root != (NodeInfo_conflict1 *)0x0) && (splay_tree->next != (void *)0x0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(splay_tree->semaphore);\n    SplaySplayTree(splay_tree,splay_tree->next);\n    splay_tree->next = (void *)0x0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    p_Var2 = splay_tree->root->right;\n    if (p_Var2 == (_NodeInfo_conflict1 *)0x0) {\n      pSVar4 = splay_tree->semaphore;\n    }\n    else {\n      do {\n        p_Var3 = p_Var2;\n        p_Var2 = p_Var3->left;\n      } while (p_Var2 != (_NodeInfo_conflict1 *)0x0);\n      splay_tree->next = p_Var3->key;\n      pSVar4 = splay_tree->semaphore;\n    }\n    pvVar5 = splay_tree->root->key;\n    (*(code *)puVar1)(pSVar4);\n    return pvVar5;\n  }\n  return (void *)0x0;\n}\n\n" (function_definition "void * GetNextKeyInSplayTree(SplayTreeInfo *splay_tree)\n\n{\n  undefined *puVar1;\n  _NodeInfo_conflict1 *p_Var2;\n  _NodeInfo_conflict1 *p_Var3;\n  SemaphoreInfo *pSVar4;\n  void *pvVar5;\n  \n  if (splay_tree == (SplayTreeInfo *)0x0) {\n    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,\n                                0x309,PTR_s_courses_003a88ec + -0x41c8);\n    return pvVar5;\n  }\n  if (splay_tree->signature != 0xabacadab) {\n    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,\n                                0x30a,PTR_s_courses_003a88ec + -0x41c8);\n    return pvVar5;\n  }\n  if (splay_tree->debug != MagickFalse) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }\n  if ((splay_tree->root != (NodeInfo_conflict1 *)0x0) && (splay_tree->next != (void *)0x0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(splay_tree->semaphore);\n    SplaySplayTree(splay_tree,splay_tree->next);\n    splay_tree->next = (void *)0x0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    p_Var2 = splay_tree->root->right;\n    if (p_Var2 == (_NodeInfo_conflict1 *)0x0) {\n      pSVar4 = splay_tree->semaphore;\n    }\n    else {\n      do {\n        p_Var3 = p_Var2;\n        p_Var2 = p_Var3->left;\n      } while (p_Var2 != (_NodeInfo_conflict1 *)0x0);\n      splay_tree->next = p_Var3->key;\n      pSVar4 = splay_tree->semaphore;\n    }\n    pvVar5 = splay_tree->root->key;\n    (*(code *)puVar1)(pSVar4);\n    return pvVar5;\n  }\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* GetNextKeyInSplayTree(SplayTreeInfo *splay_tree)" * (function_declarator "GetNextKeyInSplayTree(SplayTreeInfo *splay_tree)" identifier (parameter_list "(SplayTreeInfo *splay_tree)" ( (parameter_declaration "SplayTreeInfo *splay_tree" type_identifier (pointer_declarator "*splay_tree" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  _NodeInfo_conflict1 *p_Var2;\n  _NodeInfo_conflict1 *p_Var3;\n  SemaphoreInfo *pSVar4;\n  void *pvVar5;\n  \n  if (splay_tree == (SplayTreeInfo *)0x0) {\n    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,\n                                0x309,PTR_s_courses_003a88ec + -0x41c8);\n    return pvVar5;\n  }\n  if (splay_tree->signature != 0xabacadab) {\n    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,\n                                0x30a,PTR_s_courses_003a88ec + -0x41c8);\n    return pvVar5;\n  }\n  if (splay_tree->debug != MagickFalse) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }\n  if ((splay_tree->root != (NodeInfo_conflict1 *)0x0) && (splay_tree->next != (void *)0x0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(splay_tree->semaphore);\n    SplaySplayTree(splay_tree,splay_tree->next);\n    splay_tree->next = (void *)0x0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    p_Var2 = splay_tree->root->right;\n    if (p_Var2 == (_NodeInfo_conflict1 *)0x0) {\n      pSVar4 = splay_tree->semaphore;\n    }\n    else {\n      do {\n        p_Var3 = p_Var2;\n        p_Var2 = p_Var3->left;\n      } while (p_Var2 != (_NodeInfo_conflict1 *)0x0);\n      splay_tree->next = p_Var3->key;\n      pSVar4 = splay_tree->semaphore;\n    }\n    pvVar5 = splay_tree->root->key;\n    (*(code *)puVar1)(pSVar4);\n    return pvVar5;\n  }\n  return (void *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "_NodeInfo_conflict1 *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "_NodeInfo_conflict1 *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "SemaphoreInfo *pSVar4;" type_identifier (pointer_declarator "*pSVar4" * identifier) ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (if_statement "if (splay_tree == (SplayTreeInfo *)0x0) {\n    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,\n                                0x309,PTR_s_courses_003a88ec + -0x41c8);\n    return pvVar5;\n  }" if (parenthesized_expression "(splay_tree == (SplayTreeInfo *)0x0)" ( (binary_expression "splay_tree == (SplayTreeInfo *)0x0" identifier == (cast_expression "(SplayTreeInfo *)0x0" ( (type_descriptor "SplayTreeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,\n                                0x309,PTR_s_courses_003a88ec + -0x41c8);\n    return pvVar5;\n  }" { (expression_statement "pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,\n                                0x309,PTR_s_courses_003a88ec + -0x41c8);" (assignment_expression "pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,\n                                0x309,PTR_s_courses_003a88ec + -0x41c8)" identifier = (cast_expression "(void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,\n                                0x309,PTR_s_courses_003a88ec + -0x41c8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,\n                                0x309,PTR_s_courses_003a88ec + -0x41c8)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,\n                                0x309,PTR_s_courses_003a88ec + -0x41c8)" ( (binary_expression "PTR_s_courses_003a88ec + -0x43c8" identifier + number_literal) , (binary_expression "PTR_s_courses_003a88ec + -0x43e0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_courses_003a88ec + -0x41c8" identifier + number_literal) ))))) ;) (return_statement "return pvVar5;" return identifier ;) })) (if_statement "if (splay_tree->signature != 0xabacadab) {\n    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,\n                                0x30a,PTR_s_courses_003a88ec + -0x41c8);\n    return pvVar5;\n  }" if (parenthesized_expression "(splay_tree->signature != 0xabacadab)" ( (binary_expression "splay_tree->signature != 0xabacadab" (field_expression "splay_tree->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,\n                                0x30a,PTR_s_courses_003a88ec + -0x41c8);\n    return pvVar5;\n  }" { (expression_statement "pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,\n                                0x30a,PTR_s_courses_003a88ec + -0x41c8);" (assignment_expression "pvVar5 = (void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,\n                                0x30a,PTR_s_courses_003a88ec + -0x41c8)" identifier = (cast_expression "(void *)(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,\n                                0x30a,PTR_s_courses_003a88ec + -0x41c8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                               (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,\n                                0x30a,PTR_s_courses_003a88ec + -0x41c8)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,\n                                0x30a,PTR_s_courses_003a88ec + -0x41c8)" ( (binary_expression "PTR_s_courses_003a88ec + -0x43a0" identifier + number_literal) , (binary_expression "PTR_s_courses_003a88ec + -0x43e0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_courses_003a88ec + -0x41c8" identifier + number_literal) ))))) ;) (return_statement "return pvVar5;" return identifier ;) })) (if_statement "if (splay_tree->debug != MagickFalse) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }" if (parenthesized_expression "(splay_tree->debug != MagickFalse)" ( (binary_expression "splay_tree->debug != MagickFalse" (field_expression "splay_tree->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }" { (expression_statement "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);" (call_expression "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_003a91e0)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_003a91e0" * (cast_expression "(code *)PTR_LogMagickEvent_003a91e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec)" ( number_literal , (binary_expression "PTR_s_courses_003a88ec + -0x43e0" identifier + number_literal) , (binary_expression "PTR_s_courses_003a88ec + -0x41e0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec" identifier + number_literal) ))) ;) })) (if_statement "if ((splay_tree->root != (NodeInfo_conflict1 *)0x0) && (splay_tree->next != (void *)0x0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(splay_tree->semaphore);\n    SplaySplayTree(splay_tree,splay_tree->next);\n    splay_tree->next = (void *)0x0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    p_Var2 = splay_tree->root->right;\n    if (p_Var2 == (_NodeInfo_conflict1 *)0x0) {\n      pSVar4 = splay_tree->semaphore;\n    }\n    else {\n      do {\n        p_Var3 = p_Var2;\n        p_Var2 = p_Var3->left;\n      } while (p_Var2 != (_NodeInfo_conflict1 *)0x0);\n      splay_tree->next = p_Var3->key;\n      pSVar4 = splay_tree->semaphore;\n    }\n    pvVar5 = splay_tree->root->key;\n    (*(code *)puVar1)(pSVar4);\n    return pvVar5;\n  }" if (parenthesized_expression "((splay_tree->root != (NodeInfo_conflict1 *)0x0) && (splay_tree->next != (void *)0x0))" ( (binary_expression "(splay_tree->root != (NodeInfo_conflict1 *)0x0) && (splay_tree->next != (void *)0x0)" (parenthesized_expression "(splay_tree->root != (NodeInfo_conflict1 *)0x0)" ( (binary_expression "splay_tree->root != (NodeInfo_conflict1 *)0x0" (field_expression "splay_tree->root" identifier -> field_identifier) != (cast_expression "(NodeInfo_conflict1 *)0x0" ( (type_descriptor "NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(splay_tree->next != (void *)0x0)" ( (binary_expression "splay_tree->next != (void *)0x0" (field_expression "splay_tree->next" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(splay_tree->semaphore);\n    SplaySplayTree(splay_tree,splay_tree->next);\n    splay_tree->next = (void *)0x0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    p_Var2 = splay_tree->root->right;\n    if (p_Var2 == (_NodeInfo_conflict1 *)0x0) {\n      pSVar4 = splay_tree->semaphore;\n    }\n    else {\n      do {\n        p_Var3 = p_Var2;\n        p_Var2 = p_Var3->left;\n      } while (p_Var2 != (_NodeInfo_conflict1 *)0x0);\n      splay_tree->next = p_Var3->key;\n      pSVar4 = splay_tree->semaphore;\n    }\n    pvVar5 = splay_tree->root->key;\n    (*(code *)puVar1)(pSVar4);\n    return pvVar5;\n  }" { (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(splay_tree->semaphore);" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(splay_tree->semaphore)" (parenthesized_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)" ( (pointer_expression "*(code *)PTR_LockSemaphoreInfo_003a96e8" * (cast_expression "(code *)PTR_LockSemaphoreInfo_003a96e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(splay_tree->semaphore)" ( (field_expression "splay_tree->semaphore" identifier -> field_identifier) ))) ;) (expression_statement "SplaySplayTree(splay_tree,splay_tree->next);" (call_expression "SplaySplayTree(splay_tree,splay_tree->next)" identifier (argument_list "(splay_tree,splay_tree->next)" ( identifier , (field_expression "splay_tree->next" identifier -> field_identifier) ))) ;) (expression_statement "splay_tree->next = (void *)0x0;" (assignment_expression "splay_tree->next = (void *)0x0" (field_expression "splay_tree->next" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar1 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar1 = PTR_UnlockSemaphoreInfo_003a9380" identifier = identifier) ;) (expression_statement "p_Var2 = splay_tree->root->right;" (assignment_expression "p_Var2 = splay_tree->root->right" identifier = (field_expression "splay_tree->root->right" (field_expression "splay_tree->root" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (p_Var2 == (_NodeInfo_conflict1 *)0x0) {\n      pSVar4 = splay_tree->semaphore;\n    }\n    else {\n      do {\n        p_Var3 = p_Var2;\n        p_Var2 = p_Var3->left;\n      } while (p_Var2 != (_NodeInfo_conflict1 *)0x0);\n      splay_tree->next = p_Var3->key;\n      pSVar4 = splay_tree->semaphore;\n    }" if (parenthesized_expression "(p_Var2 == (_NodeInfo_conflict1 *)0x0)" ( (binary_expression "p_Var2 == (_NodeInfo_conflict1 *)0x0" identifier == (cast_expression "(_NodeInfo_conflict1 *)0x0" ( (type_descriptor "_NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pSVar4 = splay_tree->semaphore;\n    }" { (expression_statement "pSVar4 = splay_tree->semaphore;" (assignment_expression "pSVar4 = splay_tree->semaphore" identifier = (field_expression "splay_tree->semaphore" identifier -> field_identifier)) ;) }) (else_clause "else {\n      do {\n        p_Var3 = p_Var2;\n        p_Var2 = p_Var3->left;\n      } while (p_Var2 != (_NodeInfo_conflict1 *)0x0);\n      splay_tree->next = p_Var3->key;\n      pSVar4 = splay_tree->semaphore;\n    }" else (compound_statement "{\n      do {\n        p_Var3 = p_Var2;\n        p_Var2 = p_Var3->left;\n      } while (p_Var2 != (_NodeInfo_conflict1 *)0x0);\n      splay_tree->next = p_Var3->key;\n      pSVar4 = splay_tree->semaphore;\n    }" { (do_statement "do {\n        p_Var3 = p_Var2;\n        p_Var2 = p_Var3->left;\n      } while (p_Var2 != (_NodeInfo_conflict1 *)0x0);" do (compound_statement "{\n        p_Var3 = p_Var2;\n        p_Var2 = p_Var3->left;\n      }" { (expression_statement "p_Var3 = p_Var2;" (assignment_expression "p_Var3 = p_Var2" identifier = identifier) ;) (expression_statement "p_Var2 = p_Var3->left;" (assignment_expression "p_Var2 = p_Var3->left" identifier = (field_expression "p_Var3->left" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(p_Var2 != (_NodeInfo_conflict1 *)0x0)" ( (binary_expression "p_Var2 != (_NodeInfo_conflict1 *)0x0" identifier != (cast_expression "(_NodeInfo_conflict1 *)0x0" ( (type_descriptor "_NodeInfo_conflict1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "splay_tree->next = p_Var3->key;" (assignment_expression "splay_tree->next = p_Var3->key" (field_expression "splay_tree->next" identifier -> field_identifier) = (field_expression "p_Var3->key" identifier -> field_identifier)) ;) (expression_statement "pSVar4 = splay_tree->semaphore;" (assignment_expression "pSVar4 = splay_tree->semaphore" identifier = (field_expression "splay_tree->semaphore" identifier -> field_identifier)) ;) }))) (expression_statement "pvVar5 = splay_tree->root->key;" (assignment_expression "pvVar5 = splay_tree->root->key" identifier = (field_expression "splay_tree->root->key" (field_expression "splay_tree->root" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "(*(code *)puVar1)(pSVar4);" (call_expression "(*(code *)puVar1)(pSVar4)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pSVar4)" ( identifier ))) ;) (return_statement "return pvVar5;" return identifier ;) })) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 GetNextKeyInSplayTree(int *param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (param_1 == (int *)0x0) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[10] != -0x54535255) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[8] != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }\n  if ((*param_1 != 0) && (param_1[6] != 0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 GetNextKeyInSplayTree(int *param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (param_1 == (int *)0x0) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[10] != -0x54535255) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[8] != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }\n  if ((*param_1 != 0) && (param_1[6] != 0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }\n  return 0;\n}" type_identifier (function_declarator "GetNextKeyInSplayTree(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (param_1 == (int *)0x0) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[10] != -0x54535255) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[8] != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }\n  if ((*param_1 != 0) && (param_1[6] != 0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" { (expression_statement "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);" (assignment_expression "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8)" ( (binary_expression "PTR_s_courses_003a88ec + -0x43c8" identifier + number_literal) , (binary_expression "PTR_s_courses_003a88ec + -0x43e0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_courses_003a88ec + -0x41c8" identifier + number_literal) )))) ;) (return_statement "return uVar5;" return identifier ;) })) (if_statement "if (param_1[10] != -0x54535255) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" if (parenthesized_expression "(param_1[10] != -0x54535255)" ( (binary_expression "param_1[10] != -0x54535255" (subscript_expression "param_1[10]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" { (expression_statement "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);" (assignment_expression "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8)" identifier = (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" ( (pointer_expression "*(code *)PTR___assert_fail_003a9608" * (cast_expression "(code *)PTR___assert_fail_003a9608" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8)" ( (binary_expression "PTR_s_courses_003a88ec + -0x43a0" identifier + number_literal) , (binary_expression "PTR_s_courses_003a88ec + -0x43e0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_courses_003a88ec + -0x41c8" identifier + number_literal) )))) ;) (return_statement "return uVar5;" return identifier ;) })) (if_statement "if (param_1[8] != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }" if (parenthesized_expression "(param_1[8] != 0)" ( (binary_expression "param_1[8] != 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }" { (expression_statement "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);" (call_expression "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_003a91e0)" ( (pointer_expression "*(code *)PTR_LogMagickEvent_003a91e0" * (cast_expression "(code *)PTR_LogMagickEvent_003a91e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec)" ( number_literal , (binary_expression "PTR_s_courses_003a88ec + -0x43e0" identifier + number_literal) , (binary_expression "PTR_s_courses_003a88ec + -0x41e0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec" identifier + number_literal) ))) ;) })) (if_statement "if ((*param_1 != 0) && (param_1[6] != 0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }" if (parenthesized_expression "((*param_1 != 0) && (param_1[6] != 0))" ( (binary_expression "(*param_1 != 0) && (param_1[6] != 0)" (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) && (parenthesized_expression "(param_1[6] != 0)" ( (binary_expression "param_1[6] != 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }" { (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9])" (parenthesized_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)" ( (pointer_expression "*(code *)PTR_LockSemaphoreInfo_003a96e8" * (cast_expression "(code *)PTR_LockSemaphoreInfo_003a96e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[9])" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_001a96a8(param_1,param_1[6]);" (call_expression "FUN_001a96a8(param_1,param_1[6])" identifier (argument_list "(param_1,param_1[6])" ( identifier , (subscript_expression "param_1[6]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar1 = PTR_UnlockSemaphoreInfo_003a9380" identifier = identifier) ;) (expression_statement "piVar2 = (int *)((undefined4 *)*param_1)[3];" (assignment_expression "piVar2 = (int *)((undefined4 *)*param_1)[3]" identifier = (cast_expression "(int *)((undefined4 *)*param_1)[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "((undefined4 *)*param_1)[3]" (parenthesized_expression "((undefined4 *)*param_1)" ( (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )) [ number_literal ]))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar4 = param_1[9];\n    }" { (expression_statement "iVar4 = param_1[9];" (assignment_expression "iVar4 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }" else (compound_statement "{\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }" { (do_statement "do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);" do (compound_statement "{\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      }" { (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" identifier = identifier) ;) (expression_statement "piVar2 = (int *)piVar3[2];" (assignment_expression "piVar2 = (int *)piVar3[2]" identifier = (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "param_1[6] = *piVar3;" (assignment_expression "param_1[6] = *piVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iVar4 = param_1[9];" (assignment_expression "iVar4 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) }))) (expression_statement "uVar5 = *(undefined4 *)*param_1;" (assignment_expression "uVar5 = *(undefined4 *)*param_1" identifier = (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)))) ;) (expression_statement "(*(code *)puVar1)(iVar4);" (call_expression "(*(code *)puVar1)(iVar4)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return uVar5;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )) [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 GetNextKeyInSplayTree(int *param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (param_1 == (int *)0x0) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[10] != -0x54535255) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[8] != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }\n  if ((*param_1 != 0) && (param_1[6] != 0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "GetNextKeyInSplayTree(int *param_1)" (identifier "GetNextKeyInSplayTree") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if (param_1 == (int *)0x0) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[10] != -0x54535255) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }\n  if (param_1[8] != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }\n  if ((*param_1 != 0) && (param_1[6] != 0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" ({ "{") (expression_statement "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8);" (assignment_expression "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_003a9608" (* "*") (cast_expression "(code *)PTR___assert_fail_003a9608" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_003a9608"))) () ")")) (argument_list "(PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,\n                       PTR_s_courses_003a88ec + -0x41c8)" (( "(") (binary_expression "PTR_s_courses_003a88ec + -0x43c8" (identifier "PTR_s_courses_003a88ec") (+ "+") (number_literal "-0x43c8")) (, ",") (binary_expression "PTR_s_courses_003a88ec + -0x43e0" (identifier "PTR_s_courses_003a88ec") (+ "+") (number_literal "-0x43e0")) (, ",") (number_literal "0x309") (, ",") (binary_expression "PTR_s_courses_003a88ec + -0x41c8" (identifier "PTR_s_courses_003a88ec") (+ "+") (number_literal "-0x41c8")) () ")")))) (; ";")) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (if_statement "if (param_1[10] != -0x54535255) {\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" (if "if") (parenthesized_expression "(param_1[10] != -0x54535255)" (( "(") (binary_expression "param_1[10] != -0x54535255" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);\n    return uVar5;\n  }" ({ "{") (expression_statement "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8);" (assignment_expression "uVar5 = (*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR___assert_fail_003a9608)\n                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8)" (parenthesized_expression "(*(code *)PTR___assert_fail_003a9608)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_003a9608" (* "*") (cast_expression "(code *)PTR___assert_fail_003a9608" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_003a9608"))) () ")")) (argument_list "(PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,\n                       PTR_s_courses_003a88ec + -0x41c8)" (( "(") (binary_expression "PTR_s_courses_003a88ec + -0x43a0" (identifier "PTR_s_courses_003a88ec") (+ "+") (number_literal "-0x43a0")) (, ",") (binary_expression "PTR_s_courses_003a88ec + -0x43e0" (identifier "PTR_s_courses_003a88ec") (+ "+") (number_literal "-0x43e0")) (, ",") (number_literal "0x30a") (, ",") (binary_expression "PTR_s_courses_003a88ec + -0x41c8" (identifier "PTR_s_courses_003a88ec") (+ "+") (number_literal "-0x41c8")) () ")")))) (; ";")) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (if_statement "if (param_1[8] != 0) {\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }" (if "if") (parenthesized_expression "(param_1[8] != 0)" (( "(") (binary_expression "param_1[8] != 0" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);\n  }" ({ "{") (expression_statement "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);" (call_expression "(*(code *)PTR_LogMagickEvent_003a91e0)\n              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec)" (parenthesized_expression "(*(code *)PTR_LogMagickEvent_003a91e0)" (( "(") (pointer_expression "*(code *)PTR_LogMagickEvent_003a91e0" (* "*") (cast_expression "(code *)PTR_LogMagickEvent_003a91e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LogMagickEvent_003a91e0"))) () ")")) (argument_list "(0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,\n               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec)" (( "(") (number_literal "0x8000") (, ",") (binary_expression "PTR_s_courses_003a88ec + -0x43e0" (identifier "PTR_s_courses_003a88ec") (+ "+") (number_literal "-0x43e0")) (, ",") (binary_expression "PTR_s_courses_003a88ec + -0x41e0" (identifier "PTR_s_courses_003a88ec") (+ "+") (number_literal "-0x41e0")) (, ",") (number_literal "0x30c") (, ",") (binary_expression "PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec" (identifier "PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8") (+ "+") (number_literal "-0x1fec")) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*param_1 != 0) && (param_1[6] != 0)) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }" (if "if") (parenthesized_expression "((*param_1 != 0) && (param_1[6] != 0))" (( "(") (binary_expression "(*param_1 != 0) && (param_1[6] != 0)" (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1[6] != 0)" (( "(") (binary_expression "param_1[6] != 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);\n    FUN_001a96a8(param_1,param_1[6]);\n    param_1[6] = 0;\n    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;\n    piVar2 = (int *)((undefined4 *)*param_1)[3];\n    if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }\n    uVar5 = *(undefined4 *)*param_1;\n    (*(code *)puVar1)(iVar4);\n    return uVar5;\n  }" ({ "{") (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9])" (parenthesized_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)" (( "(") (pointer_expression "*(code *)PTR_LockSemaphoreInfo_003a96e8" (* "*") (cast_expression "(code *)PTR_LockSemaphoreInfo_003a96e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LockSemaphoreInfo_003a96e8"))) () ")")) (argument_list "(param_1[9])" (( "(") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_001a96a8(param_1,param_1[6]);" (call_expression "FUN_001a96a8(param_1,param_1[6])" (identifier "FUN_001a96a8") (argument_list "(param_1,param_1[6])" (( "(") (identifier "param_1") (, ",") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) () ")"))) (; ";")) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar1 = PTR_UnlockSemaphoreInfo_003a9380" (identifier "puVar1") (= "=") (identifier "PTR_UnlockSemaphoreInfo_003a9380")) (; ";")) (expression_statement "piVar2 = (int *)((undefined4 *)*param_1)[3];" (assignment_expression "piVar2 = (int *)((undefined4 *)*param_1)[3]" (identifier "piVar2") (= "=") (cast_expression "(int *)((undefined4 *)*param_1)[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "((undefined4 *)*param_1)[3]" (parenthesized_expression "((undefined4 *)*param_1)" (( "(") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) ([ "[") (number_literal "3") (] "]")))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n      iVar4 = param_1[9];\n    }\n    else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar4 = param_1[9];\n    }" ({ "{") (expression_statement "iVar4 = param_1[9];" (assignment_expression "iVar4 = param_1[9]" (identifier "iVar4") (= "=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }" (else "else") (compound_statement "{\n      do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);\n      param_1[6] = *piVar3;\n      iVar4 = param_1[9];\n    }" ({ "{") (do_statement "do {\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      } while (piVar2 != (int *)0x0);" (do "do") (compound_statement "{\n        piVar3 = piVar2;\n        piVar2 = (int *)piVar3[2];\n      }" ({ "{") (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" (identifier "piVar3") (= "=") (identifier "piVar2")) (; ";")) (expression_statement "piVar2 = (int *)piVar3[2];" (assignment_expression "piVar2 = (int *)piVar3[2]" (identifier "piVar2") (= "=") (cast_expression "(int *)piVar3[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "param_1[6] = *piVar3;" (assignment_expression "param_1[6] = *piVar3" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "iVar4 = param_1[9];" (assignment_expression "iVar4 = param_1[9]" (identifier "iVar4") (= "=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (; ";")) (} "}")))) (expression_statement "uVar5 = *(undefined4 *)*param_1;" (assignment_expression "uVar5 = *(undefined4 *)*param_1" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)*param_1" (* "*") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))))) (; ";")) (expression_statement "(*(code *)puVar1)(iVar4);" (call_expression "(*(code *)puVar1)(iVar4)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (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: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (parenthesized_expression (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) index: (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: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (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: (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(int *param_1)

{
  undefined *puVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  undefined4 uVar5;
  
  if (param_1 == (int *)0x0) {
    uVar5 = (*(code *)PTR___assert_fail_003a9608)
                      (PTR_s_courses_003a88ec + -0x43c8,PTR_s_courses_003a88ec + -0x43e0,0x309,
                       PTR_s_courses_003a88ec + -0x41c8);
    return uVar5;
  }
  if (param_1[10] != -0x54535255) {
    uVar5 = (*(code *)PTR___assert_fail_003a9608)
                      (PTR_s_courses_003a88ec + -0x43a0,PTR_s_courses_003a88ec + -0x43e0,0x30a,
                       PTR_s_courses_003a88ec + -0x41c8);
    return uVar5;
  }
  if (param_1[8] != 0) {
    (*(code *)PTR_LogMagickEvent_003a91e0)
              (0x8000,PTR_s_courses_003a88ec + -0x43e0,PTR_s_courses_003a88ec + -0x41e0,0x30c,
               PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + -0x1fec);
  }
  if ((*param_1 != 0) && (param_1[6] != 0)) {
    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(param_1[9]);
    FUN_001a96a8(param_1,param_1[6]);
    param_1[6] = 0;
    puVar1 = PTR_UnlockSemaphoreInfo_003a9380;
    piVar2 = (int *)((undefined4 *)*param_1)[3];
    if (piVar2 == (int *)0x0) {
      iVar4 = param_1[9];
    }
    else {
      do {
        piVar3 = piVar2;
        piVar2 = (int *)piVar3[2];
      } while (piVar2 != (int *)0x0);
      param_1[6] = *piVar3;
      iVar4 = param_1[9];
    }
    uVar5 = *(undefined4 *)*param_1;
    (*(code *)puVar1)(iVar4);
    return uVar5;
  }
  return 0;
}

