{"type": "func", "start": 17776840, "end": 17776976, "name": "BN_GF2m_mod", "pseudocode": "// \n// BN_GF2m_mod from 0x10f40c8 to 0x10f4150 (136 bytes)\n// \n// 2 xrefs:\n// > BN_GF2m_mod_inv @ 0x10f41d8\n// > <???> @ 0xa7aa0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:18:09 +0000\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 0x10f40c8 to 0x10f4150 (136 bytes)\n; \n; 2 xrefs:\n; > BN_GF2m_mod_inv @ 0x10f41d8\n; > <???> @ 0xa7aa0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:18:09 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x10f40c8\nMOV             X29, SP                                                ; +0x4, 0x10f40cc\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x10f40d0\nADD             X19, X29, #0x50+var_18                                 ; +0xc, 0x10f40d4\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x10, 0x10f40d8\nMOV             X20, X1                                                ; +0x14, 0x10f40dc\nMOV             X21, X0                                                ; +0x18, 0x10f40e0\nMOV             X1, X19                                                ; +0x1c, 0x10f40e4\nMOV             X0, X2                                                 ; +0x20, 0x10f40e8\nMOV             W2, #6                                                 ; +0x24, 0x10f40ec\nBL              BN_GF2m_poly2arr                                       ; +0x28, 0x10f40f0\nCMP             W0, #6                                                 ; +0x2c, 0x10f40f4\nB.GT            loc_10F4120                                            ; +0x30, 0x10f40f8\nCBZ             W0, loc_10F4120                                        ; +0x34, 0x10f40fc\nMOV             X1, X20                                                ; +0x38, 0x10f4100\nMOV             X2, X19                                                ; +0x3c, 0x10f4104\nMOV             X0, X21                                                ; +0x40, 0x10f4108\nBL              BN_GF2m_mod_arr                                        ; +0x44, 0x10f410c\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x48, 0x10f4110\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x4c, 0x10f4114\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x50, 0x10f4118\nRET                                                                    ; +0x54, 0x10f411c\nADRP            X3, #aCryptoBnBnGf2m@PAGE; \"crypto/bn/bn_gf2m.c\"       ; +0x58, 0x10f4120\nMOV             W0, #3                                                 ; +0x5c, 0x10f4124\nMOV             W1, #0x83                                              ; +0x60, 0x10f4128\nMOV             W2, #0x6A ; 'j'                                        ; +0x64, 0x10f412c\nADD             X3, X3, #aCryptoBnBnGf2m@PAGEOFF; \"crypto/bn/bn_gf2m.c\" ; +0x68, 0x10f4130\nMOV             W4, #0x196                                             ; +0x6c, 0x10f4134\nBL              ERR_put_error                                          ; +0x70, 0x10f4138\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x74, 0x10f413c\nMOV             W0, #0                                                 ; +0x78, 0x10f4140\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x7c, 0x10f4144\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x80, 0x10f4148\nRET                                                                    ; +0x84, 0x10f414c", "xrefs": ["BN_GF2m_mod_inv @ 0x10f41d8", "<???> @ 0xa7aa0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}