//
// PlayLayer::spawnCircle from 0x1403abf00 to 0x1403abfe6 (230 bytes)
//
// 3 xrefs:
// > PlayLayer::levelComplete @ 0x1403a8760
// > PlayLayer::showCompleteText @ 0x1403a8dd0
// > ??> @ 0x1406d6c2c
//
// 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 PlayLayer::spawnCircle(PlayLayer *a1)
{
cocos2d::CCDirector *v2; // rax
float ScreenRight; // xmm1_4
cocos2d::CCNode *v4; // rdi
EndPortalObject *m_endPortal; // rcx
cocos2d::CCPoint v6; // [rsp+40h] [rbp+8h] BYREF
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);
ScreenRight = cocos2d::CCDirector::getScreenRight(v2);
v4 = CCCircleWave::create(10.0, ScreenRight, 0.5, 1, 1);
v4[1].m_uUnknown = 4;
*(cocos2d::ccColor3B *)&v4[1].m_uReference = a1->m_player1->m_playerColor1;
if ( !a1->m_isPlatformer )
{
m_endPortal = a1->m_endPortal;
if ( m_endPortal )
{
if ( !a1->m_platformerEndTrigger )
m_endPortal->getPosition_0(m_endPortal);
}
}
cocos2d::CCPoint::CCPoint(&v6);
v4->setPosition_0(v4, &v6);
a1->m_objectLayer->addChild_0(a1->m_objectLayer, v4, 0);
v4[1].m_uIndexInArray = 1;
}