{"type": "func", "start": 13828128, "end": 13828260, "name": "BIO_ssl_copy_session_id", "pseudocode": "// \n// BIO_ssl_copy_session_id from 0xd30020 to 0xd300a4 (132 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x724b0\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\nbool __fastcall BIO_ssl_copy_session_id(__int64 a1, __int64 a2)\n{\n  __int64 type; // x20\n  __int64 v4; // x19\n  _QWORD *data; // x20\n  _QWORD *v6; // x0\n\n  type = BIO_find_type(a1, 519);\n  v4 = BIO_find_type(a2, 519);\n  if ( v4 && type && (data = (_QWORD *)BIO_get_data(type), v6 = (_QWORD *)BIO_get_data(v4), *data) && *v6 )\n    return (unsigned int)SSL_copy_session_id(*data) != 0;\n  else\n    return 0;\n}", "assembly": "; \n; BIO_ssl_copy_session_id from 0xd30020 to 0xd300a4 (132 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x724b0\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,#-0x20+var_s0]!                          ; +0x0, 0xd30020\nMOV             X29, SP                                                ; +0x4, 0xd30024\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xd30028\nMOV             X19, X1                                                ; +0xc, 0xd3002c\nMOV             W1, #0x207                                             ; +0x10, 0xd30030\nBL              BIO_find_type                                          ; +0x14, 0xd30034\nMOV             X20, X0                                                ; +0x18, 0xd30038\nMOV             W1, #0x207                                             ; +0x1c, 0xd3003c\nMOV             X0, X19                                                ; +0x20, 0xd30040\nBL              BIO_find_type                                          ; +0x24, 0xd30044\nMOV             X19, X0                                                ; +0x28, 0xd30048\nCBZ             X0, loc_D30094                                         ; +0x2c, 0xd3004c\nCBZ             X20, loc_D30094                                        ; +0x30, 0xd30050\nMOV             X0, X20                                                ; +0x34, 0xd30054\nBL              BIO_get_data                                           ; +0x38, 0xd30058\nMOV             X20, X0                                                ; +0x3c, 0xd3005c\nMOV             X0, X19                                                ; +0x40, 0xd30060\nBL              BIO_get_data                                           ; +0x44, 0xd30064\nLDR             X2, [X20]                                              ; +0x48, 0xd30068\nCBZ             X2, loc_D30094                                         ; +0x4c, 0xd3006c\nLDR             X1, [X0]                                               ; +0x50, 0xd30070\nCBZ             X1, loc_D30094                                         ; +0x54, 0xd30074\nMOV             X0, X2                                                 ; +0x58, 0xd30078\nBL              SSL_copy_session_id                                    ; +0x5c, 0xd3007c\nCMP             W0, WZR                                                ; +0x60, 0xd30080\nCSET            W0, NE                                                 ; +0x64, 0xd30084\nLDP             X19, X20, [SP,#var_s10]                                ; +0x68, 0xd30088\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x6c, 0xd3008c\nRET                                                                    ; +0x70, 0xd30090\nMOV             W0, #0                                                 ; +0x74, 0xd30094\nLDP             X19, X20, [SP,#var_s10]                                ; +0x78, 0xd30098\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x7c, 0xd3009c\nRET                                                                    ; +0x80, 0xd300a0", "xrefs": ["<???> @ 0x724b0"], "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"}