// // bn_add_words from 0xa7f17c to 0xa7f338 (444 bytes) // // 28 xrefs: // > bn_add_part_words @ 0x9ea8fc // > bn_mul_recursive @ 0x9eaed0 // > bn_mul_recursive @ 0x9eaf10 // > bn_mul_recursive @ 0x9eb140 // > bn_mul_high @ 0x9eb324 // > bn_mul_high @ 0x9eb378 // > bn_mul_high @ 0x9eb390 // > bn_mul_high @ 0x9eb3cc // > bn_mul_high @ 0x9eb3e4 // > bn_mul_high @ 0x9eb554 // > bn_mul_high @ 0x9eb56c // > bn_mul_high @ 0x9eb584 // > bn_mul_high @ 0x9eb59c // > bn_mul_high @ 0x9eb5a8 // > bn_mul_part_recursive @ 0x9eb854 // > bn_mul_part_recursive @ 0x9eb898 // > bn_mul_part_recursive @ 0x9eba20 // > bn_mul_low_recursive @ 0x9ebee0 // > bn_mul_low_recursive @ 0x9ebefc // > bn_mul_low_recursive @ 0x9ebf34 // > bn_mul_low_recursive @ 0x9ebf68 // > bn_sqr_normal @ 0x9ecff8 // > bn_sqr_normal @ 0x9ed024 // > bn_sqr_recursive @ 0x9ed100 // > bn_sqr_recursive @ 0x9ed138 // > BN_uadd @ 0xa7eb44 // > BN_div @ 0xa814f4 // > @ 0x798bc // // 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:08:48 +0000 // int __fastcall bn_add_words(_DWORD *a1, unsigned int *a2, unsigned int *a3, int a4) { unsigned int *v4; // lr _DWORD *v5; // r12 unsigned int *v6; // r10 int v7; // r4 unsigned int v8; // kr00_4 unsigned __int64 v9; // r0 unsigned int v10; // kr0C_4 unsigned __int64 v11; // r2 unsigned __int64 v12; // r0 unsigned __int64 v13; // r2 int v14; // r6 int v15; // r6 int v16; // r4 __int64 v18; // [sp+0h] [bp-30h] unsigned int v19; // [sp+8h] [bp-28h] if ( a4 > 0 ) { if ( (a4 & 0xFFFFFFFC) != 0 ) { v4 = a2 + 4; v5 = a1 + 4; v6 = a3 + 4; v7 = a4; v18 = 0; do { v8 = *(v6 - 4); v9 = *(v4 - 4) + (unsigned __int64)v8; v10 = *(v4 - 4) + v8; *(v5 - 4) = v18 + v10; HIDWORD(v9) = (v18 + __PAIR64__(HIDWORD(v9), v10)) >> 32; v11 = *(v4 - 3) + (unsigned __int64)*(v6 - 3); *(v5 - 3) = v11 + HIDWORD(v9); v19 = (v11 + HIDWORD(v9)) >> 32; v12 = *(v4 - 2) + (unsigned __int64)*(v6 - 2); *(v5 - 2) = v19 + v12; v7 -= 4; v13 = *(v4 - 1) + (unsigned __int64)*(v6 - 1) + ((v19 + v12) >> 32); *(v5 - 1) = v13; a2 = v4; a3 = v6; a1 = v5; v18 = HIDWORD(v13); v4 += 4; v6 += 4; v5 += 4; } while ( (v7 & 0xFFFFFFFC) != 0 ); a4 = v7; if ( !v7 ) return v18; } else { v18 = 0; } v14 = v18 + *a3 + *a2; LODWORD(v18) = (v18 + *a3 + (unsigned __int64)*a2) >> 32; HIDWORD(v18) = 0; *a1 = v14; if ( a4 != 1 ) { v15 = v18 + a3[1] + a2[1]; LODWORD(v18) = (v18 + a3[1] + (unsigned __int64)a2[1]) >> 32; a1[1] = v15; if ( a4 != 2 ) { v16 = v18 + a3[2] + a2[2]; LODWORD(v18) = (v18 + a3[2] + (unsigned __int64)a2[2]) >> 32; a1[2] = v16; } } return v18; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source