// // cocos2d::CCShaderCache::loadDefaultShader from 0x1001e52e0 to 0x1001e5495 (437 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 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 12:26:29 +0000 // __int64 __fastcall cocos2d::CCShaderCache::loadDefaultShader(__int64 a1, __int64 a2, int a3) { __int64 result; // rax char *v5; // rsi char **v6; // rax char *v7; // rsi char **v8; // rax const char *v9; // rsi __int64 v10; // rdi __int64 v11; // rdx const char *v12; // rsi __int64 v13; // rdi __int64 v14; // rdx const char *v15; // rsi __int64 v16; // rdi __int64 v17; // rdx switch ( a3 ) { case 0: v5 = off_100BDEAC0[0]; v6 = off_100BDEAB8; goto LABEL_13; case 1: v5 = off_100BDEAC0[0]; v6 = off_100BDEAC8; goto LABEL_13; case 2: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, off_100BDEA90[0], off_100BDEA88[0]); v9 = "a_position"; v10 = a2; v11 = 0; goto LABEL_8; case 3: v7 = off_100BDEAA0[0]; v8 = off_100BDEA98; goto LABEL_6; case 4: v7 = off_100BDEAD8[0]; v8 = off_100BDEAD0; LABEL_6: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, v7, *v8); v12 = "a_position"; v13 = a2; v14 = 0; goto LABEL_14; case 5: v5 = off_100BDEAB0[0]; v6 = off_100BDEAA8; goto LABEL_13; case 6: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, off_100BDEA80[0], off_100BDEA78[0]); v15 = "aVertex"; v16 = a2; v17 = 0; goto LABEL_15; case 7: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, off_100BDEAF0, off_100BDEAE8[0]); cocos2d::CCGLProgram::addAttribute(a2, "a_position", 0); v9 = "a_texCoord"; v10 = a2; v11 = 2; LABEL_8: cocos2d::CCGLProgram::addAttribute(v10, v9, v11); v15 = "a_color"; v16 = a2; v17 = 1; goto LABEL_15; case 8: v5 = off_100BDEAC0[0]; v6 = off_100BDEAE0; LABEL_13: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, v5, *v6); cocos2d::CCGLProgram::addAttribute(a2, "a_position", 0); v12 = "a_color"; v13 = a2; v14 = 1; LABEL_14: cocos2d::CCGLProgram::addAttribute(v13, v12, v14); v15 = "a_texCoord"; v16 = a2; v17 = 2; LABEL_15: cocos2d::CCGLProgram::addAttribute(v16, v15, v17); cocos2d::CCGLProgram::link(a2); result = cocos2d::CCGLProgram::updateUniforms(a2); break; default: return result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source