// // SetupPulsePopup::updateCopyColorTextInputLabel from 0x8ee7bc to 0x8ee998 (476 bytes) // // 3 xrefs: // > SetupPulsePopup::init @ 0x8f1458 // > SetupPulsePopup::onUpdateCopyColor @ 0x8f1e18 // > @ 0xb1a98 // // 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 SetupPulsePopup::updateCopyColorTextInputLabel(SetupPulsePopup *a1) { const char *m_copyColorID; // x1 cocos2d::CCString *v3; // x0 char *CString; // x1 CCTextInputNode *m_colorIDInput; // x22 void *v6; // x0 int v7; // w0 CCTextInputNode *v8; // x24 char *v9; // x0 void *v10; // x0 unsigned int *v11; // x21 int v12; // w1 unsigned int *v13; // x1 int v14; // w2 int v15[2]; // [xsp+50h] [xbp+50h] BYREF m_copyColorID = (const char *)(unsigned int)a1->m_copyColorID; a1->m_disableTextDelegate = 1; v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", m_copyColorID); CString = (char *)cocos2d::CCString::getCString(v3); if ( a1->m_copyColorID > 999 ) CString = "0"; m_colorIDInput = a1->m_colorIDInput; sub_D153B8((int)v15, CString); CCTextInputNode::setString(m_colorIDInput, (const unsigned __int8 **)v15); v6 = (void *)(*(_QWORD *)v15 - 24LL); if ( (__int64 *)(*(_QWORD *)v15 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(*(_QWORD *)v15 - 8LL); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(_DWORD *)(*(_QWORD *)v15 - 8LL); *(_DWORD *)(*(_QWORD *)v15 - 8LL) = v14 - 1; } if ( v14 <= 0 ) operator delete(v6); } v7 = a1->m_copyColorID; if ( v7 > 999 ) { v8 = a1->m_colorIDInput; v9 = (char *)GJSpecialColorSelect::textForColorIdx(v7); sub_D153B8((int)v15, v9); CCTextInputNode::updateLabel(v8, (const void **)v15); v10 = (void *)(*(_QWORD *)v15 - 24LL); if ( (__int64 *)(*(_QWORD *)v15 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(*(_QWORD *)v15 - 8LL); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(*(_QWORD *)v15 - 8LL); *(_DWORD *)(*(_QWORD *)v15 - 8LL) = v12 - 1; } if ( v12 <= 0 ) operator delete(v10); } } a1->m_disableTextDelegate = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source