//
// sub_10021B1F0 from 0x10021b1f0 to 0x10021b300 (272 bytes)
//
// 20 xrefs:
// > SetupRotateCommandPopup::init @ 0x100001775
// > SetupShaderEffectPopup::init @ 0x1002b2e4f
// > SetupSongTriggerPopup::init @ 0x1002bfe98
// > SetupAdvFollowPopup::init @ 0x1002f00f5
// > sub_1002F5170 @ 0x1002f51f3
// > SetupTeleportPopup::init @ 0x1003454f6
// > SetupTransformPopup::init @ 0x100384ec0
// > sub_1003DDDD0 @ 0x1003dde63
// > sub_1004B59F0 @ 0x1004b6840
// > SetupAreaMoveTriggerPopup::init @ 0x1004cdcf1
// > SetupAreaTransformTriggerPopup::init @ 0x1004d0d60
// > sub_1004D1A60 @ 0x1004d1bc4
// > sub_1004D2720 @ 0x1004d2891
// > SetupAreaTintTriggerPopup::init @ 0x1004d3578
// > SetupAreaTriggerPopup::init @ 0x1004d4c27
// > SetupAreaAnimTriggerPopup::init @ 0x1004d57a3
// > SetupSequenceTriggerPopup::init @ 0x1004d9613
// > SetupItemEditTriggerPopup::init @ 0x1005aadfe
// > SetupItemCompareTriggerPopup::init @ 0x1005ad532
// > SetupOptionsTriggerPopup::init @ 0x1006ba60a
//
// 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:01 +0000
//
void __fastcall sub_10021B1F0(float *a1, __int64 a2)
{
__int64 v2; // rax
_BYTE v3[8]; // [rsp+0h] [rbp-50h] BYREF
_BYTE v4[8]; // [rsp+8h] [rbp-48h] BYREF
_BYTE v5[8]; // [rsp+10h] [rbp-40h] BYREF
_BYTE v6[8]; // [rsp+18h] [rbp-38h] BYREF
_BYTE v7[4]; // [rsp+20h] [rbp-30h] BYREF
float v8; // [rsp+24h] [rbp-2Ch]
float v9[10]; // [rsp+28h] [rbp-28h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1, a2);
cocos2d::CCDirector::getWinSize(v9, v2);
sub_100278250(
v7,
(float)((float)(v9[0] * 0.5) - (float)(a1[183] * 0.5)) + 20.0,
(float)((float)((float)(v9[1] * 0.5) - (float)(a1[184] * 0.5)) + 20.0) + a1[185]);
sub_100278250(v4, 90.0, 0.0);
sub_100278350(v3, v7, v4);
sub_1002782D0(v5, v7);
sub_100278250(v6, (float)((float)(0.5 * a1[183]) + (float)(v9[0] * 0.5)) + -72.0, v8);
SetupTriggerPopup::createMultiTriggerItems((__int64)a1, (__int64)v3, (__int64)v5, (__int64)v6);
}