//
// PlayLayer::showHint from 0x1405136e0 to 0x140513863 (387 bytes)
//
// 3 xrefs:
// > PlayLayer::destroyPlayer @ 0x1405126a9
// > PlayLayer::destroyPlayer @ 0x1405126f3
// > ??> @ 0x14092ac08
//
// 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:32 +0000
//
struct cocos2d::CCAction *__fastcall PlayLayer::showHint(__int64 a1)
{
__int64 v2; // rax
float v3; // xmm7_4
int v4; // edx
const char *v5; // rcx
cocos2d::CCNode *v6; // r14
__int64 v7; // rbx
__int64 v8; // rax
struct cocos2d::CCFiniteTimeAction *v9; // rsi
struct cocos2d::CCDelayTime *v10; // rdi
struct cocos2d::CCFadeOut *v11; // rbx
__int64 v12; // rax
struct cocos2d::CCAction *v13; // rax
float v15; // [rsp+70h] [rbp+8h] BYREF
float v16; // [rsp+74h] [rbp+Ch]
char v17; // [rsp+78h] [rbp+10h] BYREF
*(_BYTE *)(a1 + 15001) = 1;
v2 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v2, &v15);
v3 = 3.0;
v4 = *(_DWORD *)(*(_QWORD *)(a1 + 2168) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 2168) + 332LL);
if ( v4 == 1 || v4 == 1001 )
{
v5 = "Click / Space to jump over the spikes";
}
else
{
v5 = "Click while touching a ring to jump mid air";
v3 = 4.0;
}
v6 = cocos2d::CCLabelBMFont::create(v5, (const char *)&qword_140704F78);
(*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v6 + 160LL))(v6);
(*(void (__fastcall **)(__int64, cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v6, 3);
v7 = *(_QWORD *)v6;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, v15 * 0.5, (float)(v16 * 0.5) + 60.0);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(v7 + 184))(v6, v8);
(*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v6 + 46) + 40LL))((__int64)v6 + 368, 0);
v9 = cocos2d::CCFadeIn::create(0.5);
v10 = cocos2d::CCDelayTime::create(v3);
v11 = cocos2d::CCFadeOut::create(0.5);
v12 = cocos2d::CCCallFunc::create(v6, sub_14003F5B0);
v13 = cocos2d::CCSequence::create(v9, v10, v11, v12, 0);
return cocos2d::CCNode::runAction(v6, v13);
}