// // CMS_get0_content from 0x109db20 to 0x109dc38 (280 bytes) // // 6 xrefs: // > CMS_stream @ 0x109ce58 // > cms_content_bio @ 0x109dc40 // > CMS_dataFinal @ 0x109ddc8 // > CMS_is_detached @ 0x109e118 // > CMS_set_detached @ 0x109e14c // > @ 0xb2be8 // // 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:17:30 +0000 // __int64 __fastcall CMS_get0_content(__int64 *a1) { int v2; // w0 _DWORD *v3; // x0 __int64 result; // x0 bool v5; // zf v2 = OBJ_obj2nid(*a1); if ( v2 == 25 ) return *(_QWORD *)(a1[1] + 16) + 8LL; if ( v2 > 25 ) { switch ( v2 ) { case 205: return *(_QWORD *)(a1[1] + 40) + 8LL; case 786: return *(_QWORD *)(a1[1] + 24) + 8LL; case 26: return *(_QWORD *)(a1[1] + 8) + 16LL; } goto LABEL_6; } if ( v2 == 22 ) return *(_QWORD *)(a1[1] + 16) + 8LL; if ( v2 == 23 ) return *(_QWORD *)(a1[1] + 24) + 16LL; v5 = v2 == 21; result = (__int64)(a1 + 1); if ( !v5 ) { LABEL_6: v3 = (_DWORD *)a1[1]; if ( *v3 == 4 ) { return (__int64)(v3 + 2); } else { ERR_put_error(46, 129, 152, (__int64)"crypto/cms/cms_lib.c", 184); return 0; } } return result; }