{"type": "func", "start": 16744324, "end": 16744488, "name": "BN_set_params", "pseudocode": "// \n// BN_set_params from 0xff7f84 to 0xff8028 (164 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xa6eb8\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:15:49 +0000\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_1566330 = result;\n    result = (unsigned __int64)&unk_1551000;\n    dword_1551C24 = v4;\n  }\n  if ( (a2 & 0x80000000) == 0 )\n  {\n    if ( a2 > 31 )\n      a2 = 31;\n    result = (unsigned int)(1 << a2);\n    dword_1566334 = a2;\n    dword_1551C28 = 1 << a2;\n  }\n  if ( (a3 & 0x80000000) == 0 )\n  {\n    if ( a3 > 31 )\n      a3 = 31;\n    dword_1566338 = a3;\n    result = (unsigned int)(1 << a3);\n    dword_1551C2C = 1 << a3;\n  }\n  if ( (a4 & 0x80000000) == 0 )\n  {\n    if ( a4 > 31 )\n      a4 = 31;\n    dword_156633C = a4;\n    dword_1551C30 = 1 << a4;\n    return (unsigned int)(1 << a4);\n  }\n  return result;\n}", "assembly": "; \n; BN_set_params from 0xff7f84 to 0xff8028 (164 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xa6eb8\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:15:49 +0000\n; \nTBNZ            W0, #0x1F, loc_FF7FAC                                  ; +0x0, 0xff7f84\nADRP            X5, #dword_1566330@PAGE                                ; +0x4, 0xff7f88\nMOV             W4, #0x1F                                              ; +0x8, 0xff7f8c\nCMP             W0, #0x1F                                              ; +0xc, 0xff7f90\nCSEL            W0, W0, W4, LE                                         ; +0x10, 0xff7f94\nMOV             W4, #1                                                 ; +0x14, 0xff7f98\nLSL             W4, W4, W0                                             ; +0x18, 0xff7f9c\nSTR             W0, [X5,#dword_1566330@PAGEOFF]                        ; +0x1c, 0xff7fa0\nADRP            X0, #dword_1551C24@PAGE                                ; +0x20, 0xff7fa4\nSTR             W4, [X0,#dword_1551C24@PAGEOFF]                        ; +0x24, 0xff7fa8\nTBNZ            W1, #0x1F, loc_FF7FD4                                  ; +0x28, 0xff7fac\nADRP            X4, #dword_1566334@PAGE                                ; +0x2c, 0xff7fb0\nMOV             W0, #0x1F                                              ; +0x30, 0xff7fb4\nCMP             W1, #0x1F                                              ; +0x34, 0xff7fb8\nCSEL            W1, W1, W0, LE                                         ; +0x38, 0xff7fbc\nMOV             W0, #1                                                 ; +0x3c, 0xff7fc0\nLSL             W0, W0, W1                                             ; +0x40, 0xff7fc4\nSTR             W1, [X4,#dword_1566334@PAGEOFF]                        ; +0x44, 0xff7fc8\nADRP            X1, #dword_1551C28@PAGE                                ; +0x48, 0xff7fcc\nSTR             W0, [X1,#dword_1551C28@PAGEOFF]                        ; +0x4c, 0xff7fd0\nTBNZ            W2, #0x1F, loc_FF7FFC                                  ; +0x50, 0xff7fd4\nADRP            X1, #dword_1566338@PAGE                                ; +0x54, 0xff7fd8\nMOV             W0, #0x1F                                              ; +0x58, 0xff7fdc\nCMP             W2, #0x1F                                              ; +0x5c, 0xff7fe0\nCSEL            W2, W2, W0, LE                                         ; +0x60, 0xff7fe4\nMOV             W0, #1                                                 ; +0x64, 0xff7fe8\nSTR             W2, [X1,#dword_1566338@PAGEOFF]                        ; +0x68, 0xff7fec\nADRP            X1, #dword_1551C2C@PAGE                                ; +0x6c, 0xff7ff0\nLSL             W0, W0, W2                                             ; +0x70, 0xff7ff4\nSTR             W0, [X1,#dword_1551C2C@PAGEOFF]                        ; +0x74, 0xff7ff8\nTBNZ            W3, #0x1F, locret_FF8024                               ; +0x78, 0xff7ffc\nADRP            X1, #dword_156633C@PAGE                                ; +0x7c, 0xff8000\nMOV             W0, #0x1F                                              ; +0x80, 0xff8004\nCMP             W3, #0x1F                                              ; +0x84, 0xff8008\nCSEL            W3, W3, W0, LE                                         ; +0x88, 0xff800c\nMOV             W0, #1                                                 ; +0x8c, 0xff8010\nSTR             W3, [X1,#dword_156633C@PAGEOFF]                        ; +0x90, 0xff8014\nADRP            X1, #dword_1551C30@PAGE                                ; +0x94, 0xff8018\nLSL             W0, W0, W3                                             ; +0x98, 0xff801c\nSTR             W0, [X1,#dword_1551C30@PAGEOFF]                        ; +0x9c, 0xff8020\nRET                                                                    ; +0xa0, 0xff8024", "xrefs": ["<???> @ 0xa6eb8"], "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"}