//
// TextArea::update from 0x14008a940 to 0x14008ab3d (509 bytes)
//
// 4 xrefs:
// > ??> @ 0x140715008
// > ??> @ 0x14088c0ac
// > ??> @ 0x14088c0bc
// > ??> @ 0x140912764
//
// 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:58 +0000
//
void __fastcall TextArea::update(__int64 a1, float a2)
{
__int64 v2; // rdi
__int64 v4; // rdi
__int64 i; // rbp
cocos2d::CCArray *v6; // rdi
float *v7; // rax
float *v8; // rbx
float v9; // xmm0_4
float v10; // xmm6_4
int v11; // eax
float v12; // xmm7_4
float v13; // xmm8_4
int v14; // eax
unsigned int *v15; // rdi
__int64 v16; // rax
__int64 *v17; // rdi
__int64 *j; // rsi
__int64 v19; // rbx
char v20; // [rsp+A0h] [rbp+8h] BYREF
char v21; // [rsp+B0h] [rbp+18h] BYREF
v2 = *(_QWORD *)(a1 + 720);
*(float *)(a1 + 728) = a2 + *(float *)(a1 + 728);
if ( v2 )
{
v4 = *(_QWORD *)(v2 + 56);
if ( v4 )
{
for ( i = *(_QWORD *)(v4 + 288); ; i = *(_QWORD *)(i + 288) )
{
v6 = *(cocos2d::CCArray **)(v4 + 264);
v7 = (float *)cocos2d::CCArray::objectAtIndex(v6, 0);
v8 = v7;
if ( v7 )
{
v9 = *(float *)(a1 + 728);
if ( v9 > v7[157] )
{
v10 = v7[156];
v7[157] = v9 + v7[155];
v11 = rand();
v12 = v8[156];
v13 = (float)v11 / 32767.0;
v14 = rand();
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v20,
(float)((float)((float)((float)((float)v14 / 32767.0) + (float)((float)v14 / 32767.0)) - 1.0) * v12) * 0.5,
(float)((float)((float)(v13 + v13) - 1.0) * v10) * 0.5);
if ( v6 )
{
v15 = *((unsigned int **)v6 + 7);
v16 = *v15;
if ( (_DWORD)v16 )
{
v17 = *((__int64 **)v15 + 2);
for ( j = &v17[v16 - 1]; v17 <= j; ++v17 )
{
v19 = *v17;
if ( !*v17 )
break;
cocos2d::CCPoint::operator+(v19 + 636, &v21, &v20);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v19 + 184LL))(v19, &v21);
}
}
}
}
}
v4 = i;
if ( !i )
break;
}
}
}
}