{"type": "func", "start": 9416856, "end": 9417196, "name": "EndLevelLayer::onReplay", "pseudocode": "// \n// EndLevelLayer::onReplay from 0x8fb098 to 0x8fb1ec (340 bytes)\n// \n// 4 xrefs:\n// > EndLevelLayer::keyDown @ 0x8fb224\n// > <???> @ 0xc6898\n// > EndLevelLayer::customSetup @ 0x8fc4d8\n// > <???> @ 0x1545cd0\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 12:57:03 +0000\n// \n\n__int64 __fastcall EndLevelLayer::onReplay(EndLevelLayer *this, cocos2d::CCObject *a2)\n{\n  GameManager *v4; // x0\n  PlatformToolbox *GameVariable; // x0\n  FMOD::ChannelControl **v6; // x0\n  FMODAudioEngine *v7; // x0\n  __int64 v8; // x22\n  __int64 v9[2]; // [xsp+30h] [xbp+30h] BYREF\n  void *v10; // [xsp+40h] [xbp+40h]\n\n  if ( !*((_BYTE *)this + 619) )\n  {\n    *((_BYTE *)this + 619) = (unsigned __int8)&dword_0 + 1;\n    v4 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 1));\n    GameVariable = (PlatformToolbox *)(unsigned __int8)GameManager::getGameVariable(v4, \"0024\");\n    if ( !(_BYTE)GameVariable )\n      PlatformToolbox::hideCursor(GameVariable);\n    v6 = (FMOD::ChannelControl **)FMODAudioEngine::sharedEngine(GameVariable);\n    v7 = (FMODAudioEngine *)FMODAudioEngine::clearAllAudio(v6);\n    v8 = FMODAudioEngine::sharedEngine(v7);\n    v9[0] = 0;\n    v9[1] = 0;\n    v10 = nullptr;\n    std::string::__init(v9, \"playSound_01.ogg\", 0x10u);\n    FMODAudioEngine::playEffect(v8, (char *)v9, 1.0, 0.0, 0.3);\n    if ( (v9[0] & 1) != 0 )\n      operator delete(v10);\n    (*(void (__fastcall **)(EndLevelLayer *, _QWORD))(*(_QWORD *)this + 1320LL))(this, 0);\n    (*(void (__fastcall **)(EndLevelLayer *, _QWORD))(*(_QWORD *)this + 1000LL))(this, 0);\n    (*(void (__fastcall **)(EndLevelLayer *, _QWORD))(*(_QWORD *)this + 1088LL))(this, 0);\n    (*(void (__fastcall **)(EndLevelLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);\n    PlayLayer::delayedFullReset(*((PlayLayer **)this + 76));\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EndLevelLayer::onReplay from 0x8fb098 to 0x8fb1ec (340 bytes)\n; \n; 4 xrefs:\n; > EndLevelLayer::keyDown @ 0x8fb224\n; > <???> @ 0xc6898\n; > EndLevelLayer::customSetup @ 0x8fc4d8\n; > <???> @ 0x1545cd0\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 12:57:03 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x8fb098\nMOV             X29, SP                                                ; +0x4, 0x8fb09c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x8fb0a0\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x8fb0a4\nMOV             X19, X0                                                ; +0x10, 0x8fb0a8\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0x8fb0ac\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x8fb0b0\nLDRB            W0, [X0,#0x26B]                                        ; +0x1c, 0x8fb0b4\nLDR             X1, [X1]                                               ; +0x20, 0x8fb0b8\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x24, 0x8fb0bc\nCBZ             W0, loc_8FB0E8                                         ; +0x28, 0x8fb0c0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2c, 0x8fb0c4\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x30, 0x8fb0c8\nLDR             X0, [X20]                                              ; +0x34, 0x8fb0cc\nCMP             X1, X0                                                 ; +0x38, 0x8fb0d0\nB.NE            loc_8FB1CC                                             ; +0x3c, 0x8fb0d4\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x40, 0x8fb0d8\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x44, 0x8fb0dc\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x48, 0x8fb0e0\nRET                                                                    ; +0x4c, 0x8fb0e4\nMOV             W0, #(dword_0+1); this                                 ; +0x50, 0x8fb0e8\nSTRB            W0, [X19,#0x26B]                                       ; +0x54, 0x8fb0ec\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x58, 0x8fb0f0\nADRL            X1, a0024; \"0024\"                                      ; +0x5c, 0x8fb0f4\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x64, 0x8fb0fc\nUXTB            W0, W0; this                                           ; +0x68, 0x8fb100\nCBZ             W0, loc_8FB1B8                                         ; +0x6c, 0x8fb104\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x70, 0x8fb108\nADD             X21, X29, #0x50+var_20                                 ; +0x74, 0x8fb10c\nBL              _ZN15FMODAudioEngine13clearAllAudioEv; FMODAudioEngine::clearAllAudio(void) ; +0x78, 0x8fb110\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x7c, 0x8fb114\nMOV             X22, X0                                                ; +0x80, 0x8fb118\nADRP            X1, #aPlaysound01Ogg@PAGE; \"playSound_01.ogg\"          ; +0x84, 0x8fb11c\nMOV             X0, X21                                                ; +0x88, 0x8fb120\nADD             X1, X1, #aPlaysound01Ogg@PAGEOFF; \"playSound_01.ogg\"   ; +0x8c, 0x8fb124\nMOV             X2, #0x10                                              ; +0x90, 0x8fb128\nSTR             XZR, [X29,#0x50+var_20]                                ; +0x94, 0x8fb12c\nSTR             XZR, [X29,#0x50+var_18]                                ; +0x98, 0x8fb130\nSTR             XZR, [X29,#0x50+var_10]                                ; +0x9c, 0x8fb134\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xa0, 0x8fb138\nFMOV            S1, WZR                                                ; +0xa4, 0x8fb13c\nMOV             X0, X22                                                ; +0xa8, 0x8fb140\nLDR             S2, =0x3E99999A                                        ; +0xac, 0x8fb144\nMOV             X1, X21                                                ; +0xb0, 0x8fb148\nFMOV            S0, #1.0                                               ; +0xb4, 0x8fb14c\nBL              _ZN15FMODAudioEngine10playEffectENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEfff; FMODAudioEngine::playEffect(std::string,float,float,float) ; +0xb8, 0x8fb150\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0xbc, 0x8fb154\nTBNZ            W0, #0, loc_8FB1C0                                     ; +0xc0, 0x8fb158\nLDR             X2, [X19]                                              ; +0xc4, 0x8fb15c\nMOV             X0, X19                                                ; +0xc8, 0x8fb160\nMOV             X1, #0                                                 ; +0xcc, 0x8fb164\nLDR             X2, [X2,#0x528]                                        ; +0xd0, 0x8fb168\nBLR             X2                                                     ; +0xd4, 0x8fb16c\nLDR             X2, [X19]                                              ; +0xd8, 0x8fb170\nMOV             X0, X19                                                ; +0xdc, 0x8fb174\nMOV             W1, #0                                                 ; +0xe0, 0x8fb178\nLDR             X2, [X2,#0x3E8]                                        ; +0xe4, 0x8fb17c\nBLR             X2                                                     ; +0xe8, 0x8fb180\nLDR             X2, [X19]                                              ; +0xec, 0x8fb184\nMOV             X0, X19                                                ; +0xf0, 0x8fb188\nMOV             W1, #0                                                 ; +0xf4, 0x8fb18c\nLDR             X2, [X2,#0x440]                                        ; +0xf8, 0x8fb190\nBLR             X2                                                     ; +0xfc, 0x8fb194\nLDR             X2, [X19]                                              ; +0x100, 0x8fb198\nMOV             X0, X19                                                ; +0x104, 0x8fb19c\nMOV             W1, #0                                                 ; +0x108, 0x8fb1a0\nLDR             X2, [X2,#0x430]                                        ; +0x10c, 0x8fb1a4\nBLR             X2                                                     ; +0x110, 0x8fb1a8\nLDR             X0, [X19,#0x260]; this                                 ; +0x114, 0x8fb1ac\nBL              _ZN9PlayLayer16delayedFullResetEv; PlayLayer::delayedFullReset(void) ; +0x118, 0x8fb1b0\nB               loc_8FB0C4                                             ; +0x11c, 0x8fb1b4\nBL              _ZN15PlatformToolbox10hideCursorEv; PlatformToolbox::hideCursor(void) ; +0x120, 0x8fb1b8\nB               loc_8FB108                                             ; +0x124, 0x8fb1bc\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x128, 0x8fb1c0\nBL              _ZdlPv; operator delete(void *)                        ; +0x12c, 0x8fb1c4\nB               loc_8FB15C                                             ; +0x130, 0x8fb1c8\nBL              .__stack_chk_fail                                      ; +0x134, 0x8fb1cc\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0x138, 0x8fb1d0\nMOV             X19, X0                                                ; +0x13c, 0x8fb1d4\nTBZ             W1, #0, loc_8FB1E4                                     ; +0x140, 0x8fb1d8\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x144, 0x8fb1dc\nBL              _ZdlPv; operator delete(void *)                        ; +0x148, 0x8fb1e0\nMOV             X0, X19                                                ; +0x14c, 0x8fb1e4\nBL              _Unwind_Resume                                         ; +0x150, 0x8fb1e8", "xrefs": ["EndLevelLayer::keyDown @ 0x8fb224", "<???> @ 0xc6898", "EndLevelLayer::customSetup @ 0x8fc4d8", "<???> @ 0x1545cd0"], "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"}