{"type": "func", "start": 375158, "end": 375194, "name": "sub_5B976", "pseudocode": "// \n// sub_5B976 from 0x5b976 to 0x5b99a (36 bytes)\n// \n// 1 xrefs:\n// > sub_5A3E4 @ 0x5a3f0\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_5B976(int *a1, int a2)\n{\n  int v3; // r0\n  int result; // r0\n\n  v3 = *a1;\n  if ( v3 )\n    j_FMOD_OS_CriticalSection_Enter(v3);\n  sub_54A38(a2);\n  result = *a1;\n  if ( *a1 )\n    return j_j_FMOD_OS_CriticalSection_Leave(result);\n  return result;\n}", "assembly": "; \n; sub_5B976 from 0x5b976 to 0x5b99a (36 bytes)\n; \n; 1 xrefs:\n; > sub_5A3E4 @ 0x5a3f0\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,R5,R7,LR}                                          ; +0x0, 0x5b976\nADD             R7, SP, #8                                             ; +0x2, 0x5b978\nMOV             R4, R0                                                 ; +0x4, 0x5b97a\nLDR             R0, [R0]                                               ; +0x6, 0x5b97c\nMOV             R5, R1                                                 ; +0x8, 0x5b97e\nCBZ             R0, loc_5B986                                          ; +0xa, 0x5b980\nBLX             j_FMOD_OS_CriticalSection_Enter                        ; +0xc, 0x5b982\nMOV             R0, R5                                                 ; +0x10, 0x5b986\nBL              sub_54A38                                              ; +0x12, 0x5b988\nLDR             R0, [R4]                                               ; +0x16, 0x5b98c\nCBZ             R0, locret_5B998                                       ; +0x18, 0x5b98e\nPOP.W           {R4,R5,R7,LR}                                          ; +0x1a, 0x5b990\nB.W             j_j_FMOD_OS_CriticalSection_Leave                      ; +0x1e, 0x5b994\nPOP             {R4,R5,R7,PC}                                          ; +0x22, 0x5b998", "xrefs": ["sub_5A3E4 @ 0x5a3f0"], "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"}