// // sub_59774 from 0x59774 to 0x597e0 (108 bytes) // // 2 xrefs: // > sub_59D94 @ 0x59fe4 // > sub_704E0 @ 0x704e8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_59774(__int64 a1, char a2) { __int64 v2; // x8 unsigned int v3; // w9 unsigned int v4; // w9 bool v5; // cc int v6; // w9 int v7; // w8 __int64 v8; // x8 __int64 v10; // [xsp+8h] [xbp-8h] BYREF v10 = 0; v2 = *(_QWORD *)(a1 + 80); v3 = v2; if ( (a2 & 1) == 0 ) v3 = *(_DWORD *)(a1 + 468); v4 = (unsigned __int16)(v3 >> 1); v5 = v4 > 0xFFFD; v6 = 2 * v4 + 2; v7 = v2 & 0xFFFE0000; if ( v5 ) v6 = 2; v8 = v7 | v6 | 1u; *(_QWORD *)(a1 + 80) = v8; if ( (a2 & 1) != 0 ) *(_DWORD *)(a1 + 468) = v8; sub_51968(&v10); return 0; }