//
// TextAlertPopup::setAlertPosition from 0x10029c670 to 0x10029c741 (209 bytes)
//
// 3 xrefs:
// > UILayer::showTextAlert @ 0x1004c33d4
// > EditorUI::showTextAlert @ 0x10060dac5
// > EditorUI::toggleViewOption @ 0x10063eba7
//
// 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:53 +0000
//
void __fastcall TextAlertPopup::setAlertPosition(__int64 a1, float *a2, float *a3)
{
__int64 v4; // rax
float v5; // xmm0_4
float v6; // xmm1_4
float v7; // [rsp-30h] [rbp-30h] BYREF
float v8[10]; // [rsp-28h] [rbp-28h] BYREF
if ( *(_QWORD *)(a1 + 328) )
{
v4 = cocos2d::CCDirector::sharedDirector(a1, a2);
cocos2d::CCDirector::getWinSize(v8, v4);
v5 = *a3 + *(float *)(a1 + 316) * 0.5 + (float)(*a2 * v8[0]);
v6 = a3[1] + *(float *)(a1 + 320) * 0.5 + (float)(a2[1] * v8[1]);
sub_100278250(&v7, v5, v6);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 184LL))(a1, &v7);
}
}