//
// CCTextInputNode::setString from 0x2faae4 to 0x2fab44 (96 bytes)
//
// 142 xrefs:
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x2fad70
// > CCTextInputNode::onTextFieldInsertText @ 0x2faf38
// > CCTextInputNode::onTextFieldAttachWithIME @ 0x2fb07a
// > LevelSearchLayer::onClearFreeSearch @ 0x3ac126
// > LevelSearchLayer::onPasteClipboard @ 0x3aca86
// > MoreSearchLayer::onSongMode @ 0x3af580
// > MoreSearchLayer::init @ 0x3b0470
// > EditLevelLayer::init @ 0x3b7768
// > EditLevelLayer::init @ 0x3b7870
// > ColorSelectPopup::updateDurLabel @ 0x3da068
// > ColorSelectPopup::updateTextInputLabel @ 0x3da526
// > ColorSelectPopup::colorSelectClosed @ 0x3da75a
// > ColorSelectPopup::colorSelectClosed @ 0x3da7c4
// > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x3da87e
// > ColorSelectPopup::updateColorLabels @ 0x3dca3a
// > ColorSelectPopup::updateColorLabels @ 0x3dca66
// > ColorSelectPopup::updateColorLabels @ 0x3dca92
// > ColorSelectPopup::updateColorLabels @ 0x3dcab8
// > GJGarageLayer::textInputOpened @ 0x40280e
// > GJGarageLayer::textInputClosed @ 0x40290c
// > GJGarageLayer::init @ 0x40720c
// > GJGarageLayer::init @ 0x407322
// > MoreOptionsLayer::init @ 0x42412a
// > MoreVideoOptionsLayer::onApplyFPS @ 0x4265de
// > ShareCommentLayer::init @ 0x43259c
// > ShareCommentLayer::onClear @ 0x4327f2
// > SongOptionsLayer::init @ 0x45fcec
// > CustomizeObjectLayer::onClear @ 0x4611d6
// > CustomizeObjectLayer::updateKerningLabel @ 0x46152e
// > CustomizeObjectLayer::updateCustomColorLabels @ 0x461ca0
// > CustomizeObjectLayer::init @ 0x46377c
// > AccountLoginLayer::init @ 0x469880
// > GJWriteMessagePopup::FLAlert_Clicked @ 0x4a80f0
// > SetColorIDPopup::colorSelectClosed @ 0x4a8954
// > GJWriteMessagePopup::init @ 0x4af1a4
// > GJWriteMessagePopup::init @ 0x4af1c0
// > SetIDPopup::updateTextInputLabel @ 0x4af716
// > SetTextPopup::updateTextInputLabel @ 0x4b050c
// > GJAccountSettingsLayer::init @ 0x4b641c
// > ConfigureHSVWidget::updateLabels @ 0x4b6caa
// > ConfigureHSVWidget::updateLabels @ 0x4b6ce6
// > ConfigureHSVWidget::updateLabels @ 0x4b6d22
// > SetupOpacityPopup::updateDurLabel @ 0x4ba856
// > SetupOpacityPopup::updateTextInputLabel @ 0x4ba902
// > SetupPulsePopup::updateFadeInLabel @ 0x4bd352
// > SetupPulsePopup::updateHoldLabel @ 0x4bd40e
// > SetupPulsePopup::updateFadeOutLabel @ 0x4bd4ca
// > SetupPulsePopup::updateColorLabels @ 0x4bda32
// > SetupPulsePopup::updateColorLabels @ 0x4bda5e
// > SetupPulsePopup::updateColorLabels @ 0x4bda8a
// > SetupPulsePopup::updateColorLabels @ 0x4bdab0
// > SetupPulsePopup::colorSelectClosed @ 0x4bdc36
// > SetupPulsePopup::colorSelectClosed @ 0x4bdc9a
// > SetupPulsePopup::updateTextInputLabel @ 0x4be1b2
// > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x4be40e
// > SecretLayer::onSubmit @ 0x4ca908
// > CollisionBlockPopup::updateTextInputLabel @ 0x4cd6ae
// > ConfigureValuePopup::updateTextInputLabel @ 0x4cf99c
// > GJFollowCommandLayer::updateDurLabel @ 0x4db9a2
// > GJFollowCommandLayer::updateXModLabel @ 0x4dba38
// > GJFollowCommandLayer::updateYModLabel @ 0x4dbacc
// > GJFollowCommandLayer::updateTextInputLabel @ 0x4dbb50
// > GJFollowCommandLayer::updateTextInputLabel2 @ 0x4dbbd4
// > GJPFollowCommandLayer::updateDurLabel @ 0x4dd18a
// > GJPFollowCommandLayer::updateXModLabel @ 0x4dd220
// > GJPFollowCommandLayer::updateYModLabel @ 0x4dd2b4
// > GJPFollowCommandLayer::updateOffsetLabel @ 0x4dd35c
// > GJPFollowCommandLayer::updateMaxSpeedLabel @ 0x4dd3f0
// > GJPFollowCommandLayer::updateTextInputLabel @ 0x4dd474
// > GJRotateCommandLayer::updateDurLabel @ 0x4df16e
// > GJRotateCommandLayer::updateDegreesLabel @ 0x4df20e
// > GJRotateCommandLayer::updateTimesLabel @ 0x4df2a0
// > GJRotateCommandLayer::updateTextInputLabel @ 0x4df324
// > GJRotateCommandLayer::updateTextInputLabel2 @ 0x4df3a8
// > SecretLayer2::onSubmit @ 0x4ed44a
// > SecretLayer4::onSubmit @ 0x4f11b4
// > SetupAnimationPopup::updateTextInputLabel @ 0x4f301a
// > SetupAnimationPopup::updateAnimationTextInputLabel @ 0x4f3086
// > SetupCollisionTriggerPopup::updateItemIDInputLabel @ 0x4f459c
// > SetupCollisionTriggerPopup::updateItemID2InputLabel @ 0x4f46fc
// > SetupCollisionTriggerPopup::updateTargetIDInputLabel @ 0x4f47fa
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x4f5852
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x4f5882
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x4f5894
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x4f58ac
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x4f58d4
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x4f5904
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x4f592c
// > SetupCountTriggerPopup::updateItemIDInputLabel @ 0x4f5ee2
// > SetupCountTriggerPopup::updateTargetIDInputLabel @ 0x4f5f4e
// > SetupCountTriggerPopup::updateCountTextInputLabel @ 0x4f5fba
// > SetupInstantCountPopup::updateItemIDInputLabel @ 0x4f77ee
// > SetupInstantCountPopup::updateTargetIDInputLabel @ 0x4f785a
// > SetupInstantCountPopup::updateCountTextInputLabel @ 0x4f78c6
// > SetupShakePopup::updateDurLabel @ 0x4f94e6
// > SetupShakePopup::updateShakeLabel @ 0x4f95de
// > SetupShakePopup::updateIntervalLabel @ 0x4f96d6
// > SetupTouchTogglePopup::updateTextInputLabel @ 0x4fa4ea
// > SetupCameraOffsetTrigger::updateDurLabel @ 0x501c2e
// > SetupCameraOffsetTrigger::updateValueXLabel @ 0x501cd8
// > SetupCameraOffsetTrigger::updateValueYLabel @ 0x501d80
// > SetupRandTriggerPopup::updateChanceLabel @ 0x504bce
// > SetupRandTriggerPopup::updateTextInputLabel @ 0x504cc4
// > SetupRandTriggerPopup::updateTextInputLabel2 @ 0x504d4c
// > SetupEndPopup::updateTextInputLabel @ 0x505cfa
// > SetGroupIDLayer::updateEditorLabel @ 0x509d84
// > SetGroupIDLayer::updateEditorLabel2 @ 0x509e04
// > SetGroupIDLayer::updateZOrderLabel @ 0x509e86
// > SetGroupIDLayer::updateGroupIDLabel @ 0x509f04
// > SetGroupIDLayer::updateEditorOrderLabel @ 0x509f74
// > SetGroupIDLayer::updateEditorOrderLabel @ 0x509f94
// > SetGroupIDLayer::updateOrderChannelLabel @ 0x50a008
// > SetGroupIDLayer::updateOrderChannelLabel @ 0x50a028
// > SetupCameraRotatePopup::updateDurLabel @ 0x5265ee
// > SetupCameraRotatePopup::updateDegreesLabel @ 0x526684
// > SetupRandAdvTriggerPopup::init @ 0x5289ee
// > SetupGravityModPopup::updateTextInputLabel @ 0x52e796
// > CreateParticlePopup::updateInputNodeStringForType @ 0x5312d0
// > MPLobbyLayer::postComment @ 0x535908
// > SetupSmartTemplateLayer::init @ 0x53e576
// > SetupTriggerPopup::updateInputNode @ 0x540c2c
// > SetupTriggerPopup::updateInputNodeLabel @ 0x544b46
// > SetupCameraEdgePopup::updateTextInputLabel @ 0x548baa
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x551a26
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x551a58
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x551a8a
// > SetupShaderEffectPopup::valueDidChange @ 0x551cc0
// > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0x557f58
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x55eab2
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x55eae4
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x55eb16
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x55eb9e
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x55ebd0
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x55ec02
// > SetupAdvFollowPopup::valueDidChange @ 0x55ed0a
// > SetupAdvFollowRetargetPopup::valueDidChange @ 0x55ee44
// > SetupMGTrigger::updateDurLabel @ 0x56298e
// > SetupMGTrigger::updateValueYLabel @ 0x562a38
// > LevelSettingsLayer::init @ 0x5723a4
// > LevelSettingsLayer::init @ 0x5725b4
// > LevelListLayer::init @ 0x59192a
// > SecretLayer5::onSubmit @ 0x59eb28
//
// 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
//
int (__fastcall ***__fastcall CCTextInputNode::setString(int a1, char *a2, char *a3))(_DWORD, int)
{
int (__fastcall ***result)(_DWORD, int); // r0
char *v6[3]; // [sp+0h] [bp-Ch] BYREF
v6[0] = (char *)a1;
v6[1] = a2;
v6[2] = a3;
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 380) + 612))(*(_DWORD *)(a1 + 380), *(_DWORD *)a2);
sub_775C20(v6, a2);
CCTextInputNode::updateLabel(a1, v6);
sub_774008(v6);
result = *(int (__fastcall ****)(_DWORD, int))(a1 + 384);
if ( result )
return (int (__fastcall ***)(_DWORD, int))(**result)(result, a1);
return result;
}