{"type": "func", "start": 4299994968, "end": 4299995248, "name": "FMOD::System::getChannelsPlaying", "pseudocode": "// \n// FMOD::System::getChannelsPlaying from 0x1004cb758 to 0x1004cb870 (280 bytes)\n// \n// 1 xrefs:\n// > sub_100452CB4 @ 0x100452cb8\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\nFMOD_RESULT __fastcall FMOD::System::getChannelsPlaying(FMOD::System *a1, int *a2, int *a3)\n{\n  int v6; // w3\n  int v7; // w4\n  int v8; // w5\n  int v9; // w6\n  int v10; // w7\n  __int64 v11; // x20\n  int v12; // w0\n  __int64 v13; // x22\n  int v14; // w3\n  int v15; // w4\n  int v16; // w5\n  int v17; // w6\n  int v18; // w7\n  int v19; // w0\n  int v20; // w3\n  int v21; // w4\n  int v22; // w5\n  int v23; // w6\n  int v24; // w7\n  __int64 v26; // [xsp+0h] [xbp-150h] BYREF\n  _BYTE v27[256]; // [xsp+8h] [xbp-148h] BYREF\n\n  v11 = sub_1004CE440(a1, &v26, 0);\n  if ( (_DWORD)v11 || (v11 = sub_1004D2814(v26, a2, a3), (_DWORD)v11) )\n  {\n    if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )\n    {\n      v12 = sub_1004360AC((int)v27, 0x100u, (__int64)a2, v6, v7, v8, v9, v10);\n      v13 = v12;\n      v19 = sub_100435EB4(&v27[v12], (unsigned int)(256 - v12), \", \", v14, v15, v16, v17, v18);\n      sub_1004360AC((int)&v27[v13 + v19], (unsigned int)(256 - (v13 + v19)), (__int64)a3, v20, v21, v22, v23, v24);\n      sub_10048489C(v11, 1, (__int64)a1, (__int64)\"System::getChannelsPlaying\", (__int64)v27);\n    }\n  }\n  return (unsigned int)v11;\n}", "assembly": "; \n; FMOD::System::getChannelsPlaying from 0x1004cb758 to 0x1004cb870 (280 bytes)\n; \n; 1 xrefs:\n; > sub_100452CB4 @ 0x100452cb8\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\nSUB             SP, SP, #0x160                                         ; +0x0, 0x1004cb758\nSTP             X28, X27, [SP,#0x150+var_40]                           ; +0x4, 0x1004cb75c\nSTP             X24, X23, [SP,#0x150+var_30]                           ; +0x8, 0x1004cb760\nSTP             X22, X21, [SP,#0x150+var_20]                           ; +0xc, 0x1004cb764\nSTP             X20, X19, [SP,#0x150+var_10]                           ; +0x10, 0x1004cb768\nSTP             X29, X30, [SP,#0x150+var_s0]                           ; +0x14, 0x1004cb76c\nADD             X29, SP, #0x150                                        ; +0x18, 0x1004cb770\nMOV             X21, X2                                                ; +0x1c, 0x1004cb774\nMOV             X22, X1                                                ; +0x20, 0x1004cb778\nMOV             X19, X0                                                ; +0x24, 0x1004cb77c\nADRP            X8, #___stack_chk_guard_ptr@PAGE                       ; +0x28, 0x1004cb780\nLDR             X8, [X8,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x2c, 0x1004cb784\nLDR             X8, [X8]                                               ; +0x30, 0x1004cb788\nSTUR            X8, [X29,#var_48]                                      ; +0x34, 0x1004cb78c\nMOV             X1, SP                                                 ; +0x38, 0x1004cb790\nMOV             X2, #0                                                 ; +0x3c, 0x1004cb794\nBL              sub_1004CE440                                          ; +0x40, 0x1004cb798\nMOV             X20, X0                                                ; +0x44, 0x1004cb79c\nCBNZ            W0, loc_1004CB7BC                                      ; +0x48, 0x1004cb7a0\nLDR             X0, [SP,#0x150+var_150]                                ; +0x4c, 0x1004cb7a4\nMOV             X1, X22                                                ; +0x50, 0x1004cb7a8\nMOV             X2, X21                                                ; +0x54, 0x1004cb7ac\nBL              sub_1004D2814                                          ; +0x58, 0x1004cb7b0\nMOV             X20, X0                                                ; +0x5c, 0x1004cb7b4\nCBZ             W0, loc_1004CB834                                      ; +0x60, 0x1004cb7b8\nADRL            X8, off_1008524C8                                      ; +0x64, 0x1004cb7bc\nLDR             X8, [X8]; unk_1008786E0                                ; +0x6c, 0x1004cb7c4\nLDRB            W8, [X8,#(dword_100878700 - 0x1008786E0)]              ; +0x70, 0x1004cb7c8\nTBZ             W8, #7, loc_1004CB834                                  ; +0x74, 0x1004cb7cc\nADD             X23, SP, #0x150+var_148                                ; +0x78, 0x1004cb7d0\nMOV             W24, #0x100                                            ; +0x7c, 0x1004cb7d4\nADD             X0, SP, #0x150+var_148                                 ; +0x80, 0x1004cb7d8\nMOV             W1, #0x100                                             ; +0x84, 0x1004cb7dc\nMOV             X2, X22                                                ; +0x88, 0x1004cb7e0\nBL              sub_1004360AC                                          ; +0x8c, 0x1004cb7e4\nSXTW            X22, W0                                                ; +0x90, 0x1004cb7e8\nADD             X8, X23, X22                                           ; +0x94, 0x1004cb7ec\nSUB             W1, W24, W0                                            ; +0x98, 0x1004cb7f0\nADRL            X2, asc_1006C9A07; \", \"                                ; +0x9c, 0x1004cb7f4\nMOV             X0, X8                                                 ; +0xa4, 0x1004cb7fc\nBL              sub_100435EB4                                          ; +0xa8, 0x1004cb800\nADD             X8, X22, W0,SXTW                                       ; +0xac, 0x1004cb804\nADD             X0, X23, X8                                            ; +0xb0, 0x1004cb808\nSUB             W1, W24, W8                                            ; +0xb4, 0x1004cb80c\nMOV             X2, X21                                                ; +0xb8, 0x1004cb810\nBL              sub_1004360AC                                          ; +0xbc, 0x1004cb814\nADRL            X3, aSystemGetchann; \"System::getChannelsPlaying\"      ; +0xc0, 0x1004cb818\nADD             X4, SP, #0x150+var_148                                 ; +0xc8, 0x1004cb820\nMOV             X0, X20                                                ; +0xcc, 0x1004cb824\nMOV             W1, #1                                                 ; +0xd0, 0x1004cb828\nMOV             X2, X19                                                ; +0xd4, 0x1004cb82c\nBL              sub_10048489C                                          ; +0xd8, 0x1004cb830\nLDUR            X8, [X29,#var_48]                                      ; +0xdc, 0x1004cb834\nADRP            X9, #___stack_chk_guard_ptr@PAGE                       ; +0xe0, 0x1004cb838\nLDR             X9, [X9,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0xe4, 0x1004cb83c\nLDR             X9, [X9]                                               ; +0xe8, 0x1004cb840\nCMP             X9, X8                                                 ; +0xec, 0x1004cb844\nB.NE            loc_1004CB86C                                          ; +0xf0, 0x1004cb848\nMOV             X0, X20                                                ; +0xf4, 0x1004cb84c\nLDP             X29, X30, [SP,#0x150+var_s0]                           ; +0xf8, 0x1004cb850\nLDP             X20, X19, [SP,#0x150+var_10]                           ; +0xfc, 0x1004cb854\nLDP             X22, X21, [SP,#0x150+var_20]                           ; +0x100, 0x1004cb858\nLDP             X24, X23, [SP,#0x150+var_30]                           ; +0x104, 0x1004cb85c\nLDP             X28, X27, [SP,#0x150+var_40]                           ; +0x108, 0x1004cb860\nADD             SP, SP, #0x160                                         ; +0x10c, 0x1004cb864\nRET                                                                    ; +0x110, 0x1004cb868\nBL              ___stack_chk_fail                                      ; +0x114, 0x1004cb86c", "xrefs": ["sub_100452CB4 @ 0x100452cb8"], "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"}