//
// CCTextInputNode::refreshLabel from 0x14004fbb0 to 0x14004fe90 (736 bytes)
//
// 245 xrefs:
// > CCTextInputNode::updateLabel @ 0x14004fa7b
// > AccountRegisterLayer::init @ 0x140079254
// > AccountRegisterLayer::init @ 0x1400794c1
// > AccountRegisterLayer::createTextInput @ 0x140079c2a
// > AccountRegisterLayer::createTextInput @ 0x140079c8a
// > AccountRegisterLayer::createTextInput @ 0x140079c9c
// > AccountLoginLayer::init @ 0x14007c0ab
// > AccountLoginLayer::createTextInput @ 0x14007c708
// > AccountLoginLayer::createTextInput @ 0x14007c765
// > AccountLoginLayer::createTextInput @ 0x14007c777
// > CollisionBlockPopup::init @ 0x14008b14e
// > CollisionBlockPopup::init @ 0x14008b164
// > CollisionBlockPopup::init @ 0x14008b221
// > CollisionBlockPopup::init @ 0x14008b237
// > ColorSelectPopup::init @ 0x14008e227
// > ColorSelectPopup::init @ 0x14008e23d
// > ColorSelectPopup::init @ 0x14008e2f9
// > ColorSelectPopup::init @ 0x14008e30f
// > ColorSelectPopup::init @ 0x14008f516
// > ColorSelectPopup::init @ 0x14008f52c
// > ColorSelectPopup::init @ 0x14008f5ed
// > ColorSelectPopup::init @ 0x14008f603
// > ColorSelectPopup::init @ 0x14008faa9
// > ColorSelectPopup::init @ 0x14008fabf
// > ColorSelectPopup::init @ 0x14008fb95
// > ColorSelectPopup::init @ 0x14008fbab
// > ColorSelectPopup::init @ 0x140090201
// > ColorSelectPopup::init @ 0x140090213
// > ColorSelectPopup::init @ 0x1400902de
// > ColorSelectPopup::init @ 0x1400902f0
// > ConfigureHSVWidget::createTextInputNode @ 0x140097520
// > ConfigureHSVWidget::createTextInputNode @ 0x140097532
// > ConfigureValuePopup::init @ 0x140098b8f
// > ConfigureValuePopup::init @ 0x140098ba5
// > ConfigureValuePopup::init @ 0x140098cd4
// > ConfigureValuePopup::init @ 0x140098cea
// > CreateGuidelinesLayer::init @ 0x14009a3a6
// > CreateGuidelinesLayer::init @ 0x14009a3bc
// > CreateGuidelinesLayer::init @ 0x14009a476
// > CreateGuidelinesLayer::init @ 0x14009a48c
// > CustomizeObjectLayer::init @ 0x1400a66f2
// > CustomizeObjectLayer::init @ 0x1400a6708
// > CustomizeObjectLayer::init @ 0x1400a67c6
// > CustomizeObjectLayer::init @ 0x1400a67dc
// > CustomizeObjectLayer::init @ 0x1400a7384
// > CustomizeObjectLayer::init @ 0x1400a739a
// > CustomizeObjectLayer::init @ 0x1400a74b2
// > CustomizeObjectLayer::init @ 0x1400a74c8
// > CustomSongLayer::init @ 0x1400c35c0
// > CustomSongLayer::init @ 0x1400c35d6
// > CustomSongLayer::init @ 0x1400c36a1
// > CustomSongLayer::init @ 0x1400c36b7
// > SongOptionsLayer::init @ 0x1400c4d75
// > SongOptionsLayer::init @ 0x1400c4d8b
// > SongOptionsLayer::init @ 0x1400c4e41
// > SongOptionsLayer::init @ 0x1400c4e57
// > EditLevelLayer::init @ 0x1400d5aca
// > EditLevelLayer::init @ 0x1400d5adc
// > EditLevelLayer::init @ 0x1400d5e1e
// > GJFollowCommandLayer::init @ 0x140270c6d
// > GJFollowCommandLayer::init @ 0x140270c83
// > GJFollowCommandLayer::init @ 0x140270d3c
// > GJFollowCommandLayer::init @ 0x140270d52
// > GJFollowCommandLayer::init @ 0x1402710c1
// > GJFollowCommandLayer::init @ 0x1402710d3
// > GJFollowCommandLayer::init @ 0x140271169
// > GJFollowCommandLayer::init @ 0x14027117b
// > GJFollowCommandLayer::init @ 0x14027170c
// > GJFollowCommandLayer::init @ 0x14027171e
// > GJFollowCommandLayer::init @ 0x1402717b7
// > GJFollowCommandLayer::init @ 0x1402717c9
// > GJGarageLayer::init @ 0x140273508
// > GJGarageLayer::init @ 0x14027351e
// > GJPFollowCommandLayer::init @ 0x14028ad5c
// > GJPFollowCommandLayer::init @ 0x14028ad72
// > GJPFollowCommandLayer::init @ 0x14028ae31
// > GJPFollowCommandLayer::init @ 0x14028ae47
// > GJPFollowCommandLayer::init @ 0x14028b1b0
// > GJPFollowCommandLayer::init @ 0x14028b1c2
// > GJPFollowCommandLayer::init @ 0x14028b255
// > GJPFollowCommandLayer::init @ 0x14028b267
// > GJPFollowCommandLayer::init @ 0x14028b689
// > GJPFollowCommandLayer::init @ 0x14028b69b
// > GJPFollowCommandLayer::init @ 0x14028b73a
// > GJPFollowCommandLayer::init @ 0x14028b74c
// > GJPFollowCommandLayer::init @ 0x14028bb35
// > GJPFollowCommandLayer::init @ 0x14028bb4b
// > GJPFollowCommandLayer::init @ 0x14028bc0a
// > GJPFollowCommandLayer::init @ 0x14028bc20
// > GJPFollowCommandLayer::init @ 0x14028be0a
// > GJPFollowCommandLayer::init @ 0x14028be20
// > GJPFollowCommandLayer::init @ 0x14028bedf
// > GJPFollowCommandLayer::init @ 0x14028bef5
// > GJAccountSettingsLayer::init @ 0x1402935ee
// > GJAccountSettingsLayer::init @ 0x140293600
// > GJAccountSettingsLayer::init @ 0x1402936e2
// > GJAccountSettingsLayer::init @ 0x1402936f4
// > SetIDPopup::init @ 0x14029b876
// > SetIDPopup::init @ 0x14029b88c
// > SetIDPopup::init @ 0x14029b94a
// > SetIDPopup::init @ 0x14029b960
// > SetTextPopup::init @ 0x14029d4e6
// > SetTextPopup::init @ 0x14029d4fc
// > SetTextPopup::init @ 0x14029d621
// > SetTextPopup::init @ 0x14029d637
// > LevelListLayer::init @ 0x140303fd5
// > LevelListLayer::init @ 0x140303feb
// > LevelSearchLayer::init @ 0x14030ca24
// > LevelSearchLayer::init @ 0x14030ca3a
// > MoreSearchLayer::init @ 0x1403144b1
// > MoreSearchLayer::init @ 0x1403144c7
// > MoreSearchLayer::init @ 0x14031457c
// > MoreSearchLayer::init @ 0x140314592
// > LevelSettingsLayer::init @ 0x140320622
// > LevelSettingsLayer::init @ 0x140320638
// > LevelSettingsLayer::init @ 0x1403206f2
// > LevelSettingsLayer::init @ 0x140320708
// > LevelSettingsLayer::init @ 0x1403208d8
// > LevelSettingsLayer::init @ 0x1403208ee
// > LevelSettingsLayer::init @ 0x1403209a9
// > LevelSettingsLayer::init @ 0x1403209bf
// > MoreOptionsLayer::init @ 0x140374673
// > MoreOptionsLayer::init @ 0x140374689
// > MoreOptionsLayer::init @ 0x14037474e
// > MoreOptionsLayer::init @ 0x140374764
// > MoreVideoOptionsLayer::init @ 0x140379164
// > MoreVideoOptionsLayer::init @ 0x14037917a
// > MoreVideoOptionsLayer::init @ 0x140379240
// > MoreVideoOptionsLayer::init @ 0x140379256
// > SecretLayer::init @ 0x1403ddb0a
// > SecretLayer::init @ 0x1403ddb20
// > SecretLayer2::init @ 0x1403e2ec2
// > SecretLayer2::init @ 0x1403e2ed8
// > SecretLayer4::init @ 0x1403f063f
// > SecretLayer4::init @ 0x1403f0655
// > SecretLayer5::init @ 0x1403f463f
// > SecretLayer5::init @ 0x1403f4655
// > SetGroupIDLayer::createTextInput @ 0x1403fadbe
// > SetGroupIDLayer::createTextInput @ 0x1403fadd0
// > SetGroupIDLayer::createTextInput @ 0x1403faee3
// > SetGroupIDLayer::createTextInput @ 0x1403faef5
// > SetupAnimationPopup::init @ 0x140409835
// > SetupAnimationPopup::init @ 0x140409847
// > SetupAnimationPopup::init @ 0x1404098e5
// > SetupAnimationPopup::init @ 0x1404098f7
// > SetupCameraEdgePopup::init @ 0x1404131c1
// > SetupCameraEdgePopup::init @ 0x1404131d7
// > SetupCameraEdgePopup::init @ 0x140413293
// > SetupCameraEdgePopup::init @ 0x1404132a9
// > SetupCameraOffsetTrigger::init @ 0x14041599d
// > SetupCameraOffsetTrigger::init @ 0x1404159b3
// > SetupCameraOffsetTrigger::init @ 0x140415a6b
// > SetupCameraOffsetTrigger::init @ 0x140415a81
// > SetupCameraOffsetTrigger::init @ 0x140416223
// > SetupCameraOffsetTrigger::init @ 0x140416235
// > SetupCameraOffsetTrigger::init @ 0x1404162d5
// > SetupCameraOffsetTrigger::init @ 0x1404162e7
// > SetupCollisionTriggerPopup::init @ 0x140418c1d
// > SetupCollisionTriggerPopup::init @ 0x140418c2f
// > SetupCollisionTriggerPopup::init @ 0x140418ccd
// > SetupCollisionTriggerPopup::init @ 0x140418cdf
// > SetupCountTriggerPopup::init @ 0x14041b89f
// > SetupCountTriggerPopup::init @ 0x14041b8b1
// > SetupCountTriggerPopup::init @ 0x14041b9b9
// > SetupCountTriggerPopup::init @ 0x14041b9cb
// > SetupEndPopup::init @ 0x14041d0ce
// > SetupEndPopup::init @ 0x14041d0e4
// > SetupEndPopup::init @ 0x14041d199
// > SetupEndPopup::init @ 0x14041d1af
// > SetupInstantCountPopup::init @ 0x140422cc3
// > SetupInstantCountPopup::init @ 0x140422cd5
// > SetupInstantCountPopup::init @ 0x140422ddf
// > SetupInstantCountPopup::init @ 0x140422df1
// > SetupMGTrigger::init @ 0x14042777e
// > SetupMGTrigger::init @ 0x140427794
// > SetupMGTrigger::init @ 0x14042784d
// > SetupMGTrigger::init @ 0x140427863
// > SetupMGTrigger::init @ 0x140427fd9
// > SetupMGTrigger::init @ 0x140427fef
// > SetupMGTrigger::init @ 0x1404280a8
// > SetupMGTrigger::init @ 0x1404280be
// > SetupOpacityPopup::init @ 0x14042ab30
// > SetupOpacityPopup::init @ 0x14042ab46
// > SetupOpacityPopup::init @ 0x14042ac02
// > SetupOpacityPopup::init @ 0x14042ac18
// > SetupOpacityPopup::init @ 0x14042afa5
// > SetupOpacityPopup::init @ 0x14042afbb
// > SetupOpacityPopup::init @ 0x14042b088
// > SetupOpacityPopup::init @ 0x14042b09e
// > CreateParticlePopup::createParticleSlider @ 0x140430c18
// > CreateParticlePopup::createParticleSlider @ 0x140430c2a
// > CreateParticlePopup::createParticleSlider @ 0x140430ccd
// > CreateParticlePopup::createParticleSlider @ 0x140430cdf
// > SetupPulsePopup::init @ 0x140437b8e
// > SetupPulsePopup::init @ 0x140437ba4
// > SetupPulsePopup::init @ 0x140437c65
// > SetupPulsePopup::init @ 0x140437c7b
// > SetupPulsePopup::init @ 0x140438015
// > SetupPulsePopup::init @ 0x14043802b
// > SetupPulsePopup::init @ 0x1404380ed
// > SetupPulsePopup::init @ 0x140438103
// > SetupPulsePopup::init @ 0x140438482
// > SetupPulsePopup::init @ 0x140438498
// > SetupPulsePopup::init @ 0x140438578
// > SetupPulsePopup::init @ 0x14043858e
// > SetupPulsePopup::init @ 0x140438bb7
// > SetupPulsePopup::init @ 0x140438bcd
// > SetupPulsePopup::init @ 0x140438ca0
// > SetupPulsePopup::init @ 0x140438cb6
// > SetupPulsePopup::init @ 0x14043a058
// > SetupPulsePopup::init @ 0x14043a06a
// > SetupPulsePopup::init @ 0x14043a13f
// > SetupPulsePopup::init @ 0x14043a151
// > SetupPulsePopup::init @ 0x14043a4a2
// > SetupPulsePopup::init @ 0x14043a4b8
// > SetupPulsePopup::init @ 0x14043a58e
// > SetupPulsePopup::init @ 0x14043a5a4
// > SetupRandAdvTriggerPopup::init @ 0x14043d922
// > SetupRandAdvTriggerPopup::init @ 0x14043d934
// > SetupRandAdvTriggerPopup::init @ 0x14043d9cb
// > SetupRandAdvTriggerPopup::init @ 0x14043d9dd
// > SetupRandTriggerPopup::init @ 0x140440110
// > SetupRandTriggerPopup::init @ 0x140440122
// > SetupRandTriggerPopup::init @ 0x1404401b7
// > SetupRandTriggerPopup::init @ 0x1404401c9
// > SetupRandTriggerPopup::init @ 0x140440562
// > SetupRandTriggerPopup::init @ 0x140440578
// > SetupRandTriggerPopup::init @ 0x140440643
// > SetupRandTriggerPopup::init @ 0x140440659
// > SetupShakePopup::init @ 0x14045564d
// > SetupShakePopup::init @ 0x14045565f
// > SetupShakePopup::init @ 0x14045570c
// > SetupShakePopup::init @ 0x14045571e
// > SetupSmartTemplateLayer::init @ 0x14045922d
// > SetupSmartTemplateLayer::init @ 0x140459243
// > SetupTouchTogglePopup::init @ 0x140464265
// > SetupTouchTogglePopup::init @ 0x14046427b
// > SetupTouchTogglePopup::init @ 0x140464330
// > SetupTouchTogglePopup::init @ 0x140464346
// > SetupTriggerPopup::createValueControlAdvanced @ 0x140476491
// > SetupTriggerPopup::createValueControlAdvanced @ 0x1404764af
// > SetupTriggerPopup::createValueControlAdvanced @ 0x140476632
// > SetupTriggerPopup::createValueControlAdvanced @ 0x140476644
// > ShareCommentLayer::init @ 0x14048df47
// > ??> @ 0x1406c4cec
//
// 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 CCTextInputNode::refreshLabel(CCTextInputNode *a1)
{
unsigned int v2; // ebx
const char *v3; // rax
size_t v4; // r8
void **v5; // rcx
char *v6; // rbp
unsigned __int64 v7; // r14
size_t v8; // r8
__int64 v9; // rsi
char *v10; // rax
cocos2d::CCLabelBMFont *m_textLabel; // rcx
TextArea *m_textArea; // rcx
cocos2d::CCArray *v13; // rdi
struct cocos2d::CCObject *v14; // rax
cocos2d::CCArray *m_lines; // rdi
struct cocos2d::CCObject *v16; // rax
__int16 v17; // [rsp+20h] [rbp-78h] BYREF
GLubyte b; // [rsp+22h] [rbp-76h]
void *Buf1[2]; // [rsp+30h] [rbp-68h] BYREF
size_t v20; // [rsp+40h] [rbp-58h]
unsigned __int64 v21; // [rsp+48h] [rbp-50h]
__int128 Buf2; // [rsp+50h] [rbp-48h] BYREF
__int64 v23; // [rsp+60h] [rbp-38h]
__int64 v24; // [rsp+68h] [rbp-30h]
if ( a1->m_textLabel || a1->m_textArea )
{
Buf2 = 0;
v2 = 0;
v23 = 0;
v24 = 15;
LOBYTE(Buf2) = 0;
v3 = a1->m_textField->getString(&a1->m_textField->cocos2d::CCLabelProtocol);
*(_OWORD *)Buf1 = 0;
v20 = 0;
v21 = 0;
v4 = -1;
do
++v4;
while ( v3[v4] );
sub_14003A930(Buf1, v3, v4);
v5 = Buf1;
v6 = (char *)Buf1[0];
v7 = v21;
if ( v21 > 0xF )
v5 = (void **)Buf1[0];
v8 = v20;
if ( v20 )
v8 = 0;
LODWORD(v9) = memcmp(v5, &Buf2, v8);
if ( !(_DWORD)v9 )
v9 = v20 != 0;
if ( v7 > 0xF )
{
v10 = v6;
if ( v7 + 1 >= 0x1000 )
{
v6 = *((char **)v6 - 1);
if ( (unsigned __int64)(v10 - v6 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v6);
}
m_textLabel = a1->m_textLabel;
if ( m_textLabel )
{
if ( !(_DWORD)v9 && a1->m_placeholderScale > 0.0 )
{
((void (__fastcall *)(cocos2d::CCLabelBMFont *))m_textLabel->setScale_0)(m_textLabel);
LABEL_23:
a1->m_textLabel->setColor(&a1->m_textLabel->cocos2d::CCRGBAProtocol, &a1->m_placeholderColor);
return;
}
if ( a1->m_maxLabelScale > (float)(a1->m_maxLabelWidth / m_textLabel->getContentSize(m_textLabel)->width) )
a1->m_textLabel->getContentSize(a1->m_textLabel);
((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_textLabel->setScale_0)(a1->m_textLabel);
if ( !(_DWORD)v9 )
goto LABEL_23;
a1->m_textLabel->setColor(&a1->m_textLabel->cocos2d::CCRGBAProtocol, &a1->m_textColor);
}
else
{
m_textArea = a1->m_textArea;
if ( m_textArea )
{
if ( (_DWORD)v9 )
{
v17 = *(_WORD *)&a1->m_textColor.r;
b = a1->m_textColor.b;
m_lines = m_textArea->m_label->m_lines;
if ( cocos2d::CCArray::count(m_lines) )
{
do
{
v16 = cocos2d::CCArray::objectAtIndex(m_lines, v2);
(**(void (__fastcall ***)(__int64, __int16 *))&v16[6].m_uIndexInArray)(
(__int64)&v16[6].m_uIndexInArray,
&v17);
++v2;
}
while ( v2 < cocos2d::CCArray::count(m_lines) );
}
}
else
{
v17 = *(_WORD *)&a1->m_placeholderColor.r;
b = a1->m_placeholderColor.b;
v13 = m_textArea->m_label->m_lines;
if ( cocos2d::CCArray::count(v13) )
{
do
{
v14 = cocos2d::CCArray::objectAtIndex(v13, v2);
(**(void (__fastcall ***)(__int64, __int16 *))&v14[6].m_uIndexInArray)(
(__int64)&v14[6].m_uIndexInArray,
&v17);
++v2;
}
while ( v2 < cocos2d::CCArray::count(v13) );
}
}
}
}
}
}