{"type": "func", "start": 17399056, "end": 17399152, "name": "BN_mod_lshift1_quick", "pseudocode": "// \n// BN_mod_lshift1_quick from 0x1097d10 to 0x1097d70 (96 bytes)\n// \n// 10 xrefs:\n// > ec_GFp_simple_set_compressed_coordinates @ 0x1016b94\n// > ec_GFp_simple_dbl @ 0x1018014\n// > ec_GFp_simple_dbl @ 0x10180c0\n// > ec_GFp_simple_dbl @ 0x1018128\n// > ec_GFp_simple_dbl @ 0x1018224\n// > ec_GFp_simple_dbl @ 0x10182bc\n// > ec_GFp_simple_add @ 0x1018d08\n// > ec_GFp_simple_is_on_curve @ 0x101903c\n// > BN_mod_sqrt @ 0x10992b4\n// > <???> @ 0x52060\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:17:24 +0000\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 0x1097d10 to 0x1097d70 (96 bytes)\n; \n; 10 xrefs:\n; > ec_GFp_simple_set_compressed_coordinates @ 0x1016b94\n; > ec_GFp_simple_dbl @ 0x1018014\n; > ec_GFp_simple_dbl @ 0x10180c0\n; > ec_GFp_simple_dbl @ 0x1018128\n; > ec_GFp_simple_dbl @ 0x1018224\n; > ec_GFp_simple_dbl @ 0x10182bc\n; > ec_GFp_simple_add @ 0x1018d08\n; > ec_GFp_simple_is_on_curve @ 0x101903c\n; > BN_mod_sqrt @ 0x10992b4\n; > <???> @ 0x52060\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:17:24 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x1097d10\nMOV             X29, SP                                                ; +0x4, 0x1097d14\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x1097d18\nMOV             X20, X0                                                ; +0xc, 0x1097d1c\nMOV             X19, X2                                                ; +0x10, 0x1097d20\nBL              BN_lshift1                                             ; +0x14, 0x1097d24\nCBNZ            W0, loc_1097D38                                        ; +0x18, 0x1097d28\nLDP             X19, X20, [SP,#var_s10]                                ; +0x1c, 0x1097d2c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x20, 0x1097d30\nRET                                                                    ; +0x24, 0x1097d34\nMOV             X0, X20                                                ; +0x28, 0x1097d38\nMOV             X1, X19                                                ; +0x2c, 0x1097d3c\nBL              BN_cmp                                                 ; +0x30, 0x1097d40\nTBNZ            W0, #0x1F, loc_1097D60                                 ; +0x34, 0x1097d44\nMOV             X0, X20                                                ; +0x38, 0x1097d48\nMOV             X1, X20                                                ; +0x3c, 0x1097d4c\nMOV             X2, X19                                                ; +0x40, 0x1097d50\nLDP             X19, X20, [SP,#var_s10]                                ; +0x44, 0x1097d54\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x48, 0x1097d58\nB               BN_sub                                                 ; +0x4c, 0x1097d5c\nMOV             W0, #1                                                 ; +0x50, 0x1097d60\nLDP             X19, X20, [SP,#var_s10]                                ; +0x54, 0x1097d64\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x58, 0x1097d68\nRET                                                                    ; +0x5c, 0x1097d6c", "xrefs": ["ec_GFp_simple_set_compressed_coordinates @ 0x1016b94", "ec_GFp_simple_dbl @ 0x1018014", "ec_GFp_simple_dbl @ 0x10180c0", "ec_GFp_simple_dbl @ 0x1018128", "ec_GFp_simple_dbl @ 0x1018224", "ec_GFp_simple_dbl @ 0x10182bc", "ec_GFp_simple_add @ 0x1018d08", "ec_GFp_simple_is_on_curve @ 0x101903c", "BN_mod_sqrt @ 0x10992b4", "<???> @ 0x52060"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}