{"type": "func", "start": 4296685940, "end": 4296686072, "name": "CCSpriteWithHue::getUniformLocations", "pseudocode": "// \n// CCSpriteWithHue::getUniformLocations from 0x1001a3974 to 0x1001a39f8 (132 bytes)\n// \n// 1 xrefs:\n// > CCSpriteWithHue::initShader @ 0x1001a380c\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; // x0\n  __int64 v3; // x0\n  __int64 v4; // x0\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 0x1001a3974 to 0x1001a39f8 (132 bytes)\n; \n; 1 xrefs:\n; > CCSpriteWithHue::initShader @ 0x1001a380c\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001a3974\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001a3978\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001a397c\nMOV             X19, X0                                                ; +0xc, 0x1001a3980\nLDR             X8, [X0]                                               ; +0x10, 0x1001a3984\nLDR             X8, [X8,#0x280]                                        ; +0x14, 0x1001a3988\nBLR             X8                                                     ; +0x18, 0x1001a398c\nLDR             W0, [X0,#0x38]; program                                ; +0x1c, 0x1001a3990\nADRL            X1, aUHue; \"u_hue\"                                     ; +0x20, 0x1001a3994\nBL              _glGetUniformLocation                                  ; +0x28, 0x1001a399c\nSTR             W0, [X19,#0x288]                                       ; +0x2c, 0x1001a39a0\nLDR             X8, [X19]                                              ; +0x30, 0x1001a39a4\nLDR             X8, [X8,#0x280]                                        ; +0x34, 0x1001a39a8\nMOV             X0, X19                                                ; +0x38, 0x1001a39ac\nBLR             X8                                                     ; +0x3c, 0x1001a39b0\nLDR             W0, [X0,#0x38]; program                                ; +0x40, 0x1001a39b4\nADRL            X1, aUAlpha; \"u_alpha\"                                 ; +0x44, 0x1001a39b8\nBL              _glGetUniformLocation                                  ; +0x4c, 0x1001a39c0\nSTR             W0, [X19,#0x28C]                                       ; +0x50, 0x1001a39c4\nLDR             X8, [X19]                                              ; +0x54, 0x1001a39c8\nLDR             X8, [X8,#0x280]                                        ; +0x58, 0x1001a39cc\nMOV             X0, X19                                                ; +0x5c, 0x1001a39d0\nBLR             X8                                                     ; +0x60, 0x1001a39d4\nLDR             W0, [X0,#0x38]; program                                ; +0x64, 0x1001a39d8\nADRL            X1, aULum; \"u_lum\"                                     ; +0x68, 0x1001a39dc\nBL              _glGetUniformLocation                                  ; +0x70, 0x1001a39e4\nSTR             W0, [X19,#0x290]                                       ; +0x74, 0x1001a39e8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x78, 0x1001a39ec\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x7c, 0x1001a39f0\nRET                                                                    ; +0x80, 0x1001a39f4", "xrefs": ["CCSpriteWithHue::initShader @ 0x1001a380c"], "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"}