// // GameToolbox::timestampToDayString from 0x69edac to 0x69eed8 (300 bytes) // // 2 xrefs: // > GJCompactUserCell::buildUserRow @ 0x744b88 // > @ 0x102910 // // 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 12:50:41 +0000 // __int64 *__usercall GameToolbox::timestampToDayString@(GameToolbox *this@, __int64 *a2@) { struct tm *v3; // x0 size_t v4; // x0 size_t v5; // x21 unsigned __int64 v6; // x0 __int64 v7; // x22 __int64 v8; // x0 void *v9; // x3 time_t timer; // [xsp+48h] [xbp+48h] BYREF char s[32]; // [xsp+58h] [xbp+58h] BYREF timer = (time_t)this; if ( (__int64)this <= 0 || (v3 = localtime(&timer)) == nullptr ) { *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "NA", 2u); return a2; } strftime(s, 0x20u, "%b %d, %Y", v3); *a2 = 0; a2[1] = 0; a2[2] = 0; v4 = strlen(s); v5 = v4; if ( v4 > 0xFFFFFFFFFFFFFFEFLL ) sub_62B4D4(); if ( v4 <= 0x16 ) { *(_BYTE *)a2 = 2 * v4; v9 = (char *)a2 + 1; if ( !v4 ) goto LABEL_7; } else { v6 = (v4 + 16) & 0xFFFFFFFFFFFFFFF0LL; v7 = v6 | 1; v8 = operator new(v6); *a2 = v7; v9 = (void *)v8; a2[2] = v8; a2[1] = v5; } v9 = memcpy(v9, s, v5); LABEL_7: *((_BYTE *)v9 + v5) = 0; return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source