// // sub_10059E668 from 0x10059e668 to 0x10059e948 (736 bytes) // // 1 xrefs: // > sub_10059E948 @ 0x10059ed14 // // 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:09:00 +0000 // __int64 __fastcall sub_10059E668(__int64 a1, float *a2, float *a3, int a4, int *a5) { __int64 v6; // x19 __int64 v8; // x8 __int64 v9; // x10 __int64 v10; // x12 __int64 v11; // x9 __int64 v12; // x20 __int64 v13; // x21 __int64 v14; // x26 __int64 v15; // x8 int v16; // w9 float *v17; // x23 __int64 v18; // x8 float *v19; // x24 float *v20; // x25 float *v21; // x23 int v22; // w8 v6 = (__int64)a3; v8 = *(_QWORD *)(a1 + 376); v9 = v8 + 4LL * a4; v10 = *(int *)(v9 + 18616); v8 += 9288; v11 = 2304LL * a4; v12 = v8 + 4608 * v10 + v11; LODWORD(v10) = 1 - v10; v13 = v8 + 4608LL * (int)v10 + v11; *(_DWORD *)(v9 + 18616) = v10; if ( a5[5] ) { sub_10059DD64(a2, (float *)v12, (float *)v13, (float *)dword_100A1BDD0, a3); sub_10059DD64(a2 + 18, (float *)(v12 + 72), (float *)(v13 + 72), (float *)dword_100A1C010, (float *)(v6 + 4)); v12 += 144; v13 += 144; v6 += 8; LODWORD(v14) = 2; } else { LODWORD(v14) = 0; } v15 = a5[4]; v16 = a5[16]; if ( (_DWORD)v15 == 2 ) { if ( (int)v14 < v16 ) { v17 = &a2[18 * (unsigned int)v14]; v14 = (unsigned int)v14; do { sub_10059E274(v17, v12, v13, (float *)&dword_100A1BEF0, v6); sub_10059E274(v17 + 18, v12 + 72, v13 + 72, (float *)&dword_100A1C130, v6 + 4); v14 += 2; v6 += 8; v12 += 144; v13 += 144; v17 += 36; } while ( v14 < a5[16] ); goto LABEL_12; } } else if ( (int)v14 < v16 ) { v18 = 36 * v15; v19 = (float *)&dword_100A1BDD0[v18]; v20 = (float *)&dword_100A1C010[v18]; v21 = &a2[18 * (unsigned int)v14]; v14 = (unsigned int)v14; do { sub_10059DD64(v21, (float *)v12, (float *)v13, v19, (float *)v6); sub_10059DD64(v21 + 18, (float *)(v12 + 72), (float *)(v13 + 72), v20, (float *)(v6 + 4)); v14 += 2; v6 += 8; v12 += 144; v13 += 144; v21 += 36; } while ( v14 < a5[16] ); LABEL_12: if ( (int)v14 > 31 ) return 0; } v22 = v14 - 32; do { *(_DWORD *)v6 = *(_DWORD *)v12; *(_DWORD *)v13 = 0; *(_DWORD *)(v6 + 128) = *(_DWORD *)(v12 + 4); *(_DWORD *)(v13 + 4) = 0; *(_DWORD *)(v6 + 256) = *(_DWORD *)(v12 + 8); *(_DWORD *)(v13 + 8) = 0; *(_DWORD *)(v6 + 384) = *(_DWORD *)(v12 + 12); *(_DWORD *)(v13 + 12) = 0; *(_DWORD *)(v6 + 512) = *(_DWORD *)(v12 + 16); *(_DWORD *)(v13 + 16) = 0; *(_DWORD *)(v6 + 640) = *(_DWORD *)(v12 + 20); *(_DWORD *)(v13 + 20) = 0; *(_DWORD *)(v6 + 768) = *(_DWORD *)(v12 + 24); *(_DWORD *)(v13 + 24) = 0; *(_DWORD *)(v6 + 896) = *(_DWORD *)(v12 + 28); *(_DWORD *)(v13 + 28) = 0; *(_DWORD *)(v6 + 1024) = *(_DWORD *)(v12 + 32); *(_DWORD *)(v13 + 32) = 0; *(_DWORD *)(v6 + 1152) = *(_DWORD *)(v12 + 36); *(_DWORD *)(v13 + 36) = 0; *(_DWORD *)(v6 + 1280) = *(_DWORD *)(v12 + 40); *(_DWORD *)(v13 + 40) = 0; *(_DWORD *)(v6 + 1408) = *(_DWORD *)(v12 + 44); *(_DWORD *)(v13 + 44) = 0; *(_DWORD *)(v6 + 1536) = *(_DWORD *)(v12 + 48); *(_DWORD *)(v13 + 48) = 0; *(_DWORD *)(v6 + 1664) = *(_DWORD *)(v12 + 52); *(_DWORD *)(v13 + 52) = 0; *(_DWORD *)(v6 + 1792) = *(_DWORD *)(v12 + 56); *(_DWORD *)(v13 + 56) = 0; *(_DWORD *)(v6 + 1920) = *(_DWORD *)(v12 + 60); *(_DWORD *)(v13 + 60) = 0; *(_DWORD *)(v6 + 2048) = *(_DWORD *)(v12 + 64); *(_DWORD *)(v13 + 64) = 0; *(_DWORD *)(v6 + 2176) = *(_DWORD *)(v12 + 68); *(_DWORD *)(v13 + 68) = 0; v12 += 72; v6 += 4; v13 += 72; } while ( !__CFADD__(v22++, 1) ); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source