{"type": "func", "start": 9214216, "end": 9214372, "name": "BN_GF2m_mod_sqrt_arr", "pseudocode": "// \n// BN_GF2m_mod_sqrt_arr from 0x8c9908 to 0x8c99a4 (156 bytes)\n// \n// 3 xrefs:\n// > ec_GF2m_simple_set_compressed_coordinates @ 0x888eec\n// > BN_GF2m_mod_sqrt @ 0x8ca60c\n// > <???> @ 0x6a83c\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_sqrt_arr(int **a1, int **a2, int *a3, int ***a4)\n{\n  int *v8; // r0\n  int *v9; // r8\n  int v10; // r4\n\n  if ( *a3 )\n  {\n    BN_CTX_start((int)a4);\n    v8 = (int *)BN_CTX_get(a4);\n    v9 = v8;\n    if ( v8 && BN_set_bit(v8, *a3 - 1) )\n      v10 = BN_GF2m_mod_exp_arr(a1, a2, v9, a3, a4);\n    else\n      v10 = 0;\n    BN_CTX_end(a4);\n    return v10;\n  }\n  else\n  {\n    BN_set_word(a1, 0);\n    return 1;\n  }\n}", "assembly": "; \n; BN_GF2m_mod_sqrt_arr from 0x8c9908 to 0x8c99a4 (156 bytes)\n; \n; 3 xrefs:\n; > ec_GF2m_simple_set_compressed_coordinates @ 0x888eec\n; > BN_GF2m_mod_sqrt @ 0x8ca60c\n; > <???> @ 0x6a83c\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, 0x8c9908\nMOV             R4, R2                                                 ; +0x4, 0x8c990c\nLDR             R2, [R2]                                               ; +0x8, 0x8c9910\nSUB             SP, SP, #8                                             ; +0xc, 0x8c9914\nCMP             R2, #0                                                 ; +0x10, 0x8c9918\nBEQ             loc_8C9970                                             ; +0x14, 0x8c991c\nMOV             R5, R3                                                 ; +0x18, 0x8c9920\nMOV             R7, R0                                                 ; +0x1c, 0x8c9924\nMOV             R0, R3                                                 ; +0x20, 0x8c9928\nMOV             R6, R1                                                 ; +0x24, 0x8c992c\nBL              BN_CTX_start                                           ; +0x28, 0x8c9930\nMOV             R0, R5                                                 ; +0x2c, 0x8c9934\nBL              BN_CTX_get                                             ; +0x30, 0x8c9938\nSUBS            R8, R0, #0                                             ; +0x34, 0x8c993c\nBEQ             loc_8C9958                                             ; +0x38, 0x8c9940\nLDR             R1, [R4]                                               ; +0x3c, 0x8c9944\nSUB             R1, R1, #1                                             ; +0x40, 0x8c9948\nBL              BN_set_bit                                             ; +0x44, 0x8c994c\nCMP             R0, #0                                                 ; +0x48, 0x8c9950\nBNE             loc_8C9984                                             ; +0x4c, 0x8c9954\nMOV             R4, #0                                                 ; +0x50, 0x8c9958\nMOV             R0, R5                                                 ; +0x54, 0x8c995c\nBL              BN_CTX_end                                             ; +0x58, 0x8c9960\nMOV             R0, R4                                                 ; +0x5c, 0x8c9964\nADD             SP, SP, #8                                             ; +0x60, 0x8c9968\nPOP             {R4-R8,PC}                                             ; +0x64, 0x8c996c\nMOV             R1, R2                                                 ; +0x68, 0x8c9970\nBL              BN_set_word                                            ; +0x6c, 0x8c9974\nMOV             R0, #1                                                 ; +0x70, 0x8c9978\nADD             SP, SP, #8                                             ; +0x74, 0x8c997c\nPOP             {R4-R8,PC}                                             ; +0x78, 0x8c9980\nMOV             R3, R4                                                 ; +0x7c, 0x8c9984\nSTR             R5, [SP,#8+var_8]                                      ; +0x80, 0x8c9988\nMOV             R0, R7                                                 ; +0x84, 0x8c998c\nMOV             R1, R6                                                 ; +0x88, 0x8c9990\nMOV             R2, R8                                                 ; +0x8c, 0x8c9994\nBL              BN_GF2m_mod_exp_arr                                    ; +0x90, 0x8c9998\nMOV             R4, R0                                                 ; +0x94, 0x8c999c\nB               loc_8C995C                                             ; +0x98, 0x8c99a0", "xrefs": ["ec_GF2m_simple_set_compressed_coordinates @ 0x888eec", "BN_GF2m_mod_sqrt @ 0x8ca60c", "<???> @ 0x6a83c"], "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"}