{"type": "func", "start": 5371886512, "end": 5371886767, "name": "LevelListLayer::updateSideButtons", "pseudocode": "// \n// LevelListLayer::updateSideButtons from 0x140307bb0 to 0x140307caf (255 bytes)\n// \n// 3 xrefs:\n// > LevelListLayer::init @ 0x140305008\n// > LevelListLayer::likedItem @ 0x140307b7a\n// > <???> @ 0x1406d4550\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\n// Hidden C++ exception states: #wind=1\nvoid LevelListLayer::updateSideButtons(LevelListLayer *a1)\n{\n  GameLevelManager *v2; // rbx\n  int m_listID; // esi\n  cocos2d::CCNode *v4; // rbx\n  cocos2d::CCNode_vtbl *v5; // rdi\n  __int64 v6; // rcx\n  cocos2d::CCSpriteFrameCache *v7; // rax\n  struct cocos2d::CCSpriteFrame *v8; // rax\n  void *v9; // [rsp+40h] [rbp+8h]\n\n  if ( a1->m_likeButton )\n  {\n    v2 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v9 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v9);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v2 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    m_listID = a1->m_levelList->m_listID;\n    if ( GameLevelManager::hasLikedAccountItem(v2, (LikeItemType)4, m_listID, 1, 0)\n      || GameLevelManager::hasLikedAccountItem(v2, (LikeItemType)4, m_listID, 0, 0) )\n    {\n      a1->m_likeButton->setEnabled(a1->m_likeButton, 0);\n      v4 = a1->m_likeButton->getNormalImage(a1->m_likeButton);\n      v5 = v4->__vftable;\n      v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6);\n      v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, \"GJ_like2Btn2_001.png\");\n      ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCSpriteFrame *))v5[1].setScaleX)(v4, v8);\n    }\n  }\n}", "assembly": "; \n; LevelListLayer::updateSideButtons from 0x140307bb0 to 0x140307caf (255 bytes)\n; \n; 3 xrefs:\n; > LevelListLayer::init @ 0x140305008\n; > LevelListLayer::likedItem @ 0x140307b7a\n; > <???> @ 0x1406d4550\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140307bb0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140307bb5\npush    rdi                                                            ; +0xa, 0x140307bba\nsub     rsp, 30h                                                       ; +0xb, 0x140307bbb\nmov     rdi, rcx                                                       ; +0xf, 0x140307bbf\ncmp     qword ptr [rcx+390h], 0                                        ; +0x12, 0x140307bc2\njz      loc_140307C9F                                                  ; +0x1a, 0x140307bca\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x20, 0x140307bd0\ntest    rbx, rbx                                                       ; +0x27, 0x140307bd7\njnz     short loc_140307C0B                                            ; +0x2a, 0x140307bda\nmov     ecx, 3D0h; Size                                                ; +0x2c, 0x140307bdc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x140307be1\nmov     [rsp+38h+arg_0], rax                                           ; +0x36, 0x140307be6\nmov     rcx, rax                                                       ; +0x3b, 0x140307beb\ncall    sub_140141280                                                  ; +0x3e, 0x140307bee\nnop                                                                    ; +0x43, 0x140307bf3\nmov     cs:qword_1406C2EC0, rax                                        ; +0x44, 0x140307bf4\nmov     rdx, [rax]                                                     ; +0x4b, 0x140307bfb\nmov     rcx, rax                                                       ; +0x4e, 0x140307bfe\ncall    qword ptr [rdx+48h]                                            ; +0x51, 0x140307c01\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x54, 0x140307c04\nmov     rax, [rdi+368h]                                                ; +0x5b, 0x140307c0b\nmov     esi, [rax+158h]                                                ; +0x62, 0x140307c12\nmov     [rsp+38h+var_18], 0                                            ; +0x68, 0x140307c18\nmov     r9b, 1                                                         ; +0x70, 0x140307c20\nmov     r8d, esi                                                       ; +0x73, 0x140307c23\nmov     edx, 4                                                         ; +0x76, 0x140307c26\nmov     rcx, rbx                                                       ; +0x7b, 0x140307c2b\ncall    GameLevelManager__hasLikedAccountItem                          ; +0x7e, 0x140307c2e\ntest    al, al                                                         ; +0x83, 0x140307c33\njnz     short loc_140307C55                                            ; +0x85, 0x140307c35\nmov     [rsp+38h+var_18], 0                                            ; +0x87, 0x140307c37\nxor     r9d, r9d                                                       ; +0x8f, 0x140307c3f\nmov     r8d, esi                                                       ; +0x92, 0x140307c42\nlea     edx, [r9+4]                                                    ; +0x95, 0x140307c45\nmov     rcx, rbx                                                       ; +0x99, 0x140307c49\ncall    GameLevelManager__hasLikedAccountItem                          ; +0x9c, 0x140307c4c\ntest    al, al                                                         ; +0xa1, 0x140307c51\njz      short loc_140307C9F                                            ; +0xa3, 0x140307c53\nmov     rcx, [rdi+390h]                                                ; +0xa5, 0x140307c55\nmov     rax, [rcx]                                                     ; +0xac, 0x140307c5c\nxor     edx, edx                                                       ; +0xaf, 0x140307c5f\ncall    qword ptr [rax+398h]                                           ; +0xb1, 0x140307c61\nmov     rcx, [rdi+390h]                                                ; +0xb7, 0x140307c67\nmov     rax, [rcx]                                                     ; +0xbe, 0x140307c6e\ncall    qword ptr [rax+3A8h]                                           ; +0xc1, 0x140307c71\nmov     rbx, rax                                                       ; +0xc7, 0x140307c77\nmov     rdi, [rax]                                                     ; +0xca, 0x140307c7a\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0xcd, 0x140307c7d\nmov     rcx, rax                                                       ; +0xd3, 0x140307c83\nlea     rdx, aGjLike2btn2001; \"GJ_like2Btn2_001.png\"                   ; +0xd6, 0x140307c86\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0xdd, 0x140307c8d\nmov     rdx, rax                                                       ; +0xe3, 0x140307c93\nmov     rcx, rbx                                                       ; +0xe6, 0x140307c96\ncall    qword ptr [rdi+3E0h]                                           ; +0xe9, 0x140307c99\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xef, 0x140307c9f\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xf4, 0x140307ca4\nadd     rsp, 30h                                                       ; +0xf9, 0x140307ca9\npop     rdi                                                            ; +0xfd, 0x140307cad\nretn                                                                   ; +0xfe, 0x140307cae", "xrefs": ["LevelListLayer::init @ 0x140305008", "LevelListLayer::likedItem @ 0x140307b7a", "<???> @ 0x1406d4550"], "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"}