{"type": "func", "start": 8848472, "end": 8848544, "name": "BN_mod_lshift1_quick", "pseudocode": "// \n// BN_mod_lshift1_quick from 0x870458 to 0x8704a0 (72 bytes)\n// \n// 10 xrefs:\n// > ec_GFp_simple_set_compressed_coordinates @ 0x7f24e0\n// > ec_GFp_simple_dbl @ 0x7f399c\n// > ec_GFp_simple_dbl @ 0x7f3a68\n// > ec_GFp_simple_dbl @ 0x7f3ae4\n// > ec_GFp_simple_dbl @ 0x7f3c0c\n// > ec_GFp_simple_dbl @ 0x7f3cbc\n// > ec_GFp_simple_add @ 0x7f4748\n// > ec_GFp_simple_is_on_curve @ 0x7f4aac\n// > BN_mod_sqrt @ 0x8718e8\n// > <???> @ 0x620cc\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_lshift1_quick(int **a1, int **a2, int *a3)\n{\n  int result; // r0\n\n  result = BN_lshift1(a1, a2);\n  if ( result )\n  {\n    if ( BN_cmp((int *)a1, a3) < 0 )\n      return 1;\n    else\n      return BN_sub((int *)a1, (int *)a1, a3);\n  }\n  return result;\n}", "assembly": "; \n; BN_mod_lshift1_quick from 0x870458 to 0x8704a0 (72 bytes)\n; \n; 10 xrefs:\n; > ec_GFp_simple_set_compressed_coordinates @ 0x7f24e0\n; > ec_GFp_simple_dbl @ 0x7f399c\n; > ec_GFp_simple_dbl @ 0x7f3a68\n; > ec_GFp_simple_dbl @ 0x7f3ae4\n; > ec_GFp_simple_dbl @ 0x7f3c0c\n; > ec_GFp_simple_dbl @ 0x7f3cbc\n; > ec_GFp_simple_add @ 0x7f4748\n; > ec_GFp_simple_is_on_curve @ 0x7f4aac\n; > BN_mod_sqrt @ 0x8718e8\n; > <???> @ 0x620cc\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            {R3-R5,LR}                                             ; +0x0, 0x870458\nMOV             R5, R2                                                 ; +0x4, 0x87045c\nMOV             R4, R0                                                 ; +0x8, 0x870460\nBL              BN_lshift1                                             ; +0xc, 0x870464\nCMP             R0, #0                                                 ; +0x10, 0x870468\nPOPEQ           {R3-R5,PC}                                             ; +0x14, 0x87046c\nMOV             R0, R4                                                 ; +0x18, 0x870470\nMOV             R1, R5                                                 ; +0x1c, 0x870474\nBL              BN_cmp                                                 ; +0x20, 0x870478\nCMP             R0, #0                                                 ; +0x24, 0x87047c\nBLT             loc_870498                                             ; +0x28, 0x870480\nMOV             R2, R5                                                 ; +0x2c, 0x870484\nMOV             R0, R4                                                 ; +0x30, 0x870488\nMOV             R1, R4                                                 ; +0x34, 0x87048c\nPOP             {R3-R5,LR}                                             ; +0x38, 0x870490\nB               BN_sub                                                 ; +0x3c, 0x870494\nMOV             R0, #1                                                 ; +0x40, 0x870498\nPOP             {R3-R5,PC}                                             ; +0x44, 0x87049c", "xrefs": ["ec_GFp_simple_set_compressed_coordinates @ 0x7f24e0", "ec_GFp_simple_dbl @ 0x7f399c", "ec_GFp_simple_dbl @ 0x7f3a68", "ec_GFp_simple_dbl @ 0x7f3ae4", "ec_GFp_simple_dbl @ 0x7f3c0c", "ec_GFp_simple_dbl @ 0x7f3cbc", "ec_GFp_simple_add @ 0x7f4748", "ec_GFp_simple_is_on_curve @ 0x7f4aac", "BN_mod_sqrt @ 0x8718e8", "<???> @ 0x620cc"], "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"}