{"type": "func", "start": 370920, "end": 370968, "name": "sub_5A8E8", "pseudocode": "// \n// sub_5A8E8 from 0x5a8e8 to 0x5a918 (48 bytes)\n// \n// 2 xrefs:\n// > sub_5A244 @ 0x5a2a8\n// > FMOD::Channel::setLoopCount @ 0xcef84\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_5A8E8(__int64 a1, int a2)\n{\n  __int64 v3; // x0\n\n  v3 = *(_QWORD *)(a1 + 472);\n  if ( !v3 || !*(_QWORD *)(a1 + 32) )\n    return 30;\n  if ( a2 >= -1 )\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 152LL))(v3);\n  return 31;\n}", "assembly": "; \n; sub_5A8E8 from 0x5a8e8 to 0x5a918 (48 bytes)\n; \n; 2 xrefs:\n; > sub_5A244 @ 0x5a2a8\n; > FMOD::Channel::setLoopCount @ 0xcef84\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\nMOV             X8, X0                                                 ; +0x0, 0x5a8e8\nLDR             X0, [X0,#0x1D8]                                        ; +0x4, 0x5a8ec\nCBZ             X0, loc_5A908                                          ; +0x8, 0x5a8f0\nLDR             X8, [X8,#0x20]                                         ; +0xc, 0x5a8f4\nCBZ             X8, loc_5A908                                          ; +0x10, 0x5a8f8\nCMN             W1, #1                                                 ; +0x14, 0x5a8fc\nB.GE            loc_5A90C                                              ; +0x18, 0x5a900\nB               loc_5C4E4                                              ; +0x1c, 0x5a904\nB               loc_5C4EC                                              ; +0x20, 0x5a908\nLDR             X8, [X0]                                               ; +0x24, 0x5a90c\nLDR             X2, [X8,#0x98]                                         ; +0x28, 0x5a910\nBR              X2                                                     ; +0x2c, 0x5a914", "xrefs": ["sub_5A244 @ 0x5a2a8", "FMOD::Channel::setLoopCount @ 0xcef84"], "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"}