//
// std::__ndk1::__search GameToolbox::pathSegmentCount @ 0x6a3298
// > GameToolbox::pathSegmentCount @ 0x6a32d0
// > GameToolbox::extractServerPopup @ 0x6a341c
// > GameToolbox::keepLastPathSegments @ 0x6a465c
// > GameToolbox::keepLastPathSegments @ 0x6a479c
// > MultilineBitmapFont::readColorInfo @ 0x6aaf10
// > MultilineBitmapFont::readColorInfo @ 0x6ab2b0
// > MultilineBitmapFont::readColorInfo @ 0x6ab3a0
// > MultilineBitmapFont::readColorInfo @ 0x6ab48c
// > MultilineBitmapFont::readColorInfo @ 0x6ab588
// > MultilineBitmapFont::readColorInfo @ 0x6ab6d8
// > MultilineBitmapFont::readColorInfo @ 0x6ab8dc
// > ObjectManager::setup @ 0x6ad9ec
// > sub_6ADB44 @ 0x6adc58
// > sub_6C5658 @ 0x6c5820
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x6c5c5c
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x6c5d78
// > FMODAudioEngine::createStream @ 0x6cdabc
// > FMODAudioEngine::preloadMusic @ 0x6d822c
// > GameLevelManager::onUploadCommentCompleted @ 0x832ff4
// > GameLevelManager::onGetLevelControlsCompleted @ 0x833f44
// > GameLevelManager::applyLevelControlsSection @ 0x83683c
// > GameLevelManager::applyDeathBlob @ 0x858498
// > GameLevelManager::applyDeathBlob @ 0x858548
// > sub_966E30 @ 0x967078
// > sub_966E30 @ 0x9670ac
// > MusicSearchResult::getFilesMatchingSearch @ 0x9675c8
// > MusicSearchResult::getFilesMatchingSearch @ 0x96768c
// > MusicSearchResult::getFilesMatchingSearch @ 0x9676f8
// > MusicSearchResult::getFilesMatchingSearch @ 0x9677fc
// > sub_967854 @ 0x967968
// > MusicDownloadManager::linkTypeForURL @ 0x969eb0
// > SFXSearchResult::updateObjects @ 0x96aec8
// > MusicDownloadManager::parseNewsFeed @ 0x97ba48
// > sub_992870 @ 0x9936e4
// > sub_992870 @ 0x99374c
// > sub_9B9714 @ 0x9b98dc
// > GJBaseGameLayer::updateLayerCapacity @ 0x9ba224
// > CustomSFXWidget::onShowInfo @ 0xb60ae4
// > CustomSFXWidget::onShowInfo @ 0xb60b68
// > FriendPickerPopup::buildRows @ 0xc8122c
// > InvitesPopup::buildRows @ 0xc8272c
// > InvitesPopup::buildRows @ 0xc829d4
// > LevelPickerPopup::updateMatches @ 0xc84114
// > LevelPickerPopup::updateMatches @ 0xc842f0
// > LevelPickerPopup::updateMatches @ 0xc84330
// > LevelPickerPopup::updateMatches @ 0xc84470
// > cocos2d::extension::WebSocket::init @ 0xd202bc
// > cocos2d::extension::WebSocket::init @ 0xd20328
// > cocos2d::extension::WebSocket::init @ 0xd20394
// > cocos2d::extension::WebSocket::init @ 0xd20440
// > cocos2d::extension::WebSocket::init @ 0xd20548
// > cocos2d::CCBMFontConfiguration::parseInfoArguments @ 0xd57c08
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0xd57e2c
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0xd57ee4
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0xd57fb4
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0xd58080
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xd58204
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xd582bc
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xd583a8
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xd58490
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xd58578
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xd58660
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xd58748
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xd58830
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0xd58a3c
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0xd58af4
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0xd58be0
// > cocos2d::CCFileUtilsAndroid::isAbsolutePath @ 0xd7c51c
// > cocos2d::CCFileUtilsAndroid::isFileExist @ 0xd7c710
// > cocos2d::CCImage::saveToFile @ 0xd7e3c4
// > cocos2d::CCImage::saveToFile @ 0xd7e46c
// > cocos2d::CCImage::initWithStringShadowStroke @ 0xd7e660
// > cocos2d::CCImage::initWithString @ 0xd7ea64
// > cocos2d::VolatileTexture::reloadAllTextures @ 0xda6c08
// > sub_DA76B4 @ 0xda7808
// > sub_DA76B4 @ 0xda78b0
// > sub_DA76B4 @ 0xda7910
// > sub_DA76B4 @ 0xda7a0c
// > sub_DA76B4 @ 0xda7a6c
// > sub_DA76B4 @ 0xda7b8c
// > sub_DA76B4 @ 0xda7bec
// > sub_DA76B4 @ 0xda7c54
// > cocos2d::CCTextureCache::addImage @ 0xda7f6c
// > cocos2d::CCTextureCache::addImage @ 0xda801c
// > cocos2d::CCTextureCache::addImage @ 0xda8100
// > cocos2d::CCTextureCache::addImage @ 0xda8248
// > cocos2d::CCTextureCache::addImage @ 0xda82cc
// > cocos2d::CCTextureCache::addImage @ 0xda832c
// > cocos2d::CCTextureCache::addImage @ 0xda83a4
// > cocos2d::CCTextureCache::addImage @ 0xda8400
// > cocos2d::CCTexturePVR::initWithContentsOfFile @ 0xdaa3d0
// > cocos2d::CCTexturePVR::initWithContentsOfFile @ 0xdaa4fc
// > DS_Dictionary::split @ 0xdb892c
// > sub_DB96D8 @ 0xdb9898
// > DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0xdbc7e0
// > DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0xdbc858
// > DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0xdbc8b4
// > ??> @ 0x83ed8
//
// 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:43 +0000
//
__int64 __fastcall std::__search(
__int64 result,
__int64 a2,
unsigned __int8 *a3,
unsigned __int8 *a4,
unsigned __int8 (__fastcall *a5)(__int64, _QWORD))
{
signed __int64 v5; // x25
__int64 v9; // x24
unsigned __int8 *v10; // x20
__int64 v11; // x28
unsigned __int8 *v12; // x19
__int64 v13; // x27
__int64 v14; // x0
unsigned int v15; // t1
unsigned int v16; // t1
__int64 v17; // [xsp+68h] [xbp+68h]
v5 = a4 - a3;
if ( a4 != a3 )
{
if ( v5 > a2 - result )
return a2;
v9 = result + 1;
v17 = a2 - v5 + 1;
v10 = a4 - 1;
if ( v17 == result )
{
return a2;
}
else
{
while ( 1 )
{
v11 = v9;
if ( a5(*(unsigned __int8 *)(v9 - 1), *a3) )
break;
LABEL_9:
++v9;
if ( v17 == v11 )
return a2;
}
v12 = a3;
v13 = v9 - 1;
while ( v12 != v10 )
{
v15 = *(unsigned __int8 *)++v13;
v14 = v15;
v16 = *++v12;
if ( !a5(v14, v16) )
goto LABEL_9;
}
return v9 - 1;
}
}
return result;
}