//
// PlayLayer::showTwoPlayerGuide from 0x10007ec00 to 0x10007ef8f (911 bytes)
//
// 1 xrefs:
// > PlayLayer::setupHasCompleted @ 0x10007b8b7
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:20:01 +0000
//
__int64 __fastcall PlayLayer::showTwoPlayerGuide(__int64 a1, __int64 a2)
{
__int64 v3; // rax
__int64 v4; // rbx
__int64 v5; // r14
__int64 v6; // rdx
double v7; // xmm0_8
__int64 v8; // rax
__int64 v9; // rsi
__int64 v10; // rax
float *v11; // r15
int v12; // r13d
int v13; // r12d
int v14; // eax
int v15; // r9d
__int64 v16; // rax
int v17; // ebx
int v18; // r12d
int v19; // r13d
int v20; // eax
int v21; // r9d
__int64 v22; // rax
int v23; // ebx
int v24; // r14d
int v25; // r12d
int v26; // eax
int v27; // r9d
__int64 v28; // rax
int v30; // [rsp+0h] [rbp-40h]
_BYTE v31[8]; // [rsp+8h] [rbp-38h] BYREF
float v32; // [rsp+10h] [rbp-30h] BYREF
float v33; // [rsp+14h] [rbp-2Ch]
v3 = cocos2d::CCDirector::sharedDirector(a1, a2);
cocos2d::CCDirector::getWinSize(&v32, v3);
v4 = cocos2d::CCLabelBMFont::create_3("Player 1", "bigFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 160LL))(v4, 0.80000001);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 3);
sub_100278250(v31, (float)(v32 * 0.5) - (float)(v32 * 0.25), v33 * 0.5);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 184LL))(v4, v31);
v5 = cocos2d::CCLabelBMFont::create_3("Player 2", "bigFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 0.80000001);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, 3);
sub_100278250(v31, (float)(v32 * 0.25) + (float)(v32 * 0.5), v33 * 0.5);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 184LL))(v5, v31);
*(_QWORD *)&v7 = GameManager::sharedState(v5, v31, v6).u64[0];
if ( (unsigned __int8)GameManager::getGameVariable(v8, "0010") )
{
v9 = (*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v4 + 192LL))(v4, v7);
sub_1002782D0(v31, v9);
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 184LL))(v4, v10);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 184LL))(v5, v31);
}
v11 = (float *)cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png");
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v11 + 160LL))(v11, (float)(v33 * 1.2) / v11[108]);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v11 + 360LL))(v11, 90.0);
(*(void (__fastcall **)(__int64, float *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v11, 3);
sub_100278250(v31, v32 * 0.5, 0.5 * v33);
(*(void (__fastcall **)(float *, _BYTE *))(*(_QWORD *)v11 + 184LL))(v11, v31);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v11 + 1080LL))(v11, 0x100000302LL);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1024LL))(v4, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1024LL))(v5, 0);
(*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)v11 + 912LL))(v11, 0);
v30 = cocos2d::CCFadeTo::create(255, 0.2);
v12 = cocos2d::CCDelayTime::create(0.80000001);
v13 = cocos2d::CCFadeTo::create(0, 0.2);
v14 = cocos2d::CCCallFunc::create(v4, 537, 0);
v16 = sub_10039EB60(v30, v12, v13, v14, 0, v15);
cocos2d::CCNode::runAction(v4, v16);
v17 = cocos2d::CCFadeTo::create(255, 0.2);
v18 = cocos2d::CCDelayTime::create(0.80000001);
v19 = cocos2d::CCFadeTo::create(0, 0.2);
v20 = cocos2d::CCCallFunc::create(v5, 537, 0);
v22 = sub_10039EB60(v17, v18, v19, v20, 0, v21);
cocos2d::CCNode::runAction(v5, v22);
v23 = cocos2d::CCFadeTo::create(255, 0.2);
v24 = cocos2d::CCDelayTime::create(0.80000001);
v25 = cocos2d::CCFadeTo::create(0, 0.2);
v26 = cocos2d::CCCallFunc::create(v11, 537, 0);
v28 = sub_10039EB60(v23, v24, v25, v26, 0, v27);
return cocos2d::CCNode::runAction(v11, v28);
}