//
// asn1_set_choice_selector from 0xd702f0 to 0xd70304 (20 bytes)
//
// 10 xrefs:
// > sub_D6B828 @ 0xd6be30
// > sub_D6B828 @ 0xd6c20c
// > sub_D6C730 @ 0xd6ca84
// > sub_D6C730 @ 0xd6cb44
// > ASN1_item_ex_d2i @ 0xd6d32c
// > ASN1_item_ex_d2i @ 0xd6d3ec
// > sub_D6F800 @ 0xd6fa50
// > ASN1_item_ex_new @ 0xd6fd48
// > ASN1_item_ex_new @ 0xd6fe80
// > ??> @ 0x46380
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall asn1_set_choice_selector(__int64 *a1, int a2, __int64 a3)
{
__int64 v3; // x3
__int64 v4; // x2
__int64 result; // x0
v3 = *a1;
v4 = *(_QWORD *)(a3 + 8);
result = *(unsigned int *)(*a1 + v4);
*(_DWORD *)(v3 + v4) = a2;
return result;
}