// // ec_GFp_simple_set_Jprojective_coordinates_GFp from 0xd9972c to 0xd9989c (368 bytes) // // 4 xrefs: // > @ 0x61a70 // > @ 0x1222170 // > @ 0x12222f0 // > @ 0x1222470 // // 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 // __int64 __fastcall ec_GFp_simple_set_Jprojective_coordinates_GFp( _QWORD *a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6) { __int64 v6; // x19 __int64 v11; // x22 unsigned int v12; // w19 __int64 result; // x0 unsigned int (__fastcall *v14)(_QWORD *, _QWORD, _QWORD, __int64); // x4 unsigned int (__fastcall *v15)(_QWORD *, _QWORD, _QWORD, __int64); // x4 int is_one; // w0 int v17; // w23 unsigned int (__fastcall *v18)(_QWORD *, _QWORD, _QWORD, __int64); // x4 unsigned int (__fastcall *v19)(_QWORD *, _QWORD, __int64); // x3 __int64 v20; // [xsp+48h] [xbp+48h] v6 = a6; v11 = 0; if ( a6 ) { LABEL_2: if ( (!a3 || (unsigned int)BN_nnmod(*(_QWORD *)(a2 + 8), a3, a1[8], v6) && ((v14 = *(unsigned int (__fastcall **)(_QWORD *, _QWORD, _QWORD, __int64))(*a1 + 288LL)) == nullptr || v14(a1, *(_QWORD *)(a2 + 8), *(_QWORD *)(a2 + 8), v6))) && (!a4 || (unsigned int)BN_nnmod(*(_QWORD *)(a2 + 16), a4, a1[8], v6) && ((v15 = *(unsigned int (__fastcall **)(_QWORD *, _QWORD, _QWORD, __int64))(*a1 + 288LL)) == nullptr || v15(a1, *(_QWORD *)(a2 + 16), *(_QWORD *)(a2 + 16), v6))) ) { if ( !a5 ) { LABEL_20: v12 = 1; goto LABEL_5; } if ( (unsigned int)BN_nnmod(*(_QWORD *)(a2 + 24), a5, a1[8], v6) ) { is_one = BN_is_one(*(_QWORD *)(a2 + 24)); v17 = is_one; v18 = *(unsigned int (__fastcall **)(_QWORD *, _QWORD, _QWORD, __int64))(*a1 + 288LL); if ( !v18 ) { LABEL_19: *(_DWORD *)(a2 + 32) = v17; goto LABEL_20; } if ( is_one && (v19 = *(unsigned int (__fastcall **)(_QWORD *, _QWORD, __int64))(*a1 + 304LL)) != nullptr ) { if ( v19(a1, *(_QWORD *)(a2 + 24), v6) ) goto LABEL_19; } else if ( v18(a1, *(_QWORD *)(a2 + 24), *(_QWORD *)(a2 + 24), v6) ) { *(_DWORD *)(a2 + 32) = v17; goto LABEL_20; } } } v12 = 0; LABEL_5: BN_CTX_free(v11); return v12; } v20 = a3; result = BN_CTX_new(a1, a2, a3); v6 = result; if ( result ) { v11 = result; a3 = v20; goto LABEL_2; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source