{"type": "func", "start": 5369831264, "end": 5369831569, "name": "EditorUI::updatePlaybackBtn", "pseudocode": "// \n// EditorUI::updatePlaybackBtn from 0x140111f60 to 0x140112091 (305 bytes)\n// \n// 8 xrefs:\n// > EditorUI::onPause @ 0x1400e1a59\n// > EditorUI::onPlayback @ 0x140111ebc\n// > EditorUI::songStateChanged @ 0x1401120a7\n// > EditorUI::onPlaytest @ 0x1401124ec\n// > EditorUI::playtestStopped @ 0x140112614\n// > <???> @ 0x14066f1c0\n// > <???> @ 0x14066f1d0\n// > <???> @ 0x1406c8fd0\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  PlaybackMode m_playbackMode; // ebp\n  cocos2d::CCNode *v3; // rax\n  __int64 v4; // rcx\n  cocos2d::CCNode *v5; // rsi\n  cocos2d::CCNode_vtbl *v6; // rbx\n  cocos2d::CCSpriteFrameCache *v7; // rax\n  const char *v8; // rdx\n  struct cocos2d::CCSpriteFrame *v9; // rax\n  cocos2d::CCNode *v10; // rax\n  __int16 *v11; // rdx\n  __int64 v12; // rdx\n\n  m_playbackMode = a1->m_editorLayer->m_playbackMode;\n  v3 = a1->m_playbackBtn->getNormalImage(a1->m_playbackBtn);\n  v5 = v3;\n  if ( !a1->m_isPlayingMusic || m_playbackMode )\n  {\n    v6 = v3->__vftable;\n    v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4);\n    v8 = \"GJ_playMusicBtn_001.png\";\n  }\n  else\n  {\n    v6 = v3->__vftable;\n    v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4);\n    v8 = \"GJ_stopMusicBtn_001.png\";\n  }\n  v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v8);\n  ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCSpriteFrame *))v6[1].setScaleX)(v5, v9);\n  LOBYTE(a1->m_playbackBtn->m_scaleMultiplier) = m_playbackMode == Not;\n  v10 = a1->m_playbackBtn->getNormalImage(a1->m_playbackBtn);\n  v11 = &word_140529A40;\n  if ( m_playbackMode == Not )\n    v11 = &word_140529A48;\n  v10[1].copyWithZone(v10 + 1, (cocos2d::CCZone *)v11);\n  v12 = 175;\n  if ( m_playbackMode == Not )\n    v12 = 255;\n  a1->m_playbackBtn->setOpacity(&a1->m_playbackBtn->cocos2d::CCRGBAProtocol, v12);\n  a1->m_playbackActive = a1->m_isPlayingMusic && a1->m_editorLayer->m_playbackMode == Not;\n}", "assembly": "; \n; EditorUI::updatePlaybackBtn from 0x140111f60 to 0x140112091 (305 bytes)\n; \n; 8 xrefs:\n; > EditorUI::onPause @ 0x1400e1a59\n; > EditorUI::onPlayback @ 0x140111ebc\n; > EditorUI::songStateChanged @ 0x1401120a7\n; > EditorUI::onPlaytest @ 0x1401124ec\n; > EditorUI::playtestStopped @ 0x140112614\n; > <???> @ 0x14066f1c0\n; > <???> @ 0x14066f1d0\n; > <???> @ 0x1406c8fd0\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    rdi                                                            ; +0x0, 0x140111f60\nsub     rsp, 20h                                                       ; +0x2, 0x140111f62\nmov     rax, [rcx+500h]                                                ; +0x6, 0x140111f66\nmov     rdi, rcx                                                       ; +0xd, 0x140111f6d\nmov     rcx, [rcx+398h]                                                ; +0x10, 0x140111f70\nmov     [rsp+28h+arg_0], rbx                                           ; +0x17, 0x140111f77\nmov     [rsp+28h+arg_8], rbp                                           ; +0x1c, 0x140111f7c\nmov     ebp, [rax+880h]                                                ; +0x21, 0x140111f81\ntest    ebp, ebp                                                       ; +0x27, 0x140111f87\nmov     rax, [rcx]                                                     ; +0x29, 0x140111f89\nmov     [rsp+28h+arg_10], rsi                                          ; +0x2c, 0x140111f8c\nmov     [rsp+28h+arg_18], r14                                          ; +0x31, 0x140111f91\nsetz    r14b                                                           ; +0x36, 0x140111f96\ncall    qword ptr [rax+3A8h]                                           ; +0x3a, 0x140111f9a\ncmp     byte ptr [rdi+258h], 0                                         ; +0x40, 0x140111fa0\nmov     rsi, rax                                                       ; +0x47, 0x140111fa7\njz      short loc_140111FC2                                            ; +0x4a, 0x140111faa\ntest    ebp, ebp                                                       ; +0x4c, 0x140111fac\njnz     short loc_140111FC2                                            ; +0x4e, 0x140111fae\nmov     rbx, [rax]                                                     ; +0x50, 0x140111fb0\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x53, 0x140111fb3\nlea     rdx, aGjStopmusicbtn; \"GJ_stopMusicBtn_001.png\"                ; +0x59, 0x140111fb9\njmp     short loc_140111FD2                                            ; +0x60, 0x140111fc0\nmov     rbx, [rax]                                                     ; +0x62, 0x140111fc2\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x65, 0x140111fc5\nlea     rdx, aGjPlaymusicbtn; \"GJ_playMusicBtn_001.png\"                ; +0x6b, 0x140111fcb\nmov     rcx, rax                                                       ; +0x72, 0x140111fd2\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x75, 0x140111fd5\nmov     rdx, rax                                                       ; +0x7b, 0x140111fdb\nmov     rcx, rsi                                                       ; +0x7e, 0x140111fde\ncall    qword ptr [rbx+3E0h]                                           ; +0x81, 0x140111fe1\nmov     rax, [rdi+398h]                                                ; +0x87, 0x140111fe7\nmov     [rax+198h], r14b                                               ; +0x8e, 0x140111fee\nmov     rcx, [rdi+398h]                                                ; +0x95, 0x140111ff5\nmov     rax, [rcx]                                                     ; +0x9c, 0x140111ffc\ncall    qword ptr [rax+3A8h]                                           ; +0x9f, 0x140111fff\nlea     r8, word_140529A48                                             ; +0xa5, 0x140112005\ntest    ebp, ebp                                                       ; +0xac, 0x14011200c\nlea     rdx, word_140529A40                                            ; +0xae, 0x14011200e\ncmovz   rdx, r8                                                        ; +0xb5, 0x140112015\nlea     rcx, [rax+140h]                                                ; +0xb9, 0x140112019\nmov     rax, [rcx]                                                     ; +0xc0, 0x140112020\ncall    qword ptr [rax]                                                ; +0xc3, 0x140112023\nmov     rcx, [rdi+398h]                                                ; +0xc5, 0x140112025\nmov     edx, 0AFh                                                      ; +0xcc, 0x14011202c\nadd     rcx, 140h                                                      ; +0xd1, 0x140112031\nmov     r8d, 0FFh                                                      ; +0xd8, 0x140112038\ntest    ebp, ebp                                                       ; +0xde, 0x14011203e\ncmovz   edx, r8d                                                       ; +0xe0, 0x140112040\nmov     rax, [rcx]                                                     ; +0xe4, 0x140112044\ncall    qword ptr [rax+28h]                                            ; +0xe7, 0x140112047\ncmp     byte ptr [rdi+258h], 0                                         ; +0xea, 0x14011204a\nmov     r14, [rsp+28h+arg_18]                                          ; +0xf1, 0x140112051\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xf6, 0x140112056\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xfb, 0x14011205b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x100, 0x140112060\njz      short loc_140112084                                            ; +0x105, 0x140112065\nmov     rax, [rdi+500h]                                                ; +0x107, 0x140112067\ncmp     dword ptr [rax+880h], 0                                        ; +0x10e, 0x14011206e\njnz     short loc_140112084                                            ; +0x115, 0x140112075\nmov     byte ptr [rdi+284h], 1                                         ; +0x117, 0x140112077\nadd     rsp, 20h                                                       ; +0x11e, 0x14011207e\npop     rdi                                                            ; +0x122, 0x140112082\nretn                                                                   ; +0x123, 0x140112083\nmov     byte ptr [rdi+284h], 0                                         ; +0x124, 0x140112084\nadd     rsp, 20h                                                       ; +0x12b, 0x14011208b\npop     rdi                                                            ; +0x12f, 0x14011208f\nretn                                                                   ; +0x130, 0x140112090", "xrefs": ["EditorUI::onPause @ 0x1400e1a59", "EditorUI::onPlayback @ 0x140111ebc", "EditorUI::songStateChanged @ 0x1401120a7", "EditorUI::onPlaytest @ 0x1401124ec", "EditorUI::playtestStopped @ 0x140112614", "<???> @ 0x14066f1c0", "<???> @ 0x14066f1d0", "<???> @ 0x1406c8fd0"], "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"}