// // ShaderLayer::prepareTargetContainer from 0xb2c65c to 0xb2c954 (760 bytes) // // 2 xrefs: // > ShaderLayer::visit @ 0xb2e3f8 // > @ 0x73930 // // 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 13:01:41 +0000 // cocos2d::CCPoint *__usercall ShaderLayer::prepareTargetContainer@( ShaderLayer *this@, cocos2d::CCPoint *a2@) { __int64 v4; // x0 const cocos2d::CCPoint *v5; // x0 __int64 v6; // x0 __int64 v7; // x20 long double v8; // q0 __int64 v9; // x0 __int64 v10; // x25 void (__fastcall *v11)(__int64, _QWORD *); // x26 float v12; // s5 float v13; // s2 float v14; // s1 float v15; // s4 float v16; // s0 void (__fastcall *v17)(__int64, _QWORD *); // x19 float v19; // s8 __int64 v20; // x0 float v21; // s0 float v22; // s1 float v23; // s2 float v24; // s0 long double v25; // q0 float v26[2]; // [xsp+60h] [xbp+60h] BYREF float v27; // [xsp+68h] [xbp+68h] BYREF float v28; // [xsp+6Ch] [xbp+6Ch] float v29; // [xsp+70h] [xbp+70h] BYREF float v30; // [xsp+74h] [xbp+74h] _QWORD v31[2]; // [xsp+78h] [xbp+78h] BYREF v4 = *((_QWORD *)this + 141); if ( !v4 ) { cocos2d::CCPoint::CCPoint(a2, (const cocos2d::CCPoint *)&unk_155E230); return a2; } v5 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 3920) + 192LL))(*(_QWORD *)(v4 + 3920)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, v5); v6 = *((_QWORD *)this + 141); if ( *((int *)this + 267) <= 1 ) v7 = *(_QWORD *)(v6 + 3896); else v7 = *(_QWORD *)(v6 + 3904); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, (const cocos2d::CCPoint *)&unk_155E230); if ( *((_BYTE *)this + 780) && *((_BYTE *)this + 781) ) { v19 = *((float *)this + 288); if ( *((_BYTE *)this + 782) && (v20 = *((_QWORD *)this + 141)) != 0 ) { (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v20 + 3920) + 168LL))(*(_QWORD *)(v20 + 3920)); if ( !*((_BYTE *)this + 781) ) { v22 = *((float *)this + 288); v23 = 1.0; LABEL_15: cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v29, (float)((float)(v23 * *((float *)this + 193)) / v22) * floorf(v26[0] / (float)((float)(v23 * *((float *)this + 193)) / v22)), (float)((float)(v23 * *((float *)this + 194)) / v22) * floorf(v26[1] / (float)((float)(v23 * *((float *)this + 194)) / v22))); cocos2d::CCPoint::operator-(v31, v26, &v29, v25); cocos2d::CCPoint::operator=(&v27, v31); goto LABEL_5; } v24 = fabsf(v21); v22 = *((float *)this + 288); } else { v22 = *((float *)this + 288); v24 = 1.0; } v23 = v24 * v19; goto LABEL_15; } LABEL_5: *(__n128 *)&v8 = cocos2d::CCPoint::operator=(&pixelOffset, &v27); v9 = (*(__int64 (__fastcall **)(__int64, long double))(*(_QWORD *)v7 + 192LL))(v7, v8); cocos2d::CCPoint::operator=((char *)this + 1136, v9); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 128LL))(v7, *((float *)this + 128)); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 144LL))(v7, *((float *)this + 129)); *((float *)this + 286) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v7 + 368LL))(v7); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v29, (ShaderLayer *)((char *)this + 1160)); v10 = *((_QWORD *)this + 138); v11 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v10 + 1136LL); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v31, -1.0, -1.0, v29 + 2.0, v30 + 2.0); v11(v10, v31); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v31, *((float *)this + 294) - v29, *((float *)this + 295) - v30); cocos2d::CCSize::operator=((char *)this + 1184, v31); v12 = *((float *)this + 128); v13 = v28 - (float)(*((float *)this + 297) * 0.5); v14 = *((float *)this + 285); v15 = *((float *)this + 129); v16 = *((float *)this + 284) - (float)(v27 - (float)(*((float *)this + 296) * 0.5)); v27 = v27 - (float)(*((float *)this + 296) * 0.5); v28 = v13; v17 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v7 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v16 * v12, (float)(v14 - v13) * v15); v17(v7, v31); cocos2d::CCPoint::CCPoint(a2, (const cocos2d::CCPoint *)&v27); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source