// // sub_1004B26F4 from 0x1004b26f4 to 0x1004b2820 (300 bytes) // // 2 xrefs: // > sub_1004B11CC @ 0x1004b131c // > sub_1004B11CC @ 0x1004b1464 // // 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:06:12 +0000 // __int64 *__fastcall sub_1004B26F4(__int64 a1, unsigned int a2) { __int64 *result; // x0 __int64 *v4; // x20 __int64 v5; // x8 unsigned __int64 v6; // x22 char v7; // w24 int v8; // w8 __int64 v9; // x9 __int64 v10; // x21 __n128 v11; // q0 unsigned int v12; // [xsp+Ch] [xbp-44h] BYREF v12 = a2; result = sub_10039078C((_QWORD *)(a1 + 344), &v12); if ( result ) { v4 = result; v5 = result[3]; if ( result[4] != v5 ) { v6 = 0; v7 = 0; do { while ( 1 ) { v8 = *(_DWORD *)(v5 + 4 * v6); v9 = *(_QWORD *)(a1 + 320); v10 = v9 + 80LL * v8; if ( *(_QWORD *)(v10 + 64) || (sub_1004B15BC(a1, v9 + 80LL * v8), *(_QWORD *)(v10 + 64)) ) (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 464LL))(*(_QWORD *)(a1 + 408)); result = *(__int64 **)(v10 + 72); if ( !result ) break; if ( *(_BYTE *)(a1 + 449) ) v11.n128_f32[0] = -0.5; else v11.n128_f32[0] = 0.5; (*(void (__fastcall **)(__int64 *, __n128))(*result + 128))(result, v11); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 416) + 456LL))( *(_QWORD *)(a1 + 416), *(_QWORD *)(v10 + 72)); ++v6; v5 = v4[3]; v7 = 1; if ( v6 >= (v4[4] - v5) >> 2 ) return (__int64 *)sub_1004B2820(a1); } ++v6; v5 = v4[3]; } while ( v6 < (v4[4] - v5) >> 2 ); if ( (v7 & 1) == 0 ) return result; return (__int64 *)sub_1004B2820(a1); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source