// // BN_mask_bits from 0xff98dc to 0xff9954 (120 bytes) // // 3 xrefs: // > dsa_builtin_paramgen @ 0x10a8ffc // > dsa_builtin_paramgen2 @ 0x10a99ac // > @ 0x8e9f0 // // 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:15:50 +0000 // __int64 __fastcall BN_mask_bits(__int64 a1, int a2) { int v2; // w2 unsigned int v3; // w3 int v4; // w1 __int64 v6; // x5 if ( a2 < 0 ) return 0; v2 = a2 >> 6; v3 = 0; if ( a2 >> 6 < *(_DWORD *)(a1 + 8) ) { v4 = a2 & 0x3F; if ( v4 ) { v6 = *(_QWORD *)a1; *(_DWORD *)(a1 + 8) = v2 + 1; *(_QWORD *)(v6 + 8LL * v2) &= ~(-1LL << v4); } else { *(_DWORD *)(a1 + 8) = v2; } bn_correct_top(a1); return 1; } return v3; }