//
// EditorUI::playerTouchBegan from 0x10004ed40 to 0x10004ee41 (257 bytes)
//
// 0 xrefs:
//
// 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
//
void __fastcall EditorUI::playerTouchBegan(EditorUI *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
GameManager *v3; // rax
bool v4; // al
char v5; // [rsp+0h] [rbp-40h] BYREF
float v6; // [rsp+8h] [rbp-38h] BYREF
float v7; // [rsp+10h] [rbp-30h] BYREF
float v8; // [rsp+18h] [rbp-28h]
float v9; // [rsp+1Ch] [rbp-24h]
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v6);
cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)&v7);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v5, (const cocos2d::CCPoint *)a1);
sub_10028CC90();
if ( !a1->m_editorLayer->m_gameState.m_isDualMode )
{
v9 = v7;
v8 = v6 * 0.5;
v3 = GameManager::sharedState();
if ( !GameManager::getGameVariable(v3, "0011") || v8 >= v9 )
goto LABEL_8;
LABEL_6:
if ( a1->m_playerTouchID2 != -1 )
return;
a1->m_playerTouchID2 = a2->m_nId;
v4 = 1;
goto LABEL_10;
}
if ( (float)(v6 * 0.5) < v7 )
goto LABEL_6;
LABEL_8:
if ( a1->m_playerTouchID1 != -1 )
return;
a1->m_playerTouchID1 = a2->m_nId;
v4 = 0;
LABEL_10:
GJBaseGameLayer::queueButton(a1->m_editorLayer, 1, 1, v4, a2->m_timestamp);
}