//
// TextAlertPopup::setAlertPosition from 0x4b104c to 0x4b1100 (180 bytes)
//
// 1 xrefs:
// > EditorUI::keyDown @ 0x3a765e
//
// 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 TextAlertPopup::setAlertPosition(TextAlertPopup *a1, cocos2d::CCPoint a2, cocos2d::CCPoint a3)
{
float y; // r6
float x; // r7
cocos2d::CCDirector *v6; // r0
float v7; // s13
float v8; // s15
cocos2d::CCSize v9; // [sp+4h] [bp-18h] BYREF
cocos2d::CCPoint v10; // [sp+Ch] [bp-10h] BYREF
y = a2.y;
x = a2.x;
if ( a1->m_label )
{
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v9, v6);
v7 = (float)(*(float *)LODWORD(x) * v9.width) + a1->m_width * 0.5 + *(float *)LODWORD(y);
v8 = (float)(*(float *)(LODWORD(x) + 4) * v9.height) + a1->m_height * 0.5 + *(float *)(LODWORD(y) + 4);
cocos2d::CCPoint::CCPoint(&v10, v7, v8);
a1->setPosition(a1, &v10);
}
}