//
// GameLevelManager::hasLikedAccountItem from 0x14025bd70 to 0x14025be5e (238 bytes)
//
// 13 xrefs:
// > EditorSoundConfigInfoLayer::refreshLikeState @ 0x140194735
// > EditorSoundConfigInfoLayer::refreshLikeState @ 0x140194750
// > EditorSoundConfigInfoLayer::onLike @ 0x140195a65
// > EditorSoundConfigInfoLayer::onLike @ 0x140195a88
// > GameLevelManager::hasLikedItemFullCheck @ 0x14025bd0b
// > GameLevelManager::hasLikedItemFullCheck @ 0x14025bd23
// > GameLevelManager::hasLikedItemFullCheck @ 0x14025bd2f
// > GameLevelManager::hasLikedItemFullCheck @ 0x14025bd4a
// > LevelInfoLayer::updateSideButtons @ 0x140424169
// > LevelInfoLayer::updateSideButtons @ 0x140424188
// > LevelListLayer::updateSideButtons @ 0x14042fae1
// > LevelListLayer::updateSideButtons @ 0x14042fb00
// > ??> @ 0x14091c730
//
// 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 11:28:46 +0000
//
// Hidden C++ exception states: #wind=1
_BOOL8 __fastcall GameLevelManager::hasLikedAccountItem(__int64 a1, __int64 a2, __int64 a3, unsigned __int8 a4, int a5)
{
cocos2d::CCString *v6; // rax
const char *CString; // rax
size_t v8; // r8
bool v9; // bl
void *v10; // rcx
void *Block[2]; // [rsp+30h] [rbp-38h] BYREF
__int128 v14; // [rsp+40h] [rbp-28h]
v6 = cocos2d::CCString::createWithFormat("like_%i_%i_%i_%i", a2, a3, a4, a5);
CString = cocos2d::CCString::getCString(v6);
*(_OWORD *)Block = 0;
v14 = 0;
v8 = -1;
do
++v8;
while ( CString[v8] );
sub_14003D230(Block, CString, v8);
v9 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 896), Block) != 0;
if ( *((_QWORD *)&v14 + 1) > 0xFu )
{
v10 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v14 + 1) + 1LL) >= 0x1000 )
{
v10 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v10);
}
return v9;
}