{"type": "func", "start": 14130212, "end": 14130376, "name": "BN_set_params", "pseudocode": "// \n// BN_set_params from 0xd79c24 to 0xd79cc8 (164 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7d1f0\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\nunsigned __int64 __fastcall BN_set_params(unsigned __int64 result, int a2, int a3, int a4)\n{\n  int v4; // w4\n\n  if ( (result & 0x80000000) == 0 )\n  {\n    if ( (int)result > 31 )\n      LODWORD(result) = 31;\n    v4 = 1 << result;\n    dword_125D530 = result;\n    result = (unsigned __int64)&unk_1238000;\n    dword_1238944 = v4;\n  }\n  if ( (a2 & 0x80000000) == 0 )\n  {\n    if ( a2 > 31 )\n      a2 = 31;\n    result = (unsigned int)(1 << a2);\n    dword_125D534 = a2;\n    dword_1238948 = 1 << a2;\n  }\n  if ( (a3 & 0x80000000) == 0 )\n  {\n    if ( a3 > 31 )\n      a3 = 31;\n    dword_125D538 = a3;\n    result = (unsigned int)(1 << a3);\n    dword_123894C = 1 << a3;\n  }\n  if ( (a4 & 0x80000000) == 0 )\n  {\n    if ( a4 > 31 )\n      a4 = 31;\n    dword_125D53C = a4;\n    dword_1238950 = 1 << a4;\n    return (unsigned int)(1 << a4);\n  }\n  return result;\n}", "assembly": "; \n; BN_set_params from 0xd79c24 to 0xd79cc8 (164 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7d1f0\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\nTBNZ            W0, #0x1F, loc_D79C4C                                  ; +0x0, 0xd79c24\nADRP            X5, #dword_125D530@PAGE                                ; +0x4, 0xd79c28\nMOV             W4, #0x1F                                              ; +0x8, 0xd79c2c\nCMP             W0, #0x1F                                              ; +0xc, 0xd79c30\nCSEL            W0, W0, W4, LE                                         ; +0x10, 0xd79c34\nMOV             W4, #1                                                 ; +0x14, 0xd79c38\nLSL             W4, W4, W0                                             ; +0x18, 0xd79c3c\nSTR             W0, [X5,#dword_125D530@PAGEOFF]                        ; +0x1c, 0xd79c40\nADRP            X0, #dword_1238944@PAGE                                ; +0x20, 0xd79c44\nSTR             W4, [X0,#dword_1238944@PAGEOFF]                        ; +0x24, 0xd79c48\nTBNZ            W1, #0x1F, loc_D79C74                                  ; +0x28, 0xd79c4c\nADRP            X4, #dword_125D534@PAGE                                ; +0x2c, 0xd79c50\nMOV             W0, #0x1F                                              ; +0x30, 0xd79c54\nCMP             W1, #0x1F                                              ; +0x34, 0xd79c58\nCSEL            W1, W1, W0, LE                                         ; +0x38, 0xd79c5c\nMOV             W0, #1                                                 ; +0x3c, 0xd79c60\nLSL             W0, W0, W1                                             ; +0x40, 0xd79c64\nSTR             W1, [X4,#dword_125D534@PAGEOFF]                        ; +0x44, 0xd79c68\nADRP            X1, #dword_1238948@PAGE                                ; +0x48, 0xd79c6c\nSTR             W0, [X1,#dword_1238948@PAGEOFF]                        ; +0x4c, 0xd79c70\nTBNZ            W2, #0x1F, loc_D79C9C                                  ; +0x50, 0xd79c74\nADRP            X1, #dword_125D538@PAGE                                ; +0x54, 0xd79c78\nMOV             W0, #0x1F                                              ; +0x58, 0xd79c7c\nCMP             W2, #0x1F                                              ; +0x5c, 0xd79c80\nCSEL            W2, W2, W0, LE                                         ; +0x60, 0xd79c84\nMOV             W0, #1                                                 ; +0x64, 0xd79c88\nSTR             W2, [X1,#dword_125D538@PAGEOFF]                        ; +0x68, 0xd79c8c\nADRP            X1, #dword_123894C@PAGE                                ; +0x6c, 0xd79c90\nLSL             W0, W0, W2                                             ; +0x70, 0xd79c94\nSTR             W0, [X1,#dword_123894C@PAGEOFF]                        ; +0x74, 0xd79c98\nTBNZ            W3, #0x1F, locret_D79CC4                               ; +0x78, 0xd79c9c\nADRP            X1, #dword_125D53C@PAGE                                ; +0x7c, 0xd79ca0\nMOV             W0, #0x1F                                              ; +0x80, 0xd79ca4\nCMP             W3, #0x1F                                              ; +0x84, 0xd79ca8\nCSEL            W3, W3, W0, LE                                         ; +0x88, 0xd79cac\nMOV             W0, #1                                                 ; +0x8c, 0xd79cb0\nSTR             W3, [X1,#dword_125D53C@PAGEOFF]                        ; +0x90, 0xd79cb4\nADRP            X1, #dword_1238950@PAGE                                ; +0x94, 0xd79cb8\nLSL             W0, W0, W3                                             ; +0x98, 0xd79cbc\nSTR             W0, [X1,#dword_1238950@PAGEOFF]                        ; +0x9c, 0xd79cc0\nRET                                                                    ; +0xa0, 0xd79cc4", "xrefs": ["<???> @ 0x7d1f0"], "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"}