// // SetupPulsePopup::determineStartValues from 0x1003aeb50 to 0x1003aeff9 (1193 bytes) // // 1 xrefs: // > @ 0x100928ec8 // // 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) { __int64 v1; // rsi bool v2; // zf __int64 m_gameObjects; // r13 SetupPulsePopup *v4; // rbx int v5; // eax char v6; // r14 unsigned int v7; // r15d char v8; // r12 __int64 v9; // rdi char v10; // r13 __int64 v11; // rax SetupPulsePopup *v12; // rdi __m128 v13; // xmm1 __m128i v14; // xmm3 float v15; // xmm4_4 float v16; // xmm0_4 __int128 v17; // xmm2 __m128 v18; // xmm1 __m128i v19; // xmm2 int v20; // ecx cocos2d::ccColor3B *v21; // rdx char v22; // si __m128 v23; // xmm0 __int64 v24; // rcx char v25; // dl cocos2d::ccColor3B *v26; // rcx int m_targetGroupID; // edx int v28; // ecx char v29; // cl int m_copyColorID; // ecx int v31; // eax int v32; // xmm3_4 __m128 inserted; // xmm1 __m128i v34; // xmm2 SetupPulsePopup *v35; // rax __int64 v36; // [rsp+0h] [rbp-80h] __m128 v37; // [rsp+10h] [rbp-70h] __m128i v38; // [rsp+20h] [rbp-60h] BYREF __int128 v39; // [rsp+30h] [rbp-50h] SetupPulsePopup *v40; // [rsp+40h] [rbp-40h] cocos2d::ccColor3B *p_m_currentColor; // [rsp+48h] [rbp-38h] float v42; // [rsp+50h] [rbp-30h] int v43; // [rsp+54h] [rbp-2Ch] SetupTriggerPopup::determineStartValues(a1); v2 = a1->m_gameObject == nullptr; v40 = a1; if ( v2 ) { m_gameObjects = (__int64)a1->m_gameObjects; if ( !m_gameObjects ) return; goto LABEL_5; } m_gameObjects = sub_10071F9E0(a1, v1); sub_10071FCD0(m_gameObjects, a1->m_gameObject); if ( m_gameObjects ) { LABEL_5: if ( !(unsigned int)sub_100720070(m_gameObjects) ) return; v4 = v40; *(_WORD *)&v40->m_groupMainOnly = 257; v4->m_pulseExclusive = 1; v4->m_staticHSV = 1; *(_WORD *)&v4->m_currentColor.r = -1; v4->m_currentColor.b = -1; v4->m_hsv = (cocos2d::ccHSVValue)_mm_loadu_si128((const __m128i *)&xmmword_1009A11A8); *(_QWORD *)&v4->m_targetGroupID = -1; if ( !(unsigned int)sub_100720070(m_gameObjects) ) { v34 = (__m128i)-1LL; inserted = (__m128)xmmword_1008154C0; goto LABEL_59; } p_m_currentColor = &v4->m_currentColor; v5 = (_DWORD)v4 + 1232; v6 = 0; LOBYTE(v5) = 1; v43 = v5; v42 = -1.0; v37 = (__m128)0xBF800000; v39 = 0xBF800000; v7 = 0; v8 = 0; v38 = (__m128i)-1LL; v9 = m_gameObjects; v10 = 1; v36 = v9; while ( 1 ) { v11 = sub_1007200C0(v9, v7); v12 = v40; if ( !*(_BYTE *)(v11 + 1633) ) v40->m_groupMainOnly = 0; if ( !*(_BYTE *)(v11 + 1634) ) v12->m_groupSecondaryOnly = 0; v13 = v37; v14 = _mm_load_si128(&v38); v15 = v42; if ( *(_BYTE *)(v11 + 1635) ) { if ( *(_BYTE *)(v11 + 1636) ) goto LABEL_16; } else { v12->m_pulseExclusive = 0; if ( *(_BYTE *)(v11 + 1636) ) { LABEL_16: v16 = *(float *)(v11 + 1592); if ( v15 == -1.0 ) goto LABEL_17; goto LABEL_20; } } v12->m_staticHSV = 0; v16 = *(float *)(v11 + 1592); if ( v15 == -1.0 ) { LABEL_17: v15 = v16; goto LABEL_22; } LABEL_20: if ( v15 != v16 ) v15 = -2.0; LABEL_22: if ( v37.f32[0] == -1.0 ) { v13 = (__m128)*(unsigned int *)(v11 + 1596); } else if ( v37.f32[0] != *(float *)(v11 + 1596) ) { v13 = (__m128)0xC0000000; } v17 = v39; v37 = v13; if ( *(float *)&v39 == -1.0 ) { v17 = *(unsigned int *)(v11 + 1600); } else if ( *(float *)&v39 != *(float *)(v11 + 1600) ) { v17 = 0xC0000000; } v39 = v17; v18 = (__m128)_mm_loadl_epi64((const __m128i *)(v11 + 1604)); v19 = (__m128i)_mm_blendv_ps( _mm_blendv_ps((__m128)xmmword_10081A950, (__m128)v14, (__m128)_mm_cmpeq_epi32(v14, (__m128i)v18)), v18, (__m128)_mm_cmpeq_epi32(v14, (__m128i)xmmword_10081A970)); if ( (v6 & 1) == 0 ) { v20 = *(unsigned __int16 *)(v11 + 1448) | (*(unsigned __int8 *)(v11 + 1450) << 16); if ( (v43 & 1) != 0 ) { v21 = p_m_currentColor; *(_WORD *)&p_m_currentColor->r = *(_WORD *)(v11 + 1448); v21->b = BYTE2(v20); LABEL_33: v43 = 0; v22 = 0; if ( (v8 & 1) != 0 ) goto LABEL_46; goto LABEL_34; } if ( p_m_currentColor->r == (unsigned __int8)*(_WORD *)(v11 + 1448) && v12->m_currentColor.g == HIBYTE(*(_WORD *)(v11 + 1448)) && v12->m_currentColor.b == BYTE2(v20) ) { goto LABEL_33; } v26 = p_m_currentColor; p_m_currentColor->b = -1; *(_WORD *)&v26->r = -1; v43 = 0; } v22 = 1; if ( (v8 & 1) != 0 ) { LABEL_46: v8 = 1; LABEL_47: m_targetGroupID = v12->m_targetGroupID; v28 = *(_DWORD *)(v11 + 1464); if ( m_targetGroupID != -1 ) goto LABEL_51; goto LABEL_52; } LABEL_34: v23 = (__m128)*(unsigned __int64 *)(v11 + 1612); v24 = *(_QWORD *)(v11 + 1620); if ( (v10 & 1) == 0 ) { if ( v4->m_hsv.h == v23.f32[0] && v12->m_hsv.s == _mm_movehdup_ps(v23).f32[0] && v12->m_hsv.v == *(float *)&v24 && v12->m_hsv.absoluteSaturation == BYTE4(v24) ) { v25 = v10; v8 = 0; v10 = 0; if ( v12->m_hsv.absoluteBrightness == BYTE5(v24) ) goto LABEL_47; v23 = (__m128)0xBA83126F; v24 = 0; v10 = v25; } else { v23 = (__m128)0xBA83126F; v24 = 0; } } _mm_storel_ps((double *)&v12->m_hsv.h, v23); *(_QWORD *)&v12->m_hsv.v = v24; v29 = v10 ^ 1; v10 = 0; v8 = v29; m_targetGroupID = v12->m_targetGroupID; v28 = *(_DWORD *)(v11 + 1464); if ( m_targetGroupID != -1 ) { LABEL_51: v2 = m_targetGroupID == v28; v28 = 0; if ( v2 ) goto LABEL_53; } LABEL_52: v12->m_targetGroupID = v28; LABEL_53: m_copyColorID = v12->m_copyColorID; v31 = *(_DWORD *)(v11 + 1628); v38 = v19; v42 = v15; if ( m_copyColorID == -1 || (v2 = m_copyColorID == v31, v31 = 0, !v2) ) v12->m_copyColorID = v31; ++v7; v9 = v36; v6 = v22; if ( v7 >= (unsigned int)sub_100720070(v36) ) { v32 = LODWORD(v42); inserted = _mm_insert_ps(v37, (__m128)(unsigned int)v39, 16); v34 = _mm_load_si128(&v38); if ( v42 >= 0.0 ) { LABEL_60: v35 = v40; LODWORD(v40->m_fadeInTime) = v32; *(__m128 *)&v35->m_holdTime = _mm_movelh_ps( _mm_blendv_ps( inserted, (__m128)xmmword_10081A960, _mm_cmpnle_ps((__m128)0LL, inserted)), (__m128)_mm_max_epi32((__m128i)-1LL, v34)); return; } LABEL_59: v32 = -1110651699; goto LABEL_60; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source