// // sub_1004627F0 from 0x1004627f0 to 0x100462878 (136 bytes) // // 0 xrefs: // // 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_1004627F0(__int64 a1, unsigned int a2, int *a3) { _BYTE *v3; // x8 unsigned int v4; // w9 char v5; // w10 char v6; // w10 unsigned int *v7; // x11 unsigned int v8; // w12 unsigned int v9; // t1 int v10; // w9 _DWORD *v11; // x11 v3 = (_BYTE *)(a1 + 17464); v4 = *(unsigned __int8 *)(a1 + 17464); v5 = v4 - a2; if ( v4 < a2 ) { v6 = a2 - v4; v7 = *(unsigned int **)(a1 + 17456); v8 = *v7; v9 = v7[1]; *(_QWORD *)(a1 + 17456) = ++v7; v10 = ((v9 & ~(-1 << (a2 - v4))) << v4) | v8; *v7 = v9 >> v6; *v3 = 32 - v6; if ( !a3 ) return 0; goto LABEL_5; } v11 = *(_DWORD **)(a1 + 17456); v10 = *v11 & ~(-1 << a2); *v11 >>= a2; *v3 = v5; if ( a3 ) LABEL_5: *a3 = v10; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source