{"type": "func", "start": 14784608, "end": 14784688, "name": "BN_mod_sub_quick", "pseudocode": "// \n// BN_mod_sub_quick from 0xe19860 to 0xe198b0 (80 bytes)\n// \n// 12 xrefs:\n// > ec_GFp_simple_set_compressed_coordinates @ 0xd98864\n// > ec_GFp_simple_dbl @ 0xd99df8\n// > ec_GFp_simple_dbl @ 0xd99e40\n// > ec_GFp_simple_dbl @ 0xd99e78\n// > ec_GFp_simple_dbl @ 0xd99f28\n// > ec_GFp_simple_add @ 0xd9a6ac\n// > ec_GFp_simple_add @ 0xd9a6c4\n// > ec_GFp_simple_add @ 0xd9a994\n// > ec_GFp_simple_add @ 0xd9a9c0\n// > ec_GFp_simple_add @ 0xd9aa38\n// > ec_GFp_simple_is_on_curve @ 0xd9ad0c\n// > <???> @ 0xa3998\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\nunsigned __int64 *__fastcall BN_mod_sub_quick(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  unsigned __int64 *result; // x0\n\n  result = (unsigned __int64 *)BN_sub(a1, a2, a3);\n  if ( (_DWORD)result )\n  {\n    result = (_QWORD *)(dword_0 + 1);\n    if ( *(_DWORD *)(a1 + 16) )\n      return BN_add(a1, a1, a4);\n  }\n  return result;\n}", "assembly": "; \n; BN_mod_sub_quick from 0xe19860 to 0xe198b0 (80 bytes)\n; \n; 12 xrefs:\n; > ec_GFp_simple_set_compressed_coordinates @ 0xd98864\n; > ec_GFp_simple_dbl @ 0xd99df8\n; > ec_GFp_simple_dbl @ 0xd99e40\n; > ec_GFp_simple_dbl @ 0xd99e78\n; > ec_GFp_simple_dbl @ 0xd99f28\n; > ec_GFp_simple_add @ 0xd9a6ac\n; > ec_GFp_simple_add @ 0xd9a6c4\n; > ec_GFp_simple_add @ 0xd9a994\n; > ec_GFp_simple_add @ 0xd9a9c0\n; > ec_GFp_simple_add @ 0xd9aa38\n; > ec_GFp_simple_is_on_curve @ 0xd9ad0c\n; > <???> @ 0xa3998\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xe19860\nMOV             X29, SP                                                ; +0x4, 0xe19864\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0xe19868\nMOV             X19, X0                                                ; +0xc, 0xe1986c\nSTR             X3, [X29,#0x30+var_8]                                  ; +0x10, 0xe19870\nBL              BN_sub                                                 ; +0x14, 0xe19874\nCBZ             W0, loc_E1988C                                         ; +0x18, 0xe19878\nLDR             W1, [X19,#0x10]                                        ; +0x1c, 0xe1987c\nMOV             W0, #1                                                 ; +0x20, 0xe19880\nLDR             X3, [X29,#0x30+var_8]                                  ; +0x24, 0xe19884\nCBNZ            W1, loc_E19898                                         ; +0x28, 0xe19888\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x2c, 0xe1988c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x30, 0xe19890\nRET                                                                    ; +0x34, 0xe19894\nMOV             X0, X19                                                ; +0x38, 0xe19898\nMOV             X1, X19                                                ; +0x3c, 0xe1989c\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x40, 0xe198a0\nMOV             X2, X3                                                 ; +0x44, 0xe198a4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x48, 0xe198a8\nB               BN_add                                                 ; +0x4c, 0xe198ac", "xrefs": ["ec_GFp_simple_set_compressed_coordinates @ 0xd98864", "ec_GFp_simple_dbl @ 0xd99df8", "ec_GFp_simple_dbl @ 0xd99e40", "ec_GFp_simple_dbl @ 0xd99e78", "ec_GFp_simple_dbl @ 0xd99f28", "ec_GFp_simple_add @ 0xd9a6ac", "ec_GFp_simple_add @ 0xd9a6c4", "ec_GFp_simple_add @ 0xd9a994", "ec_GFp_simple_add @ 0xd9a9c0", "ec_GFp_simple_add @ 0xd9aa38", "ec_GFp_simple_is_on_curve @ 0xd9ad0c", "<???> @ 0xa3998"], "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"}