// // SetupPulsePopup::determineStartValues from 0x1003b6b70 to 0x1003b6ef0 (896 bytes) // // 1 xrefs: // > @ 0x10080f348 // // 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::determineStartValues(SetupPulsePopup *a1) { cocos2d::CCArray *m_gameObjects; // x20 cocos2d::ccColor3B *p_m_currentColor; // x22 char v4; // w28 unsigned int v5; // w21 char v6; // w23 char v7; // w27 float v8; // s10 float v9; // s8 float v10; // s9 char v11; // w26 __int64 v12; // x0 int32x2_t v13; // d0 int v14; // w9 __int64 v15; // x9 __int64 v16; // x8 int m_targetGroupID; // w9 int v18; // w8 int m_copyColorID; // w9 int v20; // w8 int8x8_t v21; // d2 float v22; // s0 float v23; // s1 int32x2_t v24; // [xsp+0h] [xbp-80h] SetupTriggerPopup::determineStartValues(a1); if ( a1->m_gameObject ) { m_gameObjects = (cocos2d::CCArray *)sub_10024A15C(); sub_10024A2D0((__int64)m_gameObjects); if ( !m_gameObjects ) return; } else { m_gameObjects = a1->m_gameObjects; if ( !m_gameObjects ) return; } if ( !(unsigned int)sub_10024A36C((__int64)m_gameObjects) ) return; p_m_currentColor = &a1->m_currentColor; *(_WORD *)&a1->m_groupMainOnly = 257; a1->m_pulseExclusive = 1; a1->m_staticHSV = 1; *(_WORD *)&a1->m_currentColor.r = -1; a1->m_currentColor.b = -1; a1->m_hsv = (cocos2d::ccHSVValue)xmmword_10086E6B0; *(_QWORD *)&a1->m_targetGroupID = -1; if ( !(unsigned int)sub_10024A36C((__int64)m_gameObjects) ) { v24 = (int32x2_t)-1LL; v9 = -1.0; v10 = -1.0; goto LABEL_59; } v4 = 0; v5 = 0; v6 = 0; v7 = 1; v8 = -1.0; v9 = -1.0; v10 = -1.0; v11 = 1; v24 = (int32x2_t)-1LL; do { v12 = sub_10024A388((__int64)m_gameObjects, v5); if ( (*(_BYTE *)(v12 + 1633) & 1) == 0 ) a1->m_groupMainOnly = 0; if ( (*(_BYTE *)(v12 + 1634) & 1) == 0 ) a1->m_groupSecondaryOnly = 0; if ( (*(_BYTE *)(v12 + 1635) & 1) == 0 ) a1->m_pulseExclusive = 0; if ( (*(_BYTE *)(v12 + 1636) & 1) == 0 ) a1->m_staticHSV = 0; if ( v8 == -1.0 ) { v8 = *(float *)(v12 + 1592); } else if ( v8 != *(float *)(v12 + 1592) ) { v8 = -2.0; } if ( v9 == -1.0 ) { v9 = *(float *)(v12 + 1596); } else if ( v9 != *(float *)(v12 + 1596) ) { v9 = -2.0; } if ( v10 == -1.0 ) { v10 = *(float *)(v12 + 1600); } else if ( v10 != *(float *)(v12 + 1600) ) { v10 = -2.0; } v13 = *(int32x2_t *)(v12 + 1604); if ( (v4 & 1) != 0 ) goto LABEL_45; v14 = *(unsigned __int16 *)(v12 + 1448) | (*(unsigned __int8 *)(v12 + 1450) << 16); if ( (v7 & 1) != 0 ) { v7 = 0; v4 = 0; *(_WORD *)&p_m_currentColor->r = *(_WORD *)(v12 + 1448); a1->m_currentColor.b = BYTE2(v14); if ( (v6 & 1) == 0 ) goto LABEL_35; goto LABEL_46; } if ( p_m_currentColor->r != (unsigned __int8)*(_WORD *)(v12 + 1448) || __PAIR64__(a1->m_currentColor.b, a1->m_currentColor.g) != __PAIR64__((v14 & 0xFF0000u) >> 16, BYTE1(v14)) ) { v7 = 0; a1->m_currentColor.b = -1; *(_WORD *)&p_m_currentColor->r = -1; LABEL_45: v4 = 1; if ( (v6 & 1) != 0 ) goto LABEL_46; LABEL_35: v15 = *(_QWORD *)(v12 + 1612); v16 = *(_QWORD *)(v12 + 1620); if ( (v11 & 1) == 0 ) { if ( a1->m_hsv.h == *(float *)&v15 && a1->m_hsv.s == *((float *)&v15 + 1) && a1->m_hsv.v == *(float *)&v16 && __PAIR64__(a1->m_hsv.absoluteBrightness, a1->m_hsv.absoluteSaturation) == __PAIR64__( BYTE5(v16), BYTE4(v16)) ) { v6 = 0; LABEL_43: v11 = 0; goto LABEL_47; } v16 = 0; v15 = 3129152111LL; } v6 = v11 ^ 1; *(_QWORD *)&a1->m_hsv.h = v15; *(_QWORD *)&a1->m_hsv.v = v16; goto LABEL_43; } v7 = 0; v4 = 0; if ( (v6 & 1) == 0 ) goto LABEL_35; LABEL_46: v6 = 1; LABEL_47: m_targetGroupID = a1->m_targetGroupID; v18 = *(_DWORD *)(v12 + 1464); if ( m_targetGroupID != -1 ) { if ( m_targetGroupID == v18 ) goto LABEL_51; v18 = 0; } a1->m_targetGroupID = v18; LABEL_51: m_copyColorID = a1->m_copyColorID; v20 = *(_DWORD *)(v12 + 1628); if ( m_copyColorID != -1 ) { if ( m_copyColorID == v20 ) goto LABEL_55; v20 = 0; } a1->m_copyColorID = v20; LABEL_55: v21 = (int8x8_t)vceq_s32(v24, v13); v24 = (int32x2_t)vbsl_s8( (int8x8_t)vceq_s32(v24, (int32x2_t)-1LL), (int8x8_t)v13, vorr_s8(vand_s8((int8x8_t)v24, v21), (int8x8_t)(*(_QWORD *)&vmvn_s8(v21) & 0xFFFFFFFEFFFFFFFELL))); ++v5; } while ( v5 < (unsigned int)sub_10024A36C((__int64)m_gameObjects) ); if ( v8 < 0.0 ) LABEL_59: v8 = -0.1; a1->m_fadeInTime = v8; v22 = -0.1; if ( v9 >= 0.0 ) v23 = v9; else v23 = -0.1; a1->m_holdTime = v23; if ( v10 >= 0.0 ) v22 = v10; a1->m_fadeOutTime = v22; *(int32x2_t *)&a1->m_pulseMode = vmax_s32(v24, (int32x2_t)-1LL); }
GD Web Decomp Icon

GD Web Decomp

Raw Source