{"type": "func", "start": 9215456, "end": 9215588, "name": "BN_GF2m_mod", "pseudocode": "// \n// BN_GF2m_mod from 0x8c9de0 to 0x8c9e64 (132 bytes)\n// \n// 2 xrefs:\n// > BN_GF2m_mod_inv @ 0x8c9eec\n// > <???> @ 0x6b9fc\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\nint __fastcall BN_GF2m_mod(int **a1, int **a2, int **a3)\n{\n  int v5; // r0\n  int v8[6]; // [sp+8h] [bp-18h] BYREF\n\n  v5 = BN_GF2m_poly2arr(a3, (int)v8, 6);\n  if ( v5 <= 6 && v5 != 0 )\n    return BN_GF2m_mod_arr(a1, a2, v8);\n  ERR_put_error(3, 131, 106, (int)\"crypto/bn/bn_gf2m.c\", 406);\n  return 0;\n}", "assembly": "; \n; BN_GF2m_mod from 0x8c9de0 to 0x8c9e64 (132 bytes)\n; \n; 2 xrefs:\n; > BN_GF2m_mod_inv @ 0x8c9eec\n; > <???> @ 0x6b9fc\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x8c9de0\nSUB             SP, SP, #0x20                                          ; +0x4, 0x8c9de4\nADD             R4, SP, #0x20+var_18                                   ; +0x8, 0x8c9de8\nMOV             R6, R0                                                 ; +0xc, 0x8c9dec\nMOV             R5, R1                                                 ; +0x10, 0x8c9df0\nMOV             R0, R2                                                 ; +0x14, 0x8c9df4\nMOV             R1, R4                                                 ; +0x18, 0x8c9df8\nMOV             R2, #6                                                 ; +0x1c, 0x8c9dfc\nBL              BN_GF2m_poly2arr                                       ; +0x20, 0x8c9e00\nCLZ             R3, R0                                                 ; +0x24, 0x8c9e04\nMOV             R3, R3,LSR#5                                           ; +0x28, 0x8c9e08\nCMP             R0, #6                                                 ; +0x2c, 0x8c9e0c\nMOVLE           R0, R3                                                 ; +0x30, 0x8c9e10\nORRGT           R0, R3, #1                                             ; +0x34, 0x8c9e14\nCMP             R0, #0                                                 ; +0x38, 0x8c9e18\nBNE             loc_8C9E38                                             ; +0x3c, 0x8c9e1c\nMOV             R0, R6                                                 ; +0x40, 0x8c9e20\nMOV             R1, R5                                                 ; +0x44, 0x8c9e24\nMOV             R2, R4                                                 ; +0x48, 0x8c9e28\nBL              BN_GF2m_mod_arr                                        ; +0x4c, 0x8c9e2c\nADD             SP, SP, #0x20 ; ' '                                    ; +0x50, 0x8c9e30\nPOP             {R4-R6,PC}                                             ; +0x54, 0x8c9e34\nLDR             R3, =0x196                                             ; +0x58, 0x8c9e38\nSTR             R3, [SP,#0x20+var_20]                                  ; +0x5c, 0x8c9e3c\nLDR             R3, =(aCryptoBnBnGf2m - 0x8C9E58); \"crypto/bn/bn_gf2m.c\" ; +0x60, 0x8c9e40\nMOV             R0, #3                                                 ; +0x64, 0x8c9e44\nMOV             R1, #0x83                                              ; +0x68, 0x8c9e48\nMOV             R2, #0x6A ; 'j'                                        ; +0x6c, 0x8c9e4c\nADD             R3, PC, R3; \"crypto/bn/bn_gf2m.c\"                      ; +0x70, 0x8c9e50\nBL              ERR_put_error                                          ; +0x74, 0x8c9e54\nMOV             R0, #0                                                 ; +0x78, 0x8c9e58\nADD             SP, SP, #0x20 ; ' '                                    ; +0x7c, 0x8c9e5c\nPOP             {R4-R6,PC}                                             ; +0x80, 0x8c9e60", "xrefs": ["BN_GF2m_mod_inv @ 0x8c9eec", "<???> @ 0x6b9fc"], "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"}