//
// sub_3DC2FC from 0x3dc2fc to 0x3dc39e (162 bytes)
//
// 3 xrefs:
// > CCTextInputNode::updateCursorPosition @ 0x3e216c
// > CCTextInputNode::moveCursorVertical @ 0x3e2538
// > CCTextInputNode::moveCursorVertical @ 0x3e2594
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:48 +0000
//
int __fastcall sub_3DC2FC(int a1, int a2)
{
int v3; // r5
float v4; // s17
int v5; // r2
const cocos2d::CCPoint *v6; // r5
_BYTE v8[4]; // [sp+4h] [bp-Ch] BYREF
v3 = a1;
v4 = 1.0;
v5 = _stack_chk_guard;
while ( v3 )
{
v4 = v4 * COERCE_FLOAT((*(int (__fastcall **)(int, int, int))(*(_DWORD *)v3 + 76))(v3, a2, v5));
v3 = (*(int (__fastcall **)(int))(*(_DWORD *)v3 + 256))(v3);
}
v6 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int, int, int))(*(_DWORD *)a1 + 256))(a1, a2, v5);
(*(void (__fastcall **)(int))(*(_DWORD *)a1 + 96))(a1);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v8, v6);
(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 152))(a1);
return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 164))(a1);
}