// // sub_EFF8D0 from 0xeff8d0 to 0xeffc48 (888 bytes) // // 2 xrefs: // > sub_F28D38 @ 0xf28e6c // > sub_F28D38 @ 0xf28f50 // // 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 13:12:18 +0000 // unsigned __int64 __fastcall sub_EFF8D0(unsigned __int64 result, int a2, int a3, unsigned __int64 a4) { int v4; // w8 int v5; // w6 int v6; // w5 char v7; // w4 int v8; // w9 unsigned int v9; // w2 int v10; // w6 unsigned int v11; // w5 int8x16_t v12; // q2 uint8x16_t *v13; // x9 unsigned int v14; // w4 int8x16_t *v15; // x2 int v16; // w7 unsigned int v17; // w8 uint8x16_t v18; // t1 int8x16_t *v19; // x12 int8x16_t *v20; // x11 int8x16_t *v21; // x10 uint16x8_t v22; // q1 uint16x8_t v23; // q0 int v24; // w2 int v25; // w5 int v26; // w2 __int64 v27; // x4 if ( a3 <= 0 ) { if ( a2 > 0 ) { if ( (result >= a4 + 4LL * a2 || a4 >= result + a2) && (unsigned int)a2 > 0x12 ) { v9 = -((a4 >> 2) & 3) & 3; if ( v9 > a2 ) v9 = a2; if ( v9 ) { *(_DWORD *)a4 = (*(unsigned __int8 *)result << 8) | 0xFF000000; if ( v9 == 1 ) { v10 = 1; } else { *(_DWORD *)(a4 + 4) = (*(unsigned __int8 *)(result + 1) << 8) | 0xFF000000; if ( v9 == 3 ) { v10 = 3; *(_DWORD *)(a4 + 8) = (*(unsigned __int8 *)(result + 2) << 8) | 0xFF000000; } else { v10 = 2; } } } else { v10 = 0; } v11 = a2 - v9; v12.n128_u64[0] = 0xFF000000FF000000LL; v12.n128_u64[1] = 0xFF000000FF000000LL; v13 = (uint8x16_t *)(result + v9); v14 = ((a2 - v9 - 16) >> 4) + 1; v15 = (int8x16_t *)(a4 + 4LL * v9); v16 = 16 * v14; v17 = 0; do { v18 = *v13++; v19 = v15; v20 = v15 + 2; v21 = v15 + 3; ++v17; v15 += 4; v22 = vmovl_u8((uint8x8_t)v18.n128_u64[0]); v23 = vmovl_high_u8(v18); *v19 = vorrq_s8(vshlq_n_s32(vmovl_u16((uint16x4_t)v22.n128_u64[0]), 8u), v12); v19[1] = vorrq_s8(vshlq_n_s32(vmovl_high_u16(v22), 8u), v12); *v20 = vorrq_s8(vshlq_n_s32(vmovl_u16((uint16x4_t)v23.n128_u64[0]), 8u), v12); *v21 = vorrq_s8(vshlq_n_s32(vmovl_high_u16(v23), 8u), v12); } while ( v17 < v14 ); v24 = v10 + v16; if ( v11 != v16 ) { *(_DWORD *)(a4 + 4LL * v24) = (*(unsigned __int8 *)(result + v24) << 8) | 0xFF000000; if ( a2 > v24 + 1 ) { *(_DWORD *)(a4 + 4LL * (v24 + 1)) = (*(unsigned __int8 *)(result + v24 + 1) << 8) | 0xFF000000; if ( a2 > v24 + 2 ) { *(_DWORD *)(a4 + 4LL * (v24 + 2)) = (*(unsigned __int8 *)(result + v24 + 2) << 8) | 0xFF000000; if ( a2 > v24 + 3 ) { *(_DWORD *)(a4 + 4LL * (v24 + 3)) = (*(unsigned __int8 *)(result + v24 + 3) << 8) | 0xFF000000; if ( a2 > v24 + 4 ) { *(_DWORD *)(a4 + 4LL * (v24 + 4)) = (*(unsigned __int8 *)(result + v24 + 4) << 8) | 0xFF000000; if ( a2 > v24 + 5 ) { *(_DWORD *)(a4 + 4LL * (v24 + 5)) = (*(unsigned __int8 *)(result + v24 + 5) << 8) | 0xFF000000; if ( a2 > v24 + 6 ) { *(_DWORD *)(a4 + 4LL * (v24 + 6)) = (*(unsigned __int8 *)(result + v24 + 6) << 8) | 0xFF000000; if ( a2 > v24 + 7 ) { *(_DWORD *)(a4 + 4LL * (v24 + 7)) = (*(unsigned __int8 *)(result + v24 + 7) << 8) | 0xFF000000; if ( a2 > v24 + 8 ) { *(_DWORD *)(a4 + 4LL * (v24 + 8)) = (*(unsigned __int8 *)(result + v24 + 8) << 8) | 0xFF000000; if ( a2 > v24 + 9 ) { *(_DWORD *)(a4 + 4LL * (v24 + 9)) = (*(unsigned __int8 *)(result + v24 + 9) << 8) | 0xFF000000; if ( a2 > v24 + 10 ) { *(_DWORD *)(a4 + 4LL * (v24 + 10)) = (*(unsigned __int8 *)(result + v24 + 10) << 8) | 0xFF000000; if ( a2 > v24 + 11 ) { *(_DWORD *)(a4 + 4LL * (v24 + 11)) = (*(unsigned __int8 *)(result + v24 + 11) << 8) | 0xFF000000; if ( a2 > v24 + 12 ) { v25 = v24 + 13; *(_DWORD *)(a4 + 4LL * (v24 + 12)) = (*(unsigned __int8 *)(result + v24 + 12) << 8) | 0xFF000000; if ( a2 > v24 + 13 ) { v26 = v24 + 14; *(_DWORD *)(a4 + 4LL * v25) = (*(unsigned __int8 *)(result + v25) << 8) | 0xFF000000; if ( a2 > v26 ) { result = (*(unsigned __int8 *)(result + v26) << 8) | 0xFF000000; *(_DWORD *)(a4 + 4LL * v26) = result; } } } } } } } } } } } } } } } } else { v27 = 0; do { *(_DWORD *)(a4 + 4 * v27) = (*(unsigned __int8 *)(result + v27) << 8) | 0xFF000000; ++v27; } while ( a2 > (int)v27 ); } } } else { v4 = (1 << a3) - 1; if ( a2 > 0 ) { v5 = -16777216; v6 = 0; v7 = 0; while ( 1 ) { v8 = v6++ >> a3; v5 |= *(unsigned __int8 *)result << ((1 << (3 - a3)) * v7 + 8); *(_DWORD *)(a4 + 4LL * v8) = v5; ++result; if ( v6 == a2 ) break; v7 = v6 & v4; if ( (v6 & v4) == 0 ) v5 = -16777216; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source