{"type": "func", "start": 322720, "end": 322796, "name": "sub_4ECA0", "pseudocode": "// \n// sub_4ECA0 from 0x4eca0 to 0x4ecec (76 bytes)\n// \n// 1 xrefs:\n// > FMOD_System_Create @ 0x4326a\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall sub_4ECA0(int a1)\n{\n  int v2; // r0\n  int result; // r0\n\n  v2 = *(_DWORD *)(a1 + 8);\n  if ( v2 )\n    goto LABEL_2;\n  result = j_FMOD_OS_CriticalSection_Create(a1 + 268, 0);\n  if ( !result )\n  {\n    result = j_FMOD_OS_CriticalSection_Create(a1 + 264, 0);\n    if ( !result )\n    {\n      result = j_FMOD_OS_CriticalSection_Create(a1 + 272, 0);\n      if ( !result )\n      {\n        result = j_FMOD_OS_CriticalSection_Create(a1 + 4, 0);\n        if ( !result )\n        {\n          result = sub_C0034();\n          if ( !result )\n          {\n            v2 = *(_DWORD *)(a1 + 8);\nLABEL_2:\n            *(_DWORD *)(a1 + 8) = v2 + 1;\n            return 0;\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_4ECA0 from 0x4eca0 to 0x4ecec (76 bytes)\n; \n; 1 xrefs:\n; > FMOD_System_Create @ 0x4326a\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0x4eca0\nADD             R7, SP, #8                                             ; +0x2, 0x4eca2\nMOV             R4, R0                                                 ; +0x4, 0x4eca4\nLDR             R0, [R0,#8]                                            ; +0x6, 0x4eca6\nCBZ             R0, loc_4ECB2                                          ; +0x8, 0x4eca8\nADDS            R0, #1                                                 ; +0xa, 0x4ecaa\nSTR             R0, [R4,#8]                                            ; +0xc, 0x4ecac\nMOVS            R0, #0                                                 ; +0xe, 0x4ecae\nPOP             {R4,R6,R7,PC}                                          ; +0x10, 0x4ecb0\nADD.W           R0, R4, #0x10C                                         ; +0x12, 0x4ecb2\nMOVS            R1, #0                                                 ; +0x16, 0x4ecb6\nBLX             j_FMOD_OS_CriticalSection_Create                       ; +0x18, 0x4ecb8\nCBNZ            R0, locret_4ECE6                                       ; +0x1c, 0x4ecbc\nADD.W           R0, R4, #0x108                                         ; +0x1e, 0x4ecbe\nMOVS            R1, #0                                                 ; +0x22, 0x4ecc2\nBLX             j_FMOD_OS_CriticalSection_Create                       ; +0x24, 0x4ecc4\nCBNZ            R0, locret_4ECE6                                       ; +0x28, 0x4ecc8\nADD.W           R0, R4, #0x110                                         ; +0x2a, 0x4ecca\nMOVS            R1, #0                                                 ; +0x2e, 0x4ecce\nBLX             j_FMOD_OS_CriticalSection_Create                       ; +0x30, 0x4ecd0\nCBNZ            R0, locret_4ECE6                                       ; +0x34, 0x4ecd4\nADDS            R0, R4, #4                                             ; +0x36, 0x4ecd6\nMOVS            R1, #0                                                 ; +0x38, 0x4ecd8\nBLX             j_FMOD_OS_CriticalSection_Create                       ; +0x3a, 0x4ecda\nCBNZ            R0, locret_4ECE6                                       ; +0x3e, 0x4ecde\nBL              sub_C0034                                              ; +0x40, 0x4ece0\nCBZ             R0, loc_4ECE8                                          ; +0x44, 0x4ece4\nPOP             {R4,R6,R7,PC}                                          ; +0x46, 0x4ece6\nLDR             R0, [R4,#8]                                            ; +0x48, 0x4ece8\nB               loc_4ECAA                                              ; +0x4a, 0x4ecea", "xrefs": ["FMOD_System_Create @ 0x4326a"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}