// // BIO_new_mem_buf from 0xff7a44 to 0xff7ae8 (164 bytes) // // 4 xrefs: // > PKCS7_dataInit @ 0x104ae94 // > PKCS7_dataDecode @ 0x104b4d0 // > cms_content_bio @ 0x109dc68 // > @ 0xf35c8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:15:49 +0000 // __int64 __fastcall BIO_new_mem_buf(const char *a1, int a2) { size_t v3; // x19 void *v4; // x0 __int64 result; // x0 size_t **v6; // x4 size_t *v7; // x2 int v8; // w3 size_t *v9; // x4 size_t v10; // x7 size_t v11; // x7 if ( a1 ) { v3 = a2; if ( a2 < 0 ) v3 = strlen(a1); v4 = BIO_s_mem(); result = BIO_new((__int64)v4); if ( result ) { v6 = *(size_t ***)(result + 48); v7 = *v6; v8 = *(_DWORD *)(result + 32) | 0x200; v9 = v6[1]; v7[1] = (size_t)a1; *v7 = v3; v7[2] = v3; v10 = v7[1]; *v9 = *v7; v9[1] = v10; v11 = v7[3]; v9[2] = v7[2]; v9[3] = v11; *(_DWORD *)(result + 32) = v8; *(_DWORD *)(result + 40) = 0; } } else { ERR_put_error(32, 126, 115, "crypto/bio/bss_mem.c", 81); return 0; } return result; }