// // StartPosBrowser::updatePageLabel from 0x7d664c to 0x7d6794 (328 bytes) // // 2 xrefs: // > StartPosBrowser::setupList @ 0x7d6d0c // > @ 0xd3300 // // 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:54:21 +0000 // __int64 __fastcall StartPosBrowser::updatePageLabel(StartPosBrowser *this) { cocos2d::CCArray *v2; // x0 const char *v3; // x1 cocos2d::CCString *v4; // x0 const char *CString; // x24 size_t v6; // x0 size_t v7; // x20 unsigned __int64 v8; // x0 char *v9; // x3 char *v10; // x1 __int64 v12; // [xsp+40h] [xbp+40h] BYREF size_t v13; // [xsp+48h] [xbp+48h] void *v14; // [xsp+50h] [xbp+50h] v2 = *((cocos2d::CCArray **)this + 85); if ( v2 ) v3 = (const char *)((unsigned int)cocos2d::CCArray::count(v2) + 1); else v3 = (_BYTE *)(&dword_0 + 1); v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Total: %i", v3); v12 = 0; CString = (const char *)cocos2d::CCString::getCString(v4); v13 = 0; v14 = nullptr; v6 = strlen(CString); v7 = v6; if ( v6 > 0xFFFFFFFFFFFFFFEFLL ) sub_62C49C(); if ( v6 > 0x16 ) { v8 = (v6 + 16) & 0xFFFFFFFFFFFFFFF0LL; v12 = v8 | 1; v9 = (char *)operator new(v8); v14 = v9; v13 = v7; LABEL_6: v9 = (char *)memcpy(v9, CString, v7); goto LABEL_7; } LOBYTE(v12) = 2 * v6; v9 = (char *)&v12 + 1; if ( v6 ) goto LABEL_6; LABEL_7: v9[v7] = 0; v10 = (char *)&v12 + 1; if ( (v12 & 1) != 0 ) v10 = (char *)v14; (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 88) + 928LL))(*((_QWORD *)this + 88), v10); if ( (v12 & 1) != 0 ) operator delete(v14); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source