//
// sub_786D34 from 0x786d34 to 0x786df8 (196 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::rebuildDeathOverlay @ 0x797d54
// > LevelEditorLayer::postUpdate @ 0x79b018
// > LevelEditorLayer::updateEditor @ 0x7a8f3c
//
// This function is hookable on this platform (idp: arm, 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:53:25 +0000
//
cocos2d::CCRect *__usercall sub_786D34@(__int64 a1@, cocos2d::CCRect *a2@)
{
cocos2d::CCDirector *v4; // x0
float v5; // s8
const cocos2d::CCPoint *v6; // x0
__int64 v8; // [xsp+38h] [xbp+38h] BYREF
float v9[2]; // [xsp+40h] [xbp+40h] BYREF
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v8, v4);
v5 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 168LL))(a1);
v6 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v6);
cocos2d::CCRect::CCRect(a2, (float)-v9[0] / v5, (float)-v9[1] / v5, *(float *)&v8 / v5, *((float *)&v8 + 1) / v5);
return a2;
}