//
// sub_140058050 from 0x140058050 to 0x140058124 (212 bytes)
//
// 4 xrefs:
// > CCTextInputNode::moveCursorVertical @ 0x1400582c3
// > CCTextInputNode::moveCursorVertical @ 0x14005834c
// > CCTextInputNode::updateCursorPosition @ 0x1400585db
// > ??> @ 0x140910424
//
// 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:25:41 +0000
//
__m128 __fastcall sub_140058050(__int64 a1)
{
__int64 v2; // rbx
float i; // xmm7_4
__int64 (__fastcall *v4)(__int64); // rdi
__int64 v5; // rbx
__int64 v6; // rax
__int128 v7; // xmm6
char v9; // [rsp+50h] [rbp+8h] BYREF
float v10; // [rsp+54h] [rbp+Ch]
v2 = a1;
for ( i = 1.0; v2; v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 504LL))(v2) )
i = i * (*(float (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
v4 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 504LL);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
v6 = v4(a1);
cocos2d::CCNode::convertToWorldSpace(v6, &v9, v5);
v7 = 0x3F000000u;
*(float *)&v7 = 0.5 - *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 296LL))(a1) + 4);
*(float *)&v7 = (float)(*(float *)&v7
* *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1) + 4))
* i;
*(float *)&v7 = *(float *)&v7 + v10;
return (__m128)v7;
}