// // sub_10040C500 from 0x10040c500 to 0x10040c5c0 (192 bytes) // // 1 xrefs: // > DrawGridLayer::draw @ 0x10040d304 // // This function is hookable on this platform (idp: arm, 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 11:04:46 +0000 // float *__usercall sub_10040C500@(__int64 a1@, float *a2@) { float v4; // s8 float v5; // s0 if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a1 + 1800LL))(a1) == 16 ) { v4 = 240.0; } else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a1 + 1800LL))(a1) == 33 ) { v4 = 270.0; } else { v4 = 300.0; } v5 = fmaxf( floorf( (float)((float)(*(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1) + 4) + (float)(v4 * -0.5)) + 0.0) / 30.0) * 30.0, 90.0); return sub_1000262BC(a2, v5, v4 + v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source