{"type": "func", "start": 9057824, "end": 9058092, "name": "ColorChannelSprite::updateValues", "pseudocode": "// \n// ColorChannelSprite::updateValues from 0x8a3620 to 0x8a372c (268 bytes)\n// \n// 6 xrefs:\n// > CustomizeObjectLayer::updateColorSprite @ 0x840fec\n// > CustomizeObjectLayer::updateColorSprite @ 0x841044\n// > GJColorSetupLayer::updateSpriteColor @ 0x8a1a38\n// > GJColorSetupLayer::updateSpriteColor @ 0x8a1a60\n// > LevelSettingsLayer::updateColorSprite @ 0xa35878\n// > <???> @ 0xbe428\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 ColorChannelSprite::updateValues(ColorChannelSprite *a1, ColorAction *a2)\n{\n  GLubyte g; // w2\n  GLubyte b; // w1\n  int m_copyID; // w0\n  GLubyte r; // [xsp+30h] [xbp+30h] BYREF\n  char v8; // [xsp+31h] [xbp+31h]\n  char v9; // [xsp+32h] [xbp+32h]\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    g = a2->m_fromColor.g;\n    b = a2->m_fromColor.b;\n    m_copyID = a2->m_copyID;\n    r = a2->m_fromColor.r;\n    v8 = g;\n    v9 = b;\n    if ( m_copyID )\n    {\n      if ( !a2->m_copyColorLoop )\n      {\n        r = -90;\n        v8 = -90;\n        v9 = -90;\n      }\n    }\n    a1->setColor(a1, (const cocos2d::ccColor3B *)&r);\n  }\n  else\n  {\n    a1->setColor(a1, (const cocos2d::ccColor3B *)&off_EEDDB0);\n    ColorChannelSprite::updateCopyLabel(a1, 0, 0);\n    ColorChannelSprite::updateOpacity(a1, 1.0);\n    ColorChannelSprite::updateBlending(a1, 0);\n  }\n}", "assembly": "; \n; ColorChannelSprite::updateValues from 0x8a3620 to 0x8a372c (268 bytes)\n; \n; 6 xrefs:\n; > CustomizeObjectLayer::updateColorSprite @ 0x840fec\n; > CustomizeObjectLayer::updateColorSprite @ 0x841044\n; > GJColorSetupLayer::updateSpriteColor @ 0x8a1a38\n; > GJColorSetupLayer::updateSpriteColor @ 0x8a1a60\n; > LevelSettingsLayer::updateColorSprite @ 0xa35878\n; > <???> @ 0xbe428\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             X29, X30, [SP,#var_40]!                                ; +0x0, 0x8a3620\nMOV             X29, SP                                                ; +0x4, 0x8a3624\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x8a3628\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x8a362c\nMOV             X19, X1                                                ; +0x10, 0x8a3630\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x14, 0x8a3634\nMOV             X21, X0                                                ; +0x18, 0x8a3638\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x8a363c\nLDR             X1, [X1]                                               ; +0x20, 0x8a3640\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x24, 0x8a3644\nCBZ             X19, loc_8A36E4                                        ; +0x28, 0x8a3648\nLDRB            W2, [X19,#0x7E]; bool                                  ; +0x2c, 0x8a364c\nLDR             W1, [X19,#0x78]; GJSpecialColorSelect *                ; +0x30, 0x8a3650\nBL              _ZN18ColorChannelSprite15updateCopyLabelEib; ColorChannelSprite::updateCopyLabel(int,bool) ; +0x34, 0x8a3654\nLDR             S0, [X19,#0x60]; float                                 ; +0x38, 0x8a3658\nMOV             X0, X21; this                                          ; +0x3c, 0x8a365c\nBL              _ZN18ColorChannelSprite13updateOpacityEf; ColorChannelSprite::updateOpacity(float) ; +0x40, 0x8a3660\nLDRB            W1, [X19,#0x54]; bool                                  ; +0x44, 0x8a3664\nMOV             X0, X21; this                                          ; +0x48, 0x8a3668\nBL              _ZN18ColorChannelSprite14updateBlendingEb; ColorChannelSprite::updateBlending(bool) ; +0x4c, 0x8a366c\nLDRB            W2, [X19,#0x49]                                        ; +0x50, 0x8a3670\nLDRB            W1, [X19,#0x4A]                                        ; +0x54, 0x8a3674\nLDRB            W3, [X19,#0x48]                                        ; +0x58, 0x8a3678\nLDR             W0, [X19,#0x78]                                        ; +0x5c, 0x8a367c\nSTRB            W3, [X29,#0x40+var_10]                                 ; +0x60, 0x8a3680\nSTRB            W2, [X29,#0x40+var_F]                                  ; +0x64, 0x8a3684\nSTRB            W1, [X29,#0x40+var_E]                                  ; +0x68, 0x8a3688\nCBNZ            W0, loc_8A36C8                                         ; +0x6c, 0x8a368c\nLDR             X2, [X21]                                              ; +0x70, 0x8a3690\nMOV             X0, X21                                                ; +0x74, 0x8a3694\nADD             X1, X29, #0x40+var_10                                  ; +0x78, 0x8a3698\nLDR             X2, [X2,#0x3B0]                                        ; +0x7c, 0x8a369c\nBLR             X2                                                     ; +0x80, 0x8a36a0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x84, 0x8a36a4\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x88, 0x8a36a8\nLDR             X0, [X20]                                              ; +0x8c, 0x8a36ac\nCMP             X1, X0                                                 ; +0x90, 0x8a36b0\nB.NE            loc_8A3728                                             ; +0x94, 0x8a36b4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x98, 0x8a36b8\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x9c, 0x8a36bc\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa0, 0x8a36c0\nRET                                                                    ; +0xa4, 0x8a36c4\nLDRB            W0, [X19,#0x7E]                                        ; +0xa8, 0x8a36c8\nCBNZ            W0, loc_8A3690                                         ; +0xac, 0x8a36cc\nMOV             W0, #0xFFFFFFA6                                        ; +0xb0, 0x8a36d0\nSTRB            W0, [X29,#0x40+var_10]                                 ; +0xb4, 0x8a36d4\nSTRB            W0, [X29,#0x40+var_F]                                  ; +0xb8, 0x8a36d8\nSTRB            W0, [X29,#0x40+var_E]                                  ; +0xbc, 0x8a36dc\nB               loc_8A3690                                             ; +0xc0, 0x8a36e0\nLDR             X2, [X0]                                               ; +0xc4, 0x8a36e4\nADRL            X1, unk_EEDDA8                                         ; +0xc8, 0x8a36e8\nADD             X1, X1, #(off_EEDDB0 - 0xEEDDA8)                       ; +0xd0, 0x8a36f0\nLDR             X2, [X2,#0x3B0]                                        ; +0xd4, 0x8a36f4\nBLR             X2                                                     ; +0xd8, 0x8a36f8\nMOV             X0, X21; this                                          ; +0xdc, 0x8a36fc\nMOV             W1, #0; GJSpecialColorSelect *                         ; +0xe0, 0x8a3700\nMOV             W2, #0; bool                                           ; +0xe4, 0x8a3704\nBL              _ZN18ColorChannelSprite15updateCopyLabelEib; ColorChannelSprite::updateCopyLabel(int,bool) ; +0xe8, 0x8a3708\nMOV             X0, X21; this                                          ; +0xec, 0x8a370c\nFMOV            S0, #1.0; float                                        ; +0xf0, 0x8a3710\nBL              _ZN18ColorChannelSprite13updateOpacityEf; ColorChannelSprite::updateOpacity(float) ; +0xf4, 0x8a3714\nMOV             X0, X21; this                                          ; +0xf8, 0x8a3718\nMOV             W1, #0; bool                                           ; +0xfc, 0x8a371c\nBL              _ZN18ColorChannelSprite14updateBlendingEb; ColorChannelSprite::updateBlending(bool) ; +0x100, 0x8a3720\nB               loc_8A36A4                                             ; +0x104, 0x8a3724\nBL              .__stack_chk_fail                                      ; +0x108, 0x8a3728", "xrefs": ["CustomizeObjectLayer::updateColorSprite @ 0x840fec", "CustomizeObjectLayer::updateColorSprite @ 0x841044", "GJColorSetupLayer::updateSpriteColor @ 0x8a1a38", "GJColorSetupLayer::updateSpriteColor @ 0x8a1a60", "LevelSettingsLayer::updateColorSprite @ 0xa35878", "<???> @ 0xbe428"], "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"}