// // BN_lshift1 from 0x7d7f5c to 0x7d8014 (184 bytes) // // 9 xrefs: // > int_bn_mod_inverse @ 0x86f560 // > int_bn_mod_inverse @ 0x86f6c0 // > BN_mod_lshift1 @ 0x870434 // > BN_mod_lshift1_quick @ 0x870464 // > BN_mod_lshift_quick @ 0x870504 // > dsa_builtin_paramgen @ 0x88084c // > dsa_builtin_paramgen2 @ 0x88138c // > BN_generate_prime_ex @ 0x8cb508 // > @ 0x5ff4c // // 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 // int __fastcall BN_lshift1(int **a1, int **a2) { int *v4; // r1 int v5; // r2 int v6; // r3 int *v7; // r4 int *v8; // lr unsigned int v9; // r3 unsigned int v10; // t1 if ( a1 == a2 ) { if ( bn_wexpand((int)a1, (int)a1[1] + 1) ) goto LABEL_5; return 0; } v4 = a2[1]; a1[3] = a2[3]; if ( !bn_wexpand((int)a1, (int)v4 + 1) ) return 0; a1[1] = a2[1]; LABEL_5: v6 = (int)a2[1]; v7 = *a2; if ( v6 > 0 ) v5 = 0; v8 = *a1; if ( v6 <= 0 ) return 1; v9 = v5; do { v10 = *v7++; ++v5; *v8++ = v9 | (2 * v10); v9 = v10 >> 31; } while ( (int)a2[1] > v5 ); if ( !v9 ) return 1; *v8 = 1; a1[1] = (int *)((char *)a1[1] + 1); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source