//
// sub_774910 from 0x774910 to 0x774934 (36 bytes)
//
// 54 xrefs:
// > CCTextInputNode::onTextFieldInsertText @ 0x2faee4
// > base64_decode @ 0x307594
// > base64_decode @ 0x307618
// > PlayLayer::processCreateObjectsFromSetup @ 0x31c5cc
// > PlayLayer::processCreateObjectsFromSetup @ 0x31c654
// > GameObject::loadGroupsFromString @ 0x35697c
// > GameObject::loadGroupsFromString @ 0x3569f8
// > LevelEditorLayer::createObjectsFromSetup @ 0x370f28
// > LevelEditorLayer::createObjectsFromSetup @ 0x370fba
// > LevelEditorLayer::createObjectsFromString @ 0x3711f0
// > LevelEditorLayer::createObjectsFromString @ 0x371274
// > GJBaseGameLayer::loadGroupParentsFromString @ 0x472fde
// > GJBaseGameLayer::loadGroupParentsFromString @ 0x473016
// > sub_5C0FE8 @ 0x5c1028
// > sub_5C0FE8 @ 0x5c1034
// > sub_5C0FE8 @ 0x5c1070
// > sub_5C0FE8 @ 0x5c107c
// > cocos2d::CCRectFromString @ 0x5c12ea
// > cocos2d::CCRectFromString @ 0x5c12f6
// > cocos2d::CCRectFromString @ 0x5c1308
// > cocos2d::CCRectFromString @ 0x5c1346
// > cocos2d::CCRectFromString @ 0x5c1354
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0x5cbc38
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0x5cbc44
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0x5cbc5a
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0x5cbc6a
// > cocos2d::CCBMFontConfiguration::parseInfoArguments @ 0x5cbce8
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x5cbd64
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x5cbd9a
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x5cbdd8
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x5cbe16
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbe98
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbeca
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbf0a
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbf4c
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbf8e
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbfd0
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cc012
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cc054
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0x5cc114
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0x5cc144
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0x5cc182
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc4e4
// > cocos2d::CCParticleSystem::initWithFile @ 0x5dce48
// > cocos2d::CCTextFieldTTF::insertText @ 0x5f2f62
// > DS_Dictionary::splitWithForm @ 0x5fe188
// > DS_Dictionary::splitWithForm @ 0x5fe194
// > DS_Dictionary::splitWithForm @ 0x5fe1c6
// > DS_Dictionary::splitWithForm @ 0x5fe1d2
// > DS_Dictionary::rectFromString @ 0x5fe558
// > DS_Dictionary::rectFromString @ 0x5fe564
// > DS_Dictionary::rectFromString @ 0x5fe57a
// > DS_Dictionary::rectFromString @ 0x5fe5b8
// > DS_Dictionary::rectFromString @ 0x5fe5c6
//
// 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
//
int __fastcall sub_774910(int *a1, int a2, unsigned int a3)
{
int v3; // r4
unsigned int v4; // r3
void *v6; // r0
v3 = *a1;
v4 = *(_DWORD *)(*a1 - 12);
if ( a3 < v4 && (v6 = memchr((const void *)(a3 + v3), a2, v4 - a3)) != nullptr )
return (int)v6 - v3;
else
return -1;
}