//
// ShareCommentLayer::textChanged from 0x14048e7e0 to 0x14048e8f6 (278 bytes)
//
// 2 xrefs:
// > ??> @ 0x14060b060
// > ??> @ 0x1406dbfc0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void ShareCommentLayer::textChanged(ShareCommentLayer *a1, CCTextInputNode *a2)
{
const char *v3; // rax
size_t v4; // rbx
size_t v5; // r8
void **v6; // rdx
void *v7; // rcx
__int128 v8; // [rsp+28h] [rbp-50h] BYREF
__int64 v9; // [rsp+38h] [rbp-40h]
__int64 v10; // [rsp+40h] [rbp-38h]
void *Block[2]; // [rsp+48h] [rbp-30h] BYREF
__int128 v12; // [rsp+58h] [rbp-20h]
v3 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);
*(_OWORD *)Block = 0;
v12 = 0;
v4 = -1;
v5 = -1;
do
++v5;
while ( v3[v5] );
sub_14003A930(Block, v3, v5);
v6 = Block;
if ( *((_QWORD *)&v12 + 1) > 0xFu )
v6 = (void **)Block[0];
v8 = 0;
v9 = 0;
v10 = 0;
do
++v4;
while ( *((_BYTE *)v6 + v4) );
sub_14003A930(&v8, v6, v4);
ShareCommentLayer::updateDescText(&a1[-1].m_sTransform.d, &v8);
if ( *((_QWORD *)&v12 + 1) > 0xFu )
{
v7 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v12 + 1) + 1LL) >= 0x1000 )
{
v7 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v7);
}
}