{"type": "func", "start": 14785040, "end": 14785136, "name": "BN_mod_lshift1_quick", "pseudocode": "// \n// BN_mod_lshift1_quick from 0xe19a10 to 0xe19a70 (96 bytes)\n// \n// 10 xrefs:\n// > ec_GFp_simple_set_compressed_coordinates @ 0xd98834\n// > ec_GFp_simple_dbl @ 0xd99cb4\n// > ec_GFp_simple_dbl @ 0xd99d60\n// > ec_GFp_simple_dbl @ 0xd99dc8\n// > ec_GFp_simple_dbl @ 0xd99ec4\n// > ec_GFp_simple_dbl @ 0xd99f5c\n// > ec_GFp_simple_add @ 0xd9a9a8\n// > ec_GFp_simple_is_on_curve @ 0xd9acdc\n// > BN_mod_sqrt @ 0xe1afb4\n// > <???> @ 0x383d0\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_mod_lshift1_quick(__int64 *a1, __int64 *a2, __int64 *a3)\n{\n  __int64 result; // x0\n\n  result = BN_lshift1((__int64)a1, a2);\n  if ( (_DWORD)result )\n  {\n    if ( (BN_cmp(a1, a3) & 0x80000000) != 0 )\n      return 1;\n    else\n      return BN_sub((__int64)a1, (__int64)a1, (__int64)a3);\n  }\n  return result;\n}", "assembly": "; \n; BN_mod_lshift1_quick from 0xe19a10 to 0xe19a70 (96 bytes)\n; \n; 10 xrefs:\n; > ec_GFp_simple_set_compressed_coordinates @ 0xd98834\n; > ec_GFp_simple_dbl @ 0xd99cb4\n; > ec_GFp_simple_dbl @ 0xd99d60\n; > ec_GFp_simple_dbl @ 0xd99dc8\n; > ec_GFp_simple_dbl @ 0xd99ec4\n; > ec_GFp_simple_dbl @ 0xd99f5c\n; > ec_GFp_simple_add @ 0xd9a9a8\n; > ec_GFp_simple_is_on_curve @ 0xd9acdc\n; > BN_mod_sqrt @ 0xe1afb4\n; > <???> @ 0x383d0\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,#-0x20+var_s0]!                          ; +0x0, 0xe19a10\nMOV             X29, SP                                                ; +0x4, 0xe19a14\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xe19a18\nMOV             X20, X0                                                ; +0xc, 0xe19a1c\nMOV             X19, X2                                                ; +0x10, 0xe19a20\nBL              BN_lshift1                                             ; +0x14, 0xe19a24\nCBNZ            W0, loc_E19A38                                         ; +0x18, 0xe19a28\nLDP             X19, X20, [SP,#var_s10]                                ; +0x1c, 0xe19a2c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x20, 0xe19a30\nRET                                                                    ; +0x24, 0xe19a34\nMOV             X0, X20                                                ; +0x28, 0xe19a38\nMOV             X1, X19                                                ; +0x2c, 0xe19a3c\nBL              BN_cmp                                                 ; +0x30, 0xe19a40\nTBNZ            W0, #0x1F, loc_E19A60                                  ; +0x34, 0xe19a44\nMOV             X0, X20                                                ; +0x38, 0xe19a48\nMOV             X1, X20                                                ; +0x3c, 0xe19a4c\nMOV             X2, X19                                                ; +0x40, 0xe19a50\nLDP             X19, X20, [SP,#var_s10]                                ; +0x44, 0xe19a54\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x48, 0xe19a58\nB               BN_sub                                                 ; +0x4c, 0xe19a5c\nMOV             W0, #1                                                 ; +0x50, 0xe19a60\nLDP             X19, X20, [SP,#var_s10]                                ; +0x54, 0xe19a64\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x58, 0xe19a68\nRET                                                                    ; +0x5c, 0xe19a6c", "xrefs": ["ec_GFp_simple_set_compressed_coordinates @ 0xd98834", "ec_GFp_simple_dbl @ 0xd99cb4", "ec_GFp_simple_dbl @ 0xd99d60", "ec_GFp_simple_dbl @ 0xd99dc8", "ec_GFp_simple_dbl @ 0xd99ec4", "ec_GFp_simple_dbl @ 0xd99f5c", "ec_GFp_simple_add @ 0xd9a9a8", "ec_GFp_simple_is_on_curve @ 0xd9acdc", "BN_mod_sqrt @ 0xe1afb4", "<???> @ 0x383d0"], "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"}