// // PlayLayer::getRelativeMod from 0x1000b9290 to 0x1000b92f4 (100 bytes) // // 0 xrefs: // // 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 // float __fastcall PlayLayer::getRelativeMod(PlayLayer *a1, cocos2d::CCPoint a2, float a3, float a4, float a5) { float *v5; // rsi float x; // xmm3_4 float v7; // xmm4_4 __m128 m_halfCameraWidth_low; // xmm0 float v9; // xmm6_4 float v10; // xmm4_4 __m128 v11; // xmm1 x = a2.x; v7 = *v5; m_halfCameraWidth_low = (__m128)LODWORD(a1->m_halfCameraWidth); v9 = a1->m_gameState.m_cameraPosition2.x + m_halfCameraWidth_low.f32[0]; if ( *v5 <= v9 ) { x = a3; v10 = (float)(v9 - v7) - a4; } else { v10 = (float)((float)(v7 - a4) - a1->m_gameState.m_cameraPosition2.x) - m_halfCameraWidth_low.f32[0]; } m_halfCameraWidth_low.f32[0] = (float)(m_halfCameraWidth_low.f32[0] - v10) * x; v11 = (__m128)0x3F800000u; v11.f32[0] = fminf(1.0, m_halfCameraWidth_low.f32[0]); m_halfCameraWidth_low.f32[0] = _mm_andnot_ps(_mm_cmplt_ss(m_halfCameraWidth_low, (__m128)0LL), v11).f32[0]; return m_halfCameraWidth_low.f32[0]; }
GD Web Decomp Icon

GD Web Decomp

Raw Source