// // sub_1000DA5D8 from 0x1000da5d8 to 0x1000da69c (196 bytes) // // 2 xrefs: // > sub_1000DA410 @ 0x1000da46c // > sub_1000DA410 @ 0x1000da4b4 // // 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 10:58:58 +0000 // __int64 __fastcall sub_1000DA5D8(__int64 result, __int64 a2, __int64 a3, int *a4) { __int64 v4; // x9 signed __int64 v5; // x8 __int64 v6; // x11 __int64 v7; // x10 int *v8; // x9 __int64 v9; // x11 int v10; // w12 int v11; // w14 int v12; // w11 __int64 v13; // x13 int v14; // w15 if ( a3 >= 2 ) { v4 = (__int64)a4 - result; v5 = (unsigned __int64)(a3 - 2) >> 1; if ( v5 >= ((__int64)a4 - result) >> 2 ) { v6 = v4 >> 1; v7 = (v4 >> 1) + 1; v8 = (int *)(result + 4 * v7); v9 = v6 + 2; if ( v9 >= a3 ) { v10 = *v8; } else { v10 = *v8; v11 = v8[1]; if ( *v8 >= v11 ) v10 = v8[1]; if ( *v8 > v11 ) { ++v8; v7 = v9; } } v12 = *a4; if ( v10 <= *a4 ) { do { *a4 = v10; a4 = v8; if ( v5 < v7 ) break; v13 = (2 * v7) | 1; v8 = (int *)(result + 4 * v13); v7 = 2 * v7 + 2; if ( v7 >= a3 ) { v10 = *v8; v7 = v13; } else { v10 = *v8; v14 = v8[1]; if ( *v8 >= v14 ) v10 = v8[1]; if ( *v8 <= v14 ) v7 = v13; else ++v8; } } while ( v10 <= v12 ); *a4 = v12; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source