//
// GJBaseGameLayer::positionForShaderTarget from 0x9a230c to 0x9a23fc (240 bytes)
//
// 8 xrefs:
// > GJBaseGameLayer::updateShaderLayer @ 0x9a2668
// > GJBaseGameLayer::updateShaderLayer @ 0x9a2698
// > GJBaseGameLayer::updateShaderLayer @ 0x9a26c4
// > GJBaseGameLayer::updateShaderLayer @ 0x9a2db4
// > GJBaseGameLayer::updateShaderLayer @ 0x9a2ddc
// > GJBaseGameLayer::updateShaderLayer @ 0x9a2e04
// > GJBaseGameLayer::updateShaderLayer @ 0x9a2e2c
// > ??> @ 0x9b338
//
// 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:58:08 +0000
//
cocos2d::CCPoint *__usercall GJBaseGameLayer::positionForShaderTarget@(
GJBaseGameLayer *this@,
int a2@,
cocos2d::CCPoint *a3@)
{
__int64 MainObject; // x0
__int64 v7; // x1
__int64 v8; // x0
__int64 v10; // [xsp+40h] [xbp+40h] BYREF
cocos2d::CCPoint::CCPoint(a3);
if ( a2 == -1 )
goto LABEL_10;
if ( a2 == -2 )
{
if ( *((_BYTE *)this + 1010) )
{
v7 = *((_QWORD *)this + 408);
LABEL_9:
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);
cocos2d::CCPoint::operator=(a3, v8);
return a3;
}
LABEL_10:
v7 = *((_QWORD *)this + 407);
goto LABEL_9;
}
MainObject = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)this, a2);
if ( MainObject )
(*(void (__fastcall **)(__int64 *__return_ptr))(*(_QWORD *)MainObject + 1360LL))(&v10);
else
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (const cocos2d::CCPoint *)&unk_155D2C8);
cocos2d::CCPoint::operator=(a3, &v10);
return a3;
}