//
// sub_1002E1D04 from 0x1002e1d04 to 0x1002e1d6c (104 bytes)
//
// 1 xrefs:
// > LevelListLayer::init @ 0x1002e14d0
//
// This function is hookable on this platform (idp: arm, 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:02:48 +0000
//
__int64 __fastcall sub_1002E1D04(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x0
_QWORD *v4; // x0
if ( (*(_BYTE *)(result + 952) & 1) == 0 )
{
v1 = result;
v2 = GameManager::sharedState(result);
if ( *(_DWORD *)(v2 + 660) == *(_DWORD *)(v2 + 664) )
{
v3 = GameLevelManager::sharedState();
GameLevelManager::updateUserScore(v3);
}
v4 = (_QWORD *)LikeItemLayer::create(4, *(unsigned int *)(*(_QWORD *)(v1 + 912) + 344LL), 0);
v4[84] = v1 + 856;
return (*(__int64 (__fastcall **)(_QWORD *))(*v4 + 1312LL))(v4);
}
return result;
}