{"type": "func", "start": 14291796, "end": 14291920, "name": "ERR_set_error_data", "pseudocode": "// \n// ERR_set_error_data from 0xda1354 to 0xda13d0 (124 bytes)\n// \n// 2 xrefs:\n// > ERR_add_error_vdata @ 0xda14c4\n// > <???> @ 0x601f8\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\n__int64 __fastcall ERR_set_error_data(__int64 a1, int a2)\n{\n  __int64 state; // x0\n  int v5; // w2\n  __int64 v6; // x20\n  __int64 v7; // x19\n  __int64 v8; // x21\n  __int64 result; // x0\n\n  state = ERR_get_state();\n  v5 = *(_DWORD *)(state + 576);\n  v6 = state;\n  if ( !v5 )\n    v5 = 15;\n  v7 = v5;\n  v8 = state + 4LL * v5;\n  result = *(unsigned int *)(v8 + 320);\n  if ( (result & 1) != 0 )\n    result = CRYPTO_free(*(_QWORD *)(v6 + 8 * (v5 + 24LL)), \"crypto/err/err.c\", 694);\n  *(_QWORD *)(v6 + 8 * (v7 + 24)) = a1;\n  *(_DWORD *)(v8 + 320) = a2;\n  return result;\n}", "assembly": "; \n; ERR_set_error_data from 0xda1354 to 0xda13d0 (124 bytes)\n; \n; 2 xrefs:\n; > ERR_add_error_vdata @ 0xda14c4\n; > <???> @ 0x601f8\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xda1354\nMOV             X29, SP                                                ; +0x4, 0xda1358\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xda135c\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0xda1360\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0xda1364\nMOV             W22, W1                                                ; +0x14, 0xda1368\nMOV             X23, X0                                                ; +0x18, 0xda136c\nBL              ERR_get_state                                          ; +0x1c, 0xda1370\nLDR             W2, [X0,#0x240]                                        ; +0x20, 0xda1374\nMOV             X20, X0                                                ; +0x24, 0xda1378\nMOV             W0, #0xF                                               ; +0x28, 0xda137c\nCMP             W2, WZR                                                ; +0x2c, 0xda1380\nCSEL            W2, W2, W0, NE                                         ; +0x30, 0xda1384\nSXTW            X19, W2                                                ; +0x34, 0xda1388\nADD             X21, X20, X19,LSL#2                                    ; +0x38, 0xda138c\nLDR             W0, [X21,#0x140]                                       ; +0x3c, 0xda1390\nTBZ             W0, #0, loc_DA13B0                                     ; +0x40, 0xda1394\nADD             X0, X19, #0x18                                         ; +0x44, 0xda1398\nADRL            X1, aCryptoErrErrC; \"crypto/err/err.c\"                 ; +0x48, 0xda139c\nMOV             W2, #0x2B6                                             ; +0x50, 0xda13a4\nLDR             X0, [X20,X0,LSL#3]                                     ; +0x54, 0xda13a8\nBL              CRYPTO_free                                            ; +0x58, 0xda13ac\nADD             X2, X19, #0x18                                         ; +0x5c, 0xda13b0\nSTR             X23, [X20,X2,LSL#3]                                    ; +0x60, 0xda13b4\nSTR             W22, [X21,#0x140]                                      ; +0x64, 0xda13b8\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x68, 0xda13bc\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x6c, 0xda13c0\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x70, 0xda13c4\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x74, 0xda13c8\nRET                                                                    ; +0x78, 0xda13cc", "xrefs": ["ERR_add_error_vdata @ 0xda14c4", "<???> @ 0x601f8"], "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"}