{"type": "func", "start": 4301194392, "end": 4301194588, "name": "FMOD::System::update", "pseudocode": "// \n// FMOD::System::update from 0x1005f0498 to 0x1005f055c (196 bytes)\n// \n// 8 xrefs:\n// > PlayLayer::resume @ 0x10014c6ac\n// > FMODAudioEngine::start @ 0x1001b55e8\n// > sub_1001B56B0 @ 0x1001b5794\n// > FMODAudioEngine::update @ 0x1001b5b54\n// > GJBaseGameLayer::pauseAudio @ 0x10029a5e0\n// > GJBaseGameLayer::resumeAudio @ 0x10029a608\n// > GJBaseGameLayer::resetAudio @ 0x10029a628\n// > sub_100578CBC @ 0x100578cc0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:09:48 +0000\n// \n\n__int64 __fastcall FMOD::System::update(__int64 a1)\n{\n  __int64 v2; // x19\n  __int64 v4; // [xsp+8h] [xbp-138h] BYREF\n  __int64 v5; // [xsp+10h] [xbp-130h] BYREF\n  _BYTE v6[256]; // [xsp+18h] [xbp-128h] BYREF\n\n  v4 = 0;\n  v2 = sub_1005F45A8(a1, &v5, &v4);\n  if ( (_DWORD)v2 || (v2 = sub_1005F7DC4(v5), (_DWORD)v2) )\n  {\n    if ( (*((_BYTE *)off_1009DA5E8 + 32) & 0x80) != 0 )\n    {\n      v6[0] = 0;\n      sub_1005AAA04(v2, 1, a1, (__int64)\"System::update\", (__int64)v6);\n    }\n  }\n  if ( v4 )\n    sub_100568EE8(v4);\n  return v2;\n}", "assembly": "; \n; FMOD::System::update from 0x1005f0498 to 0x1005f055c (196 bytes)\n; \n; 8 xrefs:\n; > PlayLayer::resume @ 0x10014c6ac\n; > FMODAudioEngine::start @ 0x1001b55e8\n; > sub_1001B56B0 @ 0x1001b5794\n; > FMODAudioEngine::update @ 0x1001b5b54\n; > GJBaseGameLayer::pauseAudio @ 0x10029a5e0\n; > GJBaseGameLayer::resumeAudio @ 0x10029a608\n; > GJBaseGameLayer::resetAudio @ 0x10029a628\n; > sub_100578CBC @ 0x100578cc0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:09:48 +0000\n; \nSUB             SP, SP, #0x150                                         ; +0x0, 0x1005f0498\nSTP             X28, X27, [SP,#0x140+var_20]                           ; +0x4, 0x1005f049c\nSTP             X20, X19, [SP,#0x140+var_10]                           ; +0x8, 0x1005f04a0\nSTP             X29, X30, [SP,#0x140+var_s0]                           ; +0xc, 0x1005f04a4\nADD             X29, SP, #0x140                                        ; +0x10, 0x1005f04a8\nMOV             X20, X0                                                ; +0x14, 0x1005f04ac\nADRP            X8, #___stack_chk_guard_ptr@PAGE                       ; +0x18, 0x1005f04b0\nLDR             X8, [X8,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x1c, 0x1005f04b4\nLDR             X8, [X8]                                               ; +0x20, 0x1005f04b8\nSTUR            X8, [X29,#var_28]                                      ; +0x24, 0x1005f04bc\nSTR             XZR, [SP,#0x140+var_138]                               ; +0x28, 0x1005f04c0\nADD             X1, SP, #0x140+var_130                                 ; +0x2c, 0x1005f04c4\nADD             X2, SP, #0x140+var_138                                 ; +0x30, 0x1005f04c8\nBL              sub_1005F45A8                                          ; +0x34, 0x1005f04cc\nMOV             X19, X0                                                ; +0x38, 0x1005f04d0\nCBNZ            W0, loc_1005F04E8                                      ; +0x3c, 0x1005f04d4\nLDR             X0, [SP,#0x140+var_130]                                ; +0x40, 0x1005f04d8\nBL              sub_1005F7DC4                                          ; +0x44, 0x1005f04dc\nMOV             X19, X0                                                ; +0x48, 0x1005f04e0\nCBZ             W0, loc_1005F051C                                      ; +0x4c, 0x1005f04e4\nADRL            X8, off_1009DA5E8                                      ; +0x50, 0x1005f04e8\nLDR             X8, [X8]; unk_100A02230                                ; +0x58, 0x1005f04f0\nLDRB            W8, [X8,#(dword_100A02250 - 0x100A02230)]              ; +0x5c, 0x1005f04f4\nTBZ             W8, #7, loc_1005F051C                                  ; +0x60, 0x1005f04f8\nSTRB            WZR, [SP,#0x140+var_128]                               ; +0x64, 0x1005f04fc\nADRL            X3, aSystemUpdate; \"System::update\"                    ; +0x68, 0x1005f0500\nADD             X4, SP, #0x140+var_128                                 ; +0x70, 0x1005f0508\nMOV             X0, X19                                                ; +0x74, 0x1005f050c\nMOV             W1, #1                                                 ; +0x78, 0x1005f0510\nMOV             X2, X20                                                ; +0x7c, 0x1005f0514\nBL              sub_1005AAA04                                          ; +0x80, 0x1005f0518\nLDR             X0, [SP,#0x140+var_138]                                ; +0x84, 0x1005f051c\nCBZ             X0, loc_1005F0528                                      ; +0x88, 0x1005f0520\nBL              sub_100568EE8                                          ; +0x8c, 0x1005f0524\nLDUR            X8, [X29,#var_28]                                      ; +0x90, 0x1005f0528\nADRP            X9, #___stack_chk_guard_ptr@PAGE                       ; +0x94, 0x1005f052c\nLDR             X9, [X9,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x98, 0x1005f0530\nLDR             X9, [X9]                                               ; +0x9c, 0x1005f0534\nCMP             X9, X8                                                 ; +0xa0, 0x1005f0538\nB.NE            loc_1005F0558                                          ; +0xa4, 0x1005f053c\nMOV             X0, X19                                                ; +0xa8, 0x1005f0540\nLDP             X29, X30, [SP,#0x140+var_s0]                           ; +0xac, 0x1005f0544\nLDP             X20, X19, [SP,#0x140+var_10]                           ; +0xb0, 0x1005f0548\nLDP             X28, X27, [SP,#0x140+var_20]                           ; +0xb4, 0x1005f054c\nADD             SP, SP, #0x150                                         ; +0xb8, 0x1005f0550\nRET                                                                    ; +0xbc, 0x1005f0554\nBL              ___stack_chk_fail                                      ; +0xc0, 0x1005f0558", "xrefs": ["PlayLayer::resume @ 0x10014c6ac", "FMODAudioEngine::start @ 0x1001b55e8", "sub_1001B56B0 @ 0x1001b5794", "FMODAudioEngine::update @ 0x1001b5b54", "GJBaseGameLayer::pauseAudio @ 0x10029a5e0", "GJBaseGameLayer::resumeAudio @ 0x10029a608", "GJBaseGameLayer::resetAudio @ 0x10029a628", "sub_100578CBC @ 0x100578cc0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}