{"type": "func", "start": 758316, "end": 758422, "name": "FMOD::System::getChannelsPlaying", "pseudocode": "// \n// FMOD::System::getChannelsPlaying from 0xb922c to 0xb9296 (106 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::getChannelsPlaying @ 0xe0218\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:41:44 +0000\n// \n\nint __fastcall FMOD::System::getChannelsPlaying(FMOD::System *this, int *a2, int *a3)\n{\n  int v6; // r5\n  _BYTE v8[256]; // [sp+4h] [bp-11Ch] BYREF\n  int v9; // [sp+104h] [bp-1Ch] BYREF\n\n  v6 = FMOD::SystemI::validate((int)this, &v9, nullptr);\n  if ( !v6 )\n  {\n    v6 = sub_59E7A(v9, a2, a3);\n    if ( !v6 )\n      return 0;\n  }\n  if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )\n  {\n    sub_B5638((int)v8, 256, a2, a3);\n    sub_BAB40(v6, 1, this, \"System::getChannelsPlaying\", v8);\n  }\n  return v6;\n}", "assembly": "; \n; FMOD::System::getChannelsPlaying from 0xb922c to 0xb9296 (106 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::getChannelsPlaying @ 0xe0218\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:41:44 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0xb922c\nADD             R7, SP, #0xC                                           ; +0x2, 0xb922e\nPUSH.W          {R8,R9,R11}                                            ; +0x4, 0xb9230\nSUB             SP, SP, #0x108                                         ; +0x8, 0xb9234\nMOV             R6, R1                                                 ; +0xa, 0xb9236\nADD             R1, SP, #0x108+var_4                                   ; +0xc, 0xb9238\nMOV             R8, R2                                                 ; +0xe, 0xb923a\nMOVS            R2, #0                                                 ; +0x10, 0xb923c\nMOV             R4, R0                                                 ; +0x12, 0xb923e\nBLX             j__ZN4FMOD7SystemI8validateEPNS_6SystemEPPS0_PNS_15SystemLockScopeE; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI**,FMOD::SystemLockScope *) ; +0x14, 0xb9240\nMOV             R5, R0                                                 ; +0x18, 0xb9244\nCBNZ            R0, loc_B9256                                          ; +0x1a, 0xb9246\nLDR             R0, [SP,#0x108+var_4]                                  ; +0x1c, 0xb9248\nMOV             R1, R6                                                 ; +0x1e, 0xb924a\nMOV             R2, R8                                                 ; +0x20, 0xb924c\nBL              sub_59E7A                                              ; +0x22, 0xb924e\nMOV             R5, R0                                                 ; +0x26, 0xb9252\nCBZ             R0, loc_B928A                                          ; +0x28, 0xb9254\nLDR             R0, =(off_E6144 - 0xB925C)                             ; +0x2a, 0xb9256\nADD             R0, PC; off_E6144                                      ; +0x2c, 0xb9258\nLDR             R0, [R0]; off_E8000                                    ; +0x2e, 0xb925a\nLDR             R0, [R0]; dword_F2488                                  ; +0x30, 0xb925c\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x32, 0xb925e\nLSLS            R0, R0, #0x18                                          ; +0x34, 0xb9260\nBPL             loc_B928C                                              ; +0x36, 0xb9262\nADD.W           R9, SP, #0x108+var_104                                 ; +0x38, 0xb9264\nMOV.W           R1, #0x100                                             ; +0x3c, 0xb9268\nMOV             R2, R6                                                 ; +0x40, 0xb926c\nMOV             R3, R8                                                 ; +0x42, 0xb926e\nMOV             R0, R9                                                 ; +0x44, 0xb9270\nBL              sub_B5638                                              ; +0x46, 0xb9272\nSTR.W           R9, [SP,#0x108+var_108]                                ; +0x4a, 0xb9276\nMOV             R0, R5                                                 ; +0x4e, 0xb927a\nLDR             R3, =(aSystemGetchann - 0xB9286); \"System::getChannelsPlaying\" ... ; +0x50, 0xb927c\nMOVS            R1, #1                                                 ; +0x52, 0xb927e\nMOV             R2, R4                                                 ; +0x54, 0xb9280\nADD             R3, PC; \"System::getChannelsPlaying\"                   ; +0x56, 0xb9282\nBL              sub_BAB40                                              ; +0x58, 0xb9284\nB               loc_B928C                                              ; +0x5c, 0xb9288\nMOVS            R5, #0                                                 ; +0x5e, 0xb928a\nMOV             R0, R5                                                 ; +0x60, 0xb928c\nADD             SP, SP, #0x108                                         ; +0x62, 0xb928e\nPOP.W           {R8,R9,R11}                                            ; +0x64, 0xb9290\nPOP             {R4-R7,PC}                                             ; +0x68, 0xb9294", "xrefs": ["FMOD::System::getChannelsPlaying @ 0xe0218"], "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"}