//
// CCTextInputNode::setString from 0x100067040 to 0x1000670f2 (178 bytes)
//
// 183 xrefs:
// > sub_10001D250 @ 0x10001d314
// > sub_10001D580 @ 0x10001d685
// > CCTextInputNode::insertAtCursor @ 0x1000674e6
// > CCTextInputNode::onTextFieldDeleteBackward @ 0x100068879
// > CCTextInputNode::onTextFieldInsertText @ 0x10006a3df
// > CCTextInputNode::onTextFieldAttachWithIME @ 0x10006aaf4
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x10006b376
// > sub_10006CFC0 @ 0x10006cfe7
// > CCTextInputNode::scrollWheel @ 0x10006d5ca
// > CustomizeObjectLayer::init @ 0x1001d9091
// > CustomizeObjectLayer::updateCustomColorLabels @ 0x1001da163
// > CustomizeObjectLayer::updateKerningLabel @ 0x1001da428
// > CustomizeObjectLayer::onClear @ 0x1001da5ca
// > EditLevelLayer::init @ 0x1001dd46f
// > EditLevelLayer::init @ 0x1001dd938
// > EditLevelLayer::textChanged @ 0x1001e0248
// > EditLevelLayer::creatorDescriptionChanged @ 0x1001e0937
// > SongOptionsLayer::init @ 0x1001fa648
// > SetupTriggerPopup::updateInputNode @ 0x10022314f
// > SetupTriggerPopup::updateInputNodeLabel @ 0x100223542
// > LevelSettingsLayer::init @ 0x10025725a
// > LevelSettingsLayer::init @ 0x100257516
// > StartPosLayer::updateInputNode @ 0x10025dbfd
// > sub_10028E090 @ 0x10028e913
// > GJWriteMessagePopup::init @ 0x10029619c
// > GJWriteMessagePopup::init @ 0x10029620a
// > GJWriteMessagePopup::FLAlert_Clicked @ 0x1002975bf
// > sub_100297600 @ 0x10029762c
// > SetIDPopup::updateTextInputLabel @ 0x100298be0
// > SetColorIDPopup::colorSelectClosed @ 0x1002997f9
// > sub_10029AA90 @ 0x10029b5a9
// > SetTextPopup::onResetValue @ 0x10029b86d
// > SetTextPopup::updateTextInputLabel @ 0x10029b92b
// > SetupTouchTogglePopup::updateTextInputLabel @ 0x1002a7504
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x1002bce44
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x1002bce8d
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x1002bceca
// > SetupShaderEffectPopup::valueDidChange @ 0x1002bd5d2
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x1002f4054
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x1002f409d
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x1002f40da
// > SetupAdvFollowPopup::valueDidChange @ 0x1002f431c
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x1002f6794
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x1002f67dd
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x1002f681a
// > SetupAdvFollowRetargetPopup::valueDidChange @ 0x1002f6a60
// > sub_1003001F0 @ 0x100300277
// > sub_1003001F0 @ 0x1003002d7
// > SetGroupIDLayer::updateOrderChannelLabel @ 0x1003003b7
// > SetGroupIDLayer::updateOrderChannelLabel @ 0x100300417
// > sub_1003005A0 @ 0x100300671
// > sub_1003006D0 @ 0x1003007a1
// > sub_1003007F0 @ 0x1003008c1
// > sub_100300910 @ 0x100300a0c
// > LevelListLayer::init @ 0x100348d80
// > GJGarageLayer::init @ 0x100352cff
// > GJGarageLayer::init @ 0x100352ea2
// > GJGarageLayer::textInputOpened @ 0x100355bd4
// > GJGarageLayer::textInputClosed @ 0x100355db1
// > SetupRandAdvTriggerPopup::init @ 0x100378df9
// > SetupCollisionTriggerPopup::updateSpecialNodes @ 0x100380baa
// > SetupCollisionTriggerPopup::updateSpecialNodes @ 0x100380bdf
// > SetupCollisionTriggerPopup::updateSpecialNodes @ 0x100380c70
// > SetupCollisionTriggerPopup::updateSpecialNodes @ 0x100380cb0
// > SetupCollisionTriggerPopup::updateSpecialNodes @ 0x100380cfc
// > SetupCollisionTriggerPopup::updateSpecialNodes @ 0x100380d2c
// > SetupCollisionTriggerPopup::updateSpecialNodes @ 0x100380d59
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x1003815d2
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x10038162b
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100381690
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x1003816db
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100381734
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100381764
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100381791
// > sub_100396B00 @ 0x100396c05
// > sub_100396C50 @ 0x100396d55
// > sub_100396DA0 @ 0x100396ea5
// > SetupPulsePopup::updateTextInputLabel @ 0x100397a26
// > sub_100397B40 @ 0x100397c17
// > SetupPulsePopup::colorSelectClosed @ 0x1003984c8
// > SetupPulsePopup::colorSelectClosed @ 0x100398566
// > sub_100398E90 @ 0x100398f73
// > sub_100398E90 @ 0x100399037
// > sub_100398E90 @ 0x1003990f5
// > sub_100398E90 @ 0x1003991cc
// > SecretLayer4::onSubmit @ 0x10039b716
// > sub_1003BEA60 @ 0x1003beb24
// > sub_1003BEB70 @ 0x1003bec34
// > sub_1003C6180 @ 0x1003c6244
// > ConfigureHSVWidget::updateLabels @ 0x10041e1b9
// > ConfigureHSVWidget::updateLabels @ 0x10041e2a1
// > ConfigureHSVWidget::updateLabels @ 0x10041e435
// > sub_10042E530 @ 0x10042e679
// > sub_10042E530 @ 0x10042e74b
// > sub_10042E7C0 @ 0x10042e7df
// > SFXBrowser::setupSFXBrowser @ 0x100430439
// > SFXBrowser::cellPerformedAction @ 0x100434c45
// > CreateParticlePopup::updateInputNodeStringForType @ 0x1004697bb
// > SecretLayer5::onSubmit @ 0x10046fe2c
// > MPLobbyLayer::postComment @ 0x10048aed6
// > AccountLoginLayer::init @ 0x1004917f1
// > SecretLayer2::onSubmit @ 0x100497616
// > sub_1004B6980 @ 0x1004b6a85
// > sub_1004B6EE0 @ 0x1004b6fbe
// > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0x1004d043b
// > SetupSmartTemplateLayer::init @ 0x1004e2ac4
// > sub_10050AEF0 @ 0x10050aff5
// > sub_10050B460 @ 0x10050b54a
// > sub_100640FB0 @ 0x100641075
// > GJScaleControl::updateLabelX @ 0x1006429f5
// > GJScaleControl::updateLabelXY @ 0x100642b05
// > GJScaleControl::updateLabelY @ 0x100642c15
// > sub_100648E90 @ 0x100648f54
// > ShareCommentLayer::init @ 0x1006b249a
// > ShareCommentLayer::onClear @ 0x1006b2984
// > sub_1006B9770 @ 0x1006b985c
// > sub_1006B98F0 @ 0x1006b99dc
// > sub_1006B9B30 @ 0x1006b9c35
// > SetupInstantCountPopup::updateItemIDInputLabel @ 0x1006bccd4
// > SetupInstantCountPopup::updateTargetIDInputLabel @ 0x1006bcde4
// > SetupInstantCountPopup::updateCountTextInputLabel @ 0x1006bcef4
// > SecretLayer::onSubmit @ 0x1006d2a57
// > KeybindingsLayer::init @ 0x1006e1de5
// > KeybindingsLayer::onClearSearch @ 0x1006e1e9f
// > MusicBrowser::onToggleSearch @ 0x1006e8b4d
// > MusicBrowser::onToggleSearch @ 0x1006e8c27
// > MusicBrowser::onClearSearchText @ 0x1006e8caf
// > MusicBrowser::setupMusicBrowser @ 0x1006e9b50
// > OptionsScrollLayer::onClearSearchText @ 0x1006eba6f
// > ConfigureValuePopup::updateTextInputLabel @ 0x100701da6
// > LevelSearchLayer::onClearFreeSearch @ 0x10070737a
// > MoreSearchLayer::init @ 0x10070aef4
// > MoreSearchLayer::onSongMode @ 0x10070b81f
// > FriendsProfilePage::onClearSearch @ 0x100735c74
// > sub_100741E10 @ 0x100741f15
// > sub_1007424B0 @ 0x10074259a
// > sub_1007425F0 @ 0x1007426da
// > sub_100744120 @ 0x100744225
// > sub_100744270 @ 0x100744375
// > sub_1007443C0 @ 0x1007444c5
// > sub_1007485A0 @ 0x100748664
// > ColorSelectPopup::updateDurLabel @ 0x1008068a0
// > ColorSelectPopup::updateTextInputLabel @ 0x1008073f7
// > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x100807787
// > sub_100808310 @ 0x1008083f3
// > sub_100808310 @ 0x1008084b7
// > sub_100808310 @ 0x100808575
// > sub_100808310 @ 0x10080864c
// > ColorSelectPopup::colorSelectClosed @ 0x10080a248
// > ColorSelectPopup::colorSelectClosed @ 0x10080a2e6
// > sub_1008701D0 @ 0x1008701f2
// > MoreOptionsLayer::init @ 0x10087db0e
// > MoreVideoOptionsLayer::onApplyFPS @ 0x1008841a4
// > sub_1008C8B30 @ 0x1008c8f7b
// > sub_1008F3770 @ 0x1008f55ed
// > SoundPackDescPopup::init @ 0x1008fa678
// > sub_1008FD5B0 @ 0x1008fdd89
// > sub_1008FDFA0 @ 0x1008fdfbf
// > IDNameBrowserPopup::onFormAdd @ 0x10090b1ca
// > sub_10090B2D0 @ 0x10090b3a3
// > sub_10090C0E0 @ 0x10090c212
// > sub_100914C70 @ 0x100914d34
// > sub_100915F90 @ 0x100915ff4
// > MessageThreadsPage::onClearSearch @ 0x1009299c2
// > sub_10092F790 @ 0x10092faf1
// > sub_100932C10 @ 0x100932e83
// > ThreadViewPopup::threadSendFailed @ 0x100934887
// > sub_10093DFF0 @ 0x10093e0cb
// > sub_10093EE20 @ 0x10093eef7
// > sub_10093F1B0 @ 0x10093f2dd
// > NewThreadPopup::init @ 0x100944f90
// > NewThreadPopup::applyMode @ 0x100947082
// > sub_100947980 @ 0x100947c1a
// > sub_10094C460 @ 0x10094c482
// > sub_10094F400 @ 0x10094f883
// > ThreadSearchPopup::init @ 0x100951089
// > sub_100951820 @ 0x100951a65
// > ThreadSearchPopup::textChanged @ 0x100951ee1
// > ThreadSearchPopup::textChanged @ 0x100951f7a
// > ThreadDescPopup::buildUI @ 0x100952a7e
// > SFXFolderPickerPopup::init @ 0x100971ed9
// > sub_10097DC40 @ 0x10097dc5f
// > MoveStepPopup::onReset @ 0x10098dc72
//
// 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:19:43 +0000
//
void __fastcall CCTextInputNode::setString(_QWORD *a1, __int64 a2)
{
__int64 v3; // rdi
void (__fastcall ***v4)(_QWORD, _QWORD *); // rdi
void (__fastcall ***v5)(_QWORD, _QWORD *); // rdi
std::string v6[2]; // [rsp+0h] [rbp-30h] BYREF
v3 = a1[72];
if ( (*(_BYTE *)a2 & 1) != 0 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1240LL))(v3, *(_QWORD *)(a2 + 16));
if ( (*(_BYTE *)a2 & 1) != 0 )
goto LABEL_3;
}
else
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1240LL))(v3, a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
{
LABEL_3:
sub_10001AD30(v6, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8));
goto LABEL_6;
}
}
v6[0] = *(std::string *)a2;
LABEL_6:
CCTextInputNode::updateLabel((__int64)a1, v6);
if ( (*(_BYTE *)&v6[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v6[0].__r_.__value_.__l.__data_);
v4 = (void (__fastcall ***)(_QWORD, _QWORD *))a1[73];
if ( v4 )
(**v4)(v4, a1);
v5 = (void (__fastcall ***)(_QWORD, _QWORD *))a1[62];
if ( v5 )
(**v5)(v5, a1);
}