{"type": "func", "start": 14784528, "end": 14784608, "name": "BN_mod_sub", "pseudocode": "// \n// BN_mod_sub from 0xe19810 to 0xe19860 (80 bytes)\n// \n// 4 xrefs:\n// > ossl_ecdsa_sign_setup @ 0xd949ec\n// > ossl_ecdsa_sign_sig @ 0xd9527c\n// > SRP_Calc_client_key @ 0xddeba8\n// > <???> @ 0x92940\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\n__int64 __fastcall BN_mod_sub(__int64 a1, __int64 a2, __int64 a3, __int64 a4, int32x2_t *a5)\n{\n  __int64 result; // x0\n\n  result = BN_sub(a1, a2, a3);\n  if ( (_DWORD)result )\n    return BN_nnmod(a1, a1, a4, a5);\n  return result;\n}", "assembly": "; \n; BN_mod_sub from 0xe19810 to 0xe19860 (80 bytes)\n; \n; 4 xrefs:\n; > ossl_ecdsa_sign_setup @ 0xd949ec\n; > ossl_ecdsa_sign_sig @ 0xd9527c\n; > SRP_Calc_client_key @ 0xddeba8\n; > <???> @ 0x92940\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, 0xe19810\nMOV             X29, SP                                                ; +0x4, 0xe19814\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0xe19818\nMOV             X19, X0                                                ; +0xc, 0xe1981c\nSTR             X3, [X29,#0x30+var_10]                                 ; +0x10, 0xe19820\nSTR             X4, [X29,#0x30+var_8]                                  ; +0x14, 0xe19824\nBL              BN_sub                                                 ; +0x18, 0xe19828\nLDR             X4, [X29,#0x30+var_8]                                  ; +0x1c, 0xe1982c\nLDR             X3, [X29,#0x30+var_10]                                 ; +0x20, 0xe19830\nCBNZ            W0, loc_E19844                                         ; +0x24, 0xe19834\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x28, 0xe19838\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x2c, 0xe1983c\nRET                                                                    ; +0x30, 0xe19840\nMOV             X0, X19                                                ; +0x34, 0xe19844\nMOV             X1, X19                                                ; +0x38, 0xe19848\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x3c, 0xe1984c\nMOV             X2, X3                                                 ; +0x40, 0xe19850\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x44, 0xe19854\nMOV             X3, X4                                                 ; +0x48, 0xe19858\nB               BN_nnmod                                               ; +0x4c, 0xe1985c", "xrefs": ["ossl_ecdsa_sign_setup @ 0xd949ec", "ossl_ecdsa_sign_sig @ 0xd9527c", "SRP_Calc_client_key @ 0xddeba8", "<???> @ 0x92940"], "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"}