{"type": "func", "start": 17398624, "end": 17398704, "name": "BN_mod_sub_quick", "pseudocode": "// \n// BN_mod_sub_quick from 0x1097b60 to 0x1097bb0 (80 bytes)\n// \n// 12 xrefs:\n// > ec_GFp_simple_set_compressed_coordinates @ 0x1016bc4\n// > ec_GFp_simple_dbl @ 0x1018158\n// > ec_GFp_simple_dbl @ 0x10181a0\n// > ec_GFp_simple_dbl @ 0x10181d8\n// > ec_GFp_simple_dbl @ 0x1018288\n// > ec_GFp_simple_add @ 0x1018a0c\n// > ec_GFp_simple_add @ 0x1018a24\n// > ec_GFp_simple_add @ 0x1018cf4\n// > ec_GFp_simple_add @ 0x1018d20\n// > ec_GFp_simple_add @ 0x1018d98\n// > ec_GFp_simple_is_on_curve @ 0x101906c\n// > <???> @ 0xd7110\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:17:24 +0000\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 0x1097b60 to 0x1097bb0 (80 bytes)\n; \n; 12 xrefs:\n; > ec_GFp_simple_set_compressed_coordinates @ 0x1016bc4\n; > ec_GFp_simple_dbl @ 0x1018158\n; > ec_GFp_simple_dbl @ 0x10181a0\n; > ec_GFp_simple_dbl @ 0x10181d8\n; > ec_GFp_simple_dbl @ 0x1018288\n; > ec_GFp_simple_add @ 0x1018a0c\n; > ec_GFp_simple_add @ 0x1018a24\n; > ec_GFp_simple_add @ 0x1018cf4\n; > ec_GFp_simple_add @ 0x1018d20\n; > ec_GFp_simple_add @ 0x1018d98\n; > ec_GFp_simple_is_on_curve @ 0x101906c\n; > <???> @ 0xd7110\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:17:24 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x1097b60\nMOV             X29, SP                                                ; +0x4, 0x1097b64\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0x1097b68\nMOV             X19, X0                                                ; +0xc, 0x1097b6c\nSTR             X3, [X29,#0x30+var_8]                                  ; +0x10, 0x1097b70\nBL              BN_sub                                                 ; +0x14, 0x1097b74\nCBZ             W0, loc_1097B8C                                        ; +0x18, 0x1097b78\nLDR             W1, [X19,#0x10]                                        ; +0x1c, 0x1097b7c\nMOV             W0, #1                                                 ; +0x20, 0x1097b80\nLDR             X3, [X29,#0x30+var_8]                                  ; +0x24, 0x1097b84\nCBNZ            W1, loc_1097B98                                        ; +0x28, 0x1097b88\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x2c, 0x1097b8c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x30, 0x1097b90\nRET                                                                    ; +0x34, 0x1097b94\nMOV             X0, X19                                                ; +0x38, 0x1097b98\nMOV             X1, X19                                                ; +0x3c, 0x1097b9c\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x40, 0x1097ba0\nMOV             X2, X3                                                 ; +0x44, 0x1097ba4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x48, 0x1097ba8\nB               BN_add                                                 ; +0x4c, 0x1097bac", "xrefs": ["ec_GFp_simple_set_compressed_coordinates @ 0x1016bc4", "ec_GFp_simple_dbl @ 0x1018158", "ec_GFp_simple_dbl @ 0x10181a0", "ec_GFp_simple_dbl @ 0x10181d8", "ec_GFp_simple_dbl @ 0x1018288", "ec_GFp_simple_add @ 0x1018a0c", "ec_GFp_simple_add @ 0x1018a24", "ec_GFp_simple_add @ 0x1018cf4", "ec_GFp_simple_add @ 0x1018d20", "ec_GFp_simple_add @ 0x1018d98", "ec_GFp_simple_is_on_curve @ 0x101906c", "<???> @ 0xd7110"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}