{"type": "func", "start": 8136584, "end": 8137160, "name": "EditorUI::onPlayback", "pseudocode": "// \n// EditorUI::onPlayback from 0x7c2788 to 0x7c29c8 (576 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onStopPlaytest @ 0x7ce9c8\n// > EditorUI::handleEditorAction @ 0xbd7cfc\n// > <???> @ 0x65320\n// > EditorUI::init @ 0x7cf99c\n// > <???> @ 0x1542708\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:54:07 +0000\n// \n\n__int64 __fastcall EditorUI::onPlayback(EditorUI *this, cocos2d::CCObject *a2)\n{\n  GJBaseGameLayer *v3; // x0\n  int v5; // w23\n  LevelEditorLayer *v6; // x0\n  int SelectedEditorOrder; // w24\n  int SelectedOrderChannel; // w25\n  __int64 v9; // x26\n  __int64 v10; // x2\n  int v11; // s0\n  __int64 v12; // x22\n  __int64 v13; // x0\n  int v14; // s0\n  __int64 v15; // x0\n  __int64 v16; // [xsp+58h] [xbp+58h] BYREF\n  _BYTE v17[8]; // [xsp+60h] [xbp+60h] BYREF\n\n  if ( !*((_BYTE *)this + 1588) )\n  {\n    v3 = *((GJBaseGameLayer **)this + 180);\n    if ( !*((_DWORD *)v3 + 493) )\n    {\n      GJBaseGameLayer::preResumeGame(v3);\n      v5 = 0;\n      *(_BYTE *)(*((_QWORD *)this + 180) + 1896LL) = 0;\n      if ( !*((_BYTE *)this + 616) )\n      {\n        v5 = 1;\n        GJBaseGameLayer::pauseAudio(*((GJBaseGameLayer **)this + 180));\n      }\n      LevelEditorLayer::resetPlayback(*((LevelEditorLayer **)this + 180));\n      if ( *((_BYTE *)this + 616) )\n      {\n        LevelEditorLayer::stopPlayback(*((LevelEditorLayer **)this + 180));\n        *(_BYTE *)(*((_QWORD *)this + 180) + 14184LL) = 1;\n      }\n      else\n      {\n        DrawGridLayer::updateTimeMarkers(*(DrawGridLayer **)(*((_QWORD *)this + 180) + 14288LL));\n        cocos2d::CCNode::convertToNodeSpace(\n          &v16,\n          *(cocos2d::CCNode **)(*((_QWORD *)this + 180) + 3920LL),\n          (const cocos2d::CCPoint *)&dword_155C778);\n        if ( (float)(*(float *)&v16 + 30.0) < 50.0 )\n          LODWORD(v16) = 0;\n        v6 = *((LevelEditorLayer **)this + 180);\n        if ( *((_QWORD *)v6 + 1852) )\n        {\n          LevelEditorLayer::getSelectedEffectPos(v6, (cocos2d::CCPoint *)v17);\n          cocos2d::CCPoint::operator=(&v16, v17);\n          SelectedEditorOrder = LevelEditorLayer::getSelectedEditorOrder(*((LevelEditorLayer **)this + 180));\n          SelectedOrderChannel = LevelEditorLayer::getSelectedOrderChannel(*((LevelEditorLayer **)this + 180));\n          *(_DWORD *)(*((_QWORD *)this + 180) + 14840LL) = SelectedEditorOrder;\n          v6 = *((LevelEditorLayer **)this + 180);\n        }\n        else\n        {\n          SelectedOrderChannel = 0;\n          SelectedEditorOrder = 0;\n        }\n        v9 = *((_QWORD *)v6 + 1786);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (const cocos2d::CCPoint *)&v16);\n        DrawGridLayer::timeForPos(\n          v9,\n          (const cocos2d::CCPoint *)v17,\n          SelectedEditorOrder,\n          SelectedOrderChannel,\n          0,\n          1u,\n          0,\n          0);\n        v10 = *((_QWORD *)this + 180);\n        *((_DWORD *)this + 168) = v11;\n        v12 = *(_QWORD *)(v10 + 14288);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (const cocos2d::CCPoint *)&v16);\n        DrawGridLayer::timeForPos(\n          v12,\n          (const cocos2d::CCPoint *)v17,\n          SelectedEditorOrder,\n          SelectedOrderChannel,\n          0,\n          0,\n          0,\n          0);\n        v13 = *((_QWORD *)this + 180);\n        *((_DWORD *)this + 169) = v14;\n        DrawGridLayer::updateMusicGuideTime(*(float **)(v13 + 14288), *((float *)this + 168));\n      }\n      *((_BYTE *)this + 616) ^= 1u;\n      EditorUI::updatePlaybackBtn(this);\n      if ( *((_BYTE *)this + 616) )\n      {\n        v15 = FMODAudioEngine::sharedEngine((FMODAudioEngine *)*((unsigned __int8 *)this + 616));\n        FMODAudioEngine::updateReverb(v15, 0, 0);\n        LevelEditorLayer::updateGameObjects(*((LevelEditorLayer **)this + 180));\n        GJBaseGameLayer::processQueuedAudioTriggers(*((GJBaseGameLayer **)this + 180));\n      }\n      if ( v5 )\n        *(_BYTE *)(*((_QWORD *)this + 180) + 13806LL) = 1;\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::onPlayback from 0x7c2788 to 0x7c29c8 (576 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onStopPlaytest @ 0x7ce9c8\n; > EditorUI::handleEditorAction @ 0xbd7cfc\n; > <???> @ 0x65320\n; > EditorUI::init @ 0x7cf99c\n; > <???> @ 0x1542708\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:54:07 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x7c2788\nMOV             X29, SP                                                ; +0x4, 0x7c278c\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x7c2790\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7c2794\nMOV             X19, X0                                                ; +0x10, 0x7c2798\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0x7c279c\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x18, 0x7c27a0\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x7c27a4\nSTP             X25, X26, [SP,#0x70+var_30]                            ; +0x20, 0x7c27a8\nLDR             X1, [X1]                                               ; +0x24, 0x7c27ac\nLDRB            W0, [X0,#0x634]                                        ; +0x28, 0x7c27b0\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x2c, 0x7c27b4\nCBNZ            W0, loc_7C27C8                                         ; +0x30, 0x7c27b8\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x34, 0x7c27bc\nLDR             W1, [X0,#0x7B4]                                        ; +0x38, 0x7c27c0\nCBZ             W1, loc_7C27F4                                         ; +0x3c, 0x7c27c4\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x40, 0x7c27c8\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x44, 0x7c27cc\nLDR             X0, [X20]                                              ; +0x48, 0x7c27d0\nCMP             X1, X0                                                 ; +0x4c, 0x7c27d4\nB.NE            loc_7C29C4                                             ; +0x50, 0x7c27d8\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x54, 0x7c27dc\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x58, 0x7c27e0\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0x5c, 0x7c27e4\nLDP             X25, X26, [SP,#0x70+var_30]                            ; +0x60, 0x7c27e8\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x64, 0x7c27ec\nRET                                                                    ; +0x68, 0x7c27f0\nBL              _ZN15GJBaseGameLayer13preResumeGameEv; GJBaseGameLayer::preResumeGame(void) ; +0x6c, 0x7c27f4\nMOV             W23, #0                                                ; +0x70, 0x7c27f8\nLDR             X0, [X19,#0x5A0]                                       ; +0x74, 0x7c27fc\nSTRB            WZR, [X0,#0x768]                                       ; +0x78, 0x7c2800\nLDRB            W0, [X19,#0x268]                                       ; +0x7c, 0x7c2804\nCBZ             W0, loc_7C29A4                                         ; +0x80, 0x7c2808\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x84, 0x7c280c\nBL              _ZN16LevelEditorLayer13resetPlaybackEv; LevelEditorLayer::resetPlayback(void) ; +0x88, 0x7c2810\nLDRB            W0, [X19,#0x268]                                       ; +0x8c, 0x7c2814\nCBNZ            W0, loc_7C2964                                         ; +0x90, 0x7c2818\nLDR             X0, [X19,#0x5A0]                                       ; +0x94, 0x7c281c\nADD             X22, X29, #0x70+var_18                                 ; +0x98, 0x7c2820\nLDR             X0, [X0,#0x37D0]; this                                 ; +0x9c, 0x7c2824\nBL              _ZN13DrawGridLayer17updateTimeMarkersEv; DrawGridLayer::updateTimeMarkers(void) ; +0xa0, 0x7c2828\nLDR             X0, [X19,#0x5A0]                                       ; +0xa4, 0x7c282c\nADRP            X1, #dword_155C778@PAGE                                ; +0xa8, 0x7c2830\nMOV             X8, X22                                                ; +0xac, 0x7c2834\nADD             X1, X1, #dword_155C778@PAGEOFF; cocos2d::CCPoint *     ; +0xb0, 0x7c2838\nLDR             X0, [X0,#0xF50]; this                                  ; +0xb4, 0x7c283c\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xb8, 0x7c2840\nFMOV            S1, #30.0                                              ; +0xbc, 0x7c2844\nLDR             S0, [X29,#0x70+var_18]                                 ; +0xc0, 0x7c2848\nFADD            S0, S0, S1                                             ; +0xc4, 0x7c284c\nLDR             S1, =0x42480000                                        ; +0xc8, 0x7c2850\nFCMPE           S0, S1                                                 ; +0xcc, 0x7c2854\nB.PL            loc_7C2864                                             ; +0xd0, 0x7c2858\nFMOV            S0, WZR                                                ; +0xd4, 0x7c285c\nSTR             S0, [X29,#0x70+var_18]                                 ; +0xd8, 0x7c2860\nLDR             X0, [X19,#0x5A0]; this                                 ; +0xdc, 0x7c2864\nLDR             X1, [X0,#0x39E0]                                       ; +0xe0, 0x7c2868\nCBZ             X1, loc_7C29B4                                         ; +0xe4, 0x7c286c\nADD             X21, X29, #0x70+var_10                                 ; +0xe8, 0x7c2870\nMOV             X8, X21                                                ; +0xec, 0x7c2874\nBL              _ZN16LevelEditorLayer20getSelectedEffectPosEv; LevelEditorLayer::getSelectedEffectPos(void) ; +0xf0, 0x7c2878\nMOV             X1, X21                                                ; +0xf4, 0x7c287c\nMOV             X0, X22                                                ; +0xf8, 0x7c2880\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xfc, 0x7c2884\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x100, 0x7c2888\nBL              _ZN16LevelEditorLayer22getSelectedEditorOrderEv; LevelEditorLayer::getSelectedEditorOrder(void) ; +0x104, 0x7c288c\nMOV             W24, W0                                                ; +0x108, 0x7c2890\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x10c, 0x7c2894\nBL              _ZN16LevelEditorLayer23getSelectedOrderChannelEv; LevelEditorLayer::getSelectedOrderChannel(void) ; +0x110, 0x7c2898\nMOV             W25, W0                                                ; +0x114, 0x7c289c\nLDR             X0, [X19,#0x5A0]                                       ; +0x118, 0x7c28a0\nSTR             W24, [X0,#0x39F8]                                      ; +0x11c, 0x7c28a4\nLDR             X0, [X19,#0x5A0]                                       ; +0x120, 0x7c28a8\nLDR             X26, [X0,#0x37D0]                                      ; +0x124, 0x7c28ac\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0x128, 0x7c28b0\nMOV             X0, X21; this                                          ; +0x12c, 0x7c28b4\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x130, 0x7c28b8\nMOV             W3, W25                                                ; +0x134, 0x7c28bc\nMOV             W4, #0                                                 ; +0x138, 0x7c28c0\nMOV             W5, #1                                                 ; +0x13c, 0x7c28c4\nMOV             W6, #0                                                 ; +0x140, 0x7c28c8\nMOV             W7, #0                                                 ; +0x144, 0x7c28cc\nMOV             X0, X26                                                ; +0x148, 0x7c28d0\nMOV             X1, X21                                                ; +0x14c, 0x7c28d4\nMOV             W2, W24                                                ; +0x150, 0x7c28d8\nBL              _ZN13DrawGridLayer10timeForPosEN7cocos2d7CCPointEiibbbi; DrawGridLayer::timeForPos(cocos2d::CCPoint,int,int,bool,bool,bool,int) ; +0x154, 0x7c28dc\nLDR             X2, [X19,#0x5A0]                                       ; +0x158, 0x7c28e0\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0x15c, 0x7c28e4\nMOV             X0, X21; this                                          ; +0x160, 0x7c28e8\nSTR             S0, [X19,#0x2A0]                                       ; +0x164, 0x7c28ec\nLDR             X22, [X2,#0x37D0]                                      ; +0x168, 0x7c28f0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x16c, 0x7c28f4\nMOV             X1, X21                                                ; +0x170, 0x7c28f8\nMOV             W2, W24                                                ; +0x174, 0x7c28fc\nMOV             X0, X22                                                ; +0x178, 0x7c2900\nMOV             W3, W25                                                ; +0x17c, 0x7c2904\nMOV             W4, #0                                                 ; +0x180, 0x7c2908\nMOV             W5, #0                                                 ; +0x184, 0x7c290c\nMOV             W6, #0                                                 ; +0x188, 0x7c2910\nMOV             W7, #0                                                 ; +0x18c, 0x7c2914\nBL              _ZN13DrawGridLayer10timeForPosEN7cocos2d7CCPointEiibbbi; DrawGridLayer::timeForPos(cocos2d::CCPoint,int,int,bool,bool,bool,int) ; +0x190, 0x7c2918\nLDR             X0, [X19,#0x5A0]                                       ; +0x194, 0x7c291c\nSTR             S0, [X19,#0x2A4]                                       ; +0x198, 0x7c2920\nLDR             S0, [X19,#0x2A0]; float                                ; +0x19c, 0x7c2924\nLDR             X0, [X0,#0x37D0]; this                                 ; +0x1a0, 0x7c2928\nBL              _ZN13DrawGridLayer20updateMusicGuideTimeEf; DrawGridLayer::updateMusicGuideTime(float) ; +0x1a4, 0x7c292c\nLDRB            W1, [X19,#0x268]                                       ; +0x1a8, 0x7c2930\nMOV             X0, X19; this                                          ; +0x1ac, 0x7c2934\nEOR             W1, W1, #1                                             ; +0x1b0, 0x7c2938\nSTRB            W1, [X19,#0x268]                                       ; +0x1b4, 0x7c293c\nBL              _ZN8EditorUI17updatePlaybackBtnEv; EditorUI::updatePlaybackBtn(void) ; +0x1b8, 0x7c2940\nLDRB            W0, [X19,#0x268]; this                                 ; +0x1bc, 0x7c2944\nCBNZ            W0, loc_7C2980                                         ; +0x1c0, 0x7c2948\nCBZ             W23, loc_7C27C8                                        ; +0x1c4, 0x7c294c\nLDR             X0, [X19,#0x5A0]                                       ; +0x1c8, 0x7c2950\nMOV             W1, #1                                                 ; +0x1cc, 0x7c2954\nADD             X0, X0, #3,LSL#12                                      ; +0x1d0, 0x7c2958\nSTRB            W1, [X0,#0x5EE]                                        ; +0x1d4, 0x7c295c\nB               loc_7C27C8                                             ; +0x1d8, 0x7c2960\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x1dc, 0x7c2964\nBL              _ZN16LevelEditorLayer12stopPlaybackEv; LevelEditorLayer::stopPlayback(void) ; +0x1e0, 0x7c2968\nLDR             X0, [X19,#0x5A0]                                       ; +0x1e4, 0x7c296c\nMOV             W1, #1                                                 ; +0x1e8, 0x7c2970\nADD             X0, X0, #3,LSL#12                                      ; +0x1ec, 0x7c2974\nSTRB            W1, [X0,#0x768]                                        ; +0x1f0, 0x7c2978\nB               loc_7C2930                                             ; +0x1f4, 0x7c297c\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x1f8, 0x7c2980\nMOV             W1, #0                                                 ; +0x1fc, 0x7c2984\nMOV             W2, #0                                                 ; +0x200, 0x7c2988\nBL              _ZN15FMODAudioEngine12updateReverbE16FMODReverbPresetb; FMODAudioEngine::updateReverb(FMODReverbPreset,bool) ; +0x204, 0x7c298c\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x208, 0x7c2990\nBL              _ZN16LevelEditorLayer17updateGameObjectsEv; LevelEditorLayer::updateGameObjects(void) ; +0x20c, 0x7c2994\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x210, 0x7c2998\nBL              _ZN15GJBaseGameLayer26processQueuedAudioTriggersEv; GJBaseGameLayer::processQueuedAudioTriggers(void) ; +0x214, 0x7c299c\nB               loc_7C294C                                             ; +0x218, 0x7c29a0\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x21c, 0x7c29a4\nMOV             W23, #1                                                ; +0x220, 0x7c29a8\nBL              _ZN15GJBaseGameLayer10pauseAudioEv; GJBaseGameLayer::pauseAudio(void) ; +0x224, 0x7c29ac\nB               loc_7C280C                                             ; +0x228, 0x7c29b0\nMOV             W25, #0                                                ; +0x22c, 0x7c29b4\nMOV             W24, #0                                                ; +0x230, 0x7c29b8\nADD             X21, X29, #0x70+var_10                                 ; +0x234, 0x7c29bc\nB               loc_7C28AC                                             ; +0x238, 0x7c29c0\nBL              .__stack_chk_fail                                      ; +0x23c, 0x7c29c4", "xrefs": ["EditorUI::onStopPlaytest @ 0x7ce9c8", "EditorUI::handleEditorAction @ 0xbd7cfc", "<???> @ 0x65320", "EditorUI::init @ 0x7cf99c", "<???> @ 0x1542708"], "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"}