//
// CCTextInputNode::setString from 0x5a3ab8 to 0x5a3bdc (292 bytes)
//
// 143 xrefs:
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x5a414c
// > CCTextInputNode::onTextFieldInsertText @ 0x5a4688
// > CCTextInputNode::onTextFieldAttachWithIME @ 0x5a4e88
// > LevelSearchLayer::onClearFreeSearch @ 0x6cd6d4
// > LevelSearchLayer::onPasteClipboard @ 0x6ceae8
// > MoreSearchLayer::onSongMode @ 0x6d3740
// > MoreSearchLayer::init @ 0x6d4b0c
// > EditLevelLayer::init @ 0x6e13c8
// > EditLevelLayer::init @ 0x6e16f0
// > ColorSelectPopup::updateDurLabel @ 0x73c114
// > ColorSelectPopup::updateTextInputLabel @ 0x73c910
// > ColorSelectPopup::colorSelectClosed @ 0x73cd90
// > ColorSelectPopup::colorSelectClosed @ 0x73ce2c
// > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x73d0a8
// > ColorSelectPopup::updateColorLabels @ 0x7404dc
// > ColorSelectPopup::updateColorLabels @ 0x740524
// > ColorSelectPopup::updateColorLabels @ 0x740568
// > ColorSelectPopup::updateColorLabels @ 0x7405a8
// > GJGarageLayer::textInputOpened @ 0x790b48
// > GJGarageLayer::textInputClosed @ 0x790e58
// > GJGarageLayer::init @ 0x79934c
// > GJGarageLayer::init @ 0x79a314
// > MoreOptionsLayer::init @ 0x7cbcac
// > MoreVideoOptionsLayer::onApplyFPS @ 0x7d11a8
// > ShareCommentLayer::init @ 0x7e71a8
// > ShareCommentLayer::onClear @ 0x7e7fe0
// > SongOptionsLayer::init @ 0x83d9f8
// > CustomizeObjectLayer::onClear @ 0x83fd94
// > CustomizeObjectLayer::updateKerningLabel @ 0x840260
// > CustomizeObjectLayer::updateCustomColorLabels @ 0x841104
// > CustomizeObjectLayer::init @ 0x843924
// > AccountLoginLayer::init @ 0x8514d4
// > GJWriteMessagePopup::FLAlert_Clicked @ 0x8c4844
// > SetColorIDPopup::colorSelectClosed @ 0x8c4d6c
// > GJWriteMessagePopup::init @ 0x8d0760
// > GJWriteMessagePopup::init @ 0x8d0794
// > SetIDPopup::updateTextInputLabel @ 0x8d1894
// > SetTextPopup::updateTextInputLabel @ 0x8d33bc
// > GJAccountSettingsLayer::init @ 0x8df4d8
// > ConfigureHSVWidget::updateLabels @ 0x8e1040
// > ConfigureHSVWidget::updateLabels @ 0x8e109c
// > ConfigureHSVWidget::updateLabels @ 0x8e10f0
// > SetupOpacityPopup::updateDurLabel @ 0x8e7ab4
// > SetupOpacityPopup::updateTextInputLabel @ 0x8e7c34
// > SetupPulsePopup::updateFadeInLabel @ 0x8ec5a8
// > SetupPulsePopup::updateHoldLabel @ 0x8ec714
// > SetupPulsePopup::updateFadeOutLabel @ 0x8ec880
// > SetupPulsePopup::updateColorLabels @ 0x8ed1b0
// > SetupPulsePopup::updateColorLabels @ 0x8ed1f8
// > SetupPulsePopup::updateColorLabels @ 0x8ed23c
// > SetupPulsePopup::updateColorLabels @ 0x8ed27c
// > SetupPulsePopup::colorSelectClosed @ 0x8ed714
// > SetupPulsePopup::colorSelectClosed @ 0x8ed7b8
// > SetupPulsePopup::updateTextInputLabel @ 0x8ee364
// > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x8ee838
// > SecretLayer::onSubmit @ 0x9042dc
// > CollisionBlockPopup::updateTextInputLabel @ 0x909658
// > ConfigureValuePopup::updateTextInputLabel @ 0x90c9e8
// > GJFollowCommandLayer::updateDurLabel @ 0x920294
// > GJFollowCommandLayer::updateXModLabel @ 0x9203c8
// > GJFollowCommandLayer::updateYModLabel @ 0x920500
// > GJFollowCommandLayer::updateTextInputLabel @ 0x920648
// > GJFollowCommandLayer::updateTextInputLabel2 @ 0x92077c
// > GJPFollowCommandLayer::updateDurLabel @ 0x922938
// > GJPFollowCommandLayer::updateXModLabel @ 0x922a6c
// > GJPFollowCommandLayer::updateYModLabel @ 0x922ba4
// > GJPFollowCommandLayer::updateOffsetLabel @ 0x922cfc
// > GJPFollowCommandLayer::updateMaxSpeedLabel @ 0x922e20
// > GJPFollowCommandLayer::updateTextInputLabel @ 0x922f68
// > GJRotateCommandLayer::updateDurLabel @ 0x925f4c
// > GJRotateCommandLayer::updateDegreesLabel @ 0x9260c8
// > GJRotateCommandLayer::updateTimesLabel @ 0x9262d8
// > GJRotateCommandLayer::updateTextInputLabel @ 0x92640c
// > GJRotateCommandLayer::updateTextInputLabel2 @ 0x926540
// > SecretLayer2::onSubmit @ 0x9432ec
// > SecretLayer4::onSubmit @ 0x94931c
// > SetupAnimationPopup::updateTextInputLabel @ 0x94d188
// > SetupAnimationPopup::updateAnimationTextInputLabel @ 0x94d2a0
// > SetupCollisionTriggerPopup::updateItemIDInputLabel @ 0x94fa00
// > SetupCollisionTriggerPopup::updateItemID2InputLabel @ 0x94fc74
// > SetupCollisionTriggerPopup::updateTargetIDInputLabel @ 0x94fe5c
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x952010
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x9520ac
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x95212c
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x95218c
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x9521f0
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x952250
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x9522ac
// > SetupCountTriggerPopup::updateItemIDInputLabel @ 0x952f2c
// > SetupCountTriggerPopup::updateTargetIDInputLabel @ 0x953044
// > SetupCountTriggerPopup::updateCountTextInputLabel @ 0x95315c
// > SetupInstantCountPopup::updateItemIDInputLabel @ 0x955d18
// > SetupInstantCountPopup::updateTargetIDInputLabel @ 0x955e30
// > SetupInstantCountPopup::updateCountTextInputLabel @ 0x955f48
// > SetupShakePopup::updateDurLabel @ 0x95931c
// > SetupShakePopup::updateShakeLabel @ 0x9594f0
// > SetupShakePopup::updateIntervalLabel @ 0x9596c4
// > SetupTouchTogglePopup::updateTextInputLabel @ 0x95ace0
// > SetupCameraOffsetTrigger::updateDurLabel @ 0x967988
// > SetupCameraOffsetTrigger::updateValueXLabel @ 0x967adc
// > SetupCameraOffsetTrigger::updateValueYLabel @ 0x967c20
// > SetupRandTriggerPopup::updateChanceLabel @ 0x96c6a0
// > SetupRandTriggerPopup::updateTextInputLabel @ 0x96c898
// > SetupRandTriggerPopup::updateTextInputLabel2 @ 0x96ca48
// > SetupEndPopup::updateTextInputLabel @ 0x96e32c
// > SetGroupIDLayer::updateEditorLabel @ 0x976cd8
// > SetGroupIDLayer::updateEditorLabel2 @ 0x976e00
// > SetGroupIDLayer::updateZOrderLabel @ 0x976f2c
// > SetGroupIDLayer::updateGroupIDLabel @ 0x977054
// > SetGroupIDLayer::updateEditorOrderLabel @ 0x977170
// > SetGroupIDLayer::updateEditorOrderLabel @ 0x9771e4
// > SetGroupIDLayer::updateOrderChannelLabel @ 0x9772f4
// > SetGroupIDLayer::updateOrderChannelLabel @ 0x977368
// > SetupCameraRotatePopup::updateDurLabel @ 0x9ac1b4
// > SetupCameraRotatePopup::updateDegreesLabel @ 0x9ac2e8
// > SetupRandAdvTriggerPopup::init @ 0x9affb4
// > SetupGravityModPopup::updateTextInputLabel @ 0x9bf19c
// > CreateParticlePopup::updateInputNodeStringForType @ 0x9c35b4
// > MPLobbyLayer::postComment @ 0x9ca6d8
// > SetupSmartTemplateLayer::init @ 0x9de178
// > SetupTriggerPopup::updateInputNode @ 0x9e399c
// > SetupTriggerPopup::updateInputNodeLabel @ 0x9e88dc
// > SetupCameraEdgePopup::updateTextInputLabel @ 0x9edf68
// > SetupShaderEffectPopup::valueDidChange @ 0x9fbc84
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x9fbed4
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x9fbf6c
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x9fbfcc
// > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0xa096d4
// > SetupAdvFollowRetargetPopup::valueDidChange @ 0xa17c7c
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0xa17e54
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0xa17eec
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0xa17f4c
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0xa18080
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0xa18118
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0xa18178
// > SetupAdvFollowPopup::valueDidChange @ 0xa18384
// > SetupMGTrigger::updateDurLabel @ 0xa1fa74
// > SetupMGTrigger::updateValueYLabel @ 0xa1fbc8
// > LevelSettingsLayer::init @ 0xa3734c
// > LevelSettingsLayer::init @ 0xa375cc
// > LevelListLayer::init @ 0xa773f8
// > SecretLayer5::onSubmit @ 0xa954bc
// > ??> @ 0x8d570
//
// 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
//
__int64 __fastcall CCTextInputNode::setString(CCTextInputNode *a1, const unsigned __int8 **a2)
{
char *v4; // x0
TextInputDelegate *m_delegate; // x0
unsigned int *v7; // x2
int v8; // w1
_DWORD *v9; // [xsp+40h] [xbp+40h] BYREF
a1->m_textField->setString(a1->m_textField, *a2);
sub_D18D28(&v9, a2);
CCTextInputNode::updateLabel(a1, (const void **)&v9);
v4 = (char *)(v9 - 6);
if ( v9 - 6 != (_DWORD *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v7 = v9 - 2;
do
v8 = __ldaxr(v7);
while ( __stlxr(v8 - 1, v7) );
}
else
{
v8 = *(v9 - 2);
*(v9 - 2) = v8 - 1;
}
if ( v8 <= 0 )
operator delete(v4);
}
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->textChanged(m_delegate, a1);
return _stack_chk_guard;
}