//
// ShareCommentLayer::textChanged from 0x14062fc40 to 0x14062fd69 (297 bytes)
//
// 2 xrefs:
// > ??> @ 0x14081c2e0
// > ??> @ 0x140930a40
//
// 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:35:28 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall ShareCommentLayer::textChanged(__int64 a1, __int64 a2)
{
_BYTE *v3; // rax
size_t v4; // rbx
size_t v5; // r8
void **v6; // rdx
void *v7; // rcx
__int128 v8; // [rsp+38h] [rbp-50h] BYREF
__int64 v9; // [rsp+48h] [rbp-40h]
__int64 v10; // [rsp+50h] [rbp-38h]
void *Block[2]; // [rsp+58h] [rbp-30h] BYREF
__int128 v12; // [rsp+68h] [rbp-20h]
v3 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a2 + 592) + 600LL) + 8LL))(*(_QWORD *)(a2 + 592) + 600LL);
*(_OWORD *)Block = 0;
v12 = 0;
v4 = -1;
v5 = -1;
do
++v5;
while ( v3[v5] );
sub_14003D230(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_14003D230(&v8, v6, v4);
ShareCommentLayer::updateDescText(a1 - 544, &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 )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v7);
}
}