//
// PlayLayer::showTwoPlayerGuide from 0x30e6ac to 0x30e8ec (576 bytes)
//
// 0 xrefs:
//
// 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::showTwoPlayerGuide(PlayLayer *a1)
{
cocos2d::CCDirector *v2; // r0
cocos2d::CCLabelBMFont *v3; // r4
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7
cocos2d::CCLabelBMFont *v5; // r7
void (__fastcall *v6)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6
GameManager *v7; // r0
const cocos2d::CCPoint *v8; // r0
void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6
int v10; // r0
int v11; // r10
cocos2d::CCSprite *v12; // r6
void (__fastcall *v13)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8
void (__fastcall *setBlendFunc)(cocos2d::CCSprite *__hidden, cocos2d::ccBlendFunc); // r12
cocos2d::CCFadeTo *v15; // r11
int v16; // r0
cocos2d::CCAction *v17; // r0
cocos2d::CCSequence *v18; // [sp+8h] [bp-2Ch]
cocos2d::CCDelayTime *v19; // [sp+Ch] [bp-28h]
cocos2d::CCSize v20; // [sp+14h] [bp-20h] BYREF
_DWORD v21[2]; // [sp+1Ch] [bp-18h] BYREF
cocos2d::CCPoint v22; // [sp+24h] [bp-10h] BYREF
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v20, v2);
v3 = cocos2d::CCLabelBMFont::create();
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v3->setScale)(v3, 1061997773);
a1->addChild_0(a1, v3, 3);
setPosition = v3->setPosition;
cocos2d::CCPoint::CCPoint(&v22, (float)(v20.width * 0.5) - (float)(v20.width * 0.25), v20.height * 0.5);
setPosition(v3, &v22);
v5 = cocos2d::CCLabelBMFont::create();
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v5->setScale)(v5, 1061997773);
a1->addChild_0(a1, v5, 3);
v6 = v5->setPosition;
cocos2d::CCPoint::CCPoint(&v22, (float)(v20.width * 0.25) + (float)(v20.width * 0.5), v20.height * 0.5);
v6(v5, &v22);
v7 = GameManager::sharedState();
if ( GameManager::getGameVariable(v7, "0010") )
{
v8 = v3->getPosition(v3);
cocos2d::CCPoint::CCPoint(&v22, v8);
v9 = v3->setPosition;
v10 = (int)v5->getPosition(v5);
v9(v3, (const cocos2d::CCPoint *)v10);
v5->setPosition(v5, &v22);
}
v11 = 0;
v12 = cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))v12->setScale)(
v12,
(float)(v20.height * 1.2) / v12->m_obRect.size.width);
((void (__fastcall *)(cocos2d::CCSprite *, int))v12->setRotation)(v12, 1119092736);
a1->addChild_0(a1, v12, 3);
v13 = v12->setPosition;
cocos2d::CCPoint::CCPoint(&v22, v20.width * 0.5, v20.height * 0.5);
v13(v12, &v22);
setBlendFunc = v12->setBlendFunc;
v21[0] = 770;
v21[1] = 1;
((void (__fastcall *)(cocos2d::CCSprite *, int, int, _DWORD *))setBlendFunc)(v12, 770, 1, v21);
v3->setOpacity(v3, 0);
v5->setOpacity(v5, 0);
v12->setOpacity(v12, 0);
while ( 1 )
{
++v11;
v18 = (cocos2d::CCSequence *)cocos2d::CCFadeTo::create(0.2, 0xFFu);
v19 = cocos2d::CCDelayTime::create(0.8);
v15 = cocos2d::CCFadeTo::create(0.2, 0);
LODWORD(v22.x) = 260;
LODWORD(v22.y) = 1;
v16 = cocos2d::CCCallFunc::create(v3, 260, 1);
v17 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v18, v19, v15, v16, 0);
cocos2d::CCNode::runAction(v3, v17);
if ( v11 == 3 )
break;
if ( v11 == 1 )
v3 = v5;
else
v3 = (cocos2d::CCLabelBMFont *)v12;
}
}