// // SetupTriggerPopup::getTruncatedValueByTag from 0x10021e1d0 to 0x10021e25d (141 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:27:02 +0000 // __m128 __fastcall SetupTriggerPopup::getTruncatedValueByTag(__int64 a1, __m128 result) { __int64 v2; // rax int v3; // eax float v4; // xmm0_4 __m128 v5; // xmm2 __m128 v6; // xmm1 __m128 v7; // xmm1 __m128 v8; // [rsp+0h] [rbp-10h] v8 = result; v2 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 760)); if ( v2 ) { v3 = *(_DWORD *)(v2 + 704); if ( v3 <= 0 ) { return _mm_cvtepi32_ps(_mm_cvttps_epi32(result)); } else { if ( v3 == 1 ) v4 = 10.0; else v4 = __exp10f((float)v3); v5 = v8; v5.f32[0] = v8.f32[0] * v4; v6 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v5), (__m128)xmmword_100A03600); v6.f32[0] = v6.f32[0] + (float)(v8.f32[0] * v4); v7 = _mm_round_ss(v6, v6, 11); v7.f32[0] = v7.f32[0] / v4; return v7; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source