{"type": "func", "start": 307548, "end": 307570, "name": "sub_4B15C", "pseudocode": "// \n// sub_4B15C from 0x4b15c to 0x4b172 (22 bytes)\n// \n// 2 xrefs:\n// > sub_4A934 @ 0x4a980\n// > FMOD::Channel::getLoopCount @ 0xad77e\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_4B15C(int a1, int a2)\n{\n  int v2; // r0\n\n  if ( !a2 )\n    return 31;\n  v2 = *(_DWORD *)(a1 + 332);\n  if ( v2 )\n    return (*(int (__fastcall **)(int))(*(_DWORD *)v2 + 80))(v2);\n  else\n    return 30;\n}", "assembly": "; \n; sub_4B15C from 0x4b15c to 0x4b172 (22 bytes)\n; \n; 2 xrefs:\n; > sub_4A934 @ 0x4a980\n; > FMOD::Channel::getLoopCount @ 0xad77e\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_4B16A                                          ; +0x0, 0x4b15c\nLDR.W           R0, [R0,#0x14C]                                        ; +0x2, 0x4b15e\nCBZ             R0, loc_4B16E                                          ; +0x6, 0x4b162\nLDR             R2, [R0]                                               ; +0x8, 0x4b164\nLDR             R2, [R2,#0x50]                                         ; +0xa, 0x4b166\nBX              R2                                                     ; +0xc, 0x4b168\nMOVS            R0, #0x1F                                              ; +0xe, 0x4b16a\nBX              LR                                                     ; +0x10, 0x4b16c\nMOVS            R0, #0x1E                                              ; +0x12, 0x4b16e\nBX              LR                                                     ; +0x14, 0x4b170", "xrefs": ["sub_4A934 @ 0x4a980", "FMOD::Channel::getLoopCount @ 0xad77e"], "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"}