// // GJBaseGameLayer::positionForShaderTarget from 0x140223550 to 0x1402235f3 (163 bytes) // // 8 xrefs: // > GJBaseGameLayer::updateShaderLayer @ 0x140222431 // > GJBaseGameLayer::updateShaderLayer @ 0x14022246d // > GJBaseGameLayer::updateShaderLayer @ 0x1402224a1 // > GJBaseGameLayer::updateShaderLayer @ 0x1402224cd // > GJBaseGameLayer::updateShaderLayer @ 0x140222520 // > GJBaseGameLayer::updateShaderLayer @ 0x140222573 // > GJBaseGameLayer::updateShaderLayer @ 0x1402225a6 // > @ 0x1406cd59c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! cocos2d::CCPoint GJBaseGameLayer::positionForShaderTarget(GJBaseGameLayer *a1, int a2) { int v2; // r8d int v4; // esi cocos2d::CCPoint v5; // rbx PlayerObject *m_player2; // rcx GameObject *MainObject; // rax __int64 v8; // rax char v10; // [rsp+38h] [rbp+10h] BYREF cocos2d::CCPoint v11; // [rsp+48h] [rbp+20h] BYREF v4 = v2; v5 = *(cocos2d::CCPoint *)&a2; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)a2); if ( v4 == -1 ) goto LABEL_8; if ( v4 == -2 ) { if ( a1->m_gameState.m_isDualMode ) { m_player2 = a1->m_player2; LABEL_9: v8 = (__int64)m_player2->getPosition_0(m_player2); goto LABEL_10; } LABEL_8: m_player2 = a1->m_player1; goto LABEL_9; } MainObject = GJBaseGameLayer::tryGetMainObject(a1, v4); if ( MainObject ) v8 = ((__int64 (__fastcall *)(GameObject *, char *))MainObject->getRealPosition)(MainObject, &v10); else cocos2d::CCPoint::CCPoint(&v11); LABEL_10: ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(v5, v8); return v5; }