{"type": "func", "start": 3173096, "end": 3173172, "name": "CCSpriteWithHue::getUniformLocations", "pseudocode": "// \n// CCSpriteWithHue::getUniformLocations from 0x306ae8 to 0x306b34 (76 bytes)\n// \n// 1 xrefs:\n// > CCSpriteWithHue::initShader @ 0x306c08\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 CCSpriteWithHue::getUniformLocations(CCSpriteWithHue *a1)\n{\n  int UniformLocation; // r0\n  cocos2d::CCGLProgram *(__fastcall *getShaderProgram)(cocos2d::CCNode *__hidden); // r3\n  int v4; // r0\n  cocos2d::CCGLProgram *(__fastcall *v5)(cocos2d::CCNode *__hidden); // r3\n\n  a1->getShaderProgram(a1);\n  UniformLocation = glGetUniformLocation();\n  getShaderProgram = a1->getShaderProgram;\n  a1->m_uHueLoc = UniformLocation;\n  getShaderProgram(a1);\n  v4 = glGetUniformLocation();\n  v5 = a1->getShaderProgram;\n  a1->m_uAlphaLoc = v4;\n  v5(a1);\n  a1->m_uLumLoc = glGetUniformLocation();\n}", "assembly": "; \n; CCSpriteWithHue::getUniformLocations from 0x306ae8 to 0x306b34 (76 bytes)\n; \n; 1 xrefs:\n; > CCSpriteWithHue::initShader @ 0x306c08\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\nLDR             R3, [R0]                                               ; +0x0, 0x306ae8\nPUSH            {R4,LR}                                                ; +0x2, 0x306aea\nMOV             R4, R0                                                 ; +0x4, 0x306aec\nLDR.W           R3, [R3,#0x140]                                        ; +0x6, 0x306aee\nBLX             R3                                                     ; +0xa, 0x306af2\nLDR             R1, =(aUHue - 0x306AFA); \"u_hue\"                       ; +0xc, 0x306af4\nADD             R1, PC; \"u_hue\"                                        ; +0xe, 0x306af6\nLDR             R0, [R0,#0x34]                                         ; +0x10, 0x306af8\nBLX             glGetUniformLocation                                   ; +0x12, 0x306afa\nLDR             R3, [R4]                                               ; +0x16, 0x306afe\nLDR.W           R3, [R3,#0x140]                                        ; +0x18, 0x306b00\nSTR.W           R0, [R4,#0x230]                                        ; +0x1c, 0x306b04\nMOV             R0, R4                                                 ; +0x20, 0x306b08\nBLX             R3                                                     ; +0x22, 0x306b0a\nLDR             R1, =(aUAlpha - 0x306B12); \"u_alpha\"                   ; +0x24, 0x306b0c\nADD             R1, PC; \"u_alpha\"                                      ; +0x26, 0x306b0e\nLDR             R0, [R0,#0x34]                                         ; +0x28, 0x306b10\nBLX             glGetUniformLocation                                   ; +0x2a, 0x306b12\nLDR             R3, [R4]                                               ; +0x2e, 0x306b16\nLDR.W           R3, [R3,#0x140]                                        ; +0x30, 0x306b18\nSTR.W           R0, [R4,#0x234]                                        ; +0x34, 0x306b1c\nMOV             R0, R4                                                 ; +0x38, 0x306b20\nBLX             R3                                                     ; +0x3a, 0x306b22\nLDR             R1, =(aULum - 0x306B2A); \"u_lum\"                       ; +0x3c, 0x306b24\nADD             R1, PC; \"u_lum\"                                        ; +0x3e, 0x306b26\nLDR             R0, [R0,#0x34]                                         ; +0x40, 0x306b28\nBLX             glGetUniformLocation                                   ; +0x42, 0x306b2a\nSTR.W           R0, [R4,#0x238]                                        ; +0x46, 0x306b2e\nPOP             {R4,PC}                                                ; +0x4a, 0x306b32", "xrefs": ["CCSpriteWithHue::initShader @ 0x306c08"], "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"}