{"type": "func", "start": 11030616, "end": 11030688, "name": "BN_mod_lshift1_quick", "pseudocode": "// \n// BN_mod_lshift1_quick from 0xa85058 to 0xa850a0 (72 bytes)\n// \n// 10 xrefs:\n// > ec_GFp_simple_set_compressed_coordinates @ 0xa070e0\n// > ec_GFp_simple_dbl @ 0xa0859c\n// > ec_GFp_simple_dbl @ 0xa08668\n// > ec_GFp_simple_dbl @ 0xa086e4\n// > ec_GFp_simple_dbl @ 0xa0880c\n// > ec_GFp_simple_dbl @ 0xa088bc\n// > ec_GFp_simple_add @ 0xa09348\n// > ec_GFp_simple_is_on_curve @ 0xa096ac\n// > BN_mod_sqrt @ 0xa864e8\n// > <???> @ 0x7bb4c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:08:51 +0000\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 0xa85058 to 0xa850a0 (72 bytes)\n; \n; 10 xrefs:\n; > ec_GFp_simple_set_compressed_coordinates @ 0xa070e0\n; > ec_GFp_simple_dbl @ 0xa0859c\n; > ec_GFp_simple_dbl @ 0xa08668\n; > ec_GFp_simple_dbl @ 0xa086e4\n; > ec_GFp_simple_dbl @ 0xa0880c\n; > ec_GFp_simple_dbl @ 0xa088bc\n; > ec_GFp_simple_add @ 0xa09348\n; > ec_GFp_simple_is_on_curve @ 0xa096ac\n; > BN_mod_sqrt @ 0xa864e8\n; > <???> @ 0x7bb4c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:08:51 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0xa85058\nMOV             R5, R2                                                 ; +0x4, 0xa8505c\nMOV             R4, R0                                                 ; +0x8, 0xa85060\nBL              BN_lshift1                                             ; +0xc, 0xa85064\nCMP             R0, #0                                                 ; +0x10, 0xa85068\nPOPEQ           {R3-R5,PC}                                             ; +0x14, 0xa8506c\nMOV             R0, R4                                                 ; +0x18, 0xa85070\nMOV             R1, R5                                                 ; +0x1c, 0xa85074\nBL              BN_cmp                                                 ; +0x20, 0xa85078\nCMP             R0, #0                                                 ; +0x24, 0xa8507c\nBLT             loc_A85098                                             ; +0x28, 0xa85080\nMOV             R2, R5                                                 ; +0x2c, 0xa85084\nMOV             R0, R4                                                 ; +0x30, 0xa85088\nMOV             R1, R4                                                 ; +0x34, 0xa8508c\nPOP             {R3-R5,LR}                                             ; +0x38, 0xa85090\nB               BN_sub                                                 ; +0x3c, 0xa85094\nMOV             R0, #1                                                 ; +0x40, 0xa85098\nPOP             {R3-R5,PC}                                             ; +0x44, 0xa8509c", "xrefs": ["ec_GFp_simple_set_compressed_coordinates @ 0xa070e0", "ec_GFp_simple_dbl @ 0xa0859c", "ec_GFp_simple_dbl @ 0xa08668", "ec_GFp_simple_dbl @ 0xa086e4", "ec_GFp_simple_dbl @ 0xa0880c", "ec_GFp_simple_dbl @ 0xa088bc", "ec_GFp_simple_add @ 0xa09348", "ec_GFp_simple_is_on_curve @ 0xa096ac", "BN_mod_sqrt @ 0xa864e8", "<???> @ 0x7bb4c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}