//
// sub_1001DFD3C from 0x1001dfd3c to 0x1001dfdfc (192 bytes)
//
// 2 xrefs:
// > sub_1001F50BC @ 0x1001f539c
// > sub_10038C5E0 @ 0x10038c69c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:00:29 +0000
//
__int64 __usercall sub_1001DFD3C@(int a1@, char a2@, std::string *a3@)
{
_QWORD *v6; // x0
__int64 result; // x0
__int64 v8; // x20
unsigned int i; // w22
int v10; // w11
const std::string::value_type *v11; // x2
std::string::size_type v12; // x3
std::string *v13; // x0
v6 = sub_100009900(a3, "");
result = sub_1001DFCD0((__int64)v6, a1);
v8 = result;
if ( (a2 & 1) != 0 )
{
result = sub_1001DFCD0(result, *(_DWORD *)(result + 60));
v8 = result;
}
for ( i = 0; v8 && i <= 9; ++i )
{
std::string::insert(a3, 0, " \\ ");
v10 = *(char *)(v8 + 103);
if ( v10 >= 0 )
v11 = (const std::string::value_type *)(v8 + 80);
else
v11 = *(const std::string::value_type **)(v8 + 80);
if ( v10 >= 0 )
v12 = *(unsigned __int8 *)(v8 + 103);
else
v12 = *(_QWORD *)(v8 + 88);
v13 = std::string::insert(a3, 0, v11, v12);
result = sub_1001DFCD0((__int64)v13, *(_DWORD *)(v8 + 60));
v8 = result;
}
return result;
}