//
// sub_14003A760 from 0x14003a760 to 0x14003a7cd (109 bytes)
//
// 52 xrefs:
// > GameCell::loadFromString @ 0x14003c8ab
// > GameCell::loadFromString @ 0x14003c976
// > GameCell::loadFromString @ 0x14003ca34
// > CCAnimatedSprite::tweenToAnimation @ 0x140040de6
// > CCPartAnimSprite::initWithAnimDesc @ 0x140045cb0
// > CCSpritePart::frameChanged @ 0x140046a28
// > CCTextInputNode::updateBlinkLabelToChar @ 0x140050116
// > FMODAudioEngine::isMusicPlaying @ 0x140059fb3
// > FMODAudioEngine::isPersistentMatchPlaying @ 0x14005ae3f
// > FMODAudioEngine::queuedEffectFinishedLoading @ 0x14005b194
// > FMODAudioEngine::preloadMusic @ 0x14005c867
// > SpriteAnimationManager::runAnimation @ 0x140073e34
// > SpriteAnimationManager::executeAnimation @ 0x140073fab
// > AchievementBar::init @ 0x140080d2d
// > AchievementBar::init @ 0x14008151d
// > AchievementCell::loadFromDict @ 0x1400ad29d
// > LevelCell::loadCustomLevelCell @ 0x1400ae5db
// > EditLevelLayer::verifyLevelName @ 0x1400d993c
// > EditLevelLayer::verifyLevelName @ 0x1400d99da
// > EditorPauseLayer::saveLevel @ 0x1400dd8bd
// > _Current_set @ 0x1400de904
// > EditorUI::addObjectsToSmartTemplate @ 0x140116c73
// > GameLevelManager::createNewLevelList @ 0x1401454cb
// > GameLevelManager::createNewLevelList @ 0x140145501
// > GameLevelManager::onGetMapPacksCompleted @ 0x14014fb91
// > GameLevelManager::uploadLevelList @ 0x14014fe5b
// > GameLevelManager::uploadLevelList @ 0x14014fe8a
// > GameLevelManager::deleteServerLevelList @ 0x140150478
// > GameLevelManager::deleteServerLevelList @ 0x1401504a4
// > GameLevelManager::onGetGJChallengesCompleted @ 0x1401681eb
// > GJUserScore::isCurrentUser @ 0x140172c3a
// > sub_140178320 @ 0x140178367
// > sub_140178320 @ 0x140178383
// > sub_140178320 @ 0x1401783b7
// > sub_140178E90 @ 0x140178ee0
// > sub_140178E90 @ 0x140178f18
// > sub_1402659E0 @ 0x140265a2c
// > sub_1402659E0 @ 0x140265a64
// > GJSmartTemplate::saveRemap @ 0x1402b0c4a
// > GJSmartTemplate::saveRemap @ 0x1402b0e0d
// > sub_1402B6AE0 @ 0x1402b6b2c
// > sub_1402B6AE0 @ 0x1402b6b64
// > InfoLayer::init @ 0x1402bb587
// > LeaderboardsLayer::isCorrect @ 0x1402c3b1f
// > LocalLevelManager::dataLoaded @ 0x140330cd7
// > PlayerObject::updateMove @ 0x14038a6ff
// > PlayerObject::updateRobotAnimationSpeed @ 0x1403a1472
// > SecretLayer::onSubmit @ 0x1403de37f
// > SecretLayer::onSubmit @ 0x1403de6a8
// > ParticleGameObject::setParticleString @ 0x1404a07c3
// > AnimatedGameObject::animationFinished @ 0x1404a42f9
// > ??> @ 0x1406c3ca8
//
// 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_14003A760(_QWORD *Buf1, _QWORD *Buf2)
{
_QWORD *v2; // r9
_QWORD *v3; // rax
size_t v4; // rdi
size_t v5; // rbx
size_t v6; // r8
int result; // eax
v2 = Buf2;
if ( Buf2[3] > 0xFu )
v2 = (_QWORD *)*Buf2;
v3 = Buf1;
if ( Buf1[3] > 0xFu )
v3 = (_QWORD *)*Buf1;
v4 = Buf2[2];
v5 = Buf1[2];
v6 = v5;
if ( v4 < v5 )
v6 = Buf2[2];
result = memcmp(v3, v2, v6);
if ( !result )
{
if ( v5 >= v4 )
return v5 > v4;
else
return -1;
}
return result;
}