//
// KeyframeGameObject::updateShadowObjects from 0x4ec604 to 0x4ec792 (398 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateKeyframeObjects @ 0x462c62
// > EditorUI::createNewKeyframeAnim @ 0x4830fe
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:09 +0000
//
int __fastcall KeyframeGameObject::updateShadowObjects(KeyframeGameObject *this, GJBaseGameLayer *a2, EditorUI *a3)
{
int v4; // r0
int result; // r0
int v8; // r1
cocos2d::CCArray *Group; // r7
int GroupParent; // r8
int v11; // r0
int v12; // r3
int v13; // r0
int v14; // r3
int v15; // r0
const cocos2d::CCPoint *v16; // r0
void (__fastcall *v17)(KeyframeGameObject *, int); // r6
int v18; // r0
_BYTE v19[8]; // [sp+14h] [bp-38h] BYREF
_BYTE v20[8]; // [sp+1Ch] [bp-30h] BYREF
_BYTE v21[8]; // [sp+24h] [bp-28h] BYREF
_BYTE v22[12]; // [sp+2Ch] [bp-20h] BYREF
int v23[3]; // [sp+38h] [bp-14h] BYREF
v4 = *((_DWORD *)this + 413);
if ( v4 )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v4 + 268))(v4);
*((_DWORD *)this + 413) = 0;
}
result = cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)this + 412));
if ( *((_BYTE *)this + 1680) )
{
v8 = *((_DWORD *)this + 321);
*((_BYTE *)this + 471) = 1;
Group = (cocos2d::CCArray *)GJBaseGameLayer::getGroup(a2, v8);
GroupParent = GJBaseGameLayer::getGroupParent(a2, *((_DWORD *)this + 321));
result = cocos2d::CCArray::count(Group);
if ( result )
{
if ( GroupParent )
{
EditorUI::copyObjects((EditorUI *)v22, a3, (bool)Group, 0);
std::string::basic_string(v23, (int)v22);
*((_DWORD *)this + 413) = EditorUI::spriteFromObjectString(
a3,
v23,
0,
1,
0,
*((_DWORD *)this + 412),
Group,
GroupParent);
std::string::~string((int)v23);
(*(void (__fastcall **)(KeyframeGameObject *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 413));
(*(void (__fastcall **)(KeyframeGameObject *, void *))(*(_DWORD *)this + 160))(this, &unk_D2BC20);
v11 = *((_DWORD *)this + 413);
*((_BYTE *)this + 1048) = 1;
v12 = *(_DWORD *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 164))(v11);
v13 = *((_DWORD *)this + 413);
*((_DWORD *)this + 162) = v12;
v14 = *(_DWORD *)((*(int (__fastcall **)(int))(*(_DWORD *)v13 + 164))(v13) + 4);
v15 = *((_DWORD *)this + 413);
*((_DWORD *)this + 163) = v14;
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v15 + 92))(v15, &unk_D2BC08);
EditorUI::getGroupCenter((EditorUI *)v19, a3, Group);
v16 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)GroupParent + 96))(GroupParent);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v16);
cocos2d::CCPoint::operator-(v21, v19, v20);
cocos2d::CCPoint::operator=((char *)this + 612, v21);
*((_BYTE *)this + 732) = 1;
v17 = *(void (__fastcall **)(KeyframeGameObject *, int))(*(_DWORD *)this + 456);
v18 = (*(int (__fastcall **)(KeyframeGameObject *))(*(_DWORD *)this + 448))(this);
v17(this, v18);
return std::string::~string((int)v22);
}
}
}
else
{
*((_BYTE *)this + 471) = 0;
}
return result;
}