// // SetupAreaMoveTriggerPopup::updateEnterTargetIDState from 0xa095f0 to 0xa0995c (876 bytes) // // 3 xrefs: // > SetupAreaMoveTriggerPopup::updateDefaultTriggerValues @ 0xa09974 // > SetupAreaMoveTriggerPopup::onSpecialTarget @ 0xa09a6c // > @ 0xb7f18 // // 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 SetupAreaMoveTriggerPopup::updateEnterTargetIDState(SetupAreaMoveTriggerPopup *a1) { int v2; // w21 unsigned int v3; // w21 cocos2d::CCArray *m_targetButtons; // x0 cocos2d::ccArray *data; // x0 CCTextInputNode *v6; // x19 __int64 v7; // x1 void *v8; // x0 unsigned __int8 *v9; // x0 void *v10; // x22 CCMenuItemToggler **arr; // x20 CCMenuItemToggler **v12; // x23 CCMenuItemToggler *v13; // x19 const cocos2d::CCObject *v14; // x0 bool v15; // w1 unsigned int *v16; // x1 int v17; // w2 unsigned int *v18; // x1 int v19; // w2 unsigned int *v20; // x19 int v21; // w0 unsigned int *v22; // x1 __int64 v23; // [xsp+58h] [xbp+58h] BYREF __int64 v24; // [xsp+60h] [xbp+60h] BYREF __int64 v25; // [xsp+68h] [xbp+68h] BYREF const unsigned __int8 *v26; // [xsp+70h] [xbp+70h] BYREF v2 = (int)a1->getValue(a1, 538); if ( v2 ) v3 = (int)(float)v2; else v3 = (int)a1->getValue(a1, 71); m_targetButtons = a1->m_targetButtons; if ( m_targetButtons ) { data = m_targetButtons->data; if ( data->num ) { arr = (CCMenuItemToggler **)data->arr; v12 = &arr[data->num - 1]; while ( v12 >= arr ) { v13 = *arr; if ( !*arr ) break; v14 = *arr++; v15 = v3 == v13->getTag(v14); CCMenuItemToggler::toggle(v13, v15); } } } v6 = (CCTextInputNode *)cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, 71); if ( v6 ) { a1->m_disableTextDelegate = 1; sub_D153B8((int)&v23, &byte_F288A0); if ( (v3 & 0x80000000) != 0 ) { targetKeyToString(v3, (__int64)&v24); sub_D163D4(&v23, &v24); v7 = v24; v8 = (void *)(v24 - 24); if ( (__int64 *)(v24 - 24) == &qword_124B6B0 ) { LABEL_8: sub_D18D28(&v26); CCTextInputNode::setString(v6, &v26); v9 = (unsigned __int8 *)(v26 - 24); if ( v26 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { if ( &pthread_create ) { v18 = (unsigned int *)(v26 - 8); do v19 = __ldaxr(v18); while ( __stlxr(v19 - 1, v18) ); } else { v19 = *((_DWORD *)v26 - 2); *((_DWORD *)v26 - 2) = v19 - 1; } if ( v19 <= 0 ) operator delete(v9); } a1->m_disableTextDelegate = 0; v10 = (void *)(v23 - 24); if ( (__int64 *)(v23 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v20 = (unsigned int *)(v23 - 8); do v21 = __ldaxr(v20); while ( __stlxr(v21 - 1, v20) ); } else { v21 = *(_DWORD *)(v23 - 8); *(_DWORD *)(v23 - 8) = v21 - 1; } if ( v21 <= 0 ) operator delete(v10); } return; } if ( &pthread_create ) { v16 = (unsigned int *)(v24 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); LABEL_34: if ( v17 <= 0 ) operator delete(v8); goto LABEL_8; } } else { GameToolbox::intToString(&v25, (GameToolbox *)v3); sub_D163D4(&v23, &v25); v7 = v25; v8 = (void *)(v25 - 24); if ( (__int64 *)(v25 - 24) == &qword_124B6B0 ) goto LABEL_8; if ( &pthread_create ) { v22 = (unsigned int *)(v25 - 8); do v17 = __ldaxr(v22); while ( __stlxr(v17 - 1, v22) ); goto LABEL_34; } } v17 = *(_DWORD *)(v7 - 8); *(_DWORD *)(v7 - 8) = v17 - 1; goto LABEL_34; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source