// // PlayLayer::showTwoPlayerGuide from 0x14050b3c0 to 0x14050b767 (935 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x140505416 // > @ 0x14092a980 // // 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 11:33:28 +0000 // // Hidden C++ exception states: #wind=1 struct cocos2d::CCAction *__fastcall PlayLayer::showTwoPlayerGuide(__int64 a1) { __int64 v2; // rax struct cocos2d::CCLabelBMFont *v3; // r15 __int64 v4; // rbx __int64 v5; // rax struct cocos2d::CCLabelBMFont *v6; // r12 __int64 v7; // rbx __int64 v8; // rax __int64 v9; // rcx const struct cocos2d::CCPoint *v10; // rax __int64 v11; // rbx __int64 v12; // rax struct cocos2d::CCSprite *v13; // r13 __int64 v14; // rbx __int64 v15; // rax int i; // r14d cocos2d::CCNode *v17; // rbp struct cocos2d::CCFiniteTimeAction *v18; // rsi struct cocos2d::CCDelayTime *v19; // rdi struct cocos2d::CCFadeTo *v20; // rbx __int64 v21; // rax struct cocos2d::CCAction *v22; // rax struct cocos2d::CCAction *result; // rax float v24; // [rsp+A0h] [rbp+8h] BYREF float v25; // [rsp+A4h] [rbp+Ch] __int64 v26; // [rsp+A8h] [rbp+10h] BYREF void *v27; // [rsp+B0h] [rbp+18h] v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2, &v24); v3 = cocos2d::CCLabelBMFont::create("Player 1", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v3 + 160LL))(v3); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v3, 3); v4 = *(_QWORD *)v3; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, (float)(v24 * 0.5) - (float)(v24 * 0.25), v25 * 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v4 + 184))(v3, v5); v6 = cocos2d::CCLabelBMFont::create("Player 2", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v6 + 160LL))(v6); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v6, 3); v7 = *(_QWORD *)v6; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, (float)(v24 * 0.5) + (float)(v24 * 0.25), v25 * 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v7 + 184))(v6, v8); v9 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v27 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v27); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v9 = qword_14090BFD0; } if ( GameManager::getGameVariable(v9, "0010") ) { v10 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v3 + 200LL))(v3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, v10); v11 = *(_QWORD *)v3; v12 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v6 + 200LL))(v6); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v11 + 184))(v3, v12); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v6 + 184LL))(v6, &v26); } v13 = cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v13 + 160LL))(v13); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v13 + 352LL))(v13); (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v13, 3); v14 = *(_QWORD *)v13; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, v24 * 0.5, v25 * 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v14 + 184))(v13, v15); v26 = 0x100000302LL; (**((void (__fastcall ***)(__int64, __int64))v13 + 43))((__int64)v13 + 344, 0x100000302LL); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v3 + 46) + 40LL))((__int64)v3 + 368, 0); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v6 + 46) + 40LL))((__int64)v6 + 368, 0); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v13 + 40) + 40LL))((__int64)v13 + 320, 0); for ( i = 0; i < 3; ++i ) { if ( i ) { v17 = v13; if ( i == 1 ) v17 = v6; } else { v17 = v3; } v18 = cocos2d::CCFadeTo::create(0.2, 0xFFu); v19 = cocos2d::CCDelayTime::create(0.80000001); v20 = cocos2d::CCFadeTo::create(0.2, 0); v21 = cocos2d::CCCallFunc::create(v17, sub_14003F5B0); v22 = cocos2d::CCSequence::create(v18, v19, v20, v21, 0); result = cocos2d::CCNode::runAction(v17, v22); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source