// // kmMat4ExtractPlane from 0x7cfe16 to 0x7cffe8 (466 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:00:34 +0000 // float *__fastcall kmMat4ExtractPlane(float *a1, float *a2, int a3) { float v4; // s14 float v5; // s15 float v6; // s14 float v7; // s15 float v8; // s14 float v9; // s15 float v10; // s14 float v11; // s15 float v12; // s14 float v13; // s15 float v14; // s14 float v15; // s15 float v16; // s14 float v17; // s15 float v18; // s14 float v19; // s15 float v20; // s14 float v21; // s15 float v22; // s14 float v23; // s15 float v24; // s14 float v25; // s15 float v26; // s14 float v27; // s15 float v28; // s15 float v29; // s14 float v30; // s15 float v31; // s14 float v32; // s15 float v33; // s15 switch ( a3 ) { case 0: v10 = a2[4]; *a1 = a2[3] + *a2; v11 = a2[7] + v10; v12 = a2[8]; a1[1] = v11; v13 = a2[11] + v12; v14 = a2[12]; a1[2] = v13; v15 = a2[15]; goto LABEL_9; case 1: v4 = a2[4]; *a1 = a2[3] - *a2; v5 = a2[7] - v4; v6 = a2[8]; a1[1] = v5; v7 = a2[11] - v6; v8 = a2[12]; a1[2] = v7; v9 = a2[15]; goto LABEL_7; case 2: v16 = a2[5]; *a1 = a2[3] + a2[1]; v17 = a2[7] + v16; v18 = a2[9]; a1[1] = v17; v19 = a2[11] + v18; v14 = a2[13]; a1[2] = v19; v15 = a2[15]; goto LABEL_9; case 3: v20 = a2[5]; *a1 = a2[3] - a2[1]; v21 = a2[7] - v20; v22 = a2[9]; a1[1] = v21; v23 = a2[11] - v22; v8 = a2[13]; a1[2] = v23; v9 = a2[15]; goto LABEL_7; case 4: v29 = a2[6]; *a1 = a2[3] + a2[2]; v30 = a2[7] + v29; v31 = a2[10]; a1[1] = v30; v32 = a2[11] + v31; v14 = a2[14]; a1[2] = v32; v15 = a2[15]; LABEL_9: v28 = v15 + v14; goto LABEL_10; case 5: v24 = a2[6]; *a1 = a2[3] - a2[2]; v25 = a2[7] - v24; v26 = a2[10]; a1[1] = v25; v27 = a2[11] - v26; v8 = a2[14]; a1[2] = v27; v9 = a2[15]; LABEL_7: v28 = v9 - v8; LABEL_10: a1[3] = v28; break; default: break; } v33 = sqrtf((float)((float)(a1[1] * a1[1]) + (float)(*a1 * *a1)) + (float)(a1[2] * a1[2])); *a1 = *a1 / v33; a1[1] = a1[1] / v33; a1[2] = a1[2] / v33; a1[3] = a1[3] / v33; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source