// // sub_1002384D8 from 0x1002384d8 to 0x100238664 (396 bytes) // // 1 xrefs: // > CCSpriteWithHue::initWithTexture @ 0x1002384c4 // // 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 11:01:20 +0000 // __int64 __fastcall sub_1002384D8(__int64 a1) { __int64 v2; // x20 char *v3; // x1 __int64 v4; // x0 GLuint *v5; // x20 double v6; // d0 char *v7; // x21 __int64 v8; // x0 __int64 v9; // x21 char *v10; // x2 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v13; // [xsp+1Fh] [xbp-21h] v2 = cocos2d::CCShaderCache::sharedShaderCache(); (*(void (__fastcall **)(void **__return_ptr, __int64))(*(_QWORD *)a1 + 1240LL))(__p, a1); if ( v13 >= 0 ) v3 = (char *)__p; else v3 = (char *)__p[0]; v4 = cocos2d::CCShaderCache::programForKey(v2, v3); v5 = (GLuint *)v4; if ( v13 < 0 ) { operator delete(__p[0]); if ( v5 ) goto LABEL_14; } else if ( v4 ) { goto LABEL_14; } v5 = (GLuint *)operator new(0x78u); v6 = cocos2d::CCGLProgram::CCGLProgram((__int64)v5); v7 = off_1009D4260[0]; v8 = (*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 1248LL))(a1, v6); cocos2d::CCGLProgram::initWithVertexShaderByteArray((__int64)v5, (__int64)v7, v8); cocos2d::CCGLProgram::addAttribute((__int64)v5, "a_position", 0); cocos2d::CCGLProgram::addAttribute((__int64)v5, "a_color", 1u); cocos2d::CCGLProgram::addAttribute((__int64)v5, "a_texCoord", 2u); cocos2d::CCGLProgram::link(v5); cocos2d::CCGLProgram::updateUniforms((__int64)v5); v9 = cocos2d::CCShaderCache::sharedShaderCache(); (*(void (__fastcall **)(void **__return_ptr, __int64))(*(_QWORD *)a1 + 1240LL))(__p, a1); if ( v13 >= 0 ) v10 = (char *)__p; else v10 = (char *)__p[0]; cocos2d::CCShaderCache::addProgram(v9, (__int64)v5, v10); if ( v13 < 0 ) operator delete(__p[0]); cocos2d::CCObject::release(v5); LABEL_14: (*(void (__fastcall **)(__int64, GLuint *))(*(_QWORD *)a1 + 664LL))(a1, v5); sub_1002387A4(a1); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1256LL))(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source