{"type": "func", "start": 14784432, "end": 14784528, "name": "BN_mod_add_quick", "pseudocode": "// \n// BN_mod_add_quick from 0xe197b0 to 0xe19810 (96 bytes)\n// \n// 19 xrefs:\n// > ossl_ecdsa_sign_sig @ 0xd94e40\n// > ec_GFp_simple_set_compressed_coordinates @ 0xd98704\n// > ec_GFp_simple_set_compressed_coordinates @ 0xd98740\n// > ec_GFp_simple_set_compressed_coordinates @ 0xd9884c\n// > ec_GFp_simple_set_compressed_coordinates @ 0xd988a4\n// > ec_GFp_simple_dbl @ 0xd99ccc\n// > ec_GFp_simple_dbl @ 0xd99d34\n// > ec_GFp_simple_dbl @ 0xd99edc\n// > ec_GFp_simple_dbl @ 0xd99ef4\n// > ec_GFp_simple_dbl @ 0xd99f10\n// > ec_GFp_simple_dbl @ 0xd99f74\n// > ec_GFp_simple_add @ 0xd9a8d0\n// > ec_GFp_simple_add @ 0xd9a8e8\n// > ec_GFp_simple_is_on_curve @ 0xd9ac40\n// > ec_GFp_simple_is_on_curve @ 0xd9ac74\n// > ec_GFp_simple_is_on_curve @ 0xd9acf4\n// > ec_GFp_simple_is_on_curve @ 0xd9ad5c\n// > ec_GFp_simple_is_on_curve @ 0xd9adc0\n// > <???> @ 0x47478\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_add_quick(unsigned __int64 *a1, __int64 a2, __int64 a3, __int64 *a4)\n{\n  unsigned __int64 *result; // x0\n\n  result = BN_uadd((__int64)a1, a2, a3);\n  if ( (_DWORD)result )\n  {\n    if ( (BN_ucmp((__int64 *)a1, a4) & 0x80000000) != 0 )\n      return (_QWORD *)(dword_0 + 1);\n    else\n      return BN_usub(a1, (__int64 *)a1, (__int64)a4);\n  }\n  return result;\n}", "assembly": "; \n; BN_mod_add_quick from 0xe197b0 to 0xe19810 (96 bytes)\n; \n; 19 xrefs:\n; > ossl_ecdsa_sign_sig @ 0xd94e40\n; > ec_GFp_simple_set_compressed_coordinates @ 0xd98704\n; > ec_GFp_simple_set_compressed_coordinates @ 0xd98740\n; > ec_GFp_simple_set_compressed_coordinates @ 0xd9884c\n; > ec_GFp_simple_set_compressed_coordinates @ 0xd988a4\n; > ec_GFp_simple_dbl @ 0xd99ccc\n; > ec_GFp_simple_dbl @ 0xd99d34\n; > ec_GFp_simple_dbl @ 0xd99edc\n; > ec_GFp_simple_dbl @ 0xd99ef4\n; > ec_GFp_simple_dbl @ 0xd99f10\n; > ec_GFp_simple_dbl @ 0xd99f74\n; > ec_GFp_simple_add @ 0xd9a8d0\n; > ec_GFp_simple_add @ 0xd9a8e8\n; > ec_GFp_simple_is_on_curve @ 0xd9ac40\n; > ec_GFp_simple_is_on_curve @ 0xd9ac74\n; > ec_GFp_simple_is_on_curve @ 0xd9acf4\n; > ec_GFp_simple_is_on_curve @ 0xd9ad5c\n; > ec_GFp_simple_is_on_curve @ 0xd9adc0\n; > <???> @ 0x47478\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,#-0x20+var_s0]!                          ; +0x0, 0xe197b0\nMOV             X29, SP                                                ; +0x4, 0xe197b4\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xe197b8\nMOV             X20, X0                                                ; +0xc, 0xe197bc\nMOV             X19, X3                                                ; +0x10, 0xe197c0\nBL              BN_uadd                                                ; +0x14, 0xe197c4\nCBNZ            W0, loc_E197D8                                         ; +0x18, 0xe197c8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x1c, 0xe197cc\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x20, 0xe197d0\nRET                                                                    ; +0x24, 0xe197d4\nMOV             X0, X20                                                ; +0x28, 0xe197d8\nMOV             X1, X19                                                ; +0x2c, 0xe197dc\nBL              BN_ucmp                                                ; +0x30, 0xe197e0\nTBNZ            W0, #0x1F, loc_E19800                                  ; +0x34, 0xe197e4\nMOV             X0, X20                                                ; +0x38, 0xe197e8\nMOV             X1, X20                                                ; +0x3c, 0xe197ec\nMOV             X2, X19                                                ; +0x40, 0xe197f0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x44, 0xe197f4\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x48, 0xe197f8\nB               BN_usub                                                ; +0x4c, 0xe197fc\nMOV             W0, #1                                                 ; +0x50, 0xe19800\nLDP             X19, X20, [SP,#var_s10]                                ; +0x54, 0xe19804\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x58, 0xe19808\nRET                                                                    ; +0x5c, 0xe1980c", "xrefs": ["ossl_ecdsa_sign_sig @ 0xd94e40", "ec_GFp_simple_set_compressed_coordinates @ 0xd98704", "ec_GFp_simple_set_compressed_coordinates @ 0xd98740", "ec_GFp_simple_set_compressed_coordinates @ 0xd9884c", "ec_GFp_simple_set_compressed_coordinates @ 0xd988a4", "ec_GFp_simple_dbl @ 0xd99ccc", "ec_GFp_simple_dbl @ 0xd99d34", "ec_GFp_simple_dbl @ 0xd99edc", "ec_GFp_simple_dbl @ 0xd99ef4", "ec_GFp_simple_dbl @ 0xd99f10", "ec_GFp_simple_dbl @ 0xd99f74", "ec_GFp_simple_add @ 0xd9a8d0", "ec_GFp_simple_add @ 0xd9a8e8", "ec_GFp_simple_is_on_curve @ 0xd9ac40", "ec_GFp_simple_is_on_curve @ 0xd9ac74", "ec_GFp_simple_is_on_curve @ 0xd9acf4", "ec_GFp_simple_is_on_curve @ 0xd9ad5c", "ec_GFp_simple_is_on_curve @ 0xd9adc0", "<???> @ 0x47478"], "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"}