// // GJBaseGameLayer::positionForShaderTarget from 0x10013c3d0 to 0x10013c4e9 (281 bytes) // // 7 xrefs: // > GJBaseGameLayer::updateShaderLayer @ 0x10013b4a5 // > GJBaseGameLayer::updateShaderLayer @ 0x10013b4e1 // > GJBaseGameLayer::updateShaderLayer @ 0x10013b517 // > GJBaseGameLayer::updateShaderLayer @ 0x10013b546 // > GJBaseGameLayer::updateShaderLayer @ 0x10013b572 // > GJBaseGameLayer::updateShaderLayer @ 0x10013b59e // > GJBaseGameLayer::updateShaderLayer @ 0x10013b5d3 // // 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::positionForShaderTarget(GJBaseGameLayer *a1, int a2) { unsigned int v2; // edx unsigned int v3; // r15d __int64 v4; // r14 __int64 v5; // rdi cocos2d::CCDictionary *v6; // rdi __int64 v7; // rsi cocos2d::CCObject *v8; // rax intptr_t v9; // r12 cocos2d::CCObject *v10; // r15 _BYTE v12[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 = *(_QWORD *)(*(_QWORD *)&a2 + 3240LL); LABEL_6: (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5); goto LABEL_17; } LABEL_5: v5 = *(_QWORD *)(*(_QWORD *)&a2 + 3232LL); goto LABEL_6; } if ( (int)v3 <= 0 ) goto LABEL_16; v6 = *(cocos2d::CCDictionary **)(*(_QWORD *)&a2 + 3656LL); v7 = v3; v8 = cocos2d::CCDictionary::objectForKey(v6, v3); if ( v8 ) goto LABEL_9; v9 = 9999; if ( v3 < 0x270F ) v9 = v3; if ( ((v10 = *(cocos2d::CCObject **)(*(_QWORD *)(v4 + 3584) + 8 * v9)) != nullptr || (v10 = (cocos2d::CCObject *)sub_10071F9E0(v6, v7), cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(v4 + 3560), v10, v9), (*(_QWORD *)(*(_QWORD *)(v4 + 3584) + 8 * v9) = v10) != 0)) && (unsigned int)sub_100720070(v10) == 1 && (v8 = (cocos2d::CCObject *)sub_1007200C0(v10, 0)) != nullptr ) { LABEL_9: ((void (__fastcall *)(_BYTE *, cocos2d::CCObject *))v8->__vftable[16].getTag)(v12, v8); } else { LABEL_16: sub_10028CC60(v12); } LABEL_17: *(double *)&result = sub_10028CC90(); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source