{"type": "func", "start": 14785388, "end": 14785544, "name": "BN_mod_lshift", "pseudocode": "// \n// BN_mod_lshift from 0xe19b6c to 0xe19c08 (156 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6faf8\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_lshift(unsigned __int64 *a1, __int64 a2, int a3, __int64 a4, int32x2_t *a5)\n{\n  __int64 *v8; // x3\n  __int64 v9; // x21\n  unsigned int v10; // w19\n  unsigned __int64 *v12; // x0\n\n  if ( (unsigned int)BN_nnmod((__int64)a1, a2, a4, a5) )\n  {\n    if ( !*(_DWORD *)(a4 + 16) )\n    {\n      v8 = (__int64 *)a4;\n      v9 = 0;\nLABEL_4:\n      v10 = BN_mod_lshift_quick(a1, (__int64)a1, a3, v8);\n      BN_free(v9);\n      return v10;\n    }\n    v12 = BN_dup(a4);\n    v9 = (__int64)v12;\n    if ( v12 )\n    {\n      *((_DWORD *)v12 + 4) = 0;\n      v8 = (__int64 *)v12;\n      goto LABEL_4;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; BN_mod_lshift from 0xe19b6c to 0xe19c08 (156 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6faf8\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,#-0x30+var_s0]!                          ; +0x0, 0xe19b6c\nMOV             X29, SP                                                ; +0x4, 0xe19b70\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xe19b74\nMOV             X19, X3                                                ; +0xc, 0xe19b78\nMOV             X3, X4                                                 ; +0x10, 0xe19b7c\nSTP             X21, X22, [SP,#var_s20]                                ; +0x14, 0xe19b80\nMOV             W22, W2                                                ; +0x18, 0xe19b84\nMOV             X2, X19                                                ; +0x1c, 0xe19b88\nMOV             X20, X0                                                ; +0x20, 0xe19b8c\nBL              BN_nnmod                                               ; +0x24, 0xe19b90\nCBZ             W0, loc_E19BD8                                         ; +0x28, 0xe19b94\nLDR             W0, [X19,#0x10]                                        ; +0x2c, 0xe19b98\nCBNZ            W0, loc_E19BEC                                         ; +0x30, 0xe19b9c\nMOV             X3, X19                                                ; +0x34, 0xe19ba0\nMOV             X21, #0                                                ; +0x38, 0xe19ba4\nMOV             X1, X20                                                ; +0x3c, 0xe19ba8\nMOV             W2, W22                                                ; +0x40, 0xe19bac\nMOV             X0, X20                                                ; +0x44, 0xe19bb0\nBL              BN_mod_lshift_quick                                    ; +0x48, 0xe19bb4\nMOV             W19, W0                                                ; +0x4c, 0xe19bb8\nMOV             X0, X21                                                ; +0x50, 0xe19bbc\nBL              BN_free                                                ; +0x54, 0xe19bc0\nMOV             W0, W19                                                ; +0x58, 0xe19bc4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x5c, 0xe19bc8\nLDP             X21, X22, [SP,#var_s20]                                ; +0x60, 0xe19bcc\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x64, 0xe19bd0\nRET                                                                    ; +0x68, 0xe19bd4\nMOV             W0, #0                                                 ; +0x6c, 0xe19bd8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x70, 0xe19bdc\nLDP             X21, X22, [SP,#var_s20]                                ; +0x74, 0xe19be0\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x78, 0xe19be4\nRET                                                                    ; +0x7c, 0xe19be8\nMOV             X0, X19                                                ; +0x80, 0xe19bec\nBL              BN_dup                                                 ; +0x84, 0xe19bf0\nMOV             X21, X0                                                ; +0x88, 0xe19bf4\nCBZ             X0, loc_E19BD8                                         ; +0x8c, 0xe19bf8\nSTR             WZR, [X0,#0x10]                                        ; +0x90, 0xe19bfc\nMOV             X3, X0                                                 ; +0x94, 0xe19c00\nB               loc_E19BA8                                             ; +0x98, 0xe19c04", "xrefs": ["<???> @ 0x6faf8"], "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"}