{"type": "func", "start": 5373459424, "end": 5373459849, "name": "ShaderLayer::setupSplitScreenShader", "pseudocode": "// \n// ShaderLayer::setupSplitScreenShader from 0x140487be0 to 0x140487d89 (425 bytes)\n// \n// 2 xrefs:\n// > ShaderLayer::setupShader @ 0x140482996\n// > <???> @ 0x1406dbde0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid ShaderLayer::setupSplitScreenShader(ShaderLayer *a1)\n{\n  cocos2d::CCGLProgram *v2; // rax\n  int UniformLocation; // eax\n  cocos2d::CCSprite *m_sprite; // rcx\n  __int64 v5; // rax\n  int v6; // eax\n  cocos2d::CCSprite *v7; // rcx\n  __int64 v8; // rax\n  int v9; // eax\n  cocos2d::CCSprite *v10; // rcx\n  __int64 v11; // rax\n  int v12; // eax\n  cocos2d::CCSprite *v13; // rcx\n  __int64 v14; // rax\n  int v15; // eax\n  cocos2d::CCSprite *v16; // rcx\n  __int64 v17; // rax\n  int v18; // eax\n  cocos2d::CCSprite *v19; // rcx\n  __int64 v20; // rax\n  int v21; // eax\n  cocos2d::CCSprite *v22; // rcx\n  __int64 v23; // rax\n  int v24; // eax\n  cocos2d::CCSprite *v25; // rcx\n  __int64 v26; // rax\n  int v27; // eax\n  cocos2d::CCSprite *v28; // rcx\n  __int64 v29; // rax\n\n  v2 = a1->m_sprite->getShaderProgram(a1->m_sprite);\n  UniformLocation = _glewGetUniformLocation(v2->m_uProgram, \"_rowmod\");\n  m_sprite = a1->m_sprite;\n  a1->m_rowmodUniform = UniformLocation;\n  v5 = (__int64)m_sprite->getShaderProgram(m_sprite);\n  v6 = _glewGetUniformLocation(*(unsigned int *)(v5 + 56), \"_colmod\");\n  v7 = a1->m_sprite;\n  a1->m_colmodUniform = v6;\n  v8 = (__int64)v7->getShaderProgram(v7);\n  v9 = _glewGetUniformLocation(*(unsigned int *)(v8 + 56), \"_rowmodCalc\");\n  v10 = a1->m_sprite;\n  a1->m_rowmodCalcUniform = v9;\n  v11 = (__int64)v10->getShaderProgram(v10);\n  v12 = _glewGetUniformLocation(*(unsigned int *)(v11 + 56), \"_colmodCalc\");\n  v13 = a1->m_sprite;\n  a1->m_colmodCalcUniform = v12;\n  v14 = (__int64)v13->getShaderProgram(v13);\n  v15 = _glewGetUniformLocation(*(unsigned int *)(v14 + 56), \"_splitXStart\");\n  v16 = a1->m_sprite;\n  a1->m_splitXStartUniform = v15;\n  v17 = (__int64)v16->getShaderProgram(v16);\n  v18 = _glewGetUniformLocation(*(unsigned int *)(v17 + 56), \"_splitXRange\");\n  v19 = a1->m_sprite;\n  a1->m_splitXRangeUniform = v18;\n  v20 = (__int64)v19->getShaderProgram(v19);\n  v21 = _glewGetUniformLocation(*(unsigned int *)(v20 + 56), \"_splitXRangeMult\");\n  v22 = a1->m_sprite;\n  a1->m_splitXRangeMultUniform = v21;\n  v23 = (__int64)v22->getShaderProgram(v22);\n  v24 = _glewGetUniformLocation(*(unsigned int *)(v23 + 56), \"_splitYStart\");\n  v25 = a1->m_sprite;\n  a1->m_splitYStartUniform = v24;\n  v26 = (__int64)v25->getShaderProgram(v25);\n  v27 = _glewGetUniformLocation(*(unsigned int *)(v26 + 56), \"_splitYRange\");\n  v28 = a1->m_sprite;\n  a1->m_splitYRangeUniform = v27;\n  v29 = (__int64)v28->getShaderProgram(v28);\n  a1->m_splitYRangeMultUniform = _glewGetUniformLocation(*(unsigned int *)(v29 + 56), \"_splitYRangeMult\");\n}", "assembly": "; \n; ShaderLayer::setupSplitScreenShader from 0x140487be0 to 0x140487d89 (425 bytes)\n; \n; 2 xrefs:\n; > ShaderLayer::setupShader @ 0x140482996\n; > <???> @ 0x1406dbde0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140487be0\nsub     rsp, 20h                                                       ; +0x2, 0x140487be2\nmov     rbx, rcx                                                       ; +0x6, 0x140487be6\nmov     rcx, [rcx+478h]                                                ; +0x9, 0x140487be9\nmov     rax, [rcx]                                                     ; +0x10, 0x140487bf0\ncall    qword ptr [rax+278h]                                           ; +0x13, 0x140487bf3\nlea     rdx, aRowmod; \"_rowmod\"                                        ; +0x19, 0x140487bf9\nmov     ecx, [rax+38h]                                                 ; +0x20, 0x140487c00\nmov     rax, cs:__glewGetUniformLocation                               ; +0x23, 0x140487c03\ncall    qword ptr [rax]                                                ; +0x2a, 0x140487c0a\nmov     rcx, [rbx+478h]                                                ; +0x2c, 0x140487c0c\nmov     [rbx+640h], eax                                                ; +0x33, 0x140487c13\nmov     rax, [rcx]                                                     ; +0x39, 0x140487c19\ncall    qword ptr [rax+278h]                                           ; +0x3c, 0x140487c1c\nlea     rdx, aColmod; \"_colmod\"                                        ; +0x42, 0x140487c22\nmov     ecx, [rax+38h]                                                 ; +0x49, 0x140487c29\nmov     rax, cs:__glewGetUniformLocation                               ; +0x4c, 0x140487c2c\ncall    qword ptr [rax]                                                ; +0x53, 0x140487c33\nmov     rcx, [rbx+478h]                                                ; +0x55, 0x140487c35\nmov     [rbx+644h], eax                                                ; +0x5c, 0x140487c3c\nmov     rax, [rcx]                                                     ; +0x62, 0x140487c42\ncall    qword ptr [rax+278h]                                           ; +0x65, 0x140487c45\nlea     rdx, aRowmodcalc; \"_rowmodCalc\"                                ; +0x6b, 0x140487c4b\nmov     ecx, [rax+38h]                                                 ; +0x72, 0x140487c52\nmov     rax, cs:__glewGetUniformLocation                               ; +0x75, 0x140487c55\ncall    qword ptr [rax]                                                ; +0x7c, 0x140487c5c\nmov     rcx, [rbx+478h]                                                ; +0x7e, 0x140487c5e\nmov     [rbx+648h], eax                                                ; +0x85, 0x140487c65\nmov     rax, [rcx]                                                     ; +0x8b, 0x140487c6b\ncall    qword ptr [rax+278h]                                           ; +0x8e, 0x140487c6e\nlea     rdx, aColmodcalc; \"_colmodCalc\"                                ; +0x94, 0x140487c74\nmov     ecx, [rax+38h]                                                 ; +0x9b, 0x140487c7b\nmov     rax, cs:__glewGetUniformLocation                               ; +0x9e, 0x140487c7e\ncall    qword ptr [rax]                                                ; +0xa5, 0x140487c85\nmov     rcx, [rbx+478h]                                                ; +0xa7, 0x140487c87\nmov     [rbx+64Ch], eax                                                ; +0xae, 0x140487c8e\nmov     rax, [rcx]                                                     ; +0xb4, 0x140487c94\ncall    qword ptr [rax+278h]                                           ; +0xb7, 0x140487c97\nlea     rdx, aSplitxstart; \"_splitXStart\"                              ; +0xbd, 0x140487c9d\nmov     ecx, [rax+38h]                                                 ; +0xc4, 0x140487ca4\nmov     rax, cs:__glewGetUniformLocation                               ; +0xc7, 0x140487ca7\ncall    qword ptr [rax]                                                ; +0xce, 0x140487cae\nmov     rcx, [rbx+478h]                                                ; +0xd0, 0x140487cb0\nmov     [rbx+650h], eax                                                ; +0xd7, 0x140487cb7\nmov     rax, [rcx]                                                     ; +0xdd, 0x140487cbd\ncall    qword ptr [rax+278h]                                           ; +0xe0, 0x140487cc0\nlea     rdx, aSplitxrange; \"_splitXRange\"                              ; +0xe6, 0x140487cc6\nmov     ecx, [rax+38h]                                                 ; +0xed, 0x140487ccd\nmov     rax, cs:__glewGetUniformLocation                               ; +0xf0, 0x140487cd0\ncall    qword ptr [rax]                                                ; +0xf7, 0x140487cd7\nmov     rcx, [rbx+478h]                                                ; +0xf9, 0x140487cd9\nmov     [rbx+654h], eax                                                ; +0x100, 0x140487ce0\nmov     rax, [rcx]                                                     ; +0x106, 0x140487ce6\ncall    qword ptr [rax+278h]                                           ; +0x109, 0x140487ce9\nlea     rdx, aSplitxrangemul; \"_splitXRangeMult\"                       ; +0x10f, 0x140487cef\nmov     ecx, [rax+38h]                                                 ; +0x116, 0x140487cf6\nmov     rax, cs:__glewGetUniformLocation                               ; +0x119, 0x140487cf9\ncall    qword ptr [rax]                                                ; +0x120, 0x140487d00\nmov     rcx, [rbx+478h]                                                ; +0x122, 0x140487d02\nmov     [rbx+658h], eax                                                ; +0x129, 0x140487d09\nmov     rax, [rcx]                                                     ; +0x12f, 0x140487d0f\ncall    qword ptr [rax+278h]                                           ; +0x132, 0x140487d12\nlea     rdx, aSplitystart; \"_splitYStart\"                              ; +0x138, 0x140487d18\nmov     ecx, [rax+38h]                                                 ; +0x13f, 0x140487d1f\nmov     rax, cs:__glewGetUniformLocation                               ; +0x142, 0x140487d22\ncall    qword ptr [rax]                                                ; +0x149, 0x140487d29\nmov     rcx, [rbx+478h]                                                ; +0x14b, 0x140487d2b\nmov     [rbx+65Ch], eax                                                ; +0x152, 0x140487d32\nmov     rax, [rcx]                                                     ; +0x158, 0x140487d38\ncall    qword ptr [rax+278h]                                           ; +0x15b, 0x140487d3b\nlea     rdx, aSplityrange; \"_splitYRange\"                              ; +0x161, 0x140487d41\nmov     ecx, [rax+38h]                                                 ; +0x168, 0x140487d48\nmov     rax, cs:__glewGetUniformLocation                               ; +0x16b, 0x140487d4b\ncall    qword ptr [rax]                                                ; +0x172, 0x140487d52\nmov     rcx, [rbx+478h]                                                ; +0x174, 0x140487d54\nmov     [rbx+660h], eax                                                ; +0x17b, 0x140487d5b\nmov     rax, [rcx]                                                     ; +0x181, 0x140487d61\ncall    qword ptr [rax+278h]                                           ; +0x184, 0x140487d64\nlea     rdx, aSplityrangemul; \"_splitYRangeMult\"                       ; +0x18a, 0x140487d6a\nmov     ecx, [rax+38h]                                                 ; +0x191, 0x140487d71\nmov     rax, cs:__glewGetUniformLocation                               ; +0x194, 0x140487d74\ncall    qword ptr [rax]                                                ; +0x19b, 0x140487d7b\nmov     [rbx+664h], eax                                                ; +0x19d, 0x140487d7d\nadd     rsp, 20h                                                       ; +0x1a3, 0x140487d83\npop     rbx                                                            ; +0x1a7, 0x140487d87\nretn                                                                   ; +0x1a8, 0x140487d88", "xrefs": ["ShaderLayer::setupShader @ 0x140482996", "<???> @ 0x1406dbde0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}