// // bn_mul_normal from 0x9eabfc to 0x9eace8 (236 bytes) // // 6 xrefs: // > bn_mul_recursive @ 0x9ead44 // > bn_mul_part_recursive @ 0x9eb710 // > bn_mul_part_recursive @ 0x9eb974 // > bn_mul_part_recursive @ 0x9ebb34 // > BN_mul @ 0x9ebc90 // > @ 0x798cc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:07:26 +0000 // int __fastcall bn_mul_normal(int a1, _DWORD *a2, int a3, _DWORD *a4, int a5) { int v5; // r5 int v6; // r8 int v7; // r4 _DWORD *v8; // r9 _DWORD *v9; // r6 _DWORD *v10; // r7 int result; // r0 int v12; // t1 v5 = a5; v6 = a3; v7 = a1; v8 = a2; v9 = a4; if ( a3 < a5 ) { v6 = a5; v8 = a4; v5 = a3; v9 = a2; } v10 = (_DWORD *)(a1 + 4 * v6); if ( v5 <= 0 ) return bn_mul_words(); result = bn_mul_words(); for ( *(_DWORD *)(v7 + 4 * v6) = result; v5 != 1; v10 += 4 ) { v10[1] = bn_mul_add_words(v7 + 4, v8, v6, v9[1]); result = v7 + 8; if ( v5 == 2 ) break; v10[2] = bn_mul_add_words(result, v8, v6, v9[2]); result = v7 + 12; v7 += 16; if ( v5 == 3 ) break; v5 -= 4; v10[3] = bn_mul_add_words(result, v8, v6, v9[3]); result = v7; if ( !v5 ) break; v12 = v9[4]; v9 += 4; result = bn_mul_add_words(v7, v8, v6, v12); v10[4] = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source