//
// sub_45E7D8 from 0x45e7d8 to 0x45e86a (146 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::rebuildDeathOverlay @ 0x46a318
// > LevelEditorLayer::postUpdate @ 0x46ad60
// > LevelEditorLayer::updateEditor @ 0x4732fe
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:51 +0000
//
cocos2d::CCDirector *__fastcall sub_45E7D8(cocos2d::CCDirector *a1, int a2)
{
float v4; // s16
const cocos2d::CCPoint *v5; // r0
float v7[2]; // [sp+Ch] [bp-14h] BYREF
float v8[2]; // [sp+14h] [bp-Ch] BYREF
cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7);
v4 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)a2 + 84))(a2));
v5 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)a2 + 96))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v5);
cocos2d::CCRect::CCRect(a1, (float)-v8[0] / v4, (float)-v8[1] / v4, v7[0] / v4, v7[1] / v4);
return a1;
}