{"type": "func", "start": 17399404, "end": 17399560, "name": "BN_mod_lshift", "pseudocode": "// \n// BN_mod_lshift from 0x1097e6c to 0x1097f08 (156 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x96790\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\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 0x1097e6c to 0x1097f08 (156 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x96790\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,#-0x30+var_s0]!                          ; +0x0, 0x1097e6c\nMOV             X29, SP                                                ; +0x4, 0x1097e70\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x1097e74\nMOV             X19, X3                                                ; +0xc, 0x1097e78\nMOV             X3, X4                                                 ; +0x10, 0x1097e7c\nSTP             X21, X22, [SP,#var_s20]                                ; +0x14, 0x1097e80\nMOV             W22, W2                                                ; +0x18, 0x1097e84\nMOV             X2, X19                                                ; +0x1c, 0x1097e88\nMOV             X20, X0                                                ; +0x20, 0x1097e8c\nBL              BN_nnmod                                               ; +0x24, 0x1097e90\nCBZ             W0, loc_1097ED8                                        ; +0x28, 0x1097e94\nLDR             W0, [X19,#0x10]                                        ; +0x2c, 0x1097e98\nCBNZ            W0, loc_1097EEC                                        ; +0x30, 0x1097e9c\nMOV             X3, X19                                                ; +0x34, 0x1097ea0\nMOV             X21, #0                                                ; +0x38, 0x1097ea4\nMOV             X1, X20                                                ; +0x3c, 0x1097ea8\nMOV             W2, W22                                                ; +0x40, 0x1097eac\nMOV             X0, X20                                                ; +0x44, 0x1097eb0\nBL              BN_mod_lshift_quick                                    ; +0x48, 0x1097eb4\nMOV             W19, W0                                                ; +0x4c, 0x1097eb8\nMOV             X0, X21                                                ; +0x50, 0x1097ebc\nBL              BN_free                                                ; +0x54, 0x1097ec0\nMOV             W0, W19                                                ; +0x58, 0x1097ec4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x5c, 0x1097ec8\nLDP             X21, X22, [SP,#var_s20]                                ; +0x60, 0x1097ecc\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x64, 0x1097ed0\nRET                                                                    ; +0x68, 0x1097ed4\nMOV             W0, #0                                                 ; +0x6c, 0x1097ed8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x70, 0x1097edc\nLDP             X21, X22, [SP,#var_s20]                                ; +0x74, 0x1097ee0\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x78, 0x1097ee4\nRET                                                                    ; +0x7c, 0x1097ee8\nMOV             X0, X19                                                ; +0x80, 0x1097eec\nBL              BN_dup                                                 ; +0x84, 0x1097ef0\nMOV             X21, X0                                                ; +0x88, 0x1097ef4\nCBZ             X0, loc_1097ED8                                        ; +0x8c, 0x1097ef8\nSTR             WZR, [X0,#0x10]                                        ; +0x90, 0x1097efc\nMOV             X3, X0                                                 ; +0x94, 0x1097f00\nB               loc_1097EA8                                            ; +0x98, 0x1097f04", "xrefs": ["<???> @ 0x96790"], "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"}