// // ec_GF2m_simple_make_affine from 0xa9ed08 to 0xa9ee10 (264 bytes) // // 2 xrefs: // > @ 0x8447c // > @ 0xd196bc // // 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:09:11 +0000 // int __fastcall ec_GF2m_simple_make_affine(int a1, int a2, int ***a3) { int v4; // r4 void **v8; // r8 int **v9; // r9 int **v10; // r4 void **v11; // r0 if ( *(_DWORD *)(a2 + 16) ) return 1; v4 = EC_POINT_is_at_infinity(a1, (_DWORD *)a2); if ( v4 ) return 1; if ( !a3 ) { v11 = (void **)BN_CTX_new(); v8 = v11; if ( v11 ) { a3 = (int ***)v11; goto LABEL_8; } return v4; } v8 = nullptr; LABEL_8: BN_CTX_start((int)a3); v9 = BN_CTX_get(a3); v10 = BN_CTX_get(a3); if ( v10 ) { if ( EC_POINT_get_affine_coordinates_GF2m(a1, (_DWORD *)a2) && BN_copy(*(_DWORD *)(a2 + 4), (int)v9) && BN_copy(*(_DWORD *)(a2 + 8), (int)v10) && BN_set_word(*(int ***)(a2 + 12), 1) ) { v10 = (int **)(&dword_0 + 1); *(_DWORD *)(a2 + 16) = 1; } else { v10 = nullptr; } } BN_CTX_end(a3); BN_CTX_free(v8); return (int)v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source