{"type": "func", "start": 4295020864, "end": 4295021120, "name": "ColorChannelSprite::updateValues", "pseudocode": "// \n// ColorChannelSprite::updateValues from 0x10000d140 to 0x10000d240 (256 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::updateColorSprite @ 0x100050240\n// > LevelSettingsLayer::updateColorSprite @ 0x10017bfcc\n// > GJColorSetupLayer::updateSpriteColor @ 0x10018e618\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 ColorChannelSprite::updateValues(ColorChannelSprite *a1, ColorAction *a2)\n{\n  __int16 v4; // w8\n  cocos2d::CCLabelBMFont *m_copyLabel; // x0\n  cocos2d::CCLabelBMFont *m_opacityLabel; // x0\n  cocos2d::CCLabelBMFont *m_blendingLabel; // x0\n  __int16 v8; // [xsp+Ch] [xbp-14h] BYREF\n  GLubyte b; // [xsp+Eh] [xbp-12h]\n\n  if ( a2 )\n  {\n    ColorChannelSprite::updateCopyLabel(a1, a2->m_copyID, a2->m_copyColorLoop);\n    ColorChannelSprite::updateOpacity(a1, a2->m_fromOpacity);\n    ColorChannelSprite::updateBlending(a1, a2->m_blending);\n    v4 = *(_WORD *)&a2->m_fromColor.r;\n    b = a2->m_fromColor.b;\n    v8 = v4;\n    if ( a2->m_copyID )\n    {\n      if ( !a2->m_copyColorLoop )\n      {\n        b = -90;\n        v8 = -22874;\n      }\n    }\n    ((void (__fastcall *)(ColorChannelSprite *, __int16 *))a1->setColor)(a1, &v8);\n  }\n  else\n  {\n    ((void (__fastcall *)(ColorChannelSprite *, void *))a1->setColor)(a1, &unk_1006354D3);\n    m_copyLabel = a1->m_copyLabel;\n    if ( m_copyLabel )\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))m_copyLabel->setVisible)(m_copyLabel, 0);\n    m_opacityLabel = a1->m_opacityLabel;\n    if ( m_opacityLabel )\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))m_opacityLabel->setVisible)(m_opacityLabel, 0);\n    m_blendingLabel = a1->m_blendingLabel;\n    if ( m_blendingLabel )\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))m_blendingLabel->setVisible)(m_blendingLabel, 0);\n  }\n}", "assembly": "; \n; ColorChannelSprite::updateValues from 0x10000d140 to 0x10000d240 (256 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::updateColorSprite @ 0x100050240\n; > LevelSettingsLayer::updateColorSprite @ 0x10017bfcc\n; > GJColorSetupLayer::updateSpriteColor @ 0x10018e618\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x10000d140\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10000d144\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10000d148\nADD             X29, SP, #0x20                                         ; +0xc, 0x10000d14c\nMOV             X19, X0                                                ; +0x10, 0x10000d150\nCBZ             X1, loc_10000D1D4                                      ; +0x14, 0x10000d154\nMOV             X20, X1                                                ; +0x18, 0x10000d158\nLDR             W1, [X1,#0x78]                                         ; +0x1c, 0x10000d15c\nLDRB            W2, [X20,#0x7E]                                        ; +0x20, 0x10000d160\nMOV             X0, X19                                                ; +0x24, 0x10000d164\nBL              ColorChannelSprite__updateCopyLabel                    ; +0x28, 0x10000d168\nLDR             S0, [X20,#0x60]                                        ; +0x2c, 0x10000d16c\nMOV             X0, X19                                                ; +0x30, 0x10000d170\nBL              ColorChannelSprite__updateOpacity                      ; +0x34, 0x10000d174\nLDRB            W1, [X20,#0x54]                                        ; +0x38, 0x10000d178\nMOV             X0, X19                                                ; +0x3c, 0x10000d17c\nBL              ColorChannelSprite__updateBlending                     ; +0x40, 0x10000d180\nLDRH            W8, [X20,#0x48]                                        ; +0x44, 0x10000d184\nLDRB            W9, [X20,#0x4A]                                        ; +0x48, 0x10000d188\nSTRB            W9, [SP,#0x20+var_12]                                  ; +0x4c, 0x10000d18c\nSTRH            W8, [SP,#0x20+var_14]                                  ; +0x50, 0x10000d190\nLDR             W8, [X20,#0x78]                                        ; +0x54, 0x10000d194\nCBZ             W8, loc_10000D1B0                                      ; +0x58, 0x10000d198\nLDRB            W8, [X20,#0x7E]                                        ; +0x5c, 0x10000d19c\nTBNZ            W8, #0, loc_10000D1B0                                  ; +0x60, 0x10000d1a0\nMOV             W8, #0xFFFFA6A6                                        ; +0x64, 0x10000d1a4\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x68, 0x10000d1a8\nSTRH            W8, [SP,#0x20+var_14]                                  ; +0x6c, 0x10000d1ac\nLDR             X8, [X19]                                              ; +0x70, 0x10000d1b0\nLDR             X8, [X8,#0x3B0]                                        ; +0x74, 0x10000d1b4\nADD             X1, SP, #0x20+var_14                                   ; +0x78, 0x10000d1b8\nMOV             X0, X19                                                ; +0x7c, 0x10000d1bc\nBLR             X8                                                     ; +0x80, 0x10000d1c0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x10000d1c4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x10000d1c8\nADD             SP, SP, #0x30 ; '0'                                    ; +0x8c, 0x10000d1cc\nRET                                                                    ; +0x90, 0x10000d1d0\nLDR             X8, [X19]                                              ; +0x94, 0x10000d1d4\nLDR             X8, [X8,#0x3B0]                                        ; +0x98, 0x10000d1d8\nADRL            X1, unk_1006354D3                                      ; +0x9c, 0x10000d1dc\nMOV             X0, X19                                                ; +0xa4, 0x10000d1e4\nBLR             X8                                                     ; +0xa8, 0x10000d1e8\nLDR             X0, [X19,#0x258]                                       ; +0xac, 0x10000d1ec\nCBZ             X0, loc_10000D204                                      ; +0xb0, 0x10000d1f0\nLDR             X8, [X0]                                               ; +0xb4, 0x10000d1f4\nLDR             X8, [X8,#0x148]                                        ; +0xb8, 0x10000d1f8\nMOV             W1, #0                                                 ; +0xbc, 0x10000d1fc\nBLR             X8                                                     ; +0xc0, 0x10000d200\nLDR             X0, [X19,#0x260]                                       ; +0xc4, 0x10000d204\nCBZ             X0, loc_10000D21C                                      ; +0xc8, 0x10000d208\nLDR             X8, [X0]                                               ; +0xcc, 0x10000d20c\nLDR             X8, [X8,#0x148]                                        ; +0xd0, 0x10000d210\nMOV             W1, #0                                                 ; +0xd4, 0x10000d214\nBLR             X8                                                     ; +0xd8, 0x10000d218\nLDR             X0, [X19,#0x268]                                       ; +0xdc, 0x10000d21c\nCBZ             X0, loc_10000D1C4                                      ; +0xe0, 0x10000d220\nLDR             X8, [X0]                                               ; +0xe4, 0x10000d224\nLDR             X2, [X8,#0x148]                                        ; +0xe8, 0x10000d228\nMOV             W1, #0                                                 ; +0xec, 0x10000d22c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xf0, 0x10000d230\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xf4, 0x10000d234\nADD             SP, SP, #0x30 ; '0'                                    ; +0xf8, 0x10000d238\nBR              X2                                                     ; +0xfc, 0x10000d23c", "xrefs": ["CustomizeObjectLayer::updateColorSprite @ 0x100050240", "LevelSettingsLayer::updateColorSprite @ 0x10017bfcc", "GJColorSetupLayer::updateSpriteColor @ 0x10018e618"], "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"}