{"type": "func", "start": 15163592, "end": 15163728, "name": "BN_GF2m_mod", "pseudocode": "// \n// BN_GF2m_mod from 0xe760c8 to 0xe76150 (136 bytes)\n// \n// 2 xrefs:\n// > BN_GF2m_mod_inv @ 0xe761d8\n// > <???> @ 0x7db98\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nunsigned __int64 *__fastcall BN_GF2m_mod(__int64 a1, __int64 a2, __int64 a3)\n{\n  int v5; // w0\n  int v7[6]; // [xsp+38h] [xbp+38h] BYREF\n\n  v5 = BN_GF2m_poly2arr(a3, (__int64)v7, 6);\n  if ( v5 <= 6 && v5 )\n    return BN_GF2m_mod_arr(a1, a2, v7);\n  ERR_put_error(3, 131, 106, (__int64)\"crypto/bn/bn_gf2m.c\", 406);\n  return nullptr;\n}", "assembly": "; \n; BN_GF2m_mod from 0xe760c8 to 0xe76150 (136 bytes)\n; \n; 2 xrefs:\n; > BN_GF2m_mod_inv @ 0xe761d8\n; > <???> @ 0x7db98\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xe760c8\nMOV             X29, SP                                                ; +0x4, 0xe760cc\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0xe760d0\nADD             X19, X29, #0x50+var_18                                 ; +0xc, 0xe760d4\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x10, 0xe760d8\nMOV             X20, X1                                                ; +0x14, 0xe760dc\nMOV             X21, X0                                                ; +0x18, 0xe760e0\nMOV             X1, X19                                                ; +0x1c, 0xe760e4\nMOV             X0, X2                                                 ; +0x20, 0xe760e8\nMOV             W2, #6                                                 ; +0x24, 0xe760ec\nBL              BN_GF2m_poly2arr                                       ; +0x28, 0xe760f0\nCMP             W0, #6                                                 ; +0x2c, 0xe760f4\nB.GT            loc_E76120                                             ; +0x30, 0xe760f8\nCBZ             W0, loc_E76120                                         ; +0x34, 0xe760fc\nMOV             X1, X20                                                ; +0x38, 0xe76100\nMOV             X2, X19                                                ; +0x3c, 0xe76104\nMOV             X0, X21                                                ; +0x40, 0xe76108\nBL              BN_GF2m_mod_arr                                        ; +0x44, 0xe7610c\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x48, 0xe76110\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x4c, 0xe76114\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x50, 0xe76118\nRET                                                                    ; +0x54, 0xe7611c\nADRP            X3, #aCryptoBnBnGf2m@PAGE; \"crypto/bn/bn_gf2m.c\"       ; +0x58, 0xe76120\nMOV             W0, #3                                                 ; +0x5c, 0xe76124\nMOV             W1, #0x83                                              ; +0x60, 0xe76128\nMOV             W2, #0x6A ; 'j'                                        ; +0x64, 0xe7612c\nADD             X3, X3, #aCryptoBnBnGf2m@PAGEOFF; \"crypto/bn/bn_gf2m.c\" ; +0x68, 0xe76130\nMOV             W4, #0x196                                             ; +0x6c, 0xe76134\nBL              ERR_put_error                                          ; +0x70, 0xe76138\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x74, 0xe7613c\nMOV             W0, #0                                                 ; +0x78, 0xe76140\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x7c, 0xe76144\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x80, 0xe76148\nRET                                                                    ; +0x84, 0xe7614c", "xrefs": ["BN_GF2m_mod_inv @ 0xe761d8", "<???> @ 0x7db98"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}