{"type": "func", "start": 8848352, "end": 8848420, "name": "BN_mod_sqr", "pseudocode": "// \n// BN_mod_sqr from 0x8703e0 to 0x870424 (68 bytes)\n// \n// 11 xrefs:\n// > ec_GFp_simple_set_compressed_coordinates @ 0x7f22f4\n// > ec_GFp_simple_field_sqr @ 0x7f3170\n// > ec_GFp_simple_group_check_discriminant @ 0x7f3310\n// > ec_GFp_simple_group_check_discriminant @ 0x7f3364\n// > ec_GFp_simple_point_get_affine_coordinates @ 0x7f36c4\n// > BN_mod_sqrt @ 0x871944\n// > BN_mod_sqrt @ 0x8719e8\n// > BN_mod_sqrt @ 0x871c68\n// > BN_mod_sqrt @ 0x871cdc\n// > BN_mod_sqrt @ 0x871d90\n// > <???> @ 0x6209c\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_mod_sqr(int *a1, int **a2, int *a3, int ***a4)\n{\n  int result; // r0\n\n  result = BN_sqr((int)a1, a2, (int)a4);\n  if ( result )\n    return BN_div(nullptr, (int)a1, a1, a3, a4);\n  return result;\n}", "assembly": "; \n; BN_mod_sqr from 0x8703e0 to 0x870424 (68 bytes)\n; \n; 11 xrefs:\n; > ec_GFp_simple_set_compressed_coordinates @ 0x7f22f4\n; > ec_GFp_simple_field_sqr @ 0x7f3170\n; > ec_GFp_simple_group_check_discriminant @ 0x7f3310\n; > ec_GFp_simple_group_check_discriminant @ 0x7f3364\n; > ec_GFp_simple_point_get_affine_coordinates @ 0x7f36c4\n; > BN_mod_sqrt @ 0x871944\n; > BN_mod_sqrt @ 0x8719e8\n; > BN_mod_sqrt @ 0x871c68\n; > BN_mod_sqrt @ 0x871cdc\n; > BN_mod_sqrt @ 0x871d90\n; > <???> @ 0x6209c\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-R6,LR}                                             ; +0x0, 0x8703e0\nMOV             R6, R2                                                 ; +0x4, 0x8703e4\nSUB             SP, SP, #8                                             ; +0x8, 0x8703e8\nMOV             R2, R3                                                 ; +0xc, 0x8703ec\nMOV             R4, R3                                                 ; +0x10, 0x8703f0\nMOV             R5, R0                                                 ; +0x14, 0x8703f4\nBL              BN_sqr                                                 ; +0x18, 0x8703f8\nCMP             R0, #0                                                 ; +0x1c, 0x8703fc\nBEQ             loc_87041C                                             ; +0x20, 0x870400\nSTR             R4, [SP,#8+var_8]                                      ; +0x24, 0x870404\nMOV             R3, R6                                                 ; +0x28, 0x870408\nMOV             R0, #0                                                 ; +0x2c, 0x87040c\nMOV             R1, R5                                                 ; +0x30, 0x870410\nMOV             R2, R5                                                 ; +0x34, 0x870414\nBL              BN_div                                                 ; +0x38, 0x870418\nADD             SP, SP, #8                                             ; +0x3c, 0x87041c\nPOP             {R4-R6,PC}                                             ; +0x40, 0x870420", "xrefs": ["ec_GFp_simple_set_compressed_coordinates @ 0x7f22f4", "ec_GFp_simple_field_sqr @ 0x7f3170", "ec_GFp_simple_group_check_discriminant @ 0x7f3310", "ec_GFp_simple_group_check_discriminant @ 0x7f3364", "ec_GFp_simple_point_get_affine_coordinates @ 0x7f36c4", "BN_mod_sqrt @ 0x871944", "BN_mod_sqrt @ 0x8719e8", "BN_mod_sqrt @ 0x871c68", "BN_mod_sqrt @ 0x871cdc", "BN_mod_sqrt @ 0x871d90", "<???> @ 0x6209c"], "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"}