// // SetupPulsePopup::determineStartValues from 0x8ebf40 to 0x8ec334 (1012 bytes) // // 2 xrefs: // > @ 0x5dfc0 // > @ 0x11a4830 // // 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::determineStartValues(SetupPulsePopup *a1) { EffectGameObject *m_gameObject; // x0 cocos2d::CCArray *m_gameObjects; // x21 float v4; // s9 unsigned int v5; // w26 __int64 v6; // x6 __int64 v7; // x7 int v8; // w20 int v9; // w25 int v10; // w19 int v11; // w24 float v12; // s11 float v13; // s10 int v14; // w23 __int64 v15; // x0 GLubyte v16; // w4 GLubyte v17; // w1 float v18; // w6 float v19; // w4 char v20; // w5 float v21; // w1 int m_targetGroupID; // w1 int m_copyColorID; // w1 int v24; // w0 unsigned __int64 v25; // [xsp+90h] [xbp+90h] int v26; // [xsp+9Ch] [xbp+9Ch] SetupTriggerPopup::determineStartValues(a1); m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)m_gameObject); cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject); } else { m_gameObjects = a1->m_gameObjects; } if ( m_gameObjects && (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { v4 = -1.0; a1->m_groupMainOnly = 1; v5 = 0; v6 = qword_1243060; v7 = qword_1243068; a1->m_groupSecondaryOnly = 1; a1->m_pulseExclusive = 1; v8 = -1; a1->m_staticHSV = 1; a1->m_currentColor.r = -1; v9 = 1; a1->m_currentColor.g = -1; v10 = -1; a1->m_currentColor.b = -1; v11 = 0; v12 = -1.0; v26 = 1; v13 = -1.0; v14 = 0; *(_QWORD *)&a1->m_hsv.h = v6; *(_QWORD *)&a1->m_hsv.v = v7; a1->m_targetGroupID = -1; a1->m_copyColorID = -1; if ( (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { while ( 1 ) { v15 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v5); if ( !*(_BYTE *)(v15 + 1617) ) a1->m_groupMainOnly = 0; if ( !*(_BYTE *)(v15 + 1618) ) a1->m_groupSecondaryOnly = 0; if ( !*(_BYTE *)(v15 + 1619) ) a1->m_pulseExclusive = 0; if ( !*(_BYTE *)(v15 + 1620) ) a1->m_staticHSV = 0; if ( v13 == -1.0 ) { v13 = *(float *)(v15 + 1576); } else if ( v13 != *(float *)(v15 + 1576) ) { v13 = -2.0; } if ( v12 == -1.0 ) { v12 = *(float *)(v15 + 1580); } else if ( v12 != *(float *)(v15 + 1580) ) { v12 = -2.0; } if ( v4 == -1.0 ) break; if ( v4 == *(float *)(v15 + 1584) ) goto LABEL_20; v4 = -2.0; if ( v10 == -1 ) { LABEL_50: v10 = *(_DWORD *)(v15 + 1588); if ( v8 != -1 ) goto LABEL_24; goto LABEL_51; } LABEL_21: if ( v10 != *(_DWORD *)(v15 + 1588) ) v10 = -2; if ( v8 != -1 ) { LABEL_24: if ( v8 != *(_DWORD *)(v15 + 1592) ) v8 = -2; goto LABEL_26; } LABEL_51: v8 = *(_DWORD *)(v15 + 1592); LABEL_26: if ( !v14 ) { if ( v26 ) { v16 = *(_BYTE *)(v15 + 1432); v17 = *(_BYTE *)(v15 + 1433); v26 = 0; a1->m_currentColor.b = *(_BYTE *)(v15 + 1434); a1->m_currentColor.r = v16; a1->m_currentColor.g = v17; } else if ( a1->m_currentColor.r != *(unsigned __int8 *)(v15 + 1432) || a1->m_currentColor.g != *(unsigned __int8 *)(v15 + 1433) || a1->m_currentColor.b != *(unsigned __int8 *)(v15 + 1434) ) { v14 = 1; a1->m_currentColor.r = -1; a1->m_currentColor.g = -1; a1->m_currentColor.b = -1; } } if ( !v11 ) { if ( v9 ) { v18 = *(float *)(v15 + 1596); v19 = *(float *)(v15 + 1600); v20 = *(_BYTE *)(v15 + 1609); v21 = *(float *)(v15 + 1604); v9 = 0; a1->m_hsv.absoluteSaturation = *(_BYTE *)(v15 + 1608); a1->m_hsv.absoluteBrightness = v20; a1->m_hsv.h = v18; a1->m_hsv.s = v19; a1->m_hsv.v = v21; } else if ( a1->m_hsv.h != *(float *)(v15 + 1596) || a1->m_hsv.s != *(float *)(v15 + 1600) || a1->m_hsv.v != *(float *)(v15 + 1604) || (v25 = v25 & 0xFFFF0000FFFFFFFFLL | ((unsigned __int64)*(unsigned __int8 *)(v15 + 1608) << 32) & 0xFFFF00FFFFFFFFFFLL | ((unsigned __int64)*(unsigned __int8 *)(v15 + 1609) << 40), WORD2(v25) != *(unsigned __int16 *)&a1->m_hsv.absoluteSaturation) ) { a1->m_hsv.absoluteSaturation = 0; a1->m_hsv.h = -0.001; a1->m_hsv.absoluteBrightness = 0; v11 = 1; a1->m_hsv.s = 0.0; a1->m_hsv.v = 0.0; } } m_targetGroupID = a1->m_targetGroupID; if ( m_targetGroupID == -1 ) { a1->m_targetGroupID = *(_DWORD *)(v15 + 1448); } else if ( m_targetGroupID != *(_DWORD *)(v15 + 1448) ) { a1->m_targetGroupID = 0; } m_copyColorID = a1->m_copyColorID; v24 = *(_DWORD *)(v15 + 1612); if ( m_copyColorID == -1 ) { a1->m_copyColorID = v24; ++v5; } else { if ( m_copyColorID != v24 ) a1->m_copyColorID = 0; ++v5; } if ( v5 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) goto LABEL_40; } v4 = *(float *)(v15 + 1584); LABEL_20: if ( v10 == -1 ) goto LABEL_50; goto LABEL_21; } LABEL_40: if ( v13 < 0.0 ) { a1->m_fadeInTime = -0.1; if ( v12 >= 0.0 ) { LABEL_42: a1->m_holdTime = v12; if ( v4 >= 0.0 ) goto LABEL_43; goto LABEL_70; } } else { a1->m_fadeInTime = v13; if ( v12 >= 0.0 ) goto LABEL_42; } a1->m_holdTime = -0.1; if ( v4 >= 0.0 ) { LABEL_43: if ( v10 < 0 ) v10 = -1; a1->m_pulseMode = v10; a1->m_fadeOutTime = v4; if ( (v8 & 0x80000000) == 0 ) { LABEL_46: a1->m_pulseTargetType = v8; return; } LABEL_65: a1->m_pulseTargetType = -1; return; } LABEL_70: if ( v10 < 0 ) v10 = -1; a1->m_pulseMode = v10; a1->m_fadeOutTime = -0.1; if ( (v8 & 0x80000000) == 0 ) goto LABEL_46; goto LABEL_65; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source