//
// asn1_set_choice_selector from 0x9def44 to 0x9def58 (20 bytes)
//
// 10 xrefs:
// > sub_9D9D48 @ 0x9da3dc
// > sub_9D9D48 @ 0x9da840
// > sub_9DAE6C @ 0x9db228
// > sub_9DAE6C @ 0x9db2f8
// > ASN1_item_ex_d2i @ 0x9dbc38
// > ASN1_item_ex_d2i @ 0x9dbd0c
// > sub_9DE2C0 @ 0x9de424
// > ASN1_item_ex_new @ 0x9de870
// > ASN1_item_ex_new @ 0x9de9f8
// > ??> @ 0x784ec
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:19 +0000
//
int __fastcall asn1_set_choice_selector(int *a1, int a2, int a3)
{
int v3; // r12
int v4; // r3
int result; // r0
v3 = *a1;
v4 = *(_DWORD *)(a3 + 4);
result = *(_DWORD *)(*a1 + v4);
*(_DWORD *)(v3 + v4) = a2;
return result;
}