// // sub_1005726B8 from 0x1005726b8 to 0x100572828 (368 bytes) // // 2 xrefs: // > sub_1005735A8 @ 0x1005735f4 // > sub_1005736F8 @ 0x1005737e8 // // 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:08:19 +0000 // __int64 __fastcall sub_1005726B8(__int64 *a1, int a2, int a3, __int64 a4) { __int64 v8; // x0 int v9; // w10 __int64 v10; // x23 int v11; // w25 __int64 v12; // x0 int v13; // w8 int v14; // w11 int v15; // w9 int v16; // w12 int v17; // w10 __int64 v18; // x11 int v19; // w12 int v20; // w10 __int64 v21; // x24 while ( 1 ) { if ( *((_BYTE *)a1 + 24) ) return 0; v8 = sub_1005DBDD8(a1[4]); if ( (_DWORD)v8 ) return v8; if ( *((_DWORD *)a1 + 5) ) goto LABEL_16; v9 = *((_DWORD *)a1 + 2); if ( v9 < a2 ) break; v14 = *((_DWORD *)a1 + 3); v13 = *((_DWORD *)a1 + 4); v15 = v9 - v14; v16 = v14 & (v9 - 1); v17 = v9 - v16; v18 = *a1; *(_QWORD *)(a4 + 8) = *a1 + v16; *(_QWORD *)(a4 + 16) = 0; *(_DWORD *)(a4 + 24) = a2; *(_DWORD *)(a4 + 28) = 0; v19 = a2; if ( v17 < a2 ) { if ( a3 ) { v19 = v17 + a2; *(_DWORD *)(a4 + 24) = v17; *(_QWORD *)(a4 + 16) = v18; v20 = a2; } else { *(_DWORD *)(a4 + 24) = v17; *(_QWORD *)(a4 + 16) = v18; v20 = a2 - v17; v19 = a2; } *(_DWORD *)(a4 + 28) = v20; } if ( v15 + v13 >= v19 ) { v21 = 0; *(_QWORD *)a4 = a1[4]; return v21; } LABEL_16: ++*((_DWORD *)a1 + 15); v8 = sub_1005DBE08(a1[4]); if ( !(_DWORD)v8 ) { v8 = sub_1005DBF10(a1[6]); if ( !(_DWORD)v8 ) continue; } return v8; } *((_DWORD *)a1 + 5) = a2; v10 = a1[4]; sub_1005DBDD8(v10); if ( *((int *)a1 + 14) < 1 ) { LABEL_9: *((_DWORD *)a1 + 14) = 0; sub_1005DBE08(v10); goto LABEL_16; } v11 = 0; while ( 1 ) { v12 = sub_1005DBF3C(a1[5]); if ( (_DWORD)v12 ) break; if ( ++v11 >= *((_DWORD *)a1 + 14) ) goto LABEL_9; } v21 = v12; sub_1005DBE08(v10); return v21; }
GD Web Decomp Icon

GD Web Decomp

Raw Source