{"type": "func", "start": 15166204, "end": 15166420, "name": "BN_GF2m_mod_solve_quad", "pseudocode": "// \n// BN_GF2m_mod_solve_quad from 0xe76afc to 0xe76bd4 (216 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x9fa98\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\n__int64 __fastcall BN_GF2m_mod_solve_quad(unsigned __int64 *a1, __int64 a2, __int64 a3, int32x2_t *a4)\n{\n  int v8; // w21\n  int *v9; // x19\n  int v10; // w0\n  unsigned int v11; // w20\n\n  v8 = BN_num_bits(a3) + 1;\n  v9 = (int *)CRYPTO_malloc((void *)(4LL * v8), (__int64)\"crypto/bn/bn_gf2m.c\", 1153);\n  if ( v9 )\n  {\n    v10 = BN_GF2m_poly2arr(a3, (__int64)v9, v8);\n    v11 = v10;\n    if ( v10 <= v8 && v10 )\n      v11 = BN_GF2m_mod_solve_quad_arr(a1, a2, v9, a4);\n    else\n      ERR_put_error(3, 134, 106, (__int64)\"crypto/bn/bn_gf2m.c\", 1157);\n  }\n  else\n  {\n    v11 = 0;\n  }\n  CRYPTO_free(v9, (__int64)\"crypto/bn/bn_gf2m.c\", 1163);\n  return v11;\n}", "assembly": "; \n; BN_GF2m_mod_solve_quad from 0xe76afc to 0xe76bd4 (216 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x9fa98\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, 0xe76afc\nMOV             X29, SP                                                ; +0x4, 0xe76b00\nSTR             X25, [SP,#0x50+var_10]                                 ; +0x8, 0xe76b04\nMOV             X25, X0                                                ; +0xc, 0xe76b08\nMOV             X0, X2                                                 ; +0x10, 0xe76b0c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x14, 0xe76b10\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x18, 0xe76b14\nSTP             X23, X24, [SP,#0x50+var_20]                            ; +0x1c, 0xe76b18\nMOV             X20, X2                                                ; +0x20, 0xe76b1c\nMOV             X24, X1                                                ; +0x24, 0xe76b20\nMOV             X23, X3                                                ; +0x28, 0xe76b24\nADRP            X22, #aCryptoBnBnGf2m@PAGE; \"crypto/bn/bn_gf2m.c\"      ; +0x2c, 0xe76b28\nBL              BN_num_bits                                            ; +0x30, 0xe76b2c\nADD             W21, W0, #1                                            ; +0x34, 0xe76b30\nSBFIZ           X0, X21, #2, #0x20 ; ' '                               ; +0x38, 0xe76b34\nADD             X1, X22, #aCryptoBnBnGf2m@PAGEOFF; \"crypto/bn/bn_gf2m.c\" ; +0x3c, 0xe76b38\nMOV             W2, #0x481                                             ; +0x40, 0xe76b3c\nBL              CRYPTO_malloc                                          ; +0x44, 0xe76b40\nMOV             X19, X0                                                ; +0x48, 0xe76b44\nCBZ             X0, loc_E76BCC                                         ; +0x4c, 0xe76b48\nMOV             X0, X20                                                ; +0x50, 0xe76b4c\nMOV             X1, X19                                                ; +0x54, 0xe76b50\nMOV             W2, W21                                                ; +0x58, 0xe76b54\nBL              BN_GF2m_poly2arr                                       ; +0x5c, 0xe76b58\nCMP             W0, W21                                                ; +0x60, 0xe76b5c\nMOV             W20, W0                                                ; +0x64, 0xe76b60\nB.GT            loc_E76BB0                                             ; +0x68, 0xe76b64\nCBZ             W0, loc_E76BB0                                         ; +0x6c, 0xe76b68\nMOV             X0, X25                                                ; +0x70, 0xe76b6c\nMOV             X1, X24                                                ; +0x74, 0xe76b70\nMOV             X2, X19                                                ; +0x78, 0xe76b74\nMOV             X3, X23                                                ; +0x7c, 0xe76b78\nBL              BN_GF2m_mod_solve_quad_arr                             ; +0x80, 0xe76b7c\nMOV             W20, W0                                                ; +0x84, 0xe76b80\nMOV             X0, X19                                                ; +0x88, 0xe76b84\nADD             X1, X22, #aCryptoBnBnGf2m@PAGEOFF; \"crypto/bn/bn_gf2m.c\" ; +0x8c, 0xe76b88\nMOV             W2, #0x48B                                             ; +0x90, 0xe76b8c\nBL              CRYPTO_free                                            ; +0x94, 0xe76b90\nLDR             X25, [SP,#0x50+var_10]                                 ; +0x98, 0xe76b94\nMOV             W0, W20                                                ; +0x9c, 0xe76b98\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xa0, 0xe76b9c\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xa4, 0xe76ba0\nLDP             X23, X24, [SP,#0x50+var_20]                            ; +0xa8, 0xe76ba4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xac, 0xe76ba8\nRET                                                                    ; +0xb0, 0xe76bac\nMOV             W0, #3                                                 ; +0xb4, 0xe76bb0\nMOV             W1, #0x86                                              ; +0xb8, 0xe76bb4\nMOV             W2, #0x6A ; 'j'                                        ; +0xbc, 0xe76bb8\nADD             X3, X22, #aCryptoBnBnGf2m@PAGEOFF; \"crypto/bn/bn_gf2m.c\" ; +0xc0, 0xe76bbc\nMOV             W4, #0x485                                             ; +0xc4, 0xe76bc0\nBL              ERR_put_error                                          ; +0xc8, 0xe76bc4\nB               loc_E76B84                                             ; +0xcc, 0xe76bc8\nMOV             W20, W0                                                ; +0xd0, 0xe76bcc\nB               loc_E76B84                                             ; +0xd4, 0xe76bd0", "xrefs": ["<???> @ 0x9fa98"], "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"}