{"type": "func", "start": 307832, "end": 307864, "name": "sub_4B278", "pseudocode": "// \n// sub_4B278 from 0x4b278 to 0x4b298 (32 bytes)\n// \n// 2 xrefs:\n// > sub_4ADB4 @ 0x4adf4\n// > FMOD::Channel::setLoopCount @ 0xad700\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:40:40 +0000\n// \n\nint __fastcall sub_4B278(int a1, int a2)\n{\n  int v3; // r0\n\n  v3 = *(_DWORD *)(a1 + 332);\n  if ( !v3 || !*(_DWORD *)(a1 + 16) )\n    return 30;\n  if ( a2 >= -1 )\n    return (*(int (__fastcall **)(int))(*(_DWORD *)v3 + 76))(v3);\n  return 31;\n}", "assembly": "; \n; sub_4B278 from 0x4b278 to 0x4b298 (32 bytes)\n; \n; 2 xrefs:\n; > sub_4ADB4 @ 0x4adf4\n; > FMOD::Channel::setLoopCount @ 0xad700\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:40:40 +0000\n; \nMOV             R2, R0                                                 ; +0x0, 0x4b278\nLDR.W           R0, [R0,#0x14C]                                        ; +0x2, 0x4b27a\nCBZ             R0, loc_4B294                                          ; +0x6, 0x4b27e\nLDR             R2, [R2,#0x10]                                         ; +0x8, 0x4b280\nCBZ             R2, loc_4B294                                          ; +0xa, 0x4b282\nCMP.W           R1, #0xFFFFFFFF                                        ; +0xc, 0x4b284\nITT LT                                                                 ; +0x10, 0x4b288\nMOVLT           R0, #0x1F                                              ; +0x12, 0x4b28a\nBXLT            LR                                                     ; +0x14, 0x4b28c\nLDR             R2, [R0]                                               ; +0x16, 0x4b28e\nLDR             R2, [R2,#0x4C]                                         ; +0x18, 0x4b290\nBX              R2                                                     ; +0x1a, 0x4b292\nMOVS            R0, #0x1E                                              ; +0x1c, 0x4b294\nBX              LR                                                     ; +0x1e, 0x4b296", "xrefs": ["sub_4ADB4 @ 0x4adf4", "FMOD::Channel::setLoopCount @ 0xad700"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}