{"type": "func", "start": 310960, "end": 310986, "name": "sub_4BEB0", "pseudocode": "// \n// sub_4BEB0 from 0x4beb0 to 0x4beca (26 bytes)\n// \n// 2 xrefs:\n// > sub_4999A @ 0x499ea\n// > FMOD::Channel::getFrequency @ 0xad502\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_4BEB0(int a1, _DWORD *a2)\n{\n  if ( !a2 )\n    return 31;\n  if ( !*(_DWORD *)(a1 + 332) )\n    return 30;\n  *a2 = *(_DWORD *)(a1 + 388);\n  return 0;\n}", "assembly": "; \n; sub_4BEB0 from 0x4beb0 to 0x4beca (26 bytes)\n; \n; 2 xrefs:\n; > sub_4999A @ 0x499ea\n; > FMOD::Channel::getFrequency @ 0xad502\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\nCBZ             R1, loc_4BEC6                                          ; +0x0, 0x4beb0\nLDR.W           R2, [R0,#0x14C]                                        ; +0x2, 0x4beb2\nCMP             R2, #0                                                 ; +0x6, 0x4beb6\nITEEE EQ                                                               ; +0x8, 0x4beb8\nMOVEQ           R0, #0x1E                                              ; +0xa, 0x4beba\nLDRNE.W         R0, [R0,#0x184]                                        ; +0xc, 0x4bebc\nSTRNE           R0, [R1]                                               ; +0x10, 0x4bec0\nMOVNE           R0, #0                                                 ; +0x12, 0x4bec2\nBX              LR                                                     ; +0x14, 0x4bec4\nMOVS            R0, #0x1F                                              ; +0x16, 0x4bec6\nBX              LR                                                     ; +0x18, 0x4bec8", "xrefs": ["sub_4999A @ 0x499ea", "FMOD::Channel::getFrequency @ 0xad502"], "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"}