//
// LevelEditorLayer::postUpdate from 0x46acdc to 0x46ae9a (446 bytes)
//
// 0 xrefs:
//
// 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:49:00 +0000
//
DeathMarkerLayer *__fastcall LevelEditorLayer::postUpdate(LevelEditorLayer *this, float a2)
{
GJEffectManager *v4; // r5
int active; // r0
DeathMarkerLayer *result; // r0
DeathMarkerLayer *v7; // r0
const cocos2d::CCPoint *v8; // r0
float *v9; // r5
int v10; // r6
int v11; // r9
void (__fastcall *v12)(int, int); // r10
int v13; // r0
const cocos2d::CCPoint *v14; // r0
const cocos2d::CCPoint *v15; // r0
int v16; // [sp+0h] [bp-18h]
_BYTE v17[16]; // [sp+4h] [bp-14h] BYREF
if ( !*((_BYTE *)this + 866) )
*((_BYTE *)this + 11852) = 1;
GJEffectManager::processColors(*((GJEffectManager **)this + 381));
v4 = *((GJEffectManager **)this + 381);
active = GJEffectManager::activeColorForIndex(v4, 1005);
LOWORD(v16) = active;
BYTE2(v16) = BYTE2(active);
GJEffectManager::calculateLightBGColor(v4, v16);
result = (DeathMarkerLayer *)(*(int (__fastcall **)(LevelEditorLayer *, _DWORD))(*(_DWORD *)this + 596))(
this,
LODWORD(a2));
if ( *((_DWORD *)this + 353) || *((_DWORD *)this + 354) )
{
GJBaseGameLayer::syncDeathMarkerFlip(this);
sub_45E7D8((cocos2d::CCDirector *)v17, *((_DWORD *)this + 609));
v7 = *((DeathMarkerLayer **)this + 353);
if ( v7 )
DeathMarkerLayer::updateVisibility(v7, (const cocos2d::CCRect *)v17);
result = *((DeathMarkerLayer **)this + 354);
if ( result )
result = (DeathMarkerLayer *)DeathMarkerLayer::updateVisibility(result, (const cocos2d::CCRect *)v17);
}
if ( *((_BYTE *)this + 11885) )
result = (DeathMarkerLayer *)GJBaseGameLayer::updateLevelColors(this);
if ( *((_BYTE *)this + 10592) )
{
v8 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 519) + 96))(*((_DWORD *)this + 519));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v8);
result = (DeathMarkerLayer *)LevelEditorLayer::addTouchPoint((int)this, (const cocos2d::CCPoint *)v17);
}
v9 = (float *)((char *)this + 11848);
*((float *)this + 2962) = *((float *)this + 2962) + a2;
v10 = *((_DWORD *)this + 519);
if ( *(_BYTE *)(v10 + 1900) || *((_BYTE *)this + 866) && (v10 = *((_DWORD *)this + 520), *(_BYTE *)(v10 + 1900)) )
{
PlayerObject::playerDestroyed((cocos2d::CCNode **)v10, 0);
v11 = *((_DWORD *)this + 2961);
v12 = *(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 92);
v13 = (*(int (__fastcall **)(int))(*(_DWORD *)v10 + 96))(v10);
v12(v11, v13);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 2961) + 172))(*((_DWORD *)this + 2961), 1);
LevelEditorLayer::onStopPlaytest((GJEffectManager **)this);
result = *((DeathMarkerLayer **)this + 2964);
if ( result )
result = (DeathMarkerLayer *)EditorUI::playtestStopped(result);
}
if ( *((_DWORD *)this + 357) == 1 && *v9 >= 0.033333 )
{
*v9 = 0.0;
v14 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 519) + 96))(*((_DWORD *)this + 519));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v14);
result = (DeathMarkerLayer *)LevelEditorLayer::addPlayerPoint((int)this, (const cocos2d::CCPoint *)v17);
if ( *((_BYTE *)this + 866) )
{
v15 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 520) + 96))(*((_DWORD *)this + 520));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v15);
result = LevelEditorLayer::addPlayer2Point(
this,
(const cocos2d::CCPoint *)v17,
*((unsigned __int8 *)this + 11852));
*((_BYTE *)this + 11852) = 0;
}
}
return result;
}