
Cache ReferencePixelCache(Cache cache)

{
  Cache pvVar1;
  undefined *puVar2;
  int iVar3;
  undefined *puVar4;
  code *pcVar5;
  
  if (cache == (Cache)0x0) {
    (*(code *)PTR___assert_fail_003a9608)
              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)
    ;
  }
  else if (*(int *)((int)cache + 0x2404) == -0x54535255) {
    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)((int)cache + 0x23f8));
    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;
    *(int *)((int)cache + 0x23f4) = *(int *)((int)cache + 0x23f4) + 1;
    (*(code *)puVar4)(*(undefined4 *)((int)cache + 0x23f8));
    return cache;
  }
  puVar2 = PTR_LAB_003a88e0 + 0x27f4;
  puVar4 = PTR___assert_fail_003a9608;
  (*(code *)PTR___assert_fail_003a9608)
            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);
  if (puVar2 == (undefined *)0x0) {
    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;
    (**(code **)(puVar4 + 0x35127c))
              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,
               iVar3,puVar4 + 0x358524);
LAB_00058408:
    iVar3 = iVar3 + 0x2ef8;
    (**(code **)(puVar4 + 0x35127c))
              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,
               iVar3);
  }
  else {
    iVar3 = *(int *)(puVar4 + 0x350554);
    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;
    pvVar1 = *(Cache *)(puVar2 + 0x2d4);
    if (pvVar1 != (Cache)0x0) {
      if (*(int *)((int)pvVar1 + 0x2404) == -0x54535255) {
        *(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);
        return pvVar1;
      }
      goto LAB_00058408;
    }
  }
  iVar3 = iVar3 + 0x2ef8;
  (**(code **)(puVar4 + 0x35127c))
            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);
LAB_00058444:
  pcVar5 = *(code **)(puVar4 + 0x35127c);
  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,
            iVar3 + 0x2ef8);
  pvVar1 = *(Cache *)(pcVar5 + 0x3504e4);
  *(undefined4 *)((int)pvVar1 + 0x6020) = 0;
  return pvVar1;
}



int FUN_000582d4(int param_1)

{
  int iVar1;
  undefined *puVar2;
  int iVar3;
  undefined *puVar4;
  code *pcVar5;
  
  if (param_1 == 0) {
    (*(code *)PTR___assert_fail_003a9608)
              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)
    ;
  }
  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {
    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));
    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;
    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;
    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));
    return param_1;
  }
  puVar2 = PTR_LAB_003a88e0 + 0x27f4;
  puVar4 = PTR___assert_fail_003a9608;
  (*(code *)PTR___assert_fail_003a9608)
            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);
  if (puVar2 == (undefined *)0x0) {
    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;
    (**(code **)(puVar4 + 0x35127c))
              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,
               iVar3,puVar4 + 0x358524);
LAB_00058408:
    iVar3 = iVar3 + 0x2ef8;
    (**(code **)(puVar4 + 0x35127c))
              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,
               iVar3);
  }
  else {
    iVar3 = *(int *)(puVar4 + 0x350554);
    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;
    iVar1 = *(int *)(puVar2 + 0x2d4);
    if (iVar1 != 0) {
      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {
        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);
        return iVar1;
      }
      goto LAB_00058408;
    }
  }
  iVar3 = iVar3 + 0x2ef8;
  (**(code **)(puVar4 + 0x35127c))
            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);
LAB_00058444:
  pcVar5 = *(code **)(puVar4 + 0x35127c);
  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,
            iVar3 + 0x2ef8);
  iVar3 = *(int *)(pcVar5 + 0x3504e4);
  *(undefined4 *)(iVar3 + 0x6020) = 0;
  return iVar3;
}


lui gp,0x36
addiu gp,gp,-0x7a24
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
beq a0,zero,0x00058344
_sw s0,0x18(sp)
lui v0,0xabac
lw v1,0x2404(a0)
ori v0,v0,0xadab
bne v1,v0,0x00058368
_or s0,a0,zero
lw t9,-0x71c8(gp)
jalr t9
_lw a0,0x23f8(a0)
lw gp,0x10(sp)
lw v0,0x23f4(s0)
lw a0,0x23f8(s0)
lw t9,-0x7530(gp)
addiu v0,v0,0x1
jalr t9
_sw v0,0x23f4(s0)
or v0,s0,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw a3,-0x7fd0(gp)
li a2,0x128e
lw a1,-0x7fd0(gp)
lw a0,-0x7fd0(gp)
lw t9,-0x72a8(gp)
addiu a3,a3,0x2f10
addiu a1,a1,0x27e0
jalr t9
_addiu a0,a0,0x2cc0
lw a3,-0x7fd0(gp)
li a2,0x1290
lw a1,-0x7fd0(gp)
lw a0,-0x7fd0(gp)
lw t9,-0x72a8(gp)
addiu a3,a3,0x2f10
addiu a1,a1,0x27e0
jalr t9
_addiu a0,a0,0x27f4
(translation_unit "int FUN_000582d4(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }\n  puVar2 = PTR_LAB_003a88e0 + 0x27f4;\n  puVar4 = PTR___assert_fail_003a9608;\n  (*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);\n  if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }\n  iVar3 = iVar3 + 0x2ef8;\n  (**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);\nLAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);\n  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);\n  iVar3 = *(int *)(pcVar5 + 0x3504e4);\n  *(undefined4 *)(iVar3 + 0x6020) = 0;\n  return iVar3;\n}\n\n" (function_definition "int FUN_000582d4(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }\n  puVar2 = PTR_LAB_003a88e0 + 0x27f4;\n  puVar4 = PTR___assert_fail_003a9608;\n  (*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);\n  if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }\n  iVar3 = iVar3 + 0x2ef8;\n  (**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);\nLAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);\n  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);\n  iVar3 = *(int *)(pcVar5 + 0x3504e4);\n  *(undefined4 *)(iVar3 + 0x6020) = 0;\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000582d4(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }\n  puVar2 = PTR_LAB_003a88e0 + 0x27f4;\n  puVar4 = PTR___assert_fail_003a9608;\n  (*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);\n  if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }\n  iVar3 = iVar3 + 0x2ef8;\n  (**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);\nLAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);\n  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);\n  iVar3 = *(int *)(pcVar5 + 0x3504e4);\n  *(undefined4 *)(iVar3 + 0x6020) = 0;\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;" (call_expression "(*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)" (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_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)" ( (binary_expression "PTR_LAB_003a88e0 + 0x2cc0" identifier + number_literal) , (binary_expression "PTR_LAB_003a88e0 + 0x27e0" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003a88e0 + 0x2f10" identifier + number_literal) ))) ;) }) (else_clause "else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" else (if_statement "if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x2404) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x2404) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x2404)" * (cast_expression "(int *)(param_1 + 0x2404)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2404)" ( (binary_expression "param_1 + 0x2404" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" { (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8))" (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 "(*(undefined4 *)(param_1 + 0x23f8))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x23f8)" * (cast_expression "(undefined4 *)(param_1 + 0x23f8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23f8)" ( (binary_expression "param_1 + 0x23f8" identifier + number_literal) )))) ))) ;) (expression_statement "puVar4 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar4 = PTR_UnlockSemaphoreInfo_003a9380" identifier = identifier) ;) (expression_statement "*(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;" (assignment_expression "*(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1" (pointer_expression "*(int *)(param_1 + 0x23f4)" * (cast_expression "(int *)(param_1 + 0x23f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23f4)" ( (binary_expression "param_1 + 0x23f4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x23f4) + 1" (pointer_expression "*(int *)(param_1 + 0x23f4)" * (cast_expression "(int *)(param_1 + 0x23f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23f4)" ( (binary_expression "param_1 + 0x23f4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));" (call_expression "(*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8))" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x23f8))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x23f8)" * (cast_expression "(undefined4 *)(param_1 + 0x23f8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23f8)" ( (binary_expression "param_1 + 0x23f8" identifier + number_literal) )))) ))) ;) (return_statement "return param_1;" return identifier ;) })))) (expression_statement "puVar2 = PTR_LAB_003a88e0 + 0x27f4;" (assignment_expression "puVar2 = PTR_LAB_003a88e0 + 0x27f4" identifier = (binary_expression "PTR_LAB_003a88e0 + 0x27f4" identifier + number_literal)) ;) (expression_statement "puVar4 = PTR___assert_fail_003a9608;" (assignment_expression "puVar4 = PTR___assert_fail_003a9608" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);" (call_expression "(*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10)" (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 "(puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10)" ( identifier , (binary_expression "PTR_LAB_003a88e0 + 0x27e0" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003a88e0 + 0x2f10" identifier + number_literal) ))) ;) (if_statement "if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" if (parenthesized_expression "(puVar2 == (undefined *)0x0)" ( (binary_expression "puVar2 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }" { (expression_statement "iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;" (assignment_expression "iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8" identifier = (binary_expression "*(int *)(puVar4 + 0x350554) + 0x2ef8" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" ( (pointer_expression "**(code **)(puVar4 + 0x35127c)" * (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524)" ( (binary_expression "*(int *)(puVar4 + 0x35055c) + -0x37b0" (pointer_expression "*(int *)(puVar4 + 0x35055c)" * (cast_expression "(int *)(puVar4 + 0x35055c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x35055c)" ( (binary_expression "puVar4 + 0x35055c" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , number_literal , identifier , (binary_expression "puVar4 + 0x358524" identifier + number_literal) ))) ;) (labeled_statement "LAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;" statement_identifier : (expression_statement "iVar3 = iVar3 + 0x2ef8;" (assignment_expression "iVar3 = iVar3 + 0x2ef8" identifier = (binary_expression "iVar3 + 0x2ef8" identifier + number_literal)) ;)) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" ( (pointer_expression "**(code **)(puVar4 + 0x35127c)" * (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3)" ( (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27f4" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , number_literal , identifier ))) ;) }) (else_clause "else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" else (compound_statement "{\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" { (expression_statement "iVar3 = *(int *)(puVar4 + 0x350554);" (assignment_expression "iVar3 = *(int *)(puVar4 + 0x350554)" identifier = (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;" if (parenthesized_expression "(*(int *)(puVar2 + 0x336c) != -0x54535255)" ( (binary_expression "*(int *)(puVar2 + 0x336c) != -0x54535255" (pointer_expression "*(int *)(puVar2 + 0x336c)" * (cast_expression "(int *)(puVar2 + 0x336c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x336c)" ( (binary_expression "puVar2 + 0x336c" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00058444;" goto statement_identifier ;)) (expression_statement "iVar1 = *(int *)(puVar2 + 0x2d4);" (assignment_expression "iVar1 = *(int *)(puVar2 + 0x2d4)" identifier = (pointer_expression "*(int *)(puVar2 + 0x2d4)" * (cast_expression "(int *)(puVar2 + 0x2d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x2d4)" ( (binary_expression "puVar2 + 0x2d4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }" { (if_statement "if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x2404) == -0x54535255)" ( (binary_expression "*(int *)(iVar1 + 0x2404) == -0x54535255" (pointer_expression "*(int *)(iVar1 + 0x2404)" * (cast_expression "(int *)(iVar1 + 0x2404)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2404)" ( (binary_expression "iVar1 + 0x2404" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }" { (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0)" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" * (cast_expression "(undefined4 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(puVar2 + 0x2c0)" * (cast_expression "(undefined4 *)(puVar2 + 0x2c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x2c0)" ( (binary_expression "puVar2 + 0x2c0" identifier + number_literal) ))))) ;) (return_statement "return iVar1;" return identifier ;) })) (goto_statement "goto LAB_00058408;" goto statement_identifier ;) })) }))) (expression_statement "iVar3 = iVar3 + 0x2ef8;" (assignment_expression "iVar3 = iVar3 + 0x2ef8" identifier = (binary_expression "iVar3 + 0x2ef8" identifier + number_literal)) ;) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" ( (pointer_expression "**(code **)(puVar4 + 0x35127c)" * (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0)" ( (binary_expression "*(int *)(puVar4 + 0x350554) + 0x37c8" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) ))) ;) (labeled_statement "LAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);" statement_identifier : (expression_statement "pcVar5 = *(code **)(puVar4 + 0x35127c);" (assignment_expression "pcVar5 = *(code **)(puVar4 + 0x35127c)" identifier = (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) ;)) (expression_statement "(*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);" (call_expression "(*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8)" ( (binary_expression "*(int *)(puVar4 + 0x35055c) + -0x3784" (pointer_expression "*(int *)(puVar4 + 0x35055c)" * (cast_expression "(int *)(puVar4 + 0x35055c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x35055c)" ( (binary_expression "puVar4 + 0x35055c" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , number_literal , (binary_expression "iVar3 + 0x2ef8" identifier + number_literal) ))) ;) (expression_statement "iVar3 = *(int *)(pcVar5 + 0x3504e4);" (assignment_expression "iVar3 = *(int *)(pcVar5 + 0x3504e4)" identifier = (pointer_expression "*(int *)(pcVar5 + 0x3504e4)" * (cast_expression "(int *)(pcVar5 + 0x3504e4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 0x3504e4)" ( (binary_expression "pcVar5 + 0x3504e4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x6020) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x6020) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x6020)" * (cast_expression "(undefined4 *)(iVar3 + 0x6020)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x6020)" ( (binary_expression "iVar3 + 0x6020" identifier + number_literal) )))) = number_literal) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "Cache ReferencePixelCache(Cache cache)\n\n{\n  Cache pvVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  \n  if (cache == (Cache)0x0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)((int)cache + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)((int)cache + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)((int)cache + 0x23f4) = *(int *)((int)cache + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)((int)cache + 0x23f8));\n    return cache;\n  }\n  puVar2 = PTR_LAB_003a88e0 + 0x27f4;\n  puVar4 = PTR___assert_fail_003a9608;\n  (*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);\n  if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    pvVar1 = *(Cache *)(puVar2 + 0x2d4);\n    if (pvVar1 != (Cache)0x0) {\n      if (*(int *)((int)pvVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return pvVar1;\n      }\n      goto LAB_00058408;\n    }\n  }\n  iVar3 = iVar3 + 0x2ef8;\n  (**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);\nLAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);\n  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);\n  pvVar1 = *(Cache *)(pcVar5 + 0x3504e4);\n  *(undefined4 *)((int)pvVar1 + 0x6020) = 0;\n  return pvVar1;\n}\n\n" (function_definition "Cache ReferencePixelCache(Cache cache)\n\n{\n  Cache pvVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  \n  if (cache == (Cache)0x0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)((int)cache + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)((int)cache + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)((int)cache + 0x23f4) = *(int *)((int)cache + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)((int)cache + 0x23f8));\n    return cache;\n  }\n  puVar2 = PTR_LAB_003a88e0 + 0x27f4;\n  puVar4 = PTR___assert_fail_003a9608;\n  (*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);\n  if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    pvVar1 = *(Cache *)(puVar2 + 0x2d4);\n    if (pvVar1 != (Cache)0x0) {\n      if (*(int *)((int)pvVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return pvVar1;\n      }\n      goto LAB_00058408;\n    }\n  }\n  iVar3 = iVar3 + 0x2ef8;\n  (**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);\nLAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);\n  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);\n  pvVar1 = *(Cache *)(pcVar5 + 0x3504e4);\n  *(undefined4 *)((int)pvVar1 + 0x6020) = 0;\n  return pvVar1;\n}" type_identifier (function_declarator "ReferencePixelCache(Cache cache)" identifier (parameter_list "(Cache cache)" ( (parameter_declaration "Cache cache" type_identifier identifier) ))) (compound_statement "{\n  Cache pvVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  \n  if (cache == (Cache)0x0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)((int)cache + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)((int)cache + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)((int)cache + 0x23f4) = *(int *)((int)cache + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)((int)cache + 0x23f8));\n    return cache;\n  }\n  puVar2 = PTR_LAB_003a88e0 + 0x27f4;\n  puVar4 = PTR___assert_fail_003a9608;\n  (*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);\n  if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    pvVar1 = *(Cache *)(puVar2 + 0x2d4);\n    if (pvVar1 != (Cache)0x0) {\n      if (*(int *)((int)pvVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return pvVar1;\n      }\n      goto LAB_00058408;\n    }\n  }\n  iVar3 = iVar3 + 0x2ef8;\n  (**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);\nLAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);\n  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);\n  pvVar1 = *(Cache *)(pcVar5 + 0x3504e4);\n  *(undefined4 *)((int)pvVar1 + 0x6020) = 0;\n  return pvVar1;\n}" { (declaration "Cache pvVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (cache == (Cache)0x0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)((int)cache + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)((int)cache + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)((int)cache + 0x23f4) = *(int *)((int)cache + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)((int)cache + 0x23f8));\n    return cache;\n  }" if (parenthesized_expression "(cache == (Cache)0x0)" ( (binary_expression "cache == (Cache)0x0" identifier == (cast_expression "(Cache)0x0" ( (type_descriptor "Cache" type_identifier) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;" (call_expression "(*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)" (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_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)" ( (binary_expression "PTR_LAB_003a88e0 + 0x2cc0" identifier + number_literal) , (binary_expression "PTR_LAB_003a88e0 + 0x27e0" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003a88e0 + 0x2f10" identifier + number_literal) ))) ;) }) (else_clause "else if (*(int *)((int)cache + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)((int)cache + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)((int)cache + 0x23f4) = *(int *)((int)cache + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)((int)cache + 0x23f8));\n    return cache;\n  }" else (if_statement "if (*(int *)((int)cache + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)((int)cache + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)((int)cache + 0x23f4) = *(int *)((int)cache + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)((int)cache + 0x23f8));\n    return cache;\n  }" if (parenthesized_expression "(*(int *)((int)cache + 0x2404) == -0x54535255)" ( (binary_expression "*(int *)((int)cache + 0x2404) == -0x54535255" (pointer_expression "*(int *)((int)cache + 0x2404)" * (cast_expression "(int *)((int)cache + 0x2404)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)cache + 0x2404)" ( (binary_expression "(int)cache + 0x2404" (cast_expression "(int)cache" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)((int)cache + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)((int)cache + 0x23f4) = *(int *)((int)cache + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)((int)cache + 0x23f8));\n    return cache;\n  }" { (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)((int)cache + 0x23f8));" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)((int)cache + 0x23f8))" (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 "(*(undefined4 *)((int)cache + 0x23f8))" ( (pointer_expression "*(undefined4 *)((int)cache + 0x23f8)" * (cast_expression "(undefined4 *)((int)cache + 0x23f8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)cache + 0x23f8)" ( (binary_expression "(int)cache + 0x23f8" (cast_expression "(int)cache" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "puVar4 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar4 = PTR_UnlockSemaphoreInfo_003a9380" identifier = identifier) ;) (expression_statement "*(int *)((int)cache + 0x23f4) = *(int *)((int)cache + 0x23f4) + 1;" (assignment_expression "*(int *)((int)cache + 0x23f4) = *(int *)((int)cache + 0x23f4) + 1" (pointer_expression "*(int *)((int)cache + 0x23f4)" * (cast_expression "(int *)((int)cache + 0x23f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)cache + 0x23f4)" ( (binary_expression "(int)cache + 0x23f4" (cast_expression "(int)cache" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((int)cache + 0x23f4) + 1" (pointer_expression "*(int *)((int)cache + 0x23f4)" * (cast_expression "(int *)((int)cache + 0x23f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)cache + 0x23f4)" ( (binary_expression "(int)cache + 0x23f4" (cast_expression "(int)cache" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "(*(code *)puVar4)(*(undefined4 *)((int)cache + 0x23f8));" (call_expression "(*(code *)puVar4)(*(undefined4 *)((int)cache + 0x23f8))" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)((int)cache + 0x23f8))" ( (pointer_expression "*(undefined4 *)((int)cache + 0x23f8)" * (cast_expression "(undefined4 *)((int)cache + 0x23f8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)cache + 0x23f8)" ( (binary_expression "(int)cache + 0x23f8" (cast_expression "(int)cache" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (return_statement "return cache;" return identifier ;) })))) (expression_statement "puVar2 = PTR_LAB_003a88e0 + 0x27f4;" (assignment_expression "puVar2 = PTR_LAB_003a88e0 + 0x27f4" identifier = (binary_expression "PTR_LAB_003a88e0 + 0x27f4" identifier + number_literal)) ;) (expression_statement "puVar4 = PTR___assert_fail_003a9608;" (assignment_expression "puVar4 = PTR___assert_fail_003a9608" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);" (call_expression "(*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10)" (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 "(puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10)" ( identifier , (binary_expression "PTR_LAB_003a88e0 + 0x27e0" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003a88e0 + 0x2f10" identifier + number_literal) ))) ;) (if_statement "if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    pvVar1 = *(Cache *)(puVar2 + 0x2d4);\n    if (pvVar1 != (Cache)0x0) {\n      if (*(int *)((int)pvVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return pvVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" if (parenthesized_expression "(puVar2 == (undefined *)0x0)" ( (binary_expression "puVar2 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }" { (expression_statement "iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;" (assignment_expression "iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8" identifier = (binary_expression "*(int *)(puVar4 + 0x350554) + 0x2ef8" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" ( (pointer_expression "**(code **)(puVar4 + 0x35127c)" * (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524)" ( (binary_expression "*(int *)(puVar4 + 0x35055c) + -0x37b0" (pointer_expression "*(int *)(puVar4 + 0x35055c)" * (cast_expression "(int *)(puVar4 + 0x35055c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x35055c)" ( (binary_expression "puVar4 + 0x35055c" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , number_literal , identifier , (binary_expression "puVar4 + 0x358524" identifier + number_literal) ))) ;) (labeled_statement "LAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;" statement_identifier : (expression_statement "iVar3 = iVar3 + 0x2ef8;" (assignment_expression "iVar3 = iVar3 + 0x2ef8" identifier = (binary_expression "iVar3 + 0x2ef8" identifier + number_literal)) ;)) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" ( (pointer_expression "**(code **)(puVar4 + 0x35127c)" * (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3)" ( (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27f4" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , number_literal , identifier ))) ;) }) (else_clause "else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    pvVar1 = *(Cache *)(puVar2 + 0x2d4);\n    if (pvVar1 != (Cache)0x0) {\n      if (*(int *)((int)pvVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return pvVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" else (compound_statement "{\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    pvVar1 = *(Cache *)(puVar2 + 0x2d4);\n    if (pvVar1 != (Cache)0x0) {\n      if (*(int *)((int)pvVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return pvVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" { (expression_statement "iVar3 = *(int *)(puVar4 + 0x350554);" (assignment_expression "iVar3 = *(int *)(puVar4 + 0x350554)" identifier = (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;" if (parenthesized_expression "(*(int *)(puVar2 + 0x336c) != -0x54535255)" ( (binary_expression "*(int *)(puVar2 + 0x336c) != -0x54535255" (pointer_expression "*(int *)(puVar2 + 0x336c)" * (cast_expression "(int *)(puVar2 + 0x336c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x336c)" ( (binary_expression "puVar2 + 0x336c" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00058444;" goto statement_identifier ;)) (expression_statement "pvVar1 = *(Cache *)(puVar2 + 0x2d4);" (assignment_expression "pvVar1 = *(Cache *)(puVar2 + 0x2d4)" identifier = (pointer_expression "*(Cache *)(puVar2 + 0x2d4)" * (cast_expression "(Cache *)(puVar2 + 0x2d4)" ( (type_descriptor "Cache *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x2d4)" ( (binary_expression "puVar2 + 0x2d4" identifier + number_literal) ))))) ;) (if_statement "if (pvVar1 != (Cache)0x0) {\n      if (*(int *)((int)pvVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return pvVar1;\n      }\n      goto LAB_00058408;\n    }" if (parenthesized_expression "(pvVar1 != (Cache)0x0)" ( (binary_expression "pvVar1 != (Cache)0x0" identifier != (cast_expression "(Cache)0x0" ( (type_descriptor "Cache" type_identifier) ) number_literal)) )) (compound_statement "{\n      if (*(int *)((int)pvVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return pvVar1;\n      }\n      goto LAB_00058408;\n    }" { (if_statement "if (*(int *)((int)pvVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return pvVar1;\n      }" if (parenthesized_expression "(*(int *)((int)pvVar1 + 0x2404) == -0x54535255)" ( (binary_expression "*(int *)((int)pvVar1 + 0x2404) == -0x54535255" (pointer_expression "*(int *)((int)pvVar1 + 0x2404)" * (cast_expression "(int *)((int)pvVar1 + 0x2404)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x2404)" ( (binary_expression "(int)pvVar1 + 0x2404" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n        *(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return pvVar1;\n      }" { (expression_statement "*(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);" (assignment_expression "*(undefined4 *)((int)pvVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0)" (pointer_expression "*(undefined4 *)((int)pvVar1 + 0x1c)" * (cast_expression "(undefined4 *)((int)pvVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x1c)" ( (binary_expression "(int)pvVar1 + 0x1c" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)(puVar2 + 0x2c0)" * (cast_expression "(undefined4 *)(puVar2 + 0x2c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x2c0)" ( (binary_expression "puVar2 + 0x2c0" identifier + number_literal) ))))) ;) (return_statement "return pvVar1;" return identifier ;) })) (goto_statement "goto LAB_00058408;" goto statement_identifier ;) })) }))) (expression_statement "iVar3 = iVar3 + 0x2ef8;" (assignment_expression "iVar3 = iVar3 + 0x2ef8" identifier = (binary_expression "iVar3 + 0x2ef8" identifier + number_literal)) ;) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" ( (pointer_expression "**(code **)(puVar4 + 0x35127c)" * (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0)" ( (binary_expression "*(int *)(puVar4 + 0x350554) + 0x37c8" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) ))) ;) (labeled_statement "LAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);" statement_identifier : (expression_statement "pcVar5 = *(code **)(puVar4 + 0x35127c);" (assignment_expression "pcVar5 = *(code **)(puVar4 + 0x35127c)" identifier = (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) ;)) (expression_statement "(*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);" (call_expression "(*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8)" ( (binary_expression "*(int *)(puVar4 + 0x35055c) + -0x3784" (pointer_expression "*(int *)(puVar4 + 0x35055c)" * (cast_expression "(int *)(puVar4 + 0x35055c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x35055c)" ( (binary_expression "puVar4 + 0x35055c" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , number_literal , (binary_expression "iVar3 + 0x2ef8" identifier + number_literal) ))) ;) (expression_statement "pvVar1 = *(Cache *)(pcVar5 + 0x3504e4);" (assignment_expression "pvVar1 = *(Cache *)(pcVar5 + 0x3504e4)" identifier = (pointer_expression "*(Cache *)(pcVar5 + 0x3504e4)" * (cast_expression "(Cache *)(pcVar5 + 0x3504e4)" ( (type_descriptor "Cache *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 0x3504e4)" ( (binary_expression "pcVar5 + 0x3504e4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)pvVar1 + 0x6020) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar1 + 0x6020) = 0" (pointer_expression "*(undefined4 *)((int)pvVar1 + 0x6020)" * (cast_expression "(undefined4 *)((int)pvVar1 + 0x6020)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x6020)" ( (binary_expression "(int)pvVar1 + 0x6020" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "int FUN_000582d4(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }\n  puVar2 = PTR_LAB_003a88e0 + 0x27f4;\n  puVar4 = PTR___assert_fail_003a9608;\n  (*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);\n  if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }\n  iVar3 = iVar3 + 0x2ef8;\n  (**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);\nLAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);\n  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);\n  iVar3 = *(int *)(pcVar5 + 0x3504e4);\n  *(undefined4 *)(iVar3 + 0x6020) = 0;\n  return iVar3;\n}\n\n" (function_definition "int FUN_000582d4(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }\n  puVar2 = PTR_LAB_003a88e0 + 0x27f4;\n  puVar4 = PTR___assert_fail_003a9608;\n  (*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);\n  if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }\n  iVar3 = iVar3 + 0x2ef8;\n  (**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);\nLAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);\n  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);\n  iVar3 = *(int *)(pcVar5 + 0x3504e4);\n  *(undefined4 *)(iVar3 + 0x6020) = 0;\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000582d4(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }\n  puVar2 = PTR_LAB_003a88e0 + 0x27f4;\n  puVar4 = PTR___assert_fail_003a9608;\n  (*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);\n  if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }\n  iVar3 = iVar3 + 0x2ef8;\n  (**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);\nLAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);\n  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);\n  iVar3 = *(int *)(pcVar5 + 0x3504e4);\n  *(undefined4 *)(iVar3 + 0x6020) = 0;\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;" (call_expression "(*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)" (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_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)" ( (binary_expression "PTR_LAB_003a88e0 + 0x2cc0" identifier + number_literal) , (binary_expression "PTR_LAB_003a88e0 + 0x27e0" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003a88e0 + 0x2f10" identifier + number_literal) ))) ;) }) (else_clause "else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" else (if_statement "if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x2404) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x2404) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x2404)" * (cast_expression "(int *)(param_1 + 0x2404)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2404)" ( (binary_expression "param_1 + 0x2404" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" { (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8))" (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 "(*(undefined4 *)(param_1 + 0x23f8))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x23f8)" * (cast_expression "(undefined4 *)(param_1 + 0x23f8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23f8)" ( (binary_expression "param_1 + 0x23f8" identifier + number_literal) )))) ))) ;) (expression_statement "puVar4 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar4 = PTR_UnlockSemaphoreInfo_003a9380" identifier = identifier) ;) (expression_statement "*(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;" (assignment_expression "*(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1" (pointer_expression "*(int *)(param_1 + 0x23f4)" * (cast_expression "(int *)(param_1 + 0x23f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23f4)" ( (binary_expression "param_1 + 0x23f4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x23f4) + 1" (pointer_expression "*(int *)(param_1 + 0x23f4)" * (cast_expression "(int *)(param_1 + 0x23f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23f4)" ( (binary_expression "param_1 + 0x23f4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));" (call_expression "(*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8))" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x23f8))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x23f8)" * (cast_expression "(undefined4 *)(param_1 + 0x23f8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23f8)" ( (binary_expression "param_1 + 0x23f8" identifier + number_literal) )))) ))) ;) (return_statement "return param_1;" return identifier ;) })))) (expression_statement "puVar2 = PTR_LAB_003a88e0 + 0x27f4;" (assignment_expression "puVar2 = PTR_LAB_003a88e0 + 0x27f4" identifier = (binary_expression "PTR_LAB_003a88e0 + 0x27f4" identifier + number_literal)) ;) (expression_statement "puVar4 = PTR___assert_fail_003a9608;" (assignment_expression "puVar4 = PTR___assert_fail_003a9608" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);" (call_expression "(*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10)" (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 "(puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10)" ( identifier , (binary_expression "PTR_LAB_003a88e0 + 0x27e0" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003a88e0 + 0x2f10" identifier + number_literal) ))) ;) (if_statement "if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" if (parenthesized_expression "(puVar2 == (undefined *)0x0)" ( (binary_expression "puVar2 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }" { (expression_statement "iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;" (assignment_expression "iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8" identifier = (binary_expression "*(int *)(puVar4 + 0x350554) + 0x2ef8" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" ( (pointer_expression "**(code **)(puVar4 + 0x35127c)" * (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524)" ( (binary_expression "*(int *)(puVar4 + 0x35055c) + -0x37b0" (pointer_expression "*(int *)(puVar4 + 0x35055c)" * (cast_expression "(int *)(puVar4 + 0x35055c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x35055c)" ( (binary_expression "puVar4 + 0x35055c" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , number_literal , identifier , (binary_expression "puVar4 + 0x358524" identifier + number_literal) ))) ;) (labeled_statement "LAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;" statement_identifier : (expression_statement "iVar3 = iVar3 + 0x2ef8;" (assignment_expression "iVar3 = iVar3 + 0x2ef8" identifier = (binary_expression "iVar3 + 0x2ef8" identifier + number_literal)) ;)) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" ( (pointer_expression "**(code **)(puVar4 + 0x35127c)" * (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3)" ( (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27f4" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , number_literal , identifier ))) ;) }) (else_clause "else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" else (compound_statement "{\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" { (expression_statement "iVar3 = *(int *)(puVar4 + 0x350554);" (assignment_expression "iVar3 = *(int *)(puVar4 + 0x350554)" identifier = (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;" if (parenthesized_expression "(*(int *)(puVar2 + 0x336c) != -0x54535255)" ( (binary_expression "*(int *)(puVar2 + 0x336c) != -0x54535255" (pointer_expression "*(int *)(puVar2 + 0x336c)" * (cast_expression "(int *)(puVar2 + 0x336c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x336c)" ( (binary_expression "puVar2 + 0x336c" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00058444;" goto statement_identifier ;)) (expression_statement "iVar1 = *(int *)(puVar2 + 0x2d4);" (assignment_expression "iVar1 = *(int *)(puVar2 + 0x2d4)" identifier = (pointer_expression "*(int *)(puVar2 + 0x2d4)" * (cast_expression "(int *)(puVar2 + 0x2d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x2d4)" ( (binary_expression "puVar2 + 0x2d4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }" { (if_statement "if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x2404) == -0x54535255)" ( (binary_expression "*(int *)(iVar1 + 0x2404) == -0x54535255" (pointer_expression "*(int *)(iVar1 + 0x2404)" * (cast_expression "(int *)(iVar1 + 0x2404)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2404)" ( (binary_expression "iVar1 + 0x2404" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }" { (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0)" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" * (cast_expression "(undefined4 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(puVar2 + 0x2c0)" * (cast_expression "(undefined4 *)(puVar2 + 0x2c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x2c0)" ( (binary_expression "puVar2 + 0x2c0" identifier + number_literal) ))))) ;) (return_statement "return iVar1;" return identifier ;) })) (goto_statement "goto LAB_00058408;" goto statement_identifier ;) })) }))) (expression_statement "iVar3 = iVar3 + 0x2ef8;" (assignment_expression "iVar3 = iVar3 + 0x2ef8" identifier = (binary_expression "iVar3 + 0x2ef8" identifier + number_literal)) ;) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" ( (pointer_expression "**(code **)(puVar4 + 0x35127c)" * (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0)" ( (binary_expression "*(int *)(puVar4 + 0x350554) + 0x37c8" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) ))) ;) (labeled_statement "LAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);" statement_identifier : (expression_statement "pcVar5 = *(code **)(puVar4 + 0x35127c);" (assignment_expression "pcVar5 = *(code **)(puVar4 + 0x35127c)" identifier = (pointer_expression "*(code **)(puVar4 + 0x35127c)" * (cast_expression "(code **)(puVar4 + 0x35127c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x35127c)" ( (binary_expression "puVar4 + 0x35127c" identifier + number_literal) ))))) ;)) (expression_statement "(*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);" (call_expression "(*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8)" ( (binary_expression "*(int *)(puVar4 + 0x35055c) + -0x3784" (pointer_expression "*(int *)(puVar4 + 0x35055c)" * (cast_expression "(int *)(puVar4 + 0x35055c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x35055c)" ( (binary_expression "puVar4 + 0x35055c" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" * (cast_expression "(int *)(puVar4 + 0x350554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x350554)" ( (binary_expression "puVar4 + 0x350554" identifier + number_literal) )))) + number_literal) , number_literal , (binary_expression "iVar3 + 0x2ef8" identifier + number_literal) ))) ;) (expression_statement "iVar3 = *(int *)(pcVar5 + 0x3504e4);" (assignment_expression "iVar3 = *(int *)(pcVar5 + 0x3504e4)" identifier = (pointer_expression "*(int *)(pcVar5 + 0x3504e4)" * (cast_expression "(int *)(pcVar5 + 0x3504e4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 0x3504e4)" ( (binary_expression "pcVar5 + 0x3504e4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x6020) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x6020) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x6020)" * (cast_expression "(undefined4 *)(iVar3 + 0x6020)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x6020)" ( (binary_expression "iVar3 + 0x6020" identifier + number_literal) )))) = number_literal) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (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) ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return IDENT ;) })))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , (binary_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 = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT , IDENT , (binary_expression IDENT + LIT) ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return IDENT ;) })) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_000582d4(int param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }\n  puVar2 = PTR_LAB_003a88e0 + 0x27f4;\n  puVar4 = PTR___assert_fail_003a9608;\n  (*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);\n  if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }\n  iVar3 = iVar3 + 0x2ef8;\n  (**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);\nLAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);\n  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);\n  iVar3 = *(int *)(pcVar5 + 0x3504e4);\n  *(undefined4 *)(iVar3 + 0x6020) = 0;\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_000582d4(int param_1)" (identifier "FUN_000582d4") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  code *pcVar5;\n  \n  if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }\n  puVar2 = PTR_LAB_003a88e0 + 0x27f4;\n  puVar4 = PTR___assert_fail_003a9608;\n  (*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);\n  if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }\n  iVar3 = iVar3 + 0x2ef8;\n  (**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);\nLAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);\n  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);\n  iVar3 = *(int *)(pcVar5 + 0x3504e4);\n  *(undefined4 *)(iVar3 + 0x6020) = 0;\n  return iVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "code *pcVar5;" (type_identifier "code") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (if_statement "if (param_1 == 0) {\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }\n  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;\n  }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)\n    ;" (call_expression "(*(code *)PTR___assert_fail_003a9608)\n              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)" (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_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)" (( "(") (binary_expression "PTR_LAB_003a88e0 + 0x2cc0" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x2cc0")) (, ",") (binary_expression "PTR_LAB_003a88e0 + 0x27e0" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x27e0")) (, ",") (number_literal "0x128e") (, ",") (binary_expression "PTR_LAB_003a88e0 + 0x2f10" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x2f10")) () ")"))) (; ";")) (} "}")) (else_clause "else if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" (else "else") (if_statement "if (*(int *)(param_1 + 0x2404) == -0x54535255) {\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x2404) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x2404) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x2404)" (* "*") (cast_expression "(int *)(param_1 + 0x2404)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2404)" (( "(") (binary_expression "param_1 + 0x2404" (identifier "param_1") (+ "+") (number_literal "0x2404")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));\n    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;\n    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;\n    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));\n    return param_1;\n  }" ({ "{") (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8))" (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 "(*(undefined4 *)(param_1 + 0x23f8))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x23f8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x23f8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x23f8)" (( "(") (binary_expression "param_1 + 0x23f8" (identifier "param_1") (+ "+") (number_literal "0x23f8")) () ")")))) () ")"))) (; ";")) (expression_statement "puVar4 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar4 = PTR_UnlockSemaphoreInfo_003a9380" (identifier "puVar4") (= "=") (identifier "PTR_UnlockSemaphoreInfo_003a9380")) (; ";")) (expression_statement "*(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;" (assignment_expression "*(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1" (pointer_expression "*(int *)(param_1 + 0x23f4)" (* "*") (cast_expression "(int *)(param_1 + 0x23f4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x23f4)" (( "(") (binary_expression "param_1 + 0x23f4" (identifier "param_1") (+ "+") (number_literal "0x23f4")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x23f4) + 1" (pointer_expression "*(int *)(param_1 + 0x23f4)" (* "*") (cast_expression "(int *)(param_1 + 0x23f4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x23f4)" (( "(") (binary_expression "param_1 + 0x23f4" (identifier "param_1") (+ "+") (number_literal "0x23f4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));" (call_expression "(*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8))" (parenthesized_expression "(*(code *)puVar4)" (( "(") (pointer_expression "*(code *)puVar4" (* "*") (cast_expression "(code *)puVar4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x23f8))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x23f8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x23f8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x23f8)" (( "(") (binary_expression "param_1 + 0x23f8" (identifier "param_1") (+ "+") (number_literal "0x23f8")) () ")")))) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))))) (expression_statement "puVar2 = PTR_LAB_003a88e0 + 0x27f4;" (assignment_expression "puVar2 = PTR_LAB_003a88e0 + 0x27f4" (identifier "puVar2") (= "=") (binary_expression "PTR_LAB_003a88e0 + 0x27f4" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x27f4"))) (; ";")) (expression_statement "puVar4 = PTR___assert_fail_003a9608;" (assignment_expression "puVar4 = PTR___assert_fail_003a9608" (identifier "puVar4") (= "=") (identifier "PTR___assert_fail_003a9608")) (; ";")) (expression_statement "(*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);" (call_expression "(*(code *)PTR___assert_fail_003a9608)\n            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10)" (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 "(puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10)" (( "(") (identifier "puVar2") (, ",") (binary_expression "PTR_LAB_003a88e0 + 0x27e0" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x27e0")) (, ",") (number_literal "0x1290") (, ",") (binary_expression "PTR_LAB_003a88e0 + 0x2f10" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x2f10")) () ")"))) (; ";")) (if_statement "if (puVar2 == (undefined *)0x0) {\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }\n  else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" (if "if") (parenthesized_expression "(puVar2 == (undefined *)0x0)" (( "(") (binary_expression "puVar2 == (undefined *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);\nLAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;\n    (**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;" (assignment_expression "iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8" (identifier "iVar3") (= "=") (binary_expression "*(int *)(puVar4 + 0x350554) + 0x2ef8" (pointer_expression "*(int *)(puVar4 + 0x350554)" (* "*") (cast_expression "(int *)(puVar4 + 0x350554)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x350554)" (( "(") (binary_expression "puVar4 + 0x350554" (identifier "puVar4") (+ "+") (number_literal "0x350554")) () ")")))) (+ "+") (number_literal "0x2ef8"))) (; ";")) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" (( "(") (pointer_expression "**(code **)(puVar4 + 0x35127c)" (* "*") (pointer_expression "*(code **)(puVar4 + 0x35127c)" (* "*") (cast_expression "(code **)(puVar4 + 0x35127c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x35127c)" (( "(") (binary_expression "puVar4 + 0x35127c" (identifier "puVar4") (+ "+") (number_literal "0x35127c")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,\n               iVar3,puVar4 + 0x358524)" (( "(") (binary_expression "*(int *)(puVar4 + 0x35055c) + -0x37b0" (pointer_expression "*(int *)(puVar4 + 0x35055c)" (* "*") (cast_expression "(int *)(puVar4 + 0x35055c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x35055c)" (( "(") (binary_expression "puVar4 + 0x35055c" (identifier "puVar4") (+ "+") (number_literal "0x35055c")) () ")")))) (+ "+") (number_literal "-0x37b0")) (, ",") (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" (* "*") (cast_expression "(int *)(puVar4 + 0x350554)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x350554)" (( "(") (binary_expression "puVar4 + 0x350554" (identifier "puVar4") (+ "+") (number_literal "0x350554")) () ")")))) (+ "+") (number_literal "0x27e0")) (, ",") (number_literal "0x12b2") (, ",") (identifier "iVar3") (, ",") (binary_expression "puVar4 + 0x358524" (identifier "puVar4") (+ "+") (number_literal "0x358524")) () ")"))) (; ";")) (labeled_statement "LAB_00058408:\n    iVar3 = iVar3 + 0x2ef8;" (statement_identifier "LAB_00058408") (: ":") (expression_statement "iVar3 = iVar3 + 0x2ef8;" (assignment_expression "iVar3 = iVar3 + 0x2ef8" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 0x2ef8" (identifier "iVar3") (+ "+") (number_literal "0x2ef8"))) (; ";"))) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" (( "(") (pointer_expression "**(code **)(puVar4 + 0x35127c)" (* "*") (pointer_expression "*(code **)(puVar4 + 0x35127c)" (* "*") (cast_expression "(code **)(puVar4 + 0x35127c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x35127c)" (( "(") (binary_expression "puVar4 + 0x35127c" (identifier "puVar4") (+ "+") (number_literal "0x35127c")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,\n               iVar3)" (( "(") (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27f4" (pointer_expression "*(int *)(puVar4 + 0x350554)" (* "*") (cast_expression "(int *)(puVar4 + 0x350554)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x350554)" (( "(") (binary_expression "puVar4 + 0x350554" (identifier "puVar4") (+ "+") (number_literal "0x350554")) () ")")))) (+ "+") (number_literal "0x27f4")) (, ",") (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" (* "*") (cast_expression "(int *)(puVar4 + 0x350554)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x350554)" (( "(") (binary_expression "puVar4 + 0x350554" (identifier "puVar4") (+ "+") (number_literal "0x350554")) () ")")))) (+ "+") (number_literal "0x27e0")) (, ",") (number_literal "0x12b6") (, ",") (identifier "iVar3") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" (else "else") (compound_statement "{\n    iVar3 = *(int *)(puVar4 + 0x350554);\n    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;\n    iVar1 = *(int *)(puVar2 + 0x2d4);\n    if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(puVar4 + 0x350554);" (assignment_expression "iVar3 = *(int *)(puVar4 + 0x350554)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar4 + 0x350554)" (* "*") (cast_expression "(int *)(puVar4 + 0x350554)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x350554)" (( "(") (binary_expression "puVar4 + 0x350554" (identifier "puVar4") (+ "+") (number_literal "0x350554")) () ")"))))) (; ";")) (if_statement "if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;" (if "if") (parenthesized_expression "(*(int *)(puVar2 + 0x336c) != -0x54535255)" (( "(") (binary_expression "*(int *)(puVar2 + 0x336c) != -0x54535255" (pointer_expression "*(int *)(puVar2 + 0x336c)" (* "*") (cast_expression "(int *)(puVar2 + 0x336c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x336c)" (( "(") (binary_expression "puVar2 + 0x336c" (identifier "puVar2") (+ "+") (number_literal "0x336c")) () ")")))) (!= "!=") (number_literal "-0x54535255")) () ")")) (goto_statement "goto LAB_00058444;" (goto "goto") (statement_identifier "LAB_00058444") (; ";"))) (expression_statement "iVar1 = *(int *)(puVar2 + 0x2d4);" (assignment_expression "iVar1 = *(int *)(puVar2 + 0x2d4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(puVar2 + 0x2d4)" (* "*") (cast_expression "(int *)(puVar2 + 0x2d4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x2d4)" (( "(") (binary_expression "puVar2 + 0x2d4" (identifier "puVar2") (+ "+") (number_literal "0x2d4")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }\n      goto LAB_00058408;\n    }" ({ "{") (if_statement "if (*(int *)(iVar1 + 0x2404) == -0x54535255) {\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x2404) == -0x54535255)" (( "(") (binary_expression "*(int *)(iVar1 + 0x2404) == -0x54535255" (pointer_expression "*(int *)(iVar1 + 0x2404)" (* "*") (cast_expression "(int *)(iVar1 + 0x2404)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2404)" (( "(") (binary_expression "iVar1 + 0x2404" (identifier "iVar1") (+ "+") (number_literal "0x2404")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);\n        return iVar1;\n      }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0)" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(puVar2 + 0x2c0)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x2c0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x2c0)" (( "(") (binary_expression "puVar2 + 0x2c0" (identifier "puVar2") (+ "+") (number_literal "0x2c0")) () ")"))))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (goto_statement "goto LAB_00058408;" (goto "goto") (statement_identifier "LAB_00058408") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar3 = iVar3 + 0x2ef8;" (assignment_expression "iVar3 = iVar3 + 0x2ef8" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 0x2ef8" (identifier "iVar3") (+ "+") (number_literal "0x2ef8"))) (; ";")) (expression_statement "(**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);" (call_expression "(**(code **)(puVar4 + 0x35127c))\n            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0)" (parenthesized_expression "(**(code **)(puVar4 + 0x35127c))" (( "(") (pointer_expression "**(code **)(puVar4 + 0x35127c)" (* "*") (pointer_expression "*(code **)(puVar4 + 0x35127c)" (* "*") (cast_expression "(code **)(puVar4 + 0x35127c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x35127c)" (( "(") (binary_expression "puVar4 + 0x35127c" (identifier "puVar4") (+ "+") (number_literal "0x35127c")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0)" (( "(") (binary_expression "*(int *)(puVar4 + 0x350554) + 0x37c8" (pointer_expression "*(int *)(puVar4 + 0x350554)" (* "*") (cast_expression "(int *)(puVar4 + 0x350554)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x350554)" (( "(") (binary_expression "puVar4 + 0x350554" (identifier "puVar4") (+ "+") (number_literal "0x350554")) () ")")))) (+ "+") (number_literal "0x37c8")) (, ",") (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" (* "*") (cast_expression "(int *)(puVar4 + 0x350554)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x350554)" (( "(") (binary_expression "puVar4 + 0x350554" (identifier "puVar4") (+ "+") (number_literal "0x350554")) () ")")))) (+ "+") (number_literal "0x27e0")) () ")"))) (; ";")) (labeled_statement "LAB_00058444:\n  pcVar5 = *(code **)(puVar4 + 0x35127c);" (statement_identifier "LAB_00058444") (: ":") (expression_statement "pcVar5 = *(code **)(puVar4 + 0x35127c);" (assignment_expression "pcVar5 = *(code **)(puVar4 + 0x35127c)" (identifier "pcVar5") (= "=") (pointer_expression "*(code **)(puVar4 + 0x35127c)" (* "*") (cast_expression "(code **)(puVar4 + 0x35127c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x35127c)" (( "(") (binary_expression "puVar4 + 0x35127c" (identifier "puVar4") (+ "+") (number_literal "0x35127c")) () ")"))))) (; ";"))) (expression_statement "(*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8);" (call_expression "(*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8)" (parenthesized_expression "(*pcVar5)" (( "(") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) () ")")) (argument_list "(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,\n            iVar3 + 0x2ef8)" (( "(") (binary_expression "*(int *)(puVar4 + 0x35055c) + -0x3784" (pointer_expression "*(int *)(puVar4 + 0x35055c)" (* "*") (cast_expression "(int *)(puVar4 + 0x35055c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x35055c)" (( "(") (binary_expression "puVar4 + 0x35055c" (identifier "puVar4") (+ "+") (number_literal "0x35055c")) () ")")))) (+ "+") (number_literal "-0x3784")) (, ",") (binary_expression "*(int *)(puVar4 + 0x350554) + 0x27e0" (pointer_expression "*(int *)(puVar4 + 0x350554)" (* "*") (cast_expression "(int *)(puVar4 + 0x350554)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x350554)" (( "(") (binary_expression "puVar4 + 0x350554" (identifier "puVar4") (+ "+") (number_literal "0x350554")) () ")")))) (+ "+") (number_literal "0x27e0")) (, ",") (number_literal "0x12b3") (, ",") (binary_expression "iVar3 + 0x2ef8" (identifier "iVar3") (+ "+") (number_literal "0x2ef8")) () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(pcVar5 + 0x3504e4);" (assignment_expression "iVar3 = *(int *)(pcVar5 + 0x3504e4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(pcVar5 + 0x3504e4)" (* "*") (cast_expression "(int *)(pcVar5 + 0x3504e4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar5 + 0x3504e4)" (( "(") (binary_expression "pcVar5 + 0x3504e4" (identifier "pcVar5") (+ "+") (number_literal "0x3504e4")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x6020) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + 0x6020) = 0" (pointer_expression "*(undefined4 *)(iVar3 + 0x6020)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x6020)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x6020)" (( "(") (binary_expression "iVar3 + 0x6020" (identifier "iVar3") (+ "+") (number_literal "0x6020")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

type_1 function_1(type_1 var_1)

{
  type_1 var_6;
  type_2 *var_3;
  int var_5;
  type_2 *var_4;
  type_3 *var_7;
  
  if (var_1 == (type_1)0x0) {
    (*(type_3 *)PTR___assert_fail_003a9608)
              (var_2 + 0x2cc0,var_2 + 0x27e0,0x128e,var_2 + 0x2f10)
    ;
  }
  else if (*(int *)((int)var_1 + 0x2404) == -0x54535255) {
    (*(type_3 *)PTR_LockSemaphoreInfo_003a96e8)(*(type_4 *)((int)var_1 + 0x23f8));
    var_4 = PTR_UnlockSemaphoreInfo_003a9380;
    *(int *)((int)var_1 + 0x23f4) = *(int *)((int)var_1 + 0x23f4) + 1;
    (*(type_3 *)var_4)(*(type_4 *)((int)var_1 + 0x23f8));
    return var_1;
  }
  var_3 = var_2 + 0x27f4;
  var_4 = PTR___assert_fail_003a9608;
  (*(type_3 *)PTR___assert_fail_003a9608)
            (var_3,var_2 + 0x27e0,0x1290,var_2 + 0x2f10);
  if (var_3 == (type_2 *)0x0) {
    var_5 = *(int *)(var_4 + 0x350554) + 0x2ef8;
    (**(type_3 **)(var_4 + 0x35127c))
              (*(int *)(var_4 + 0x35055c) + -0x37b0,*(int *)(var_4 + 0x350554) + 0x27e0,0x12b2,
               var_5,var_4 + 0x358524);
LAB_00058408:
    var_5 = var_5 + 0x2ef8;
    (**(type_3 **)(var_4 + 0x35127c))
              (*(int *)(var_4 + 0x350554) + 0x27f4,*(int *)(var_4 + 0x350554) + 0x27e0,0x12b6,
               var_5);
  }
  else {
    var_5 = *(int *)(var_4 + 0x350554);
    if (*(int *)(var_3 + 0x336c) != -0x54535255) goto LAB_00058444;
    var_6 = *(type_1 *)(var_3 + 0x2d4);
    if (var_6 != (type_1)0x0) {
      if (*(int *)((int)var_6 + 0x2404) == -0x54535255) {
        *(type_4 *)((int)var_6 + 0x1c) = *(type_4 *)(var_3 + 0x2c0);
        return var_6;
      }
      goto LAB_00058408;
    }
  }
  var_5 = var_5 + 0x2ef8;
  (**(type_3 **)(var_4 + 0x35127c))
            (*(int *)(var_4 + 0x350554) + 0x37c8,*(int *)(var_4 + 0x350554) + 0x27e0);
LAB_00058444:
  var_7 = *(type_3 **)(var_4 + 0x35127c);
  (*var_7)(*(int *)(var_4 + 0x35055c) + -0x3784,*(int *)(var_4 + 0x350554) + 0x27e0,0x12b3,
            var_5 + 0x2ef8);
  var_6 = *(type_1 *)(var_7 + 0x3504e4);
  *(type_4 *)((int)var_6 + 0x6020) = 0;
  return var_6;
}


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

int MASKED(int param_1)

{
  int iVar1;
  undefined *puVar2;
  int iVar3;
  undefined *puVar4;
  code *pcVar5;
  
  if (param_1 == 0) {
    (*(code *)PTR___assert_fail_003a9608)
              (PTR_LAB_003a88e0 + 0x2cc0,PTR_LAB_003a88e0 + 0x27e0,0x128e,PTR_LAB_003a88e0 + 0x2f10)
    ;
  }
  else if (*(int *)(param_1 + 0x2404) == -0x54535255) {
    (*(code *)PTR_LockSemaphoreInfo_003a96e8)(*(undefined4 *)(param_1 + 0x23f8));
    puVar4 = PTR_UnlockSemaphoreInfo_003a9380;
    *(int *)(param_1 + 0x23f4) = *(int *)(param_1 + 0x23f4) + 1;
    (*(code *)puVar4)(*(undefined4 *)(param_1 + 0x23f8));
    return param_1;
  }
  puVar2 = PTR_LAB_003a88e0 + 0x27f4;
  puVar4 = PTR___assert_fail_003a9608;
  (*(code *)PTR___assert_fail_003a9608)
            (puVar2,PTR_LAB_003a88e0 + 0x27e0,0x1290,PTR_LAB_003a88e0 + 0x2f10);
  if (puVar2 == (undefined *)0x0) {
    iVar3 = *(int *)(puVar4 + 0x350554) + 0x2ef8;
    (**(code **)(puVar4 + 0x35127c))
              (*(int *)(puVar4 + 0x35055c) + -0x37b0,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b2,
               iVar3,puVar4 + 0x358524);
LAB_00058408:
    iVar3 = iVar3 + 0x2ef8;
    (**(code **)(puVar4 + 0x35127c))
              (*(int *)(puVar4 + 0x350554) + 0x27f4,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b6,
               iVar3);
  }
  else {
    iVar3 = *(int *)(puVar4 + 0x350554);
    if (*(int *)(puVar2 + 0x336c) != -0x54535255) goto LAB_00058444;
    iVar1 = *(int *)(puVar2 + 0x2d4);
    if (iVar1 != 0) {
      if (*(int *)(iVar1 + 0x2404) == -0x54535255) {
        *(undefined4 *)(iVar1 + 0x1c) = *(undefined4 *)(puVar2 + 0x2c0);
        return iVar1;
      }
      goto LAB_00058408;
    }
  }
  iVar3 = iVar3 + 0x2ef8;
  (**(code **)(puVar4 + 0x35127c))
            (*(int *)(puVar4 + 0x350554) + 0x37c8,*(int *)(puVar4 + 0x350554) + 0x27e0);
LAB_00058444:
  pcVar5 = *(code **)(puVar4 + 0x35127c);
  (*pcVar5)(*(int *)(puVar4 + 0x35055c) + -0x3784,*(int *)(puVar4 + 0x350554) + 0x27e0,0x12b3,
            iVar3 + 0x2ef8);
  iVar3 = *(int *)(pcVar5 + 0x3504e4);
  *(undefined4 *)(iVar3 + 0x6020) = 0;
  return iVar3;
}

