{"type": "func", "start": 362884, "end": 362948, "name": "sub_58984", "pseudocode": "// \n// sub_58984 from 0x58984 to 0x589c4 (64 bytes)\n// \n// 2 xrefs:\n// > sub_588B4 @ 0x588f0\n// > FMOD::ChannelGroup::getChannel @ 0xd2470\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\n__int64 __fastcall sub_58984(__int64 a1, int a2, _QWORD *a3)\n{\n  int v3; // w9\n  _QWORD *v4; // x10\n\n  if ( a3 )\n  {\n    v3 = a2 + 1;\n    v4 = (_QWORD *)(a1 + 424);\n    *a3 = 0;\n    while ( 1 )\n    {\n      v4 = (_QWORD *)*v4;\n      if ( v4 == (_QWORD *)(a1 + 424) )\n        break;\n      if ( !--v3 )\n      {\n        *a3 = *(_QWORD *)(v4[2] + 80LL);\n        return 0;\n      }\n    }\n  }\n  return 31;\n}", "assembly": "; \n; sub_58984 from 0x58984 to 0x589c4 (64 bytes)\n; \n; 2 xrefs:\n; > sub_588B4 @ 0x588f0\n; > FMOD::ChannelGroup::getChannel @ 0xd2470\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             X2, loc_589C0                                          ; +0x0, 0x58984\nADD             X8, X0, #0x1A8                                         ; +0x4, 0x58988\nADD             W9, W1, #1                                             ; +0x8, 0x5898c\nMOV             X10, X8                                                ; +0xc, 0x58990\nSTR             XZR, [X2]                                              ; +0x10, 0x58994\nLDR             X10, [X10]                                             ; +0x14, 0x58998\nCMP             X10, X8                                                ; +0x18, 0x5899c\nB.EQ            loc_589C0                                              ; +0x1c, 0x589a0\nSUBS            W9, W9, #1                                             ; +0x20, 0x589a4\nB.NE            loc_58998                                              ; +0x24, 0x589a8\nLDR             X8, [X10,#0x10]                                        ; +0x28, 0x589ac\nMOV             W0, WZR                                                ; +0x2c, 0x589b0\nLDR             X8, [X8,#0x50]                                         ; +0x30, 0x589b4\nSTR             X8, [X2]                                               ; +0x34, 0x589b8\nRET                                                                    ; +0x38, 0x589bc\nB               loc_59348                                              ; +0x3c, 0x589c0", "xrefs": ["sub_588B4 @ 0x588f0", "FMOD::ChannelGroup::getChannel @ 0xd2470"], "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"}