//
// HardStreak::ensureQuadCapacity from 0x569e24 to 0x569e54 (48 bytes)
//
// 1 xrefs:
// > HardStreak::appendQuad @ 0x569e60
//
// 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 11:52:30 +0000
//
void *__fastcall HardStreak::ensureQuadCapacity(void *this, unsigned int a2)
{
_DWORD *v2; // r4
unsigned int v3; // r3
int v4; // r3
v2 = this;
v3 = *((_DWORD *)this + 72);
if ( *((_DWORD *)this + 73) + a2 > v3 )
{
if ( a2 < v3 )
v4 = 2 * v3;
else
v4 = v3 + a2;
*((_DWORD *)this + 72) = v4;
this = realloc(*((void **)this + 74), 20 * v4);
v2[74] = this;
}
return this;
}