//
// ShareCommentLayer::updateDescText from 0x14048e900 to 0x14048ea27 (295 bytes)
//
// 5 xrefs:
// > ShareCommentLayer::init @ 0x14048e00c
// > ShareCommentLayer::onClear @ 0x14048e12d
// > ShareCommentLayer::textInputClosed @ 0x14048e778
// > ShareCommentLayer::textChanged @ 0x14048e895
// > ??> @ 0x1406dbfcc
//
// 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 __fastcall ShareCommentLayer::updateDescText(__int64 a1, void **a2)
{
__int64 v2; // rdi
void **v4; // rcx
int v5; // r14d
int v6; // ebp
__int64 *v7; // rcx
__int64 v8; // rax
cocos2d::ccColor3B *v9; // rdx
void (__fastcall **v10)(__int64, const char *); // rbx
cocos2d::CCString *v11; // rax
const char *CString; // rax
v2 = (__int64)a2;
v4 = (void **)(a1 + 680);
if ( v4 != a2 )
{
if ( (unsigned __int64)a2[3] > 0xF )
a2 = (void **)*a2;
sub_14003CCE0(v4, a2, *(_QWORD *)(v2 + 16));
}
v5 = *(_DWORD *)(a1 + 696);
v6 = *(_DWORD *)(a1 + 656);
v7 = (__int64 *)(*(_QWORD *)(a1 + 744) + 368LL);
v8 = *v7;
if ( (float)((float)v6 * 0.69999999) <= (float)v5 )
{
LOBYTE(a2) = -1;
if ( (float)((float)v6 * 0.89999998) <= (float)v5 )
{
(*(void (__fastcall **)(__int64 *, void **))(v8 + 40))(v7, a2);
v9 = (cocos2d::ccColor3B *)&unk_140529C7C;
goto LABEL_10;
}
}
else
{
LOBYTE(a2) = 125;
}
(*(void (__fastcall **)(__int64 *, void **))(v8 + 40))(v7, a2);
v9 = &stru_140529C78;
LABEL_10:
(**(void (__fastcall ***)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)(a1 + 744) + 368LL))(
*(_QWORD *)(a1 + 744) + 368LL,
v9);
v10 = *(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 744) + 360LL);
v11 = cocos2d::CCString::createWithFormat("%i", v6 - v5);
CString = cocos2d::CCString::getCString(v11);
(*v10)(*(_QWORD *)(a1 + 744) + 360LL, CString);
sub_14003A830(v2);
}