//
// sub_776EB0 from 0x776eb0 to 0x776eca (26 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall sub_776EB0(_DWORD *a1, unsigned int a2)
{
unsigned int v2; // r2
v2 = *(_DWORD *)(*a1 - 12);
if ( a2 >= v2 )
sub_7732C4("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)", a2, v2);
return *a1 + 4 * a2;
}