//
// sub_100399564 from 0x100399564 to 0x1003995f4 (144 bytes)
//
// 2 xrefs:
// > CCTextInputNode::updateCursorPosition @ 0x1001fe9d4
// > CCTextInputNode::updateCursorPosition @ 0x1001feae0
//
// 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 11:03:42 +0000
//
float __fastcall sub_100399564(__int64 a1, __int64 a2, float a3)
{
float *v6; // x0
float v7; // s8
float v8; // s9
float v9; // s10
v6 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2);
if ( *v6 <= 0.0 )
v7 = a3 * 1.5;
else
v7 = *v6;
v8 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2);
v9 = *(float *)(a1 + 64);
return (float)((float)(v7 * v9) * *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 304LL))(a2))
+ (float)(v8 * v9);
}