{"type": "func", "start": 8848144, "end": 8848208, "name": "BN_mod_sub_quick", "pseudocode": "// \n// BN_mod_sub_quick from 0x870310 to 0x870350 (64 bytes)\n// \n// 12 xrefs:\n// > ec_GFp_simple_set_compressed_coordinates @ 0x7f2518\n// > ec_GFp_simple_dbl @ 0x7f3b1c\n// > ec_GFp_simple_dbl @ 0x7f3b70\n// > ec_GFp_simple_dbl @ 0x7f3bb0\n// > ec_GFp_simple_dbl @ 0x7f3c80\n// > ec_GFp_simple_add @ 0x7f4444\n// > ec_GFp_simple_add @ 0x7f4460\n// > ec_GFp_simple_add @ 0x7f4730\n// > ec_GFp_simple_add @ 0x7f4764\n// > ec_GFp_simple_add @ 0x7f47ec\n// > ec_GFp_simple_is_on_curve @ 0x7f4ae4\n// > <???> @ 0x620dc\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_sub_quick(int *a1, int *a2, int *a3, int *a4)\n{\n  int result; // r0\n\n  result = BN_sub(a1, a2, a3);\n  if ( result )\n  {\n    if ( a1[3] )\n      return BN_add(a1, a1, a4);\n    else\n      return 1;\n  }\n  return result;\n}", "assembly": "; \n; BN_mod_sub_quick from 0x870310 to 0x870350 (64 bytes)\n; \n; 12 xrefs:\n; > ec_GFp_simple_set_compressed_coordinates @ 0x7f2518\n; > ec_GFp_simple_dbl @ 0x7f3b1c\n; > ec_GFp_simple_dbl @ 0x7f3b70\n; > ec_GFp_simple_dbl @ 0x7f3bb0\n; > ec_GFp_simple_dbl @ 0x7f3c80\n; > ec_GFp_simple_add @ 0x7f4444\n; > ec_GFp_simple_add @ 0x7f4460\n; > ec_GFp_simple_add @ 0x7f4730\n; > ec_GFp_simple_add @ 0x7f4764\n; > ec_GFp_simple_add @ 0x7f47ec\n; > ec_GFp_simple_is_on_curve @ 0x7f4ae4\n; > <???> @ 0x620dc\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, 0x870310\nMOV             R5, R3                                                 ; +0x4, 0x870314\nMOV             R4, R0                                                 ; +0x8, 0x870318\nBL              BN_sub                                                 ; +0xc, 0x87031c\nCMP             R0, #0                                                 ; +0x10, 0x870320\nPOPEQ           {R3-R5,PC}                                             ; +0x14, 0x870324\nLDR             R3, [R4,#0xC]                                          ; +0x18, 0x870328\nCMP             R3, #0                                                 ; +0x1c, 0x87032c\nBNE             loc_87033C                                             ; +0x20, 0x870330\nMOV             R0, #1                                                 ; +0x24, 0x870334\nPOP             {R3-R5,PC}                                             ; +0x28, 0x870338\nMOV             R2, R5                                                 ; +0x2c, 0x87033c\nMOV             R0, R4                                                 ; +0x30, 0x870340\nMOV             R1, R4                                                 ; +0x34, 0x870344\nPOP             {R3-R5,LR}                                             ; +0x38, 0x870348\nB               BN_add                                                 ; +0x3c, 0x87034c", "xrefs": ["ec_GFp_simple_set_compressed_coordinates @ 0x7f2518", "ec_GFp_simple_dbl @ 0x7f3b1c", "ec_GFp_simple_dbl @ 0x7f3b70", "ec_GFp_simple_dbl @ 0x7f3bb0", "ec_GFp_simple_dbl @ 0x7f3c80", "ec_GFp_simple_add @ 0x7f4444", "ec_GFp_simple_add @ 0x7f4460", "ec_GFp_simple_add @ 0x7f4730", "ec_GFp_simple_add @ 0x7f4764", "ec_GFp_simple_add @ 0x7f47ec", "ec_GFp_simple_is_on_curve @ 0x7f4ae4", "<???> @ 0x620dc"], "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"}