//
// CCTextInputNode::refreshLabel from 0x1400565a0 to 0x1400568a3 (771 bytes)
//
// 253 xrefs:
// > CCTextInputNode::updateLabel @ 0x140056290
// > CCTextInputNode::updateLabel @ 0x140056436
// > GameToolbox::createInputNode @ 0x1400708fe
// > GameToolbox::createInputNode @ 0x140070916
// > GameToolbox::createInputNode @ 0x14007094a
// > GameToolbox::createInputNode @ 0x14007095c
// > AccountRegisterLayer::init @ 0x14008d46f
// > AccountRegisterLayer::init @ 0x14008d61d
// > AccountRegisterLayer::createTextInput @ 0x14008dd05
// > AccountRegisterLayer::createTextInput @ 0x14008dd65
// > AccountRegisterLayer::createTextInput @ 0x14008dd77
// > AccountLoginLayer::init @ 0x140091190
// > AccountLoginLayer::createTextInput @ 0x1400916d3
// > AccountLoginLayer::createTextInput @ 0x140091730
// > AccountLoginLayer::createTextInput @ 0x140091742
// > AdminActionConfirmPopup::init @ 0x1400a5c2b
// > AdminActionConfirmPopup::init @ 0x1400a5c41
// > AdminActionConfirmPopup::init @ 0x1400a5ce8
// > ReviewChoiceSheet::init @ 0x1400ae8b4
// > ReviewChoiceSheet::init @ 0x1400ae8ca
// > ReviewChoiceSheet::init @ 0x1400ae978
// > SFXFolderPickerPopup::init @ 0x1400c450c
// > SFXFolderPickerPopup::init @ 0x1400c4522
// > SFXFolderPickerPopup::init @ 0x1400c4607
// > SFXFolderPickerPopup::init @ 0x1400c461d
// > AutoBackupPopup::init @ 0x1400c9ce7
// > AutoBackupPopup::init @ 0x1400c9cfd
// > AutoBackupPopup::init @ 0x1400c9d13
// > AutoBackupPopup::init @ 0x1400c9d29
// > MessageThreadsPage::init @ 0x1400d4c72
// > ThreadViewPopup::init @ 0x1400da326
// > FriendPickerPopup::init @ 0x1400e7265
// > LevelPickerPopup::init @ 0x1400e916b
// > NewThreadPopup::init @ 0x1400f0040
// > InvitesPopup::init @ 0x1400f7067
// > ThreadSearchPopup::init @ 0x1400fb618
// > ThreadSearchPopup::init @ 0x1400fb633
// > ThreadSearchPopup::init @ 0x1400fb67a
// > ThreadSearchPopup::init @ 0x1400fb68c
// > ThreadDescPopup::buildUI @ 0x1400fccda
// > DeathStatsPopup::init @ 0x14011e82d
// > DeathStatsPopup::init @ 0x14011e843
// > DeathStatsPopup::init @ 0x14011eada
// > DeathStatsPopup::init @ 0x14011eaf0
// > ColorSelectPopup::init @ 0x1401270bc
// > ColorSelectPopup::init @ 0x1401270d3
// > ColorSelectPopup::init @ 0x14012716f
// > ColorSelectPopup::init @ 0x140127186
// > ColorSelectPopup::init @ 0x140128465
// > ColorSelectPopup::init @ 0x14012847c
// > ColorSelectPopup::init @ 0x14012850d
// > ColorSelectPopup::init @ 0x140128524
// > ColorSelectPopup::init @ 0x140128a14
// > ColorSelectPopup::init @ 0x140128a2b
// > ColorSelectPopup::init @ 0x140128ac0
// > ColorSelectPopup::init @ 0x140128ad7
// > ColorSelectPopup::init @ 0x140129161
// > ColorSelectPopup::init @ 0x140129173
// > ColorSelectPopup::init @ 0x140129200
// > ColorSelectPopup::init @ 0x140129212
// > ConfigureHSVWidget::createTextInputNode @ 0x140130614
// > ConfigureHSVWidget::createTextInputNode @ 0x140130626
// > ConfigureValuePopup::init @ 0x1401320cc
// > ConfigureValuePopup::init @ 0x1401320e2
// > ConfigureValuePopup::init @ 0x1401321a4
// > ConfigureValuePopup::init @ 0x1401321ba
// > CreateGuidelinesLayer::init @ 0x140133998
// > CreateGuidelinesLayer::init @ 0x1401339ae
// > CreateGuidelinesLayer::init @ 0x140133a49
// > CreateGuidelinesLayer::init @ 0x140133a5f
// > CustomizeObjectLayer::init @ 0x14014074d
// > CustomizeObjectLayer::init @ 0x140140763
// > CustomizeObjectLayer::init @ 0x1401407fb
// > CustomizeObjectLayer::init @ 0x140140811
// > CustomizeObjectLayer::init @ 0x1401413fb
// > CustomizeObjectLayer::init @ 0x140141411
// > CustomizeObjectLayer::init @ 0x1401414fd
// > CustomizeObjectLayer::init @ 0x140141513
// > CustomSongLayer::init @ 0x14016466c
// > CustomSongLayer::init @ 0x140164682
// > CustomSongLayer::init @ 0x14016471d
// > CustomSongLayer::init @ 0x140164733
// > SongOptionsLayer::init @ 0x140165ea9
// > SongOptionsLayer::init @ 0x140165ebf
// > SongOptionsLayer::init @ 0x140165f4f
// > SongOptionsLayer::init @ 0x140165f65
// > EasingSelectPopup::refreshRateVisual @ 0x140176914
// > EditLevelLayer::init @ 0x140178b4c
// > EditLevelLayer::init @ 0x140178b5e
// > EditLevelLayer::init @ 0x140178f14
// > EditorSoundConfigInfoLayer::init @ 0x140192424
// > EditorSoundConfigInfoLayer::init @ 0x14019243a
// > SoundPackDescPopup::init @ 0x1401995eb
// > EditorSoundsLayer::init @ 0x14019d10d
// > EditorSoundsLayer::init @ 0x14019d123
// > EditorSoundsLayer::init @ 0x14019d139
// > EditorSoundsLayer::init @ 0x14019d157
// > GJRotationControl::init @ 0x1401a22fe
// > GJRotationControl::init @ 0x1401a2314
// > GJScaleControl::createScaleInput @ 0x1401a4772
// > GJScaleControl::createScaleInput @ 0x1401a4785
// > FRequestProfilePage::init @ 0x14020f768
// > FriendsProfilePage::init @ 0x140213910
// > GJGarageLayer::init @ 0x14037bc92
// > GJGarageLayer::init @ 0x14037bca8
// > SocialLinksPopup::init @ 0x14039fbac
// > SocialLinksPopup::init @ 0x14039fbbe
// > SocialLinksPopup::init @ 0x14039fc77
// > SocialLinksPopup::init @ 0x14039fc89
// > SetIDPopup::init @ 0x1403a5a65
// > SetIDPopup::init @ 0x1403a5a7b
// > SetIDPopup::init @ 0x1403a5b14
// > SetIDPopup::init @ 0x1403a5b2a
// > SetTextPopup::init @ 0x1403a78c1
// > SetTextPopup::init @ 0x1403a78de
// > SetTextPopup::init @ 0x1403a78f4
// > SetTextPopup::init @ 0x1403a7a1b
// > IDNameBrowserPopup::init @ 0x1403c1c61
// > IDNameBrowserPopup::init @ 0x1403c1c77
// > IDNameBrowserPopup::init @ 0x1403c1d43
// > IDNameBrowserPopup::init @ 0x1403c1d59
// > IDNameBrowserPopup::init @ 0x1403c2339
// > IDNameBrowserPopup::init @ 0x1403c234f
// > IDNameBrowserPopup::init @ 0x1403c23e7
// > IDNameBrowserPopup::init @ 0x1403c23fd
// > IDNameBrowserPopup::init @ 0x1403c278b
// > IDNameBrowserPopup::init @ 0x1403c27a1
// > IDNameBrowserPopup::init @ 0x1403c286d
// > IDNameBrowserPopup::init @ 0x1403c2883
// > IDNameInput::initCore @ 0x1403c7e99
// > IDNameInput::initCore @ 0x1403c7ec2
// > IDNameInput::initCore @ 0x1403c7fb3
// > IDNameInput::initCore @ 0x1403c7fc9
// > KeybindingsLayer::init @ 0x1403d5c0a
// > KeybindingsLayer::init @ 0x1403d5c20
// > KeybindingsLayer::init @ 0x1403d5c36
// > KeybindingsLayer::init @ 0x1403d5c55
// > LevelListLayer::init @ 0x14042bcb9
// > LevelListLayer::init @ 0x14042bccf
// > LevelSearchLayer::init @ 0x140434d2c
// > LevelSearchLayer::init @ 0x140434d42
// > MoreSearchLayer::init @ 0x14043d32a
// > MoreSearchLayer::init @ 0x14043d340
// > MoreSearchLayer::init @ 0x14043d3d6
// > MoreSearchLayer::init @ 0x14043d3ec
// > LevelSettingsLayer::init @ 0x1404597e9
// > LevelSettingsLayer::init @ 0x1404597ff
// > LevelSettingsLayer::init @ 0x140459892
// > LevelSettingsLayer::init @ 0x1404598a8
// > LevelSettingsLayer::init @ 0x140459aa7
// > LevelSettingsLayer::init @ 0x140459abd
// > LevelSettingsLayer::init @ 0x140459b50
// > LevelSettingsLayer::init @ 0x140459b66
// > MusicBrowser::init @ 0x14047ab1b
// > MusicBrowser::init @ 0x14047ab31
// > MusicBrowser::init @ 0x14047ab47
// > MusicBrowser::init @ 0x14047ab5d
// > OptionsScrollLayer::init @ 0x14047ea3f
// > OptionsScrollLayer::init @ 0x14047ea55
// > OptionsScrollLayer::init @ 0x14047ea6b
// > OptionsScrollLayer::init @ 0x14047ea81
// > MoreVideoOptionsLayer::init @ 0x1404ceeb8
// > MoreVideoOptionsLayer::init @ 0x1404ceece
// > MoreVideoOptionsLayer::init @ 0x1404cef69
// > MoreVideoOptionsLayer::init @ 0x1404cef7f
// > SecretLayer::init @ 0x14057362f
// > SecretLayer::init @ 0x140573645
// > SecretLayer2::init @ 0x140578a95
// > SecretLayer2::init @ 0x140578aab
// > SecretLayer4::init @ 0x140585f1b
// > SecretLayer4::init @ 0x140585f31
// > SecretLayer5::init @ 0x140589ccc
// > SecretLayer5::init @ 0x140589ce2
// > SetGroupIDLayer::createTextInput @ 0x140590f07
// > SetGroupIDLayer::createTextInput @ 0x140590f19
// > SetGroupIDLayer::createTextInput @ 0x140590fcc
// > SetGroupIDLayer::createTextInput @ 0x140590fde
// > SetupAnimationPopup::init @ 0x1405a0ef2
// > SetupAnimationPopup::init @ 0x1405a0f08
// > SetupAnimationPopup::init @ 0x1405a0f9b
// > SetupAnimationPopup::init @ 0x1405a0fb1
// > SetupCameraOffsetTrigger::init @ 0x1405acde5
// > SetupCameraOffsetTrigger::init @ 0x1405acdfb
// > SetupCameraOffsetTrigger::init @ 0x1405ace8b
// > SetupCameraOffsetTrigger::init @ 0x1405acea1
// > SetupCameraOffsetTrigger::init @ 0x1405ad680
// > SetupCameraOffsetTrigger::init @ 0x1405ad692
// > SetupCameraOffsetTrigger::init @ 0x1405ad70f
// > SetupCameraOffsetTrigger::init @ 0x1405ad721
// > SetupInstantCountPopup::init @ 0x1405b7f51
// > SetupInstantCountPopup::init @ 0x1405b7f67
// > SetupInstantCountPopup::init @ 0x1405b7ff7
// > SetupInstantCountPopup::init @ 0x1405b800d
// > SetupMGTrigger::init @ 0x1405bcdc0
// > SetupMGTrigger::init @ 0x1405bcdd6
// > SetupMGTrigger::init @ 0x1405bce6e
// > SetupMGTrigger::init @ 0x1405bce84
// > SetupMGTrigger::init @ 0x1405bd62c
// > SetupMGTrigger::init @ 0x1405bd642
// > SetupMGTrigger::init @ 0x1405bd6dd
// > SetupMGTrigger::init @ 0x1405bd6f3
// > SetupOpacityPopup::init @ 0x1405c03ad
// > SetupOpacityPopup::init @ 0x1405c03c3
// > SetupOpacityPopup::init @ 0x1405c045d
// > SetupOpacityPopup::init @ 0x1405c0473
// > CreateParticlePopup::createParticleSlider @ 0x1405c6272
// > CreateParticlePopup::createParticleSlider @ 0x1405c6284
// > CreateParticlePopup::createParticleSlider @ 0x1405c62ff
// > CreateParticlePopup::createParticleSlider @ 0x1405c6311
// > SetupPulsePopup::init @ 0x1405cd4a1
// > SetupPulsePopup::init @ 0x1405cd4b8
// > SetupPulsePopup::init @ 0x1405cd568
// > SetupPulsePopup::init @ 0x1405cd57f
// > SetupPulsePopup::init @ 0x1405cd948
// > SetupPulsePopup::init @ 0x1405cd95f
// > SetupPulsePopup::init @ 0x1405cda14
// > SetupPulsePopup::init @ 0x1405cda2b
// > SetupPulsePopup::init @ 0x1405cddd1
// > SetupPulsePopup::init @ 0x1405cdde8
// > SetupPulsePopup::init @ 0x1405cde9e
// > SetupPulsePopup::init @ 0x1405cdeb5
// > SetupPulsePopup::init @ 0x1405cf932
// > SetupPulsePopup::init @ 0x1405cf944
// > SetupPulsePopup::init @ 0x1405cf9d9
// > SetupPulsePopup::init @ 0x1405cf9eb
// > SetupPulsePopup::init @ 0x1405cfd67
// > SetupPulsePopup::init @ 0x1405cfd7e
// > SetupPulsePopup::init @ 0x1405cfe29
// > SetupPulsePopup::init @ 0x1405cfe40
// > SetupRandAdvTriggerPopup::init @ 0x1405d3142
// > SetupRandAdvTriggerPopup::init @ 0x1405d3158
// > SetupRandAdvTriggerPopup::init @ 0x1405d31eb
// > SetupRandAdvTriggerPopup::init @ 0x1405d3201
// > SetupRandTriggerPopup::init @ 0x1405d56d1
// > SetupRandTriggerPopup::init @ 0x1405d56e7
// > SetupRandTriggerPopup::init @ 0x1405d5781
// > SetupRandTriggerPopup::init @ 0x1405d5797
// > SetupShakePopup::init @ 0x1405eaf24
// > SetupShakePopup::init @ 0x1405eaf36
// > SetupShakePopup::init @ 0x1405eafc0
// > SetupShakePopup::init @ 0x1405eafd2
// > SetupSmartTemplateLayer::init @ 0x1405eec07
// > SetupSmartTemplateLayer::init @ 0x1405eec1d
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x14060dc38
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x14060dc5b
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x14060ddcf
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x14060dde2
// > SFXBrowser::init @ 0x140617b54
// > SFXBrowser::init @ 0x140617b6a
// > SFXBrowser::init @ 0x140617b80
// > SFXBrowser::init @ 0x140617b96
// > ShareCommentLayer::init @ 0x14062ef57
// > ??> @ 0x1409103ac
//
// 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:25:40 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall CCTextInputNode::refreshLabel(__int64 a1)
{
unsigned int v2; // ebx
_BYTE *v3; // rax
size_t v4; // r8
void **v5; // rcx
char *v6; // rbp
unsigned __int64 v7; // r14
size_t v8; // r8
int v9; // esi
char *v10; // rax
__int64 v11; // rcx
void (__fastcall ***v12)(_QWORD, __int64); // rcx
__int64 v13; // rcx
cocos2d::CCArray *v14; // rdi
struct cocos2d::CCObject *v15; // rax
cocos2d::CCArray *v16; // rdi
struct cocos2d::CCObject *v17; // rax
__int16 v18; // [rsp+30h] [rbp-78h] BYREF
char v19; // [rsp+32h] [rbp-76h]
__int128 Buf2; // [rsp+40h] [rbp-68h] BYREF
__int64 v21; // [rsp+50h] [rbp-58h]
__int64 v22; // [rsp+58h] [rbp-50h]
void *Buf1[2]; // [rsp+60h] [rbp-48h] BYREF
size_t v24; // [rsp+70h] [rbp-38h]
unsigned __int64 v25; // [rsp+78h] [rbp-30h]
if ( *(_QWORD *)(a1 + 616) || *(_QWORD *)(a1 + 632) )
{
Buf2 = 0;
v2 = 0;
v21 = 0;
v22 = 15;
LOBYTE(Buf2) = 0;
v3 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 592) + 600LL) + 8LL))(*(_QWORD *)(a1 + 592) + 600LL);
*(_OWORD *)Buf1 = 0;
v24 = 0;
v25 = 0;
v4 = -1;
do
++v4;
while ( v3[v4] );
sub_14003D230(Buf1, v3, v4);
v5 = Buf1;
v6 = (char *)Buf1[0];
v7 = v25;
if ( v25 > 0xF )
v5 = (void **)Buf1[0];
v8 = v24;
if ( v24 )
v8 = 0;
v9 = memcmp(v5, &Buf2, v8);
if ( !v9 )
v9 = v24 != 0;
if ( v7 > 0xF )
{
v10 = v6;
if ( v7 + 1 >= 0x1000 )
{
v6 = *((char **)v6 - 1);
if ( (unsigned __int64)(v10 - v6 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v6);
}
v11 = *(_QWORD *)(a1 + 616);
if ( v11 )
{
if ( v9 || *(float *)(a1 + 568) <= 0.0 )
{
if ( *(float *)(a1 + 564) > (float)(*(float *)(a1 + 560)
/ *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 320LL))(v11)) )
(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 616) + 320LL))(*(_QWORD *)(a1 + 616));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 616) + 160LL))(*(_QWORD *)(a1 + 616));
v12 = (void (__fastcall ***)(_QWORD, __int64))(*(_QWORD *)(a1 + 616) + 368LL);
if ( v9 )
(**v12)(v12, a1 + 575);
else
(**v12)(v12, a1 + 572);
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 160LL))(v11);
(**(void (__fastcall ***)(__int64, __int64))(*(_QWORD *)(a1 + 616) + 368LL))(
*(_QWORD *)(a1 + 616) + 368LL,
a1 + 572);
}
}
else
{
v13 = *(_QWORD *)(a1 + 632);
if ( v13 )
{
if ( v9 )
{
v18 = *(_WORD *)(a1 + 575);
v19 = *(_BYTE *)(a1 + 577);
v16 = *(cocos2d::CCArray **)(*(_QWORD *)(v13 + 616) + 648LL);
if ( cocos2d::CCArray::count(v16) )
{
do
{
v17 = cocos2d::CCArray::objectAtIndex(v16, v2);
(**((void (__fastcall ***)(__int64, __int16 *))v17 + 46))((__int64)v17 + 368, &v18);
++v2;
}
while ( v2 < cocos2d::CCArray::count(v16) );
}
}
else
{
v18 = *(_WORD *)(a1 + 572);
v19 = *(_BYTE *)(a1 + 574);
v14 = *(cocos2d::CCArray **)(*(_QWORD *)(v13 + 616) + 648LL);
if ( cocos2d::CCArray::count(v14) )
{
do
{
v15 = cocos2d::CCArray::objectAtIndex(v14, v2);
(**((void (__fastcall ***)(__int64, __int16 *))v15 + 46))((__int64)v15 + 368, &v18);
++v2;
}
while ( v2 < cocos2d::CCArray::count(v14) );
}
}
}
}
}
}