{"type": "func", "start": 9217640, "end": 9217844, "name": "BN_GF2m_mod_solve_quad", "pseudocode": "// \n// BN_GF2m_mod_solve_quad from 0x8ca668 to 0x8ca734 (204 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6ba5c\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_solve_quad(int **a1, int **a2, int **a3, int ***a4)\n{\n  int v8; // r5\n  int *v9; // r10\n  int v10; // r4\n  int v11; // r0\n  _BOOL4 v12; // r12\n\n  v8 = BN_num_bits(a3) + 1;\n  v9 = (int *)CRYPTO_malloc((void *)(4 * v8), (int)\"crypto/bn/bn_gf2m.c\", 1153);\n  if ( v9 )\n  {\n    v11 = BN_GF2m_poly2arr(a3, (int)v9, v8);\n    v12 = v11 == 0;\n    if ( v11 > v8 )\n      v12 = 1;\n    v10 = v11;\n    if ( v12 )\n      ERR_put_error(3, 134, 106, (int)\"crypto/bn/bn_gf2m.c\", 1157);\n    else\n      v10 = BN_GF2m_mod_solve_quad_arr(a1, a2, v9, a4);\n  }\n  else\n  {\n    v10 = 0;\n  }\n  CRYPTO_free(v9, (int)\"crypto/bn/bn_gf2m.c\", 1163);\n  return v10;\n}", "assembly": "; \n; BN_GF2m_mod_solve_quad from 0x8ca668 to 0x8ca734 (204 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6ba5c\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-R10,LR}                                            ; +0x0, 0x8ca668\nMOV             R9, R0                                                 ; +0x4, 0x8ca66c\nSUB             SP, SP, #8                                             ; +0x8, 0x8ca670\nMOV             R0, R2                                                 ; +0xc, 0x8ca674\nMOV             R4, R2                                                 ; +0x10, 0x8ca678\nMOV             R8, R1                                                 ; +0x14, 0x8ca67c\nMOV             R7, R3                                                 ; +0x18, 0x8ca680\nBL              BN_num_bits                                            ; +0x1c, 0x8ca684\nLDR             R6, =(aCryptoBnBnGf2m - 0x8CA698); \"crypto/bn/bn_gf2m.c\" ; +0x20, 0x8ca688\nLDR             R2, =0x481                                             ; +0x24, 0x8ca68c\nADD             R6, PC, R6; \"crypto/bn/bn_gf2m.c\"                      ; +0x28, 0x8ca690\nMOV             R1, R6                                                 ; +0x2c, 0x8ca694\nADD             R5, R0, #1                                             ; +0x30, 0x8ca698\nMOV             R0, R5,LSL#2                                           ; +0x34, 0x8ca69c\nBL              CRYPTO_malloc                                          ; +0x38, 0x8ca6a0\nSUBS            R10, R0, #0                                            ; +0x3c, 0x8ca6a4\nMOVEQ           R4, R10                                                ; +0x40, 0x8ca6a8\nBEQ             loc_8CA6F4                                             ; +0x44, 0x8ca6ac\nMOV             R0, R4                                                 ; +0x48, 0x8ca6b0\nMOV             R1, R10                                                ; +0x4c, 0x8ca6b4\nMOV             R2, R5                                                 ; +0x50, 0x8ca6b8\nBL              BN_GF2m_poly2arr                                       ; +0x54, 0x8ca6bc\nCLZ             R12, R0                                                ; +0x58, 0x8ca6c0\nMOV             R12, R12,LSR#5                                         ; +0x5c, 0x8ca6c4\nCMP             R0, R5                                                 ; +0x60, 0x8ca6c8\nORRGT           R12, R12, #1                                           ; +0x64, 0x8ca6cc\nCMP             R12, #0                                                ; +0x68, 0x8ca6d0\nMOV             R4, R0                                                 ; +0x6c, 0x8ca6d4\nBNE             loc_8CA714                                             ; +0x70, 0x8ca6d8\nMOV             R0, R9                                                 ; +0x74, 0x8ca6dc\nMOV             R1, R8                                                 ; +0x78, 0x8ca6e0\nMOV             R3, R7                                                 ; +0x7c, 0x8ca6e4\nMOV             R2, R10                                                ; +0x80, 0x8ca6e8\nBL              BN_GF2m_mod_solve_quad_arr                             ; +0x84, 0x8ca6ec\nMOV             R4, R0                                                 ; +0x88, 0x8ca6f0\nLDR             R1, =(aCryptoBnBnGf2m - 0x8CA704); \"crypto/bn/bn_gf2m.c\" ; +0x8c, 0x8ca6f4\nMOV             R0, R10                                                ; +0x90, 0x8ca6f8\nADD             R1, PC, R1; \"crypto/bn/bn_gf2m.c\"                      ; +0x94, 0x8ca6fc\nLDR             R2, =0x48B                                             ; +0x98, 0x8ca700\nBL              CRYPTO_free                                            ; +0x9c, 0x8ca704\nMOV             R0, R4                                                 ; +0xa0, 0x8ca708\nADD             SP, SP, #8                                             ; +0xa4, 0x8ca70c\nPOP             {R4-R10,PC}                                            ; +0xa8, 0x8ca710\nLDR             R2, =0x485                                             ; +0xac, 0x8ca714\nSTR             R2, [SP,#8+var_8]                                      ; +0xb0, 0x8ca718\nMOV             R3, R6                                                 ; +0xb4, 0x8ca71c\nMOV             R0, #3                                                 ; +0xb8, 0x8ca720\nMOV             R1, #0x86                                              ; +0xbc, 0x8ca724\nMOV             R2, #0x6A ; 'j'                                        ; +0xc0, 0x8ca728\nBL              ERR_put_error                                          ; +0xc4, 0x8ca72c\nB               loc_8CA6F4                                             ; +0xc8, 0x8ca730", "xrefs": ["<???> @ 0x6ba5c"], "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"}