// // GJBaseGameLayer::speedForShaderTarget from 0x10013c4f0 to 0x10013c67e (398 bytes) // // 2 xrefs: // > GJBaseGameLayer::updateShaderLayer @ 0x10013b66d // > GJBaseGameLayer::updateShaderLayer @ 0x10013b694 // // 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 __fastcall GJBaseGameLayer::speedForShaderTarget(GJBaseGameLayer *a1, int a2) { unsigned int v2; // edx unsigned int v3; // r15d __int64 v4; // r14 __int64 v5; // r15 GameObject *v6; // rdi const cocos2d::CCPoint *LastPosition; // rax cocos2d::CCDictionary *v8; // rdi __int64 v9; // rsi cocos2d::CCObject *v10; // rax GameObject *v11; // r15 const cocos2d::CCPoint *v12; // rax intptr_t v13; // r12 cocos2d::CCObject *v14; // r15 _BYTE v16[8]; // [rsp+0h] [rbp-30h] BYREF _BYTE v17[40]; // [rsp+8h] [rbp-28h] BYREF cocos2d::CCPoint result; // 0:xmm0_8.8 v3 = v2; v4 = *(_QWORD *)&a2; sub_10028CC30(a1); if ( v3 == -1 ) goto LABEL_5; if ( v3 == -2 ) { if ( *(_BYTE *)(*(_QWORD *)&a2 + 1010LL) ) { v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)&a2 + 3240LL) + 192LL))(*(_QWORD *)(*(_QWORD *)&a2 + 3240LL)); v6 = *(GameObject **)(*(_QWORD *)&a2 + 3240LL); LABEL_6: LastPosition = GameObject::getLastPosition(v6); sub_10028CD00(v17, v5, LastPosition); goto LABEL_18; } LABEL_5: v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)&a2 + 3232LL) + 192LL))(*(_QWORD *)(*(_QWORD *)&a2 + 3232LL)); v6 = *(GameObject **)(*(_QWORD *)&a2 + 3232LL); goto LABEL_6; } if ( (int)v3 <= 0 ) { sub_10028CD20(v17, *(_QWORD *)&a2 + 1148LL); } else { v8 = *(cocos2d::CCDictionary **)(*(_QWORD *)&a2 + 3656LL); v9 = v3; v10 = cocos2d::CCDictionary::objectForKey(v8, v3); if ( v10 ) goto LABEL_9; v13 = 9999; if ( v3 < 0x270F ) v13 = v3; if ( ((v14 = *(cocos2d::CCObject **)(*(_QWORD *)(v4 + 3584) + 8 * v13)) != nullptr || (v14 = (cocos2d::CCObject *)sub_10071F9E0(v8, v9), cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(v4 + 3560), v14, v13), (*(_QWORD *)(*(_QWORD *)(v4 + 3584) + 8 * v13) = v14) != 0)) && (unsigned int)sub_100720070(v14) == 1 && (v10 = (cocos2d::CCObject *)sub_1007200C0(v14, 0)) != nullptr ) { LABEL_9: v11 = (GameObject *)v10; ((void (__fastcall *)(_BYTE *, cocos2d::CCObject *))v10->__vftable[16].getTag)(v16, v10); v12 = GameObject::getLastPosition(v11); sub_10028CD00(v17, v16, v12); } else { sub_10028CC60(v17); } } LABEL_18: *(double *)&result = sub_10028CC90(); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source