//
// TouchControlEditLayer::updateJumpGuide from 0xd04bd0 to 0xd04d44 (372 bytes)
//
// 5 xrefs:
// > TouchControlEditLayer::init @ 0xd06990
// > TouchControlEditLayer::reloadNodes @ 0xd06e30
// > TouchControlEditLayer::valueDidChange @ 0xd07404
// > TouchControlEditLayer::valueDidChange @ 0xd07440
// > ??> @ 0x8f620
//
// This function is hookable on this platform (idp: arm, 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 13:06:56 +0000
//
__int64 __fastcall TouchControlEditLayer::updateJumpGuide(TouchControlEditLayer *this)
{
cocos2d::CCDirector *v2; // x0
__int64 v3; // x0
cocos2d::CCDirector *v5; // x0
const char *v6; // x2
__int64 v7; // x0
int GameVariable; // w22
__int64 v9; // x0
__int64 v10; // x20
void (__fastcall *v11)(__int64, _BYTE *); // x21
float v12; // s0
__int64 v13; // x0
GameManager *v14; // x0
__int64 v15; // [xsp+48h] [xbp+48h] BYREF
_BYTE v16[8]; // [xsp+50h] [xbp+50h] BYREF
v2 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 1012);
if ( (_DWORD)v2 )
{
v3 = *((_QWORD *)this + 168);
if ( v3 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0);
}
else
{
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize(&v15, v5);
v7 = *((_QWORD *)this + 127);
if ( v7 )
{
GameVariable = *(_DWORD *)(v7 + 68) != 0;
}
else
{
v14 = (GameManager *)GameManager::sharedState(nullptr);
GameVariable = (unsigned __int8)GameManager::getGameVariable(v14, "0113");
}
v9 = *((_QWORD *)this + 168);
if ( !v9 )
{
v13 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"JUMP", "bigFont.fnt", v6);
*((_QWORD *)this + 168) = v13;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.7);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 168) + 1024LL))(*((_QWORD *)this + 168), 120);
(*(void (__fastcall **)(TouchControlEditLayer *, _QWORD, __int64))(*(_QWORD *)this + 464LL))(
this,
*((_QWORD *)this + 168),
50);
v9 = *((_QWORD *)this + 168);
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 344LL))(v9, 1);
v10 = *((_QWORD *)this + 168);
v11 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL);
if ( GameVariable )
v12 = *(float *)&v15 * 0.25;
else
v12 = *(float *)&v15 * 0.75;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v12, *((float *)&v15 + 1) * 0.4);
v11(v10, v16);
}
return _stack_chk_guard;
}