// // ColorSelectPopup::updateTextInputLabel from 0x73c894 to 0x73ca70 (476 bytes) // // 3 xrefs: // > ColorSelectPopup::onUpdateCustomColor @ 0x73cae4 // > ColorSelectPopup::init @ 0x73eb8c // > @ 0x72408 // // 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 ColorSelectPopup::updateTextInputLabel(ColorSelectPopup *a1) { const char *m_colorID; // x1 cocos2d::CCString *v3; // x0 char *CString; // x1 CCTextInputNode *m_colorInput; // 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_colorID = (const char *)(unsigned int)a1->m_colorID; a1->m_disableTextDelegate = 1; v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", m_colorID); CString = (char *)cocos2d::CCString::getCString(v3); if ( a1->m_colorID > 999 ) CString = "0"; m_colorInput = a1->m_colorInput; sub_D153B8((int)v15, CString); CCTextInputNode::setString(m_colorInput, (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_colorID; if ( v7 > 999 ) { v8 = a1->m_colorInput; 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