{"type": "func", "start": 8848804, "end": 8848936, "name": "BN_mod_lshift", "pseudocode": "// \n// BN_mod_lshift from 0x8705a4 to 0x870628 (132 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x69ddc\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\nint __fastcall BN_mod_lshift(int *a1, int *a2, int a3, int *a4, int ***a5)\n{\n  int *v8; // r3\n  int v9; // r5\n  int v10; // r4\n  int v12; // r0\n\n  if ( BN_nnmod(a1, a2, a4, a5, (int)a4) )\n  {\n    if ( !a4[3] )\n    {\n      v8 = a4;\n      v9 = 0;\nLABEL_5:\n      v10 = BN_mod_lshift_quick(a1, (int)a1, a3, v8);\n      BN_free(v9);\n      return v10;\n    }\n    v12 = BN_dup((int)a4);\n    v9 = v12;\n    if ( v12 )\n    {\n      *(_DWORD *)(v12 + 12) = 0;\n      v8 = (int *)v12;\n      goto LABEL_5;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; BN_mod_lshift from 0x8705a4 to 0x870628 (132 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x69ddc\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\nPUSH            {R3-R7,LR}                                             ; +0x0, 0x8705a4\nMOV             R4, R3                                                 ; +0x4, 0x8705a8\nMOV             R7, R2                                                 ; +0x8, 0x8705ac\nLDR             R3, [SP,#4+arg_0]                                      ; +0xc, 0x8705b0\nMOV             R2, R4                                                 ; +0x10, 0x8705b4\nMOV             R6, R0                                                 ; +0x14, 0x8705b8\nBL              BN_nnmod                                               ; +0x18, 0x8705bc\nCMP             R0, #0                                                 ; +0x1c, 0x8705c0\nBEQ             loc_870600                                             ; +0x20, 0x8705c4\nLDR             R1, [R4,#0xC]                                          ; +0x24, 0x8705c8\nCMP             R1, #0                                                 ; +0x28, 0x8705cc\nMOVEQ           R3, R4                                                 ; +0x2c, 0x8705d0\nMOVEQ           R5, R1                                                 ; +0x30, 0x8705d4\nBNE             loc_870608                                             ; +0x34, 0x8705d8\nMOV             R2, R7                                                 ; +0x38, 0x8705dc\nMOV             R1, R6                                                 ; +0x3c, 0x8705e0\nMOV             R0, R6                                                 ; +0x40, 0x8705e4\nBL              BN_mod_lshift_quick                                    ; +0x44, 0x8705e8\nMOV             R4, R0                                                 ; +0x48, 0x8705ec\nMOV             R0, R5                                                 ; +0x4c, 0x8705f0\nBL              BN_free                                                ; +0x50, 0x8705f4\nMOV             R0, R4                                                 ; +0x54, 0x8705f8\nPOP             {R3-R7,PC}                                             ; +0x58, 0x8705fc\nMOV             R0, #0                                                 ; +0x5c, 0x870600\nPOP             {R3-R7,PC}                                             ; +0x60, 0x870604\nMOV             R0, R4                                                 ; +0x64, 0x870608\nBL              BN_dup                                                 ; +0x68, 0x87060c\nSUBS            R5, R0, #0                                             ; +0x6c, 0x870610\nBEQ             loc_870600                                             ; +0x70, 0x870614\nMOV             R3, #0                                                 ; +0x74, 0x870618\nSTR             R3, [R5,#0xC]                                          ; +0x78, 0x87061c\nMOV             R3, R5                                                 ; +0x7c, 0x870620\nB               loc_8705DC                                             ; +0x80, 0x870624", "xrefs": ["<???> @ 0x69ddc"], "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"}