{"type": "func", "start": 9216840, "end": 9216976, "name": "BN_GF2m_mod_div", "pseudocode": "// \n// BN_GF2m_mod_div from 0x8ca348 to 0x8ca3d0 (136 bytes)\n// \n// 3 xrefs:\n// > ec_GF2m_simple_field_div @ 0x889c54\n// > BN_GF2m_mod_div_arr @ 0x8ca874\n// > <???> @ 0x6a99c\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\nbool __fastcall BN_GF2m_mod_div(int **a1, _DWORD *a2, int **a3, int **a4, int ***a5)\n{\n  int **v9; // r0\n  int **v10; // r6\n  _BOOL4 v11; // r4\n\n  BN_CTX_start((int)a5);\n  v9 = BN_CTX_get(a5);\n  v10 = v9;\n  v11 = v9 && BN_GF2m_mod_inv((int)v9, a3, (int)a4, (int)a5) && BN_GF2m_mod_mul(a1, a2, v10, a4, a5);\n  BN_CTX_end(a5);\n  return v11;\n}", "assembly": "; \n; BN_GF2m_mod_div from 0x8ca348 to 0x8ca3d0 (136 bytes)\n; \n; 3 xrefs:\n; > ec_GF2m_simple_field_div @ 0x889c54\n; > BN_GF2m_mod_div_arr @ 0x8ca874\n; > <???> @ 0x6a99c\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-R8,LR}                                             ; +0x0, 0x8ca348\nSUB             SP, SP, #8                                             ; +0x4, 0x8ca34c\nMOV             R8, R0                                                 ; +0x8, 0x8ca350\nLDR             R0, [SP,#8+arg_0]                                      ; +0xc, 0x8ca354\nMOV             R7, R1                                                 ; +0x10, 0x8ca358\nMOV             R5, R2                                                 ; +0x14, 0x8ca35c\nMOV             R4, R3                                                 ; +0x18, 0x8ca360\nBL              BN_CTX_start                                           ; +0x1c, 0x8ca364\nLDR             R0, [SP,#8+arg_0]                                      ; +0x20, 0x8ca368\nBL              BN_CTX_get                                             ; +0x24, 0x8ca36c\nSUBS            R6, R0, #0                                             ; +0x28, 0x8ca370\nBEQ             loc_8CA390                                             ; +0x2c, 0x8ca374\nMOV             R1, R5                                                 ; +0x30, 0x8ca378\nMOV             R2, R4                                                 ; +0x34, 0x8ca37c\nLDR             R3, [SP,#8+arg_0]                                      ; +0x38, 0x8ca380\nBL              BN_GF2m_mod_inv                                        ; +0x3c, 0x8ca384\nCMP             R0, #0                                                 ; +0x40, 0x8ca388\nBNE             loc_8CA3A8                                             ; +0x44, 0x8ca38c\nMOV             R4, #0                                                 ; +0x48, 0x8ca390\nLDR             R0, [SP,#8+arg_0]                                      ; +0x4c, 0x8ca394\nBL              BN_CTX_end                                             ; +0x50, 0x8ca398\nMOV             R0, R4                                                 ; +0x54, 0x8ca39c\nADD             SP, SP, #8                                             ; +0x58, 0x8ca3a0\nPOP             {R4-R8,PC}                                             ; +0x5c, 0x8ca3a4\nLDR             R3, [SP,#8+arg_0]                                      ; +0x60, 0x8ca3a8\nSTR             R3, [SP,#8+var_8]                                      ; +0x64, 0x8ca3ac\nMOV             R0, R8                                                 ; +0x68, 0x8ca3b0\nMOV             R3, R4                                                 ; +0x6c, 0x8ca3b4\nMOV             R1, R7                                                 ; +0x70, 0x8ca3b8\nMOV             R2, R6                                                 ; +0x74, 0x8ca3bc\nBL              BN_GF2m_mod_mul                                        ; +0x78, 0x8ca3c0\nMOVS            R4, R0                                                 ; +0x7c, 0x8ca3c4\nMOVNE           R4, #1                                                 ; +0x80, 0x8ca3c8\nB               loc_8CA394                                             ; +0x84, 0x8ca3cc", "xrefs": ["ec_GF2m_simple_field_div @ 0x889c54", "BN_GF2m_mod_div_arr @ 0x8ca874", "<???> @ 0x6a99c"], "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"}