{"type": "func", "start": 4296686120, "end": 4296686232, "name": "CCSpriteWithHue::updateColorMatrix", "pseudocode": "// \n// CCSpriteWithHue::updateColorMatrix from 0x1001a3a28 to 0x1001a3a98 (112 bytes)\n// \n// 2 xrefs:\n// > CCSpriteWithHue::updateColor @ 0x1001a3a24\n// > CCSpriteWithHue::setHueDegrees @ 0x1001a3c10\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::updateColorMatrix(CCSpriteWithHue *a1)\n{\n  std::array<std::array<float, 3>, 3> *p_m_colorMatrix; // x19\n  __n128 v3; // q0\n  __int64 v4; // x8\n  float v5; // s0\n  __int64 i; // x9\n\n  p_m_colorMatrix = &a1->m_colorMatrix;\n  v3 = sub_1001A3A98(&a1->m_colorMatrix, a1->m_hue);\n  v4 = 0;\n  v3.n128_u8[0] = a1->_displayedOpacity;\n  v5 = (float)v3.n128_u32[0] / 255.0;\n  do\n  {\n    for ( i = 0; i != 3; ++i )\n      p_m_colorMatrix->__elems_[0].__elems_[i] = v5 * p_m_colorMatrix->__elems_[0].__elems_[i];\n    ++v4;\n    p_m_colorMatrix = (std::array<std::array<float, 3>, 3> *)((char *)p_m_colorMatrix + 12);\n  }\n  while ( v4 != 3 );\n}", "assembly": "; \n; CCSpriteWithHue::updateColorMatrix from 0x1001a3a28 to 0x1001a3a98 (112 bytes)\n; \n; 2 xrefs:\n; > CCSpriteWithHue::updateColor @ 0x1001a3a24\n; > CCSpriteWithHue::setHueDegrees @ 0x1001a3c10\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, 0x1001a3a28\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001a3a2c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001a3a30\nMOV             X20, X0                                                ; +0xc, 0x1001a3a34\nADD             X19, X0, #0x264                                        ; +0x10, 0x1001a3a38\nLDR             S0, [X0,#0x254]                                        ; +0x14, 0x1001a3a3c\nMOV             X0, X19                                                ; +0x18, 0x1001a3a40\nBL              sub_1001A3A98                                          ; +0x1c, 0x1001a3a44\nMOV             X8, #0                                                 ; +0x20, 0x1001a3a48\nLDR             B0, [X20,#0x148]                                       ; +0x24, 0x1001a3a4c\nUCVTF           S0, S0                                                 ; +0x28, 0x1001a3a50\nMOV             W9, #0x437F0000                                        ; +0x2c, 0x1001a3a54\nFMOV            S1, W9                                                 ; +0x30, 0x1001a3a58\nFDIV            S0, S0, S1                                             ; +0x34, 0x1001a3a5c\nMOV             X9, #0                                                 ; +0x38, 0x1001a3a60\nLDR             S1, [X19,X9]                                           ; +0x3c, 0x1001a3a64\nFMUL            S1, S0, S1                                             ; +0x40, 0x1001a3a68\nSTR             S1, [X19,X9]                                           ; +0x44, 0x1001a3a6c\nADD             X9, X9, #4                                             ; +0x48, 0x1001a3a70\nCMP             X9, #0xC                                               ; +0x4c, 0x1001a3a74\nB.NE            loc_1001A3A64                                          ; +0x50, 0x1001a3a78\nADD             X8, X8, #1                                             ; +0x54, 0x1001a3a7c\nADD             X19, X19, #0xC                                         ; +0x58, 0x1001a3a80\nCMP             X8, #3                                                 ; +0x5c, 0x1001a3a84\nB.NE            loc_1001A3A60                                          ; +0x60, 0x1001a3a88\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x64, 0x1001a3a8c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x68, 0x1001a3a90\nRET                                                                    ; +0x6c, 0x1001a3a94", "xrefs": ["CCSpriteWithHue::updateColor @ 0x1001a3a24", "CCSpriteWithHue::setHueDegrees @ 0x1001a3c10"], "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"}