{"type": "func", "start": 4301193984, "end": 4301194096, "name": "CCSpriteWithHue::getUniformLocations", "pseudocode": "// \n// CCSpriteWithHue::getUniformLocations from 0x1005f0300 to 0x1005f0370 (112 bytes)\n// \n// 0 xrefs:\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 __fastcall CCSpriteWithHue::getUniformLocations(CCSpriteWithHue *a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  __int64 v4; // rax\n\n  v2 = ((__int64 (__fastcall *)(CCSpriteWithHue *))a1->getShaderProgram)(a1);\n  a1->m_uHueLoc = glGetUniformLocation(*(_DWORD *)(v2 + 56), \"u_hue\");\n  v3 = ((__int64 (__fastcall *)(CCSpriteWithHue *))a1->getShaderProgram)(a1);\n  a1->m_uAlphaLoc = glGetUniformLocation(*(_DWORD *)(v3 + 56), \"u_alpha\");\n  v4 = ((__int64 (__fastcall *)(CCSpriteWithHue *))a1->getShaderProgram)(a1);\n  a1->m_uLumLoc = glGetUniformLocation(*(_DWORD *)(v4 + 56), \"u_lum\");\n}", "assembly": "; \n; CCSpriteWithHue::getUniformLocations from 0x1005f0300 to 0x1005f0370 (112 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x1005f0300\nmov     rbp, rsp                                                       ; +0x1, 0x1005f0301\npush    rbx                                                            ; +0x4, 0x1005f0304\npush    rax                                                            ; +0x5, 0x1005f0305\nmov     rbx, rdi                                                       ; +0x6, 0x1005f0306\nmov     rax, [rdi]                                                     ; +0x9, 0x1005f0309\ncall    qword ptr [rax+280h]                                           ; +0xc, 0x1005f030c\nmov     edi, [rax+38h]; program                                        ; +0x12, 0x1005f0312\nlea     rsi, aUHue; \"u_hue\"                                            ; +0x15, 0x1005f0315\ncall    _glGetUniformLocation                                          ; +0x1c, 0x1005f031c\nmov     [rbx+288h], eax                                                ; +0x21, 0x1005f0321\nmov     rax, [rbx]                                                     ; +0x27, 0x1005f0327\nmov     rdi, rbx                                                       ; +0x2a, 0x1005f032a\ncall    qword ptr [rax+280h]                                           ; +0x2d, 0x1005f032d\nmov     edi, [rax+38h]; program                                        ; +0x33, 0x1005f0333\nlea     rsi, aUAlpha; \"u_alpha\"                                        ; +0x36, 0x1005f0336\ncall    _glGetUniformLocation                                          ; +0x3d, 0x1005f033d\nmov     [rbx+28Ch], eax                                                ; +0x42, 0x1005f0342\nmov     rax, [rbx]                                                     ; +0x48, 0x1005f0348\nmov     rdi, rbx                                                       ; +0x4b, 0x1005f034b\ncall    qword ptr [rax+280h]                                           ; +0x4e, 0x1005f034e\nmov     edi, [rax+38h]; program                                        ; +0x54, 0x1005f0354\nlea     rsi, aULum; \"u_lum\"                                            ; +0x57, 0x1005f0357\ncall    _glGetUniformLocation                                          ; +0x5e, 0x1005f035e\nmov     [rbx+290h], eax                                                ; +0x63, 0x1005f0363\nadd     rsp, 8                                                         ; +0x69, 0x1005f0369\npop     rbx                                                            ; +0x6d, 0x1005f036d\npop     rbp                                                            ; +0x6e, 0x1005f036e\nretn                                                                   ; +0x6f, 0x1005f036f", "xrefs": [], "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"}