// // SetupPulsePopup::updateTextInputLabel from 0x1003ae5e0 to 0x1003ae7bb (475 bytes) // // 3 xrefs: // > SetupPulsePopup::init @ 0x1003ad2e7 // > SetupPulsePopup::onSelectTargetMode @ 0x1003adc7b // > SetupPulsePopup::onUpdateCustomColor @ 0x1003adddb // // 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 SetupPulsePopup::updateTextInputLabel(SetupPulsePopup *a1) { __m128 v1; // xmm0 cocos2d::CCString *v3; // rax const std::string::value_type *CString; // r14 CCTextInputNode *m_idInput; // r15 size_t v6; // rax size_t v7; // r12 char *v8; // r13 size_t v9; // r15 int m_targetGroupID; // edi CCTextInputNode *v11; // r14 const char *v12; // r12 size_t v13; // rax std::string::size_type v14; // r15 char *data; // r13 size_t v16; // r14 _QWORD __dst[2]; // [rsp+0h] [rbp-60h] BYREF void *__p; // [rsp+10h] [rbp-50h] std::string v19; // [rsp+18h] [rbp-48h] BYREF CCTextInputNode *v20; // [rsp+30h] [rbp-30h] a1->m_disableTextDelegate = 1; v3 = (cocos2d::CCString *)sub_1007AB580("%i", __dst[0]); CString = cocos2d::CCString::getCString(v3); if ( a1->m_targetGroupID >= 1000 && a1->m_pulseTargetType != 1 ) CString = "0"; m_idInput = a1->m_idInput; v6 = strlen(CString); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_27; v7 = v6; if ( v6 >= 0x17 ) { v20 = a1->m_idInput; v9 = 26; if ( (v6 | 7) != 0x17 ) v9 = (v6 | 7) + 1; v8 = (char *)operator new(v9); __p = v8; __dst[0] = v9 + 1; m_idInput = v20; __dst[1] = v7; goto LABEL_11; } LOBYTE(__dst[0]) = 2 * v6; v8 = (char *)__dst + 1; if ( v6 ) LABEL_11: memmove(v8, CString, v7); v8[v7] = 0; CCTextInputNode::setString(m_idInput, (__int64)__dst, v1); if ( (__dst[0] & 1) != 0 ) operator delete(__p); m_targetGroupID = a1->m_targetGroupID; if ( m_targetGroupID >= 1000 && a1->m_pulseTargetType != 1 ) { v11 = a1->m_idInput; v12 = GJSpecialColorSelect::textForColorIdx(m_targetGroupID); v13 = strlen(v12); if ( v13 < 0xFFFFFFFFFFFFFFF8LL ) { v14 = v13; v20 = v11; if ( v13 >= 0x17 ) { v16 = 26; if ( (v13 | 7) != 0x17 ) v16 = (v13 | 7) + 1; data = (char *)operator new(v16); v19.__r_.__value_.__r.__words[2] = (std::string::size_type)data; v19.__r_.__value_.__r.__words[0] = v16 + 1; v19.__r_.__value_.__l.__size_ = v14; } else { v19.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v13); data = v19.__r_.__value_.__s.__data_; if ( !v13 ) { LABEL_24: data[v14] = 0; CCTextInputNode::updateLabel(v20, &v19, *(double *)v1.i64); if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v19.__r_.__value_.__l.__data_); goto LABEL_26; } } memmove(data, v12, v14); goto LABEL_24; } LABEL_27: sub_100006BF0(*(double *)v1.i64); } LABEL_26: a1->m_disableTextDelegate = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source