// // SFXSearchResult::getSelectedPage from 0x14049b930 to 0x14049ba03 (211 bytes) // // 5 xrefs: // > SFXBrowser::setupSFXBrowser @ 0x140619660 // > SFXBrowser::onExitFolder @ 0x1406207ce // > @ 0x1408d226c // > @ 0x1408d227c // > @ 0x14092912c // // This function is hookable on this platform (idp: pc, 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:32:54 +0000 // __int64 __fastcall SFXSearchResult::getSelectedPage(__int64 a1, int a2, int a3) { cocos2d::CCArray *v3; // rdi signed int v7; // r14d unsigned int v8; // ebx struct cocos2d::CCObject *v9; // rcx int v10; // eax int v11; // eax v3 = *(cocos2d::CCArray **)(a1 + 64); if ( !v3 || a3 <= 0 ) return 0; v7 = 0; v8 = 0; if ( cocos2d::CCArray::count(v3) ) { while ( 1 ) { v9 = cocos2d::CCArray::objectAtIndex(v3, v8); v10 = *(_DWORD *)(a1 + 148); if ( v10 == 4 ) { v11 = *((_DWORD *)v9 + 19); } else if ( !v10 || (v11 = *((_DWORD *)v9 + 19), v11 <= 0) ) { v11 = *((_DWORD *)v9 + 14); } if ( v11 == a2 ) break; if ( ++v8 >= cocos2d::CCArray::count(v3) ) return (unsigned int)(int)floorf((float)(v7 / a3)); } v7 = v8; } return (unsigned int)(int)floorf((float)(v7 / a3)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source