//
// sub_100278940 from 0x100278940 to 0x100278988 (72 bytes)
//
// 90 xrefs:
// > EditorUI::findSnapObject @ 0x10001a3aa
// > sub_10006BEC0 @ 0x10006bf79
// > CCTextInputNode::ccTouchBegan @ 0x10006c3dc
// > CCTextInputNode::rightClick @ 0x10006cb7c
// > CCTextInputNode::scrollWheel @ 0x10006d196
// > CCTextInputMenu::ccTouchBegan @ 0x100078e26
// > sub_100078E50 @ 0x100078e73
// > CCTextInputMenu::rightClick @ 0x100078ec6
// > sub_100078EF0 @ 0x100078f13
// > LevelEditorLayer::typeExistsAtPosition @ 0x1000b0182
// > LevelEditorLayer::objectAtPosition @ 0x1000b0cd4
// > LevelEditorLayer::objectsAtPosition @ 0x1000b1464
// > LevelEditorLayer::addObjectsAtPosition @ 0x1000b1623
// > LevelEditorLayer::updateDebugDraw @ 0x1000d4c54
// > LevelEditorLayer::updateDebugDraw @ 0x1000d4c73
// > LevelEditorLayer::updateDebugDraw @ 0x1000d4e2b
// > LevelEditorLayer::updateDebugDraw @ 0x1000d4e43
// > LevelEditorLayer::updateDebugDraw @ 0x1000d4ef4
// > LevelEditorLayer::updateDebugDraw @ 0x1000d4f07
// > LevelEditorLayer::updateDebugDraw @ 0x1000d4f8e
// > GJBaseGameLayer::rectIntersectsCircle @ 0x1000ffea0
// > GJBaseGameLayer::objectIntersectsCircle @ 0x100100355
// > UIPOptionsLayer::ccTouchBegan @ 0x1002a5954
// > GJShopLayer::ccTouchBegan @ 0x100312a34
// > cocos2d::extension::CCControl::isTouchInside @ 0x10033dd76
// > cocos2d::extension::CCControlSlider::isTouchInside @ 0x100389caa
// > BoomScrollLayer::touchInsideClip @ 0x10038fb0e
// > sub_10038FB20 @ 0x10038fb75
// > BoomScrollLayer::ccTouchBegan @ 0x1003906b9
// > cocos2d::extension::CCScrollView::ccTouchBegan @ 0x1003e5db8
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0x1003e627e
// > cocos2d::extension::CCTableView::ccTouchEnded @ 0x10041a6ea
// > CCScrollLayerExt::ccTouchBegan @ 0x10041baa0
// > CCScrollLayerExt::touchInsideClip @ 0x10041c3b9
// > CreateParticlePopup::ccTouchBegan @ 0x10046b874
// > CreateParticlePopup::ccTouchMoved @ 0x10046b9b2
// > UILayer::processUINodeTouch @ 0x1004c555b
// > GJUINode::touchTest @ 0x1004c593e
// > GJTransformControl::ccTouchBegan @ 0x10064588a
// > GJTransformControl::ccTouchBegan @ 0x1006458c9
// > GJTransformControl::ccTouchBegan @ 0x100645908
// > GJTransformControl::ccTouchBegan @ 0x100645947
// > GJTransformControl::ccTouchBegan @ 0x100645986
// > GJTransformControl::ccTouchBegan @ 0x1006459c5
// > GJTransformControl::ccTouchBegan @ 0x100645a04
// > GJTransformControl::ccTouchBegan @ 0x100645a43
// > GJTransformControl::ccTouchBegan @ 0x100645a82
// > GJTransformControl::ccTouchBegan @ 0x100645ac1
// > GJTransformControl::ccTouchBegan @ 0x100645afc
// > GJTransformControl::ccTouchBegan @ 0x100645b37
// > CustomSFXRowMenu::ccTouchBegan @ 0x1006b5220
// > KeybindingsLayer::ccTouchBegan @ 0x1006e49b9
// > EditorUI::createRockEdges @ 0x1006f0d3f
// > EditorUI::createRockBases @ 0x1006f2350
// > EditorUI::createRockBases @ 0x1006f237e
// > EditorUI::createRockBases @ 0x1006f23af
// > EditorUI::createRockBases @ 0x1006f23d4
// > TableView::cellForTouch @ 0x1006fe995
// > ScrollingLayer::ccTouchBegan @ 0x1007ffb62
// > cocos2d::CCMenu::itemForTouch @ 0x100875561
// > cocos2d::CCMenu::itemForTouch @ 0x10087557b
// > sub_1008BBE50 @ 0x1008bbe93
// > sub_1008BBE50 @ 0x1008bbeaa
// > DeathMarkerLayer::init @ 0x1008bd5a5
// > DeathTrackerPopup::ccTouchBegan @ 0x1008d8319
// > DropdownListPopup::ccTouchBegan @ 0x1008db8be
// > DropdownListPopup::ccTouchBegan @ 0x1008db958
// > EditorSFXActionConfigLayer::ccTouchBegan @ 0x1008e09b9
// > EditorSoundConfigInfoLayer::ccTouchBegan @ 0x1008f77a5
// > EditorSoundsLayer::ccTouchBegan @ 0x1008fef39
// > EditorWindowPopup::getResizeCorner @ 0x100900a9b
// > EditorWindowPopup::getResizeCorner @ 0x100900af4
// > EditorWindowPopup::isInCloseButton @ 0x100900c37
// > sub_100900C50 @ 0x100900ccf
// > EditorWindowPopup::ccTouchBegan @ 0x100901122
// > EditorWindowPopup::beginTouch @ 0x1009012ff
// > EditorWindowPopup::beginTouch @ 0x100901414
// > EditorWindowPopup::beginTouch @ 0x10090155d
// > EmotePickerPopup::ccTouchBegan @ 0x1009039a3
// > sub_1009039D0 @ 0x100903a42
// > sub_10093A2D0 @ 0x10093a362
// > sub_10093A2D0 @ 0x10093a3c6
// > LevelBadgePopup::ccTouchBegan @ 0x10093c230
// > sub_10093C280 @ 0x10093c2b7
// > ThreadRequestPopup::ccTouchEnded @ 0x100955646
// > ScrollableContentLayer::handleTouchBegan @ 0x10096bf48
// > ScrollableContentLayer::touchInsideClip @ 0x10096ca25
// > sub_10096CA40 @ 0x10096cafc
// > ScrollableContentLayer::scrollWheel @ 0x10096cc10
// > TouchControlEditLayer::ccTouchBegan @ 0x10097b01c
//
// 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 12:27:40 +0000
//
bool __fastcall sub_100278940(float *a1, float *a2)
{
float v3; // xmm0_4
float v4; // xmm1_4
if ( *a2 < *a1 )
return 0;
if ( (float)(*a1 + a1[2]) < *a2 )
return 0;
v3 = a2[1];
v4 = a1[1];
return v3 >= v4 && (float)(v4 + a1[3]) >= v3;
}