//
// sub_6B77E8 from 0x6b77e8 to 0x6b78f4 (268 bytes)
//
// 3 xrefs:
// > CCTextInputNode::updateCursorPosition @ 0x6c1ac4
// > CCTextInputNode::moveCursorVertical @ 0x6c1db0
// > CCTextInputNode::moveCursorVertical @ 0x6c1e24
//
// 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 12:50:53 +0000
//
__int64 __fastcall sub_6B77E8(__int64 a1)
{
__int64 v2; // x19
float v3; // s8
cocos2d::CCNode *v4; // x19
const cocos2d::CCPoint *v5; // x0
__int64 v7; // [xsp+40h] [xbp+40h] BYREF
if ( a1 )
{
v2 = a1;
v3 = 1.0;
do
{
v3 = v3 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v2 + 152LL))(v2);
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 512LL))(v2);
}
while ( v2 );
}
v4 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
v5 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
cocos2d::CCNode::convertToWorldSpace(&v7, v4, v5);
(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 304LL))(a1);
(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1);
return _stack_chk_guard;
}