// // sub_1001E59E8 from 0x1001e59e8 to 0x1001e5aa0 (184 bytes) // // 2 xrefs: // > sub_1001F32C8 @ 0x1001f33c8 // > sub_1001F489C @ 0x1001f4d34 // // 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:00:32 +0000 // __int64 __fastcall sub_1001E59E8(__int64 a1, int a2, int a3) { __int64 result; // x0 __int64 v5; // x22 __int64 v8; // x23 __int64 v9; // x0 int v10; // w8 int v11; // w8 result = 0; if ( a3 >= 1 ) { v5 = *(_QWORD *)(a1 + 64); if ( v5 ) { if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 64)) ) { v8 = 0; while ( 1 ) { v9 = sub_1002E75A0(v5, v8); v10 = *(_DWORD *)(a1 + 140); if ( !v10 ) break; if ( v10 == 4 ) { v11 = *(_DWORD *)(v9 + 76); } else { v11 = *(_DWORD *)(v9 + 76); if ( v11 <= 0 ) break; } LABEL_10: if ( v11 == a2 ) return (unsigned int)(int)(float)((unsigned int)v8 / a3); v8 = (unsigned int)(v8 + 1); if ( (unsigned int)v8 >= (unsigned int)sub_1002E757C(v5) ) goto LABEL_12; } v11 = *(_DWORD *)(v9 + 56); goto LABEL_10; } LABEL_12: LODWORD(v8) = 0; return (unsigned int)(int)(float)((unsigned int)v8 / a3); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source