// // kmMat4PerspectiveProjection from 0x100459e74 to 0x100459f44 (208 bytes) // // 1 xrefs: // > cocos2d::CCDirector::setProjection @ 0x100206ac8 // // 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:05:25 +0000 // __int64 __fastcall kmMat4PerspectiveProjection(__int64 a1, float a2, float a3, float a4, float a5) { float v9; // s11 float v10; // s0 __int64 result; // x0 float v12; // s13 float v13; // s0 v9 = kmDegreesToRadians(a2 * 0.5); v10 = sinf(v9); result = 0; if ( a3 != 0.0 ) { v12 = a5 - a4; if ( (float)(a5 - a4) != 0.0 && v10 != 0.0 ) { v13 = cosf(v9) / v10; *(_OWORD *)a1 = 0u; *(_OWORD *)(a1 + 16) = 0u; *(_OWORD *)(a1 + 32) = 0u; *(_OWORD *)(a1 + 48) = 0u; *(float *)a1 = v13 / a3; *(float *)(a1 + 20) = v13; *(float *)(a1 + 40) = (float)-(float)(a4 + a5) / v12; *(_DWORD *)(a1 + 44) = -1082130432; *(float *)(a1 + 56) = (float)((float)(a4 * -2.0) * a5) / v12; *(_DWORD *)(a1 + 60) = 0; return a1; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source