//
// CCTextInputNode::setString from 0x10009ea50 to 0x10009eaee (158 bytes)
//
// 144 xrefs:
// > GJRotateCommandLayer::updateDurLabel @ 0x100003235
// > GJRotateCommandLayer::updateTextInputLabel @ 0x100003b05
// > GJRotateCommandLayer::updateTextInputLabel2 @ 0x100003c25
// > GJRotateCommandLayer::updateDegreesLabel @ 0x100003d17
// > GJRotateCommandLayer::updateTimesLabel @ 0x100003e65
// > SetupOpacityPopup::updateTextInputLabel @ 0x100057e44
// > SetupOpacityPopup::updateDurLabel @ 0x1000581b5
// > CCTextInputNode::onTextFieldInsertText @ 0x10009fa6a
// > CCTextInputNode::onTextFieldAttachWithIME @ 0x10009fd4d
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x1000a05b4
// > CustomizeObjectLayer::init @ 0x1001f6ce1
// > CustomizeObjectLayer::updateCustomColorLabels @ 0x1001f7c53
// > CustomizeObjectLayer::updateKerningLabel @ 0x1001f7f18
// > CustomizeObjectLayer::onClear @ 0x1001f80ba
// > EditLevelLayer::init @ 0x1001fae5e
// > EditLevelLayer::init @ 0x1001fb219
// > SongOptionsLayer::init @ 0x100216fd8
// > SetupTriggerPopup::updateInputNode @ 0x10023de09
// > SetupTriggerPopup::updateInputNodeLabel @ 0x10023e1e2
// > LevelSettingsLayer::init @ 0x10026d2da
// > LevelSettingsLayer::init @ 0x10026d596
// > CollisionBlockPopup::updateTextInputLabel @ 0x100286c84
// > GJAccountSettingsLayer::init @ 0x1002a0bf3
// > GJWriteMessagePopup::init @ 0x1002a9a16
// > GJWriteMessagePopup::init @ 0x1002a9a84
// > GJWriteMessagePopup::FLAlert_Clicked @ 0x1002aae2f
// > sub_1002AAE70 @ 0x1002aae9c
// > SetIDPopup::updateTextInputLabel @ 0x1002ac610
// > SetColorIDPopup::colorSelectClosed @ 0x1002ad159
// > SetTextPopup::init @ 0x1002af2b0
// > SetTextPopup::onResetValue @ 0x1002af45d
// > SetTextPopup::updateTextInputLabel @ 0x1002af51b
// > SetupTouchTogglePopup::updateTextInputLabel @ 0x1002b9414
// > SetupCountTriggerPopup::updateItemIDInputLabel @ 0x1002bc624
// > SetupCountTriggerPopup::updateTargetIDInputLabel @ 0x1002bc734
// > SetupCountTriggerPopup::updateCountTextInputLabel @ 0x1002bc844
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x1002d0174
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x1002d01bd
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x1002d01fa
// > SetupShaderEffectPopup::valueDidChange @ 0x1002d0902
// > GJFollowCommandLayer::updateDurLabel @ 0x1002d6525
// > GJFollowCommandLayer::updateTextInputLabel @ 0x1002d6915
// > GJFollowCommandLayer::updateTextInputLabel2 @ 0x1002d6a35
// > GJFollowCommandLayer::updateXModLabel @ 0x1002d6b5e
// > GJFollowCommandLayer::updateYModLabel @ 0x1002d6c8e
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x100309614
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x10030965d
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x10030969a
// > SetupAdvFollowPopup::valueDidChange @ 0x1003098dc
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x10030be94
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x10030bedd
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x10030bf1a
// > SetupAdvFollowRetargetPopup::valueDidChange @ 0x10030c104
// > SetGroupIDLayer::updateEditorOrderLabel @ 0x100315987
// > SetGroupIDLayer::updateEditorOrderLabel @ 0x1003159e7
// > SetGroupIDLayer::updateOrderChannelLabel @ 0x100315ac7
// > SetGroupIDLayer::updateOrderChannelLabel @ 0x100315b27
// > SetGroupIDLayer::updateGroupIDLabel @ 0x100315d81
// > SetGroupIDLayer::updateEditorLabel @ 0x100315ea1
// > SetGroupIDLayer::updateEditorLabel2 @ 0x100315fc1
// > SetGroupIDLayer::updateZOrderLabel @ 0x1003160e5
// > LevelListLayer::init @ 0x10035d7b5
// > GJPFollowCommandLayer::updateDurLabel @ 0x1003660a5
// > GJPFollowCommandLayer::updateTextInputLabel @ 0x1003663c5
// > GJPFollowCommandLayer::updateXModLabel @ 0x1003664ee
// > GJPFollowCommandLayer::updateYModLabel @ 0x10036661e
// > GJPFollowCommandLayer::updateOffsetLabel @ 0x10036675a
// > GJPFollowCommandLayer::updateMaxSpeedLabel @ 0x10036688e
// > GJGarageLayer::init @ 0x1003698ef
// > GJGarageLayer::init @ 0x100369a92
// > GJGarageLayer::textInputOpened @ 0x10036c7b4
// > GJGarageLayer::textInputClosed @ 0x10036c991
// > SetupRandAdvTriggerPopup::init @ 0x10038e2bc
// > SetupCollisionTriggerPopup::updateItemIDInputLabel @ 0x1003963d3
// > SetupCollisionTriggerPopup::updateItemID2InputLabel @ 0x1003964f3
// > SetupCollisionTriggerPopup::updateTargetIDInputLabel @ 0x100396604
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100397ac2
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100397b1b
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100397b80
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100397bcb
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100397c24
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100397c54
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x100397c81
// > SetupPulsePopup::updateFadeInLabel @ 0x1003ad7e5
// > SetupPulsePopup::updateHoldLabel @ 0x1003ad935
// > SetupPulsePopup::updateFadeOutLabel @ 0x1003ada85
// > SetupPulsePopup::updateTextInputLabel @ 0x1003ae6c6
// > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x1003ae8b7
// > SetupPulsePopup::colorSelectClosed @ 0x1003af168
// > SetupPulsePopup::colorSelectClosed @ 0x1003af206
// > SetupPulsePopup::updateColorLabels @ 0x1003afc13
// > SetupPulsePopup::updateColorLabels @ 0x1003afcd7
// > SetupPulsePopup::updateColorLabels @ 0x1003afd95
// > SetupPulsePopup::updateColorLabels @ 0x1003afe6c
// > SecretLayer4::onSubmit @ 0x1003b2316
// > SetupAnimationPopup::updateTextInputLabel @ 0x1003d5554
// > SetupAnimationPopup::updateAnimationTextInputLabel @ 0x1003d5664
// > SetupGravityModPopup::updateTextInputLabel @ 0x1003d9354
// > ConfigureHSVWidget::updateLabels @ 0x100430d99
// > ConfigureHSVWidget::updateLabels @ 0x100430e81
// > ConfigureHSVWidget::updateLabels @ 0x100431015
// > CreateParticlePopup::updateInputNodeStringForType @ 0x10047514b
// > SecretLayer5::onSubmit @ 0x10047b4cc
// > MPLobbyLayer::postComment @ 0x100493fa6
// > AccountLoginLayer::init @ 0x1004994e1
// > SecretLayer2::onSubmit @ 0x10049e646
// > SetupCameraRotatePopup::updateDurLabel @ 0x1004bda65
// > SetupCameraRotatePopup::updateDegreesLabel @ 0x1004bdf9e
// > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0x1004d4c3b
// > SetupSmartTemplateLayer::init @ 0x1004e8104
// > SetupMGTrigger::updateDurLabel @ 0x100509755
// > SetupMGTrigger::updateValueYLabel @ 0x100509caa
// > SetupCameraEdgePopup::updateTextInputLabel @ 0x100588f04
// > ShareCommentLayer::init @ 0x1005e09bf
// > ShareCommentLayer::onClear @ 0x1005e0e24
// > SetupRandTriggerPopup::updateTextInputLabel @ 0x1005e623c
// > SetupRandTriggerPopup::updateTextInputLabel2 @ 0x1005e63bc
// > SetupRandTriggerPopup::updateChanceLabel @ 0x1005e6615
// > SetupInstantCountPopup::updateItemIDInputLabel @ 0x1005e9c44
// > SetupInstantCountPopup::updateTargetIDInputLabel @ 0x1005e9d54
// > SetupInstantCountPopup::updateCountTextInputLabel @ 0x1005e9e64
// > SecretLayer::onSubmit @ 0x1005fbc57
// > ConfigureValuePopup::updateTextInputLabel @ 0x100625506
// > LevelSearchLayer::onClearFreeSearch @ 0x10062a8aa
// > MoreSearchLayer::init @ 0x10062e194
// > MoreSearchLayer::onSongMode @ 0x10062eabf
// > SetupCameraOffsetTrigger::updateDurLabel @ 0x1006629e5
// > SetupCameraOffsetTrigger::updateValueXLabel @ 0x10066306a
// > SetupCameraOffsetTrigger::updateValueYLabel @ 0x1006631aa
// > SetupShakePopup::updateShakeLabel @ 0x100664e15
// > SetupShakePopup::updateDurLabel @ 0x100664f65
// > SetupShakePopup::updateIntervalLabel @ 0x1006650b5
// > SetupEndPopup::updateTextInputLabel @ 0x100669674
// > ColorSelectPopup::updateDurLabel @ 0x100727aa0
// > ColorSelectPopup::updateTextInputLabel @ 0x1007285f7
// > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x100728987
// > ColorSelectPopup::updateColorLabels @ 0x1007295f3
// > ColorSelectPopup::updateColorLabels @ 0x1007296b7
// > ColorSelectPopup::updateColorLabels @ 0x100729775
// > ColorSelectPopup::updateColorLabels @ 0x10072984c
// > ColorSelectPopup::colorSelectClosed @ 0x10072b448
// > ColorSelectPopup::colorSelectClosed @ 0x10072b4e6
// > MoreOptionsLayer::init @ 0x10079c7f6
// > MoreVideoOptionsLayer::onApplyFPS @ 0x1007a3094
//
// 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
//
void __fastcall CCTextInputNode::setString(CCTextInputNode *a1, __int64 a2, __m128 a3)
{
cocos2d::CCTextFieldTTF *m_textField; // rdi
TextInputDelegate *m_delegate; // rdi
std::string v6[2]; // [rsp+0h] [rbp-30h] BYREF
m_textField = a1->m_textField;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
((void (__fastcall *)(cocos2d::CCTextFieldTTF *, _QWORD))m_textField->setString)(m_textField, *(_QWORD *)(a2 + 16));
if ( (*(_BYTE *)a2 & 1) != 0 )
goto LABEL_3;
}
else
{
((void (__fastcall *)(cocos2d::CCTextFieldTTF *, __int64))m_textField->setString)(m_textField, a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
{
LABEL_3:
sub_100006B70(v6, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8), *(double *)a3.i64);
goto LABEL_6;
}
}
v6[0].__r_.__value_.__r.__words[2] = *(_QWORD *)(a2 + 16);
a3 = *(__m128 *)a2;
*(_OWORD *)&v6[0].__r_.__value_.__l.0 = *(_OWORD *)a2;
LABEL_6:
CCTextInputNode::updateLabel(a1, v6, *(double *)a3.i64);
if ( (*(_BYTE *)&v6[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v6[0].__r_.__value_.__l.__data_);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(TextInputDelegate *, CCTextInputNode *))m_delegate->textChanged)(m_delegate, a1);
}