//
// LevelEditorLayer::postUpdate from 0x10036365c to 0x100363864 (520 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007f4270
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall LevelEditorLayer::postUpdate(LevelEditorLayer *a1, float a2)
{
bool *p_m_jumping; // x22
GJEffectManager *m_effectManager; // x20
__int64 *v6; // x0
float v7; // s0
_BOOL4 m_maybeIsColliding; // w8
bool v9; // zf
__int64 v10; // x8
PlayerObject *v11; // x20
cocos2d::CCSprite *m_playtestDeathSprite; // x21
__int64 v13; // x0
EditorUI *m_editorUI; // x0
__int64 *v15; // x0
float v16; // s0
__int64 *v17; // x0
__int64 v18; // [xsp+8h] [xbp-38h] BYREF
cocos2d::ccColor3B v19; // 0:w0.3
cocos2d::CCPoint v20; // 0:s0.4,4:s1.4
p_m_jumping = &a1->m_jumping;
if ( !a1->m_gameState.m_isDualMode )
a1->m_soloMode = 1;
GJEffectManager::processColors(a1->m_effectManager);
m_effectManager = a1->m_effectManager;
v19 = GJEffectManager::activeColorForIndex(m_effectManager, 1005);
GJEffectManager::calculateLightBGColor(m_effectManager, (cocos2d::ccColor3B)(*(_DWORD *)&v19.r & 0xFFFFFF));
((void (__fastcall *)(LevelEditorLayer *, float))a1->updateVisibility)(a1, a2);
if ( p_m_jumping[1929] )
GJBaseGameLayer::updateLevelColors(a1);
if ( *p_m_jumping )
{
v6 = (__int64 *)((__int64 (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1);
v7 = sub_1000229B8(&v18, v6);
sub_100369218(&a1->m_touchPoints, &v18, v7);
}
a1->m_trailTimer = a1->m_trailTimer + a2;
m_maybeIsColliding = a1->m_player1->m_maybeIsColliding;
if ( m_maybeIsColliding || a1->m_gameState.m_isDualMode && a1->m_player2->m_maybeIsColliding )
{
v9 = !m_maybeIsColliding;
v10 = 3280;
if ( !v9 )
v10 = 3272;
v11 = *(PlayerObject **)((char *)&a1->GJBaseGameLayer::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v10);
PlayerObject::playerDestroyed(v11, 0);
m_playtestDeathSprite = a1->m_playtestDeathSprite;
v13 = ((__int64 (__fastcall *)(PlayerObject *))v11->getPosition)(v11);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))m_playtestDeathSprite->setPosition)(m_playtestDeathSprite, v13);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_playtestDeathSprite->setVisible)(
a1->m_playtestDeathSprite,
1);
LevelEditorLayer::onStopPlaytest(a1);
m_editorUI = a1->m_editorUI;
if ( m_editorUI )
EditorUI::playtestStopped(m_editorUI);
}
if ( a1->m_playbackMode == Playing && a1->m_trailTimer >= 0.033333 )
{
a1->m_trailTimer = 0.0;
v15 = (__int64 *)((__int64 (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1);
v16 = sub_1000229B8(&v18, v15);
sub_100369218(&a1->m_playerPoints, &v18, v16);
if ( a1->m_gameState.m_isDualMode )
{
v17 = (__int64 *)((__int64 (__fastcall *)(PlayerObject *))a1->m_player2->getPosition)(a1->m_player2);
v20.x = sub_1000229B8(&v18, v17);
LevelEditorLayer::addPlayer2Point(a1, v20, (bool)&v18);
p_m_jumping[1876] = 0;
}
}
}