{"type": "func", "start": 15162340, "end": 15162524, "name": "BN_GF2m_mod_sqrt_arr", "pseudocode": "// \n// BN_GF2m_mod_sqrt_arr from 0xe75be4 to 0xe75c9c (184 bytes)\n// \n// 3 xrefs:\n// > ec_GF2m_simple_set_compressed_coordinates @ 0xe32714\n// > BN_GF2m_mod_sqrt @ 0xe76aa4\n// > <???> @ 0x369f0\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_sqrt_arr(unsigned __int64 *a1, __int64 *a2, int *a3, int32x2_t *a4)\n{\n  __int64 v8; // x0\n  __int64 v9; // x21\n  unsigned int v10; // w19\n\n  if ( *a3 )\n  {\n    BN_CTX_start((unsigned __int64)a4);\n    v8 = BN_CTX_get(a4);\n    v9 = v8;\n    if ( v8 && (unsigned int)BN_set_bit(v8, *a3 - 1) )\n      v10 = (unsigned int)BN_GF2m_mod_exp_arr(a1, a2, v9, a3, a4);\n    else\n      v10 = 0;\n    BN_CTX_end((__int64)a4);\n    return v10;\n  }\n  else\n  {\n    BN_set_word((__int64)a1, 0);\n    return 1;\n  }\n}", "assembly": "; \n; BN_GF2m_mod_sqrt_arr from 0xe75be4 to 0xe75c9c (184 bytes)\n; \n; 3 xrefs:\n; > ec_GF2m_simple_set_compressed_coordinates @ 0xe32714\n; > BN_GF2m_mod_sqrt @ 0xe76aa4\n; > <???> @ 0x369f0\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_40]!                                ; +0x0, 0xe75be4\nMOV             X29, SP                                                ; +0x4, 0xe75be8\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xe75bec\nMOV             X19, X2                                                ; +0xc, 0xe75bf0\nLDR             W2, [X2]                                               ; +0x10, 0xe75bf4\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0xe75bf8\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x18, 0xe75bfc\nMOV             X22, X1                                                ; +0x1c, 0xe75c00\nMOV             X23, X0                                                ; +0x20, 0xe75c04\nMOV             X20, X3                                                ; +0x24, 0xe75c08\nCBZ             W2, loc_E75C5C                                         ; +0x28, 0xe75c0c\nMOV             X0, X3                                                 ; +0x2c, 0xe75c10\nBL              BN_CTX_start                                           ; +0x30, 0xe75c14\nMOV             X0, X20                                                ; +0x34, 0xe75c18\nBL              BN_CTX_get                                             ; +0x38, 0xe75c1c\nMOV             X21, X0                                                ; +0x3c, 0xe75c20\nCBZ             X0, loc_E75C38                                         ; +0x40, 0xe75c24\nLDR             W1, [X19]                                              ; +0x44, 0xe75c28\nSUB             W1, W1, #1                                             ; +0x48, 0xe75c2c\nBL              BN_set_bit                                             ; +0x4c, 0xe75c30\nCBNZ            W0, loc_E75C7C                                         ; +0x50, 0xe75c34\nMOV             W19, #0                                                ; +0x54, 0xe75c38\nMOV             X0, X20                                                ; +0x58, 0xe75c3c\nBL              BN_CTX_end                                             ; +0x5c, 0xe75c40\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x60, 0xe75c44\nMOV             W0, W19                                                ; +0x64, 0xe75c48\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x68, 0xe75c4c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x6c, 0xe75c50\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x70, 0xe75c54\nRET                                                                    ; +0x74, 0xe75c58\nMOV             X1, #0                                                 ; +0x78, 0xe75c5c\nBL              BN_set_word                                            ; +0x7c, 0xe75c60\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x80, 0xe75c64\nMOV             W0, #1                                                 ; +0x84, 0xe75c68\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x88, 0xe75c6c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x8c, 0xe75c70\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x90, 0xe75c74\nRET                                                                    ; +0x94, 0xe75c78\nMOV             X3, X19                                                ; +0x98, 0xe75c7c\nMOV             X0, X23                                                ; +0x9c, 0xe75c80\nMOV             X1, X22                                                ; +0xa0, 0xe75c84\nMOV             X2, X21                                                ; +0xa4, 0xe75c88\nMOV             X4, X20                                                ; +0xa8, 0xe75c8c\nBL              BN_GF2m_mod_exp_arr                                    ; +0xac, 0xe75c90\nMOV             W19, W0                                                ; +0xb0, 0xe75c94\nB               loc_E75C3C                                             ; +0xb4, 0xe75c98", "xrefs": ["ec_GF2m_simple_set_compressed_coordinates @ 0xe32714", "BN_GF2m_mod_sqrt @ 0xe76aa4", "<???> @ 0x369f0"], "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"}