{"type": "func", "start": 11030948, "end": 11031080, "name": "BN_mod_lshift", "pseudocode": "// \n// BN_mod_lshift from 0xa851a4 to 0xa85228 (132 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x8385c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:08:51 +0000\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 0xa851a4 to 0xa85228 (132 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x8385c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:08:51 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0xa851a4\nMOV             R4, R3                                                 ; +0x4, 0xa851a8\nMOV             R7, R2                                                 ; +0x8, 0xa851ac\nLDR             R3, [SP,#4+arg_0]                                      ; +0xc, 0xa851b0\nMOV             R2, R4                                                 ; +0x10, 0xa851b4\nMOV             R6, R0                                                 ; +0x14, 0xa851b8\nBL              BN_nnmod                                               ; +0x18, 0xa851bc\nCMP             R0, #0                                                 ; +0x1c, 0xa851c0\nBEQ             loc_A85200                                             ; +0x20, 0xa851c4\nLDR             R1, [R4,#0xC]                                          ; +0x24, 0xa851c8\nCMP             R1, #0                                                 ; +0x28, 0xa851cc\nMOVEQ           R3, R4                                                 ; +0x2c, 0xa851d0\nMOVEQ           R5, R1                                                 ; +0x30, 0xa851d4\nBNE             loc_A85208                                             ; +0x34, 0xa851d8\nMOV             R2, R7                                                 ; +0x38, 0xa851dc\nMOV             R1, R6                                                 ; +0x3c, 0xa851e0\nMOV             R0, R6                                                 ; +0x40, 0xa851e4\nBL              BN_mod_lshift_quick                                    ; +0x44, 0xa851e8\nMOV             R4, R0                                                 ; +0x48, 0xa851ec\nMOV             R0, R5                                                 ; +0x4c, 0xa851f0\nBL              BN_free                                                ; +0x50, 0xa851f4\nMOV             R0, R4                                                 ; +0x54, 0xa851f8\nPOP             {R3-R7,PC}                                             ; +0x58, 0xa851fc\nMOV             R0, #0                                                 ; +0x5c, 0xa85200\nPOP             {R3-R7,PC}                                             ; +0x60, 0xa85204\nMOV             R0, R4                                                 ; +0x64, 0xa85208\nBL              BN_dup                                                 ; +0x68, 0xa8520c\nSUBS            R5, R0, #0                                             ; +0x6c, 0xa85210\nBEQ             loc_A85200                                             ; +0x70, 0xa85214\nMOV             R3, #0                                                 ; +0x74, 0xa85218\nSTR             R3, [R5,#0xC]                                          ; +0x78, 0xa8521c\nMOV             R3, R5                                                 ; +0x7c, 0xa85220\nB               loc_A851DC                                             ; +0x80, 0xa85224", "xrefs": ["<???> @ 0x8385c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}