{"type": "func", "start": 5370365584, "end": 5370366007, "name": "EditorSoundConfigInfoLayer::refreshLikeState", "pseudocode": "// \n// EditorSoundConfigInfoLayer::refreshLikeState from 0x140194690 to 0x140194837 (423 bytes)\n// \n// 3 xrefs:\n// > EditorSoundConfigInfoLayer::init @ 0x140194025\n// > EditorSoundConfigInfoLayer::likedItem @ 0x140196ea5\n// > <???> @ 0x140919394\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:44 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall EditorSoundConfigInfoLayer::refreshLikeState(_QWORD *a1)\n{\n  __int64 v2; // rax\n  int v3; // ebx\n  int v4; // edi\n  bool v5; // r14\n  __int64 v6; // rcx\n  __int64 *v7; // rsi\n  __int64 v8; // rdi\n  const char *v9; // rbx\n  cocos2d::CCSpriteFrameCache *v10; // rax\n  struct cocos2d::CCSpriteFrame *v11; // rax\n  __int16 *v12; // rax\n  __int16 *v13; // rdx\n  void *v14; // [rsp+30h] [rbp-48h]\n  __int16 v15[16]; // [rsp+38h] [rbp-40h] BYREF\n\n  v2 = a1[134];\n  if ( v2 )\n  {\n    v5 = true;\n    if ( !*(_BYTE *)(v2 + 545) )\n    {\n      if ( (v3 = qword_14090BFB0, !*(_QWORD *)&qword_14090BFB0)\n        && (v14 = operator new(0x690u),\n            *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v14),\n            (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0),\n            v3 = qword_14090BFB0,\n            !*(_QWORD *)&qword_14090BFB0)\n        || (v4 = *(_DWORD *)(a1[134] + 320LL), !(unsigned __int8)GameLevelManager::hasLikedAccountItem(v3, 5, v4, 1, 0))\n        && !(unsigned __int8)GameLevelManager::hasLikedAccountItem(v3, 5, v4, 0, 0) )\n      {\n        v5 = false;\n      }\n    }\n    v6 = a1[139];\n    if ( v6 )\n    {\n      (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v6 + 936LL))(v6, !v5);\n      v7 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[139] + 952LL))(a1[139]);\n      v8 = *v7;\n      v9 = \"GJ_like2Btn_001.png\";\n      if ( v5 )\n        v9 = \"GJ_like2Btn2_001.png\";\n      v10 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n      v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, v9);\n      (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v8 + 1008))(v7, v11);\n    }\n    if ( a1[140] )\n    {\n      v12 = GameToolbox::intToShortString(v15, *(_DWORD *)(a1[134] + 352LL), 0);\n      v13 = v12;\n      if ( *((_QWORD *)v12 + 3) > 0xFu )\n        v13 = *(__int16 **)v12;\n      (**(void (__fastcall ***)(__int64, __int16 *))(a1[140] + 360LL))(a1[140] + 360LL, v13);\n      sub_14003D310((__int64)v15);\n    }\n  }\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::refreshLikeState from 0x140194690 to 0x140194837 (423 bytes)\n; \n; 3 xrefs:\n; > EditorSoundConfigInfoLayer::init @ 0x140194025\n; > EditorSoundConfigInfoLayer::likedItem @ 0x140196ea5\n; > <???> @ 0x140919394\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:44 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140194690\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140194695\npush    rsi                                                            ; +0xa, 0x14019469a\npush    rdi                                                            ; +0xb, 0x14019469b\npush    r14                                                            ; +0xc, 0x14019469c\nsub     rsp, 60h                                                       ; +0xe, 0x14019469e\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x1401946a2\nxor     rax, rsp                                                       ; +0x19, 0x1401946a9\nmov     [rsp+78h+var_20], rax                                          ; +0x1c, 0x1401946ac\nmov     rbp, rcx                                                       ; +0x21, 0x1401946b1\nmov     rax, [rcx+430h]                                                ; +0x24, 0x1401946b4\ntest    rax, rax                                                       ; +0x2b, 0x1401946bb\njz      loc_140194815                                                  ; +0x2e, 0x1401946be\ncmp     byte ptr [rax+221h], 0                                         ; +0x34, 0x1401946c4\njnz     loc_14019475E                                                  ; +0x3b, 0x1401946cb\nmov     rbx, cs:qword_14090BFB0                                        ; +0x41, 0x1401946d1\ntest    rbx, rbx                                                       ; +0x48, 0x1401946d8\njnz     short loc_140194714                                            ; +0x4b, 0x1401946db\nmov     ecx, 690h; Size                                                ; +0x4d, 0x1401946dd\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x52, 0x1401946e2\nmov     [rsp+78h+var_48], rax                                          ; +0x57, 0x1401946e7\nmov     rcx, rax                                                       ; +0x5c, 0x1401946ec\ncall    GameLevelManager__GameLevelManager                             ; +0x5f, 0x1401946ef\nnop                                                                    ; +0x64, 0x1401946f4\nmov     cs:qword_14090BFB0, rax                                        ; +0x65, 0x1401946f5\nmov     rcx, [rax]                                                     ; +0x6c, 0x1401946fc\nmov     rdx, [rcx+48h]                                                 ; +0x6f, 0x1401946ff\nmov     rcx, rax                                                       ; +0x73, 0x140194703\ncall    rdx                                                            ; +0x76, 0x140194706\nmov     rbx, cs:qword_14090BFB0                                        ; +0x78, 0x140194708\ntest    rbx, rbx                                                       ; +0x7f, 0x14019470f\njz      short loc_140194759                                            ; +0x82, 0x140194712\nmov     rax, [rbp+430h]                                                ; +0x84, 0x140194714\nmov     edi, [rax+140h]                                                ; +0x8b, 0x14019471b\nxor     esi, esi                                                       ; +0x91, 0x140194721\nmov     [rsp+78h+var_58], esi                                          ; +0x93, 0x140194723\nmov     r9b, 1                                                         ; +0x97, 0x140194727\nmov     r8d, edi                                                       ; +0x9a, 0x14019472a\nmov     edx, 5                                                         ; +0x9d, 0x14019472d\nmov     rcx, rbx                                                       ; +0xa2, 0x140194732\ncall    GameLevelManager__hasLikedAccountItem                          ; +0xa5, 0x140194735\ntest    al, al                                                         ; +0xaa, 0x14019473a\njnz     short loc_14019475E                                            ; +0xac, 0x14019473c\nmov     [rsp+78h+var_58], esi                                          ; +0xae, 0x14019473e\nxor     r9d, r9d                                                       ; +0xb2, 0x140194742\nmov     r8d, edi                                                       ; +0xb5, 0x140194745\nmov     edx, 5                                                         ; +0xb8, 0x140194748\nmov     rcx, rbx                                                       ; +0xbd, 0x14019474d\ncall    GameLevelManager__hasLikedAccountItem                          ; +0xc0, 0x140194750\ntest    al, al                                                         ; +0xc5, 0x140194755\njnz     short loc_14019475E                                            ; +0xc7, 0x140194757\nxor     r14b, r14b                                                     ; +0xc9, 0x140194759\njmp     short loc_140194761                                            ; +0xcc, 0x14019475c\nmov     r14b, 1                                                        ; +0xce, 0x14019475e\nmov     rcx, [rbp+458h]                                                ; +0xd1, 0x140194761\ntest    rcx, rcx                                                       ; +0xd8, 0x140194768\njz      short loc_1401947C6                                            ; +0xdb, 0x14019476b\nmovzx   edx, r14b                                                      ; +0xdd, 0x14019476d\nxor     dl, 1                                                          ; +0xe1, 0x140194771\nmov     rax, [rcx]                                                     ; +0xe4, 0x140194774\ncall    qword ptr [rax+3A8h]                                           ; +0xe7, 0x140194777\nmov     rcx, [rbp+458h]                                                ; +0xed, 0x14019477d\nmov     rax, [rcx]                                                     ; +0xf4, 0x140194784\ncall    qword ptr [rax+3B8h]                                           ; +0xf7, 0x140194787\nmov     rsi, rax                                                       ; +0xfd, 0x14019478d\nmov     rdi, [rax]                                                     ; +0x100, 0x140194790\nlea     rax, aGjLike2btn2001; \"GJ_like2Btn2_001.png\"                   ; +0x103, 0x140194793\nlea     rbx, aGjLike2btn001P; \"GJ_like2Btn_001.png\"                    ; +0x10a, 0x14019479a\ntest    r14b, r14b                                                     ; +0x111, 0x1401947a1\ncmovnz  rbx, rax                                                       ; +0x114, 0x1401947a4\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x118, 0x1401947a8\nmov     rcx, rax                                                       ; +0x11e, 0x1401947ae\nmov     rdx, rbx                                                       ; +0x121, 0x1401947b1\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x124, 0x1401947b4\nmov     rdx, rax                                                       ; +0x12a, 0x1401947ba\nmov     rcx, rsi                                                       ; +0x12d, 0x1401947bd\ncall    qword ptr [rdi+3F0h]                                           ; +0x130, 0x1401947c0\ncmp     qword ptr [rbp+460h], 0                                        ; +0x136, 0x1401947c6\njz      short loc_140194815                                            ; +0x13e, 0x1401947ce\nmov     rdx, [rbp+430h]                                                ; +0x140, 0x1401947d0\nxor     r8d, r8d                                                       ; +0x147, 0x1401947d7\nmov     edx, [rdx+160h]                                                ; +0x14a, 0x1401947da\nlea     rcx, [rsp+78h+var_40]                                          ; +0x150, 0x1401947e0\ncall    GameToolbox__intToShortString                                  ; +0x155, 0x1401947e5\nmov     rdx, rax                                                       ; +0x15a, 0x1401947ea\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x15d, 0x1401947ed\njbe     short loc_1401947F7                                            ; +0x162, 0x1401947f2\nmov     rdx, [rax]                                                     ; +0x164, 0x1401947f4\nmov     rcx, [rbp+460h]                                                ; +0x167, 0x1401947f7\nadd     rcx, 168h                                                      ; +0x16e, 0x1401947fe\nmov     rax, [rcx]                                                     ; +0x175, 0x140194805\ncall    qword ptr [rax]                                                ; +0x178, 0x140194808\nnop                                                                    ; +0x17a, 0x14019480a\nlea     rcx, [rsp+78h+var_40]                                          ; +0x17b, 0x14019480b\ncall    sub_14003D310                                                  ; +0x180, 0x140194810\nmov     rcx, [rsp+78h+var_20]                                          ; +0x185, 0x140194815\nxor     rcx, rsp; StackCookie                                          ; +0x18a, 0x14019481a\ncall    __security_check_cookie                                        ; +0x18d, 0x14019481d\nlea     r11, [rsp+78h+var_18]                                          ; +0x192, 0x140194822\nmov     rbx, [r11+28h]                                                 ; +0x197, 0x140194827\nmov     rbp, [r11+30h]                                                 ; +0x19b, 0x14019482b\nmov     rsp, r11                                                       ; +0x19f, 0x14019482f\npop     r14                                                            ; +0x1a2, 0x140194832\npop     rdi                                                            ; +0x1a4, 0x140194834\npop     rsi                                                            ; +0x1a5, 0x140194835\nretn                                                                   ; +0x1a6, 0x140194836", "xrefs": ["EditorSoundConfigInfoLayer::init @ 0x140194025", "EditorSoundConfigInfoLayer::likedItem @ 0x140196ea5", "<???> @ 0x140919394"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}