// // sub_1008F6D10 from 0x1008f6d10 to 0x1008f6e41 (305 bytes) // // 3 xrefs: // > sub_1008F3770 @ 0x1008f4d2b // > EditorSoundConfigInfoLayer::likedItem @ 0x1008f89f9 // > sub_1008F8A00 @ 0x1008f8a97 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:37:58 +0000 // void __fastcall sub_1008F6D10(_QWORD *a1, __m128 a2) { __int64 v2; // rax char v4; // r14 __int64 v5; // rax __int64 v6; // rdi const char *v7; // r15 __int64 v8; // r14 __int64 v9; // rax __int64 v10; // rax __int64 v11; // r14 char *v12; // rsi size_t v13[2]; // [rsp+0h] [rbp-30h] BYREF void *__p; // [rsp+10h] [rbp-20h] v2 = a1[136]; if ( !v2 ) return; v4 = 1; if ( !*(_BYTE *)(v2 + 497) ) { if ( !GameLevelManager::sharedState() ) { v4 = 0; v6 = a1[141]; if ( v6 ) goto LABEL_6; goto LABEL_9; } v5 = GameLevelManager::sharedState(); v4 = GameLevelManager::hasLikedItemFullCheck(v5, 5, *(_DWORD *)(a1[136] + 316LL), 0); } v6 = a1[141]; if ( v6 ) { LABEL_6: (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 1056LL))(v6, (unsigned __int8)v4 ^ 1u); v7 = "GJ_like2Btn_001.png"; if ( v4 ) v7 = "GJ_like2Btn2_001.png"; v8 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[141] + 1072LL))(a1[141]); v9 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v7); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 1160LL))(v8, v10); } LABEL_9: v11 = a1[142]; if ( v11 ) { GameToolbox::intToShortString(v13, *(_DWORD *)(a1[136] + 348LL), 0, a2); if ( (v13[0] & 1) != 0 ) v12 = (char *)__p; else v12 = (char *)v13 + 1; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v11 + 928LL))(v11, v12); if ( (v13[0] & 1) != 0 ) operator delete(__p); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source