// // SFXBrowser::updatePageLabel from 0x140480970 to 0x140480b38 (456 bytes) // // 2 xrefs: // > SFXBrowser::setupList @ 0x14048018f // > @ 0x1406dba80 // // 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=1 void SFXBrowser::updatePageLabel(SFXBrowser *a1) { int v2; // eax int v3; // ebx int v4; // ebp unsigned __int64 v5; // rcx int v6; // edx int v7; // r8d cocos2d::CCString *v8; // rax char *CString; // rax size_t v10; // r8 void **v11; // rdx _BOOL8 v12; // rdx _BOOL8 v13; // rdx void *v14; // rcx void *Block[2]; // [rsp+20h] [rbp-38h] BYREF __int64 v16; // [rsp+30h] [rbp-28h] unsigned __int64 v17; // [rsp+38h] [rbp-20h] v2 = cocos2d::CCArray::count(a1->m_searchResult->m_filterObjects); v3 = v2; v4 = 0; if ( v2 > 0 ) v4 = (int)ceilf((float)((v2 - 1) / a1->m_cellAmount)); *(_OWORD *)Block = 0; v16 = 0; v5 = 15; v17 = 15; LOBYTE(Block[0]) = 0; if ( v3 <= 0 ) { v16 = 10; strcpy((char *)Block, "No matches"); } else { v6 = a1->m_searchResult->m_startIndex * a1->m_cellAmount; v7 = v3; if ( a1->m_cellAmount + v6 < v3 ) v7 = a1->m_cellAmount + v6; v8 = cocos2d::CCString::createWithFormat("%i to %i of %i", v6 + 1, v7, v3); CString = (char *)cocos2d::CCString::getCString(v8); v10 = -1; do ++v10; while ( CString[v10] ); sub_14003CCE0(Block, CString, v10); v5 = v17; } v11 = Block; if ( v5 > 0xF ) v11 = (void **)Block[0]; a1->m_pageLabel->setString(&a1->m_pageLabel->cocos2d::CCLabelProtocol, (const char *)v11); LOBYTE(v12) = a1->m_searchResult->m_startIndex > 0; a1->m_prevButton->setVisible(a1->m_prevButton, v12); LOBYTE(v13) = a1->m_searchResult->m_startIndex < v4; a1->m_nextButton->setVisible(a1->m_nextButton, v13); if ( v17 > 0xF ) { v14 = Block[0]; if ( v17 + 1 >= 0x1000 ) { v14 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v14 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v14); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source