//
// sub_1089570 from 0x1089570 to 0x1089598 (40 bytes)
//
// 6 xrefs:
// > ASN1_mbstring_ncopy @ 0x1089a00
// > ASN1_mbstring_ncopy @ 0x1089bfc
// > ASN1_mbstring_ncopy @ 0x1089d0c
// > ASN1_mbstring_ncopy @ 0x1089de8
// > ASN1_mbstring_ncopy @ 0x1089cb8
// > ASN1_mbstring_ncopy @ 0x1089cc0
//
// 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:14 +0000
//
__int64 __fastcall sub_1089570(unsigned __int64 a1, _BYTE **a2)
{
_BYTE *v2; // x2
char v3; // w3
unsigned __int64 v4; // x4
v2 = *a2;
v3 = a1;
v4 = a1 >> 8;
*v2 = v4;
v2[1] = v3;
*a2 += 2;
return 1;
}