//
// sub_100893570 from 0x100893570 to 0x100893663 (243 bytes)
//
// 2 xrefs:
// > InfoLayer::init @ 0x10089180a
// > sub_100894470 @ 0x100894480
//
// 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 12:37:05 +0000
//
void __fastcall sub_100893570(__int64 a1)
{
__int64 v1; // rax
__int128 *v2; // rax
const char *v3; // rsi
const char *v4; // rdx
char *v5; // rax
__int64 CString; // r14
__int128 v7; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
if ( !*(_QWORD *)(a1 + 888) )
return;
v1 = *(_QWORD *)(a1 + 704);
if ( !v1 )
return;
if ( (*(_BYTE *)(v1 + 320) & 1) != 0 )
{
sub_10001AD30(&v7, *(const void **)(v1 + 336), *(_QWORD *)(v1 + 328));
if ( (v7 & 1) == 0 )
goto LABEL_5;
LABEL_7:
v3 = (const char *)__p;
goto LABEL_8;
}
v2 = (__int128 *)(v1 + 320);
__p = *((void **)v2 + 2);
v7 = *v2;
if ( (v7 & 1) != 0 )
goto LABEL_7;
LABEL_5:
v3 = (char *)&v7 + 1;
LABEL_8:
v4 = "comments";
if ( *(_BYTE *)(a1 + 880) )
v4 = "notes";
v5 = sub_10088E820("%s's %s", v3, v4);
CString = cocos2d::CCString::getCString((__int64)v5);
if ( (v7 & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 888) + 928LL))(*(_QWORD *)(a1 + 888), CString);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 888), 180.0, (__m128)0x3F0CCCCDu, (__m128)0LL);
}