//
// printTheArray from 0x9da3c4 to 0x9da500 (316 bytes)
//
// 2 xrefs:
// > generateAllBinaryStrings @ 0x9da5b4
// > ??> @ 0x449b8
//
// 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 __usercall printTheArray@(int *a1@, int a2@, __int64 a3@)
{
__int64 v5; // x19
__int64 v6; // x22
size_t v7; // x19
size_t v9; // [xsp+58h] [xbp+58h] BYREF
unsigned __int64 v10; // [xsp+60h] [xbp+60h]
char *v11; // [xsp+68h] [xbp+68h]
_BYTE v12[504]; // [xsp+70h] [xbp+70h] BYREF
v10 = 500;
v9 = 0;
v11 = v12;
if ( a2 <= 0 )
{
v7 = 0;
}
else
{
v5 = 0;
v6 = (unsigned int)(a2 - 1) + 1LL;
do
fmt::BasicWriter::FormatInt,char>>(&v9, a1[v5++]);
while ( v5 != v6 );
v7 = v9;
if ( v9 + 1 > v10 )
fmt::internal::Array::grow(&v9, v9 + 1);
}
v11[v7] = 0;
sub_D153B8(a3, v11);
if ( v11 != v12 && v11 )
operator delete[](v11);
return a3;
}