//
// sub_10042F0CC from 0x10042f0cc to 0x10042f198 (204 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateLevelFont @ 0x100403d88
// > LabelGameObject::setupCustomSprites @ 0x10042f074
//
// This function is hookable on this platform (idp: arm, 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:05:05 +0000
//
__int64 __fastcall sub_10042F0CC(__int64 a1, const char *a2)
{
__int64 v4; // x21
__int64 v5; // x0
char *v6; // x0
void *v7; // x20
__int64 result; // x0
float v9; // [xsp+8h] [xbp-28h] BYREF
if ( *(_QWORD *)(a1 + 1840) )
sub_10042F198(a1);
if ( a2[23] < 0 )
a2 = *(const char **)a2;
v4 = GameManager::sharedState();
v5 = GameManager::sharedState();
v6 = (char *)sub_1003B4F54(v4, *(_DWORD *)(v5 + 992));
v7 = cocos2d::CCLabelBMFont::create_1(a2, v6);
*(_QWORD *)(a1 + 1840) = v7;
sub_1000262BC(&v9, *(float *)(a1 + 432) * 0.5, *(float *)(a1 + 436) * 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v7 + 184LL))(v7, &v9);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 1840));
result = sub_10042F238(a1, *(unsigned int *)(a1 + 1884));
*(_BYTE *)(a1 + 1848) = 0;
return result;
}