// // DrawGridLayer::getPortalMinMax from 0x1000d6ea0 to 0x1000d6f53 (179 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:20:55 +0000 // __int64 __fastcall DrawGridLayer::getPortalMinMax(__int64 a1, __int64 a2, __int64 a3) { float v4; // xmm0_4 __m128 v5; // xmm3 float v6; // xmm0_4 float v8; // [rsp+Ch] [rbp-14h] if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a3 + 1800LL))(a3) == 16 ) v4 = 240.0; else v4 = flt_100A048A8[(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a3 + 1800LL))(a3) == 33]; v8 = v4; v5 = 0; v5.f32[0] = (float)((float)((float)(-0.5 * v4) + *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a3 + 192LL))(a3) + 4)) + 0.0) / 30.0; v6 = fmaxf(_mm_round_ss((__m128)0LL, v5, 9).f32[0] * 30.0, 90.0); sub_100278250(a1, v6, v8 + v6); return a1; }