{"type": "func", "start": 11030288, "end": 11030352, "name": "BN_mod_sub_quick", "pseudocode": "// \n// BN_mod_sub_quick from 0xa84f10 to 0xa84f50 (64 bytes)\n// \n// 12 xrefs:\n// > ec_GFp_simple_set_compressed_coordinates @ 0xa07118\n// > ec_GFp_simple_dbl @ 0xa0871c\n// > ec_GFp_simple_dbl @ 0xa08770\n// > ec_GFp_simple_dbl @ 0xa087b0\n// > ec_GFp_simple_dbl @ 0xa08880\n// > ec_GFp_simple_add @ 0xa09044\n// > ec_GFp_simple_add @ 0xa09060\n// > ec_GFp_simple_add @ 0xa09330\n// > ec_GFp_simple_add @ 0xa09364\n// > ec_GFp_simple_add @ 0xa093ec\n// > ec_GFp_simple_is_on_curve @ 0xa096e4\n// > <???> @ 0x7bb5c\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_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 0xa84f10 to 0xa84f50 (64 bytes)\n; \n; 12 xrefs:\n; > ec_GFp_simple_set_compressed_coordinates @ 0xa07118\n; > ec_GFp_simple_dbl @ 0xa0871c\n; > ec_GFp_simple_dbl @ 0xa08770\n; > ec_GFp_simple_dbl @ 0xa087b0\n; > ec_GFp_simple_dbl @ 0xa08880\n; > ec_GFp_simple_add @ 0xa09044\n; > ec_GFp_simple_add @ 0xa09060\n; > ec_GFp_simple_add @ 0xa09330\n; > ec_GFp_simple_add @ 0xa09364\n; > ec_GFp_simple_add @ 0xa093ec\n; > ec_GFp_simple_is_on_curve @ 0xa096e4\n; > <???> @ 0x7bb5c\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, 0xa84f10\nMOV             R5, R3                                                 ; +0x4, 0xa84f14\nMOV             R4, R0                                                 ; +0x8, 0xa84f18\nBL              BN_sub                                                 ; +0xc, 0xa84f1c\nCMP             R0, #0                                                 ; +0x10, 0xa84f20\nPOPEQ           {R3-R5,PC}                                             ; +0x14, 0xa84f24\nLDR             R3, [R4,#0xC]                                          ; +0x18, 0xa84f28\nCMP             R3, #0                                                 ; +0x1c, 0xa84f2c\nBNE             loc_A84F3C                                             ; +0x20, 0xa84f30\nMOV             R0, #1                                                 ; +0x24, 0xa84f34\nPOP             {R3-R5,PC}                                             ; +0x28, 0xa84f38\nMOV             R2, R5                                                 ; +0x2c, 0xa84f3c\nMOV             R0, R4                                                 ; +0x30, 0xa84f40\nMOV             R1, R4                                                 ; +0x34, 0xa84f44\nPOP             {R3-R5,LR}                                             ; +0x38, 0xa84f48\nB               BN_add                                                 ; +0x3c, 0xa84f4c", "xrefs": ["ec_GFp_simple_set_compressed_coordinates @ 0xa07118", "ec_GFp_simple_dbl @ 0xa0871c", "ec_GFp_simple_dbl @ 0xa08770", "ec_GFp_simple_dbl @ 0xa087b0", "ec_GFp_simple_dbl @ 0xa08880", "ec_GFp_simple_add @ 0xa09044", "ec_GFp_simple_add @ 0xa09060", "ec_GFp_simple_add @ 0xa09330", "ec_GFp_simple_add @ 0xa09364", "ec_GFp_simple_add @ 0xa093ec", "ec_GFp_simple_is_on_curve @ 0xa096e4", "<???> @ 0x7bb5c"], "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"}