// // TopArtistsLayer::setupPageInfo from 0x1404cb570 to 0x1404cb74e (478 bytes) // // 2 xrefs: // > @ 0x140621358 // > @ 0x1406dd3a0 // // 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 // // Hidden C++ exception states: #wind=2 void __fastcall TopArtistsLayer::setupPageInfo(__int64 a1, _QWORD *a2) { __int64 v2; // rbx size_t v4; // r8 cocos2d::CCArray *v5; // rsi void *v6; // rcx cocos2d::CCString *v7; // rax cocos2d::CCString *v8; // rax cocos2d::CCString *v9; // rax __int64 v10; // rdx __int64 v11; // rdx int v12; // edx int v13; // r8d int v14; // r9d cocos2d::CCString *v15; // rax const char *CString; // rax void *Block[2]; // [rsp+28h] [rbp-30h] BYREF __m128i si128; // [rsp+38h] [rbp-20h] v2 = (__int64)a2; if ( a2[3] > 0xFu ) a2 = (_QWORD *)*a2; *(_OWORD *)Block = 0; si128 = 0; v4 = -1; do ++v4; while ( *((_BYTE *)a2 + v4) ); sub_14003A930(Block, a2, v4); v5 = sub_14013D520((__int64 *)Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v6 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v6); } si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30); LOBYTE(Block[0]) = 0; if ( cocos2d::CCArray::count(v5) >= 3 ) { v7 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v5, 0); *(_DWORD *)(a1 + 64) = cocos2d::CCString::intValue(v7); v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v5, 1u); *(_DWORD *)(a1 + 68) = cocos2d::CCString::intValue(v8); v9 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v5, 2u); *(_DWORD *)(a1 + 72) = cocos2d::CCString::intValue(v9); if ( *(_DWORD *)(a1 + 68) ) LOBYTE(v10) = 1; else v10 = 0; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 40) + 320LL))(*(_QWORD *)(a1 + 40), v10); if ( *(_DWORD *)(a1 + 68) + *(_DWORD *)(a1 + 72) < *(_DWORD *)(a1 + 64) ) LOBYTE(v11) = 1; else v11 = 0; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 32) + 320LL))(*(_QWORD *)(a1 + 32), v11); v12 = *(_DWORD *)(a1 + 68); v13 = v12 + *(_DWORD *)(a1 + 72); v14 = *(_DWORD *)(a1 + 64); if ( v13 >= v14 ) v13 = *(_DWORD *)(a1 + 64); v15 = cocos2d::CCString::createWithFormat("%i to %i of %i", v12 + 1, v13, v14); CString = cocos2d::CCString::getCString(v15); (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 56) + 360LL))( *(_QWORD *)(a1 + 56) + 360LL, CString); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 56), 100.0, 0.5, 0.0); } sub_14003A830(v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source