// // sub_100411058 from 0x100411058 to 0x10041110c (180 bytes) // // 8 xrefs: // > sub_1004078F4 @ 0x100407924 // > sub_10040908C @ 0x100409550 // > sub_10040908C @ 0x1004095cc // > sub_10040908C @ 0x100409630 // > sub_10040908C @ 0x100409684 // > sub_10040908C @ 0x1004096d8 // > sub_10040908C @ 0x100409754 // > sub_10040908C @ 0x100409764 // // 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:04:50 +0000 // _QWORD *__fastcall sub_100411058(_QWORD *a1, unsigned __int64 *a2) { int8x8_t v2; // x8 unsigned __int64 v3; // x9 uint8x8_t v4; // d0 unsigned __int64 v5; // x11 _QWORD *v6; // x12 _QWORD *result; // x0 unsigned __int64 v8; // x13 v2 = (int8x8_t)a1[1]; if ( !*(_QWORD *)&v2 ) return nullptr; v3 = *a2; v4 = (uint8x8_t)vcnt_s8(v2); v4.i16[0] = vaddlv_u8(v4); if ( v4.u32[0] > 1uLL ) { v5 = *a2; if ( v3 >= *(_QWORD *)&v2 ) v5 = v3 % *(_QWORD *)&v2; } else { v5 = (*(_QWORD *)&v2 - 1LL) & v3; } v6 = *(_QWORD **)(*a1 + 8 * v5); if ( !v6 ) return nullptr; result = (_QWORD *)*v6; if ( *v6 ) { do { v8 = result[1]; if ( v3 == v8 ) { if ( result[2] == v3 ) return result; } else { if ( v4.u32[0] > 1uLL ) { if ( v8 >= *(_QWORD *)&v2 ) v8 %= *(_QWORD *)&v2; } else { v8 &= *(_QWORD *)&v2 - 1LL; } if ( v8 != v5 ) return nullptr; } result = (_QWORD *)*result; } while ( result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source