{"type": "func", "start": 16905908, "end": 16906032, "name": "ERR_set_error_data", "pseudocode": "// \n// ERR_set_error_data from 0x101f6b4 to 0x101f730 (124 bytes)\n// \n// 2 xrefs:\n// > ERR_add_error_vdata @ 0x101f824\n// > <???> @ 0x83350\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:16:10 +0000\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 0x101f6b4 to 0x101f730 (124 bytes)\n; \n; 2 xrefs:\n; > ERR_add_error_vdata @ 0x101f824\n; > <???> @ 0x83350\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:16:10 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x101f6b4\nMOV             X29, SP                                                ; +0x4, 0x101f6b8\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x101f6bc\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0x101f6c0\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0x101f6c4\nMOV             W22, W1                                                ; +0x14, 0x101f6c8\nMOV             X23, X0                                                ; +0x18, 0x101f6cc\nBL              ERR_get_state                                          ; +0x1c, 0x101f6d0\nLDR             W2, [X0,#0x240]                                        ; +0x20, 0x101f6d4\nMOV             X20, X0                                                ; +0x24, 0x101f6d8\nMOV             W0, #0xF                                               ; +0x28, 0x101f6dc\nCMP             W2, WZR                                                ; +0x2c, 0x101f6e0\nCSEL            W2, W2, W0, NE                                         ; +0x30, 0x101f6e4\nSXTW            X19, W2                                                ; +0x34, 0x101f6e8\nADD             X21, X20, X19,LSL#2                                    ; +0x38, 0x101f6ec\nLDR             W0, [X21,#0x140]                                       ; +0x3c, 0x101f6f0\nTBZ             W0, #0, loc_101F710                                    ; +0x40, 0x101f6f4\nADD             X0, X19, #0x18                                         ; +0x44, 0x101f6f8\nADRL            X1, aCryptoErrErrC; \"crypto/err/err.c\"                 ; +0x48, 0x101f6fc\nMOV             W2, #0x2B6                                             ; +0x50, 0x101f704\nLDR             X0, [X20,X0,LSL#3]                                     ; +0x54, 0x101f708\nBL              CRYPTO_free                                            ; +0x58, 0x101f70c\nADD             X2, X19, #0x18                                         ; +0x5c, 0x101f710\nSTR             X23, [X20,X2,LSL#3]                                    ; +0x60, 0x101f714\nSTR             W22, [X21,#0x140]                                      ; +0x64, 0x101f718\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x68, 0x101f71c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x6c, 0x101f720\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x70, 0x101f724\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x74, 0x101f728\nRET                                                                    ; +0x78, 0x101f72c", "xrefs": ["ERR_add_error_vdata @ 0x101f824", "<???> @ 0x83350"], "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"}