// // GJBaseGameLayer::speedForShaderTarget from 0x591de0 to 0x591eb8 (216 bytes) // // 2 xrefs: // > GJBaseGameLayer::updateShaderLayer @ 0x59209e // > GJBaseGameLayer::updateShaderLayer @ 0x5920b8 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:53:06 +0000 // GJBaseGameLayer *__fastcall GJBaseGameLayer::speedForShaderTarget(GJBaseGameLayer *this, int a2, int a3) { int v6; // r6 GameObject *v7; // r0 char *LastPosition; // r0 int MainObject; // r0 GameObject *v10; // r5 char *v11; // r0 _BYTE v13[8]; // [sp+4h] [bp-14h] BYREF _BYTE v14[8]; // [sp+Ch] [bp-Ch] BYREF cocos2d::CCPoint::CCPoint(this); if ( a3 == -1 ) goto LABEL_4; if ( a3 == -2 ) { if ( *(_BYTE *)(a2 + 866) ) { v6 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a2 + 2080) + 96))(*(_DWORD *)(a2 + 2080)); v7 = *(GameObject **)(a2 + 2080); goto LABEL_6; } LABEL_4: v6 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a2 + 2076) + 96))(*(_DWORD *)(a2 + 2076)); v7 = *(GameObject **)(a2 + 2076); LABEL_6: LastPosition = GameObject::getLastPosition(v7); cocos2d::CCPoint::operator-(v14, v6, LastPosition); LABEL_9: cocos2d::CCPoint::operator=(this, v14); return this; } if ( a3 <= 0 ) { cocos2d::CCPoint::operator-(v14, a2 + 952); goto LABEL_9; } MainObject = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)a2, a3); v10 = (GameObject *)MainObject; if ( MainObject ) { (*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)MainObject + 680))(v13, MainObject); v11 = GameObject::getLastPosition(v10); cocos2d::CCPoint::operator-(v14, v13, v11); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (const cocos2d::CCPoint *)&unk_D2C400); } cocos2d::CCPoint::operator=(this, v14); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source