// // DrawGridLayer::getPortalMinMax from 0x100100ed0 to 0x100100f83 (179 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 // cocos2d::CCPoint __fastcall DrawGridLayer::getPortalMinMax(DrawGridLayer *a1, GameObject *a2) { __int64 v2; // rdx __int64 v3; // r14 float v4; // xmm0_4 __m128 v5; // xmm3 float v7; // [rsp+Ch] [rbp-14h] cocos2d::CCPoint result; // 0:xmm0_8.8 v3 = v2; if ( (*(unsigned int (__fastcall **)(__int64, GameObject *))(*(_QWORD *)v2 + 1784LL))(v2, a2) == 16 ) v4 = 240.0; else v4 = flt_1008164B0[(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v3 + 1784LL))(v3) == 33]; v7 = v4; v5 = 0; v5.f32[0] = (float)((float)((float)(-0.5 * v4) + *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3) + 4)) + 0.0) / 30.0; result = (cocos2d::CCPoint)_mm_round_ss((__m128)0LL, v5, 9).u64[0]; result.x = fmaxf(result.x * 30.0, 90.0); sub_10028CBE0(a1, result.x, v7 + result.x); return result; }