//
// cocos2d::CCDirector::setViewport from 0x1002072a8 to 0x1002072fc (84 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::setProjection @ 0x100206a2c
// > cocos2d::CCRenderTexture::end @ 0x1004677cc
//
// 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 11:00:57 +0000
//
__int64 __fastcall cocos2d::CCDirector::setViewport(__int64 result)
{
__int64 v1; // x19
__int64 v2; // [xsp+8h] [xbp-18h] BYREF
if ( *(_QWORD *)(result + 192) )
{
v1 = result;
sub_100026438(&v2, (double *)(result + 320));
return (*(__int64 (__fastcall **)(_QWORD, float, float, float, float))(**(_QWORD **)(v1 + 192) + 104LL))(
*(_QWORD *)(v1 + 192),
0.0,
0.0,
*(float *)&v2,
*((float *)&v2 + 1));
}
return result;
}