{"type": "func", "start": 3660052, "end": 3660210, "name": "EditorUI::updatePlaybackBtn", "pseudocode": "// \n// EditorUI::updatePlaybackBtn from 0x37d914 to 0x37d9b2 (158 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onPlayback @ 0x37db34\n// > EditorUI::songStateChanged @ 0x37db8c\n// > EditorUI::playtestStopped @ 0x38749a\n// > EditorUI::onPause @ 0x387526\n// > EditorUI::onPlaytest @ 0x3a3498\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\nvoid EditorUI::updatePlaybackBtn(EditorUI *a1)\n{\n  _BOOL4 v2; // r5\n  cocos2d::CCNode *v3; // r6\n  void (__fastcall *setSkewY)(cocos2d::CCNode *__hidden, float); // r7\n  cocos2d::CCSpriteFrameCache *v5; // r0\n  const char *v6; // r1\n  cocos2d::CCSpriteFrame *v7; // r0\n  CCMenuItemSpriteExtra *m_playbackBtn; // r0\n  CCMenuItemSpriteExtra_vtbl *v9; // r3\n  int v10; // r0\n  __int16 *v11; // r1\n  int v12; // r1\n  bool m_isPlayingMusic; // r3\n\n  v2 = a1->m_editorLayer->m_playbackMode == Not;\n  v3 = a1->m_playbackBtn->getNormalImage(a1->m_playbackBtn);\n  setSkewY = v3->__vftable[1].setSkewY;\n  if ( a1->m_isPlayingMusic && v2 )\n  {\n    v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v6 = \"GJ_stopMusicBtn_001.png\";\n  }\n  else\n  {\n    v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v6 = \"GJ_playMusicBtn_001.png\";\n  }\n  v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);\n  ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))setSkewY)(v3, v7);\n  m_playbackBtn = a1->m_playbackBtn;\n  v9 = m_playbackBtn->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  m_playbackBtn->m_animationEnabled = v2;\n  v10 = ((int (*)(void))v9->getNormalImage)();\n  if ( v2 )\n    v11 = &word_9AA83C;\n  else\n    v11 = &word_9AA83F;\n  (*(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v10 + 472))(v10, v11);\n  if ( v2 )\n    v12 = 255;\n  else\n    v12 = 175;\n  a1->m_playbackBtn->setOpacity(a1->m_playbackBtn, v12);\n  m_isPlayingMusic = a1->m_isPlayingMusic;\n  if ( m_isPlayingMusic )\n    m_isPlayingMusic = a1->m_editorLayer->m_playbackMode == Not;\n  a1->m_playbackActive = m_isPlayingMusic;\n}", "assembly": "; \n; EditorUI::updatePlaybackBtn from 0x37d914 to 0x37d9b2 (158 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onPlayback @ 0x37db34\n; > EditorUI::songStateChanged @ 0x37db8c\n; > EditorUI::playtestStopped @ 0x38749a\n; > EditorUI::onPause @ 0x387526\n; > EditorUI::onPlaytest @ 0x3a3498\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\nPUSH            {R3-R7,LR}                                             ; +0x0, 0x37d914\nMOV             R4, R0                                                 ; +0x2, 0x37d916\nLDR.W           R3, [R0,#0x340]                                        ; +0x4, 0x37d918\nLDR.W           R0, [R0,#0x28C]                                        ; +0x8, 0x37d91c\nLDR.W           R5, [R3,#0x60C]                                        ; +0xc, 0x37d920\nLDR             R3, [R0]                                               ; +0x10, 0x37d924\nCLZ.W           R5, R5                                                 ; +0x12, 0x37d926\nLDR.W           R3, [R3,#0x210]                                        ; +0x16, 0x37d92a\nLSRS            R5, R5, #5                                             ; +0x1a, 0x37d92e\nBLX             R3                                                     ; +0x1c, 0x37d930\nLDRB.W          R2, [R4,#0x1BC]                                        ; +0x1e, 0x37d932\nLDR             R3, [R0]                                               ; +0x22, 0x37d936\nMOV             R6, R0                                                 ; +0x24, 0x37d938\nLDR.W           R7, [R3,#0x23C]                                        ; +0x26, 0x37d93a\nCBZ             R2, loc_37D94C                                         ; +0x2a, 0x37d93e\nCBZ             R5, loc_37D94C                                         ; +0x2c, 0x37d940\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x2e, 0x37d942\nLDR             R1, =(aGjStopmusicbtn - 0x37D94C); \"GJ_stopMusicBtn_001.png\" ; +0x32, 0x37d946\nADD             R1, PC; \"GJ_stopMusicBtn_001.png\"                      ; +0x34, 0x37d948\nB               loc_37D954                                             ; +0x36, 0x37d94a\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x38, 0x37d94c\nLDR             R1, =(aGjPlaymusicbtn - 0x37D956); \"GJ_playMusicBtn_001.png\" ; +0x3c, 0x37d950\nADD             R1, PC; \"GJ_playMusicBtn_001.png\"                      ; +0x3e, 0x37d952\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0x40, 0x37d954\nMOV             R1, R0                                                 ; +0x44, 0x37d958\nMOV             R0, R6                                                 ; +0x46, 0x37d95a\nBLX             R7                                                     ; +0x48, 0x37d95c\nLDR.W           R0, [R4,#0x28C]                                        ; +0x4a, 0x37d95e\nLDR             R3, [R0]                                               ; +0x4e, 0x37d962\nSTRB.W          R5, [R0,#0x140]                                        ; +0x50, 0x37d964\nLDR.W           R3, [R3,#0x210]                                        ; +0x54, 0x37d968\nBLX             R3                                                     ; +0x58, 0x37d96c\nLDR             R3, [R0]                                               ; +0x5a, 0x37d96e\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x5c, 0x37d970\nCBNZ            R5, loc_37D97E                                         ; +0x60, 0x37d974\nLDR             R1, =(word_9AA83C - 0x37D97C)                          ; +0x62, 0x37d976\nADD             R1, PC; word_9AA83C                                    ; +0x64, 0x37d978\nADDS            R1, #(word_9AA83F - 0x9AA83C)                          ; +0x66, 0x37d97a\nB               loc_37D982                                             ; +0x68, 0x37d97c\nLDR             R1, =(word_9AA83C - 0x37D984)                          ; +0x6a, 0x37d97e\nADD             R1, PC; word_9AA83C                                    ; +0x6c, 0x37d980\nBLX             R3                                                     ; +0x6e, 0x37d982\nLDR.W           R0, [R4,#0x28C]                                        ; +0x70, 0x37d984\nCMP             R5, #0                                                 ; +0x74, 0x37d988\nLDR             R3, [R0]                                               ; +0x76, 0x37d98a\nITE NE                                                                 ; +0x78, 0x37d98c\nMOVNE           R1, #0xFF                                              ; +0x7a, 0x37d98e\nMOVEQ           R1, #0xAF                                              ; +0x7c, 0x37d990\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x7e, 0x37d992\nBLX             R3                                                     ; +0x82, 0x37d996\nLDRB.W          R3, [R4,#0x1BC]                                        ; +0x84, 0x37d998\nCBZ             R3, loc_37D9AC                                         ; +0x88, 0x37d99c\nLDR.W           R3, [R4,#0x340]                                        ; +0x8a, 0x37d99e\nLDR.W           R3, [R3,#0x60C]                                        ; +0x8e, 0x37d9a2\nCLZ.W           R3, R3                                                 ; +0x92, 0x37d9a6\nLSRS            R3, R3, #5                                             ; +0x96, 0x37d9aa\nSTRB.W          R3, [R4,#0x1D8]                                        ; +0x98, 0x37d9ac\nPOP             {R3-R7,PC}                                             ; +0x9c, 0x37d9b0", "xrefs": ["EditorUI::onPlayback @ 0x37db34", "EditorUI::songStateChanged @ 0x37db8c", "EditorUI::playtestStopped @ 0x38749a", "EditorUI::onPause @ 0x387526", "EditorUI::onPlaytest @ 0x3a3498"], "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"}