//
// cocos2d::CCDirector::setViewport from 0xd48f24 to 0xd48fa0 (124 bytes)
//
// 4 xrefs:
// > cocos2d::CCDirector::setProjection @ 0xd49008
// > cocos2d::CCRenderTexture::end @ 0xd6a74c
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnSurfaceChanged @ 0xd80684
// > ??> @ 0xad200
//
// 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 13:07:36 +0000
//
__int64 __fastcall cocos2d::CCDirector::setViewport(cocos2d::CCDirector *this)
{
float v3[2]; // [xsp+20h] [xbp+20h] BYREF
if ( *((_QWORD *)this + 24) )
{
cocos2d::CCSize::CCSize(v3, (cocos2d::CCDirector *)((char *)this + 320));
(*(void (__fastcall **)(_QWORD, float, float, float, float))(**((_QWORD **)this + 24) + 104LL))(
*((_QWORD *)this + 24),
0.0,
0.0,
v3[0],
v3[1]);
}
return _stack_chk_guard;
}