// // ShaderLayer::create from 0x9f7e70 to 0x9f8280 (1040 bytes) // // 2 xrefs: // > GJBaseGameLayer::setupLayers @ 0x8a0b30 // > @ 0x4c2f0 // // 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 // ShaderLayer *ShaderLayer::create() { __int64 v0; // x20 unsigned __int64 v1; // x0 double v2; // d0 size_t v3; // x21 void *v4; // x23 unsigned __int64 v5; // x0 double v6; // d0 size_t v7; // x21 void *v8; // x23 v0 = operator new(0x658u); cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v0); *(_QWORD *)(v0 + 424) = 0; *(_QWORD *)v0 = &off_11CF080; *(_QWORD *)(v0 + 320) = off_11CF500; *(_QWORD *)(v0 + 328) = &off_11CF570; *(_QWORD *)(v0 + 336) = off_11CF588; *(_QWORD *)(v0 + 344) = &off_11CF5A8; *(_QWORD *)(v0 + 352) = off_11CF5C8; *(_QWORD *)(v0 + 432) = 0; *(_QWORD *)(v0 + 448) = 0; *(float *)(v0 + 440) = 1.0; v1 = sub_D146DC(v0 + 440, 10); *(_QWORD *)(v0 + 416) = v1; if ( v1 == 1 ) { *(_QWORD *)(v0 + 456) = 0; v4 = (void *)(v0 + 456); } else { if ( v1 > 0x1FFFFFFFFFFFFFFFLL ) sub_D1383C(v2); v3 = 8 * v1; v4 = (void *)operator new(8 * v1); memset(v4, 0, v3); } *(_QWORD *)(v0 + 408) = v4; *(_QWORD *)(v0 + 480) = 0; *(_QWORD *)(v0 + 488) = 0; *(_QWORD *)(v0 + 504) = 0; *(float *)(v0 + 496) = 1.0; v5 = sub_D146DC(v0 + 496, 10); *(_QWORD *)(v0 + 472) = v5; if ( v5 == 1 ) { *(_QWORD *)(v0 + 512) = 0; v8 = (void *)(v0 + 512); } else { if ( v5 > 0x1FFFFFFFFFFFFFFFLL ) sub_D1383C(v6); v7 = 8 * v5; v8 = (void *)operator new(8 * v5); memset(v8, 0, v7); } *(_QWORD *)(v0 + 464) = v8; *(_DWORD *)(v0 + 560) = 0; *(_QWORD *)(v0 + 520) = 0; *(float *)(v0 + 544) = 1.0; *(double *)(v0 + 528) = -1.0; *(float *)(v0 + 548) = 1.0; *(_DWORD *)(v0 + 568) = 0; *(_DWORD *)(v0 + 580) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 628)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 640)); *(_DWORD *)(v0 + 696) = 0; *(_BYTE *)(v0 + 700) = 0; *(_QWORD *)(v0 + 648) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 708)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 720)); *(_BYTE *)(v0 + 800) = 0; *(_BYTE *)(v0 + 801) = 0; *(_BYTE *)(v0 + 812) = 0; *(_BYTE *)(v0 + 813) = 0; *(_DWORD *)(v0 + 828) = 0; *(_DWORD *)(v0 + 832) = 0; *(_BYTE *)(v0 + 836) = 0; *(_BYTE *)(v0 + 837) = 0; *(_DWORD *)(v0 + 728) = 0; *(_DWORD *)(v0 + 756) = 0; *(_DWORD *)(v0 + 760) = 0; *(_DWORD *)(v0 + 780) = 0; *(_DWORD *)(v0 + 784) = 0; *(float *)(v0 + 788) = 1.0; *(_DWORD *)(v0 + 792) = 0; *(_DWORD *)(v0 + 796) = 0; *(float *)(v0 + 804) = 1.0; *(float *)(v0 + 808) = 1.0; *(float *)(v0 + 816) = 1.0; *(_DWORD *)(v0 + 820) = 0; *(_DWORD *)(v0 + 824) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 844)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 852)); *(_DWORD *)(v0 + 860) = 0; *(_DWORD *)(v0 + 864) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 876)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 884)); *(_DWORD *)(v0 + 916) = 0; *(_DWORD *)(v0 + 920) = 0; *(_BYTE *)(v0 + 924) = 0; *(_BYTE *)(v0 + 932) = 0; *(_DWORD *)(v0 + 936) = 0; *(_DWORD *)(v0 + 892) = 0; *(_DWORD *)(v0 + 896) = 0; *(_DWORD *)(v0 + 900) = 0; *(_DWORD *)(v0 + 904) = 0; *(float *)(v0 + 908) = 1.0; *(float *)(v0 + 912) = 1.0; *(_DWORD *)(v0 + 928) = 0; *(_DWORD *)(v0 + 940) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 944)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 952)); *(_BYTE *)(v0 + 968) = 0; *(_BYTE *)(v0 + 969) = 0; *(_DWORD *)(v0 + 972) = 0; *(_DWORD *)(v0 + 976) = 0; *(_DWORD *)(v0 + 960) = 0; *(_DWORD *)(v0 + 964) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 980)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 988)); *(_DWORD *)(v0 + 1000) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 1004)); *(_DWORD *)(v0 + 1020) = 0; *(_BYTE *)(v0 + 1048) = 0; *(_BYTE *)(v0 + 1088) = 0; *(float *)(v0 + 1036) = 1.0; *(_DWORD *)(v0 + 1092) = 0; *(_DWORD *)(v0 + 1012) = 0; *(_DWORD *)(v0 + 1096) = 0; *(_DWORD *)(v0 + 1028) = 0; *(_BYTE *)(v0 + 1100) = 0; *(_DWORD *)(v0 + 1032) = 0; *(_BYTE *)(v0 + 1101) = 0; *(float *)(v0 + 1040) = 1.0; *(_BYTE *)(v0 + 1102) = 0; *(float *)(v0 + 1044) = 1.0; *(_DWORD *)(v0 + 1052) = 0; *(float *)(v0 + 1056) = 1.0; *(float *)(v0 + 1060) = 1.0; *(float *)(v0 + 1064) = 1.0; *(_DWORD *)(v0 + 1068) = 0; *(_DWORD *)(v0 + 1072) = 0; *(_DWORD *)(v0 + 1076) = 0; *(_DWORD *)(v0 + 1080) = 0; *(_DWORD *)(v0 + 1084) = 0; *(_BYTE *)(v0 + 1104) = 0; *(_QWORD *)(v0 + 1112) = 0; *(_QWORD *)(v0 + 1120) = 0; *(_QWORD *)(v0 + 1128) = 0; *(_BYTE *)(v0 + 1136) = 0; *(_BYTE *)(v0 + 1137) = 0; *(_QWORD *)(v0 + 1152) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 1160)); *(float *)(v0 + 1172) = 1.0; *(_DWORD *)(v0 + 1168) = 0; *(float *)(v0 + 1176) = 1.0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v0 + 1184)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v0 + 1192)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v0 + 1200)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v0 + 1208)); if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v0 + 80LL))(v0) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0); return (ShaderLayer *)v0; } else { (*(void (__fastcall **)(__int64))(*(_QWORD *)v0 + 16LL))(v0); return nullptr; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source