{"type": "func", "start": 10455884, "end": 10456152, "name": "ColorChannelSprite::updateValues", "pseudocode": "// \n// ColorChannelSprite::updateValues from 0x9f8b4c to 0x9f8c58 (268 bytes)\n// \n// 6 xrefs:\n// > CustomizeObjectLayer::updateColorSprite @ 0x983768\n// > CustomizeObjectLayer::updateColorSprite @ 0x9837c0\n// > GJColorSetupLayer::updateSpriteColor @ 0x9f743c\n// > GJColorSetupLayer::updateSpriteColor @ 0x9f7464\n// > LevelSettingsLayer::updateColorSprite @ 0xb62a84\n// > <???> @ 0xf8098\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:59:15 +0000\n// \n\n__int64 __fastcall ColorChannelSprite::updateValues(ColorChannelSprite *this, ColorAction *a2)\n{\n  __int64 v4; // x1\n  const char *v5; // x2\n  const char *v6; // x2\n  char v7; // w2\n  char v8; // w1\n  int v9; // w0\n  __int64 v11; // x1\n  const char *v12; // x2\n  const char *v13; // x2\n  char v14; // [xsp+30h] [xbp+30h] BYREF\n  char v15; // [xsp+31h] [xbp+31h]\n  char v16; // [xsp+32h] [xbp+32h]\n\n  if ( a2 )\n  {\n    ColorChannelSprite::updateCopyLabel(\n      this,\n      (char *)*((unsigned int *)a2 + 30),\n      (const char *)*((unsigned __int8 *)a2 + 126));\n    ColorChannelSprite::updateOpacity(this, *((float *)a2 + 24), v4, v5);\n    ColorChannelSprite::updateBlending(this, *((_BYTE *)a2 + 84), v6);\n    v7 = *((_BYTE *)a2 + 73);\n    v8 = *((_BYTE *)a2 + 74);\n    v9 = *((_DWORD *)a2 + 30);\n    v14 = *((_BYTE *)a2 + 72);\n    v15 = v7;\n    v16 = v8;\n    if ( v9 && !*((_BYTE *)a2 + 126) )\n    {\n      v14 = -90;\n      v15 = -90;\n      v16 = -90;\n    }\n    (*(void (__fastcall **)(ColorChannelSprite *, char *))(*(_QWORD *)this + 960LL))(this, &v14);\n  }\n  else\n  {\n    (*(void (__fastcall **)(ColorChannelSprite *, __int64 *))(*(_QWORD *)this + 960LL))(this, &qword_116D740);\n    ColorChannelSprite::updateCopyLabel(this, nullptr, nullptr);\n    ColorChannelSprite::updateOpacity(this, 1.0, v11, v12);\n    ColorChannelSprite::updateBlending(this, 0, v13);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; ColorChannelSprite::updateValues from 0x9f8b4c to 0x9f8c58 (268 bytes)\n; \n; 6 xrefs:\n; > CustomizeObjectLayer::updateColorSprite @ 0x983768\n; > CustomizeObjectLayer::updateColorSprite @ 0x9837c0\n; > GJColorSetupLayer::updateSpriteColor @ 0x9f743c\n; > GJColorSetupLayer::updateSpriteColor @ 0x9f7464\n; > LevelSettingsLayer::updateColorSprite @ 0xb62a84\n; > <???> @ 0xf8098\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:59:15 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x9f8b4c\nMOV             X29, SP                                                ; +0x4, 0x9f8b50\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x9f8b54\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x9f8b58\nMOV             X19, X1                                                ; +0x10, 0x9f8b5c\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x14, 0x9f8b60\nMOV             X21, X0                                                ; +0x18, 0x9f8b64\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x9f8b68\nLDR             X1, [X1]                                               ; +0x20, 0x9f8b6c\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x24, 0x9f8b70\nCBZ             X19, loc_9F8C10                                        ; +0x28, 0x9f8b74\nLDRB            W2, [X19,#0x7E]; bool                                  ; +0x2c, 0x9f8b78\nLDR             W1, [X19,#0x78]; char *                                ; +0x30, 0x9f8b7c\nBL              _ZN18ColorChannelSprite15updateCopyLabelEib; ColorChannelSprite::updateCopyLabel(int,bool) ; +0x34, 0x9f8b80\nLDR             S0, [X19,#0x60]; float                                 ; +0x38, 0x9f8b84\nMOV             X0, X21; this                                          ; +0x3c, 0x9f8b88\nBL              _ZN18ColorChannelSprite13updateOpacityEf; ColorChannelSprite::updateOpacity(float) ; +0x40, 0x9f8b8c\nLDRB            W1, [X19,#0x54]; bool                                  ; +0x44, 0x9f8b90\nMOV             X0, X21; this                                          ; +0x48, 0x9f8b94\nBL              _ZN18ColorChannelSprite14updateBlendingEb; ColorChannelSprite::updateBlending(bool) ; +0x4c, 0x9f8b98\nLDRB            W2, [X19,#0x49]                                        ; +0x50, 0x9f8b9c\nLDRB            W1, [X19,#0x4A]                                        ; +0x54, 0x9f8ba0\nLDRB            W3, [X19,#0x48]                                        ; +0x58, 0x9f8ba4\nLDR             W0, [X19,#0x78]                                        ; +0x5c, 0x9f8ba8\nSTRB            W3, [X29,#0x40+var_10]                                 ; +0x60, 0x9f8bac\nSTRB            W2, [X29,#0x40+var_F]                                  ; +0x64, 0x9f8bb0\nSTRB            W1, [X29,#0x40+var_E]                                  ; +0x68, 0x9f8bb4\nCBNZ            W0, loc_9F8BF4                                         ; +0x6c, 0x9f8bb8\nLDR             X2, [X21]                                              ; +0x70, 0x9f8bbc\nMOV             X0, X21                                                ; +0x74, 0x9f8bc0\nADD             X1, X29, #0x40+var_10                                  ; +0x78, 0x9f8bc4\nLDR             X2, [X2,#0x3C0]                                        ; +0x7c, 0x9f8bc8\nBLR             X2                                                     ; +0x80, 0x9f8bcc\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x84, 0x9f8bd0\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x88, 0x9f8bd4\nLDR             X0, [X20]                                              ; +0x8c, 0x9f8bd8\nCMP             X1, X0                                                 ; +0x90, 0x9f8bdc\nB.NE            loc_9F8C54                                             ; +0x94, 0x9f8be0\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x98, 0x9f8be4\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x9c, 0x9f8be8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa0, 0x9f8bec\nRET                                                                    ; +0xa4, 0x9f8bf0\nLDRB            W0, [X19,#0x7E]                                        ; +0xa8, 0x9f8bf4\nCBNZ            W0, loc_9F8BBC                                         ; +0xac, 0x9f8bf8\nMOV             W0, #0xFFFFFFA6                                        ; +0xb0, 0x9f8bfc\nSTRB            W0, [X29,#0x40+var_10]                                 ; +0xb4, 0x9f8c00\nSTRB            W0, [X29,#0x40+var_F]                                  ; +0xb8, 0x9f8c04\nSTRB            W0, [X29,#0x40+var_E]                                  ; +0xbc, 0x9f8c08\nB               loc_9F8BBC                                             ; +0xc0, 0x9f8c0c\nLDR             X2, [X0]                                               ; +0xc4, 0x9f8c10\nADRL            X1, unk_116D738                                        ; +0xc8, 0x9f8c14\nADD             X1, X1, #(qword_116D740 - 0x116D738)                   ; +0xd0, 0x9f8c1c\nLDR             X2, [X2,#0x3C0]                                        ; +0xd4, 0x9f8c20\nBLR             X2                                                     ; +0xd8, 0x9f8c24\nMOV             X0, X21; this                                          ; +0xdc, 0x9f8c28\nMOV             W1, #0; char *                                         ; +0xe0, 0x9f8c2c\nMOV             W2, #0; bool                                           ; +0xe4, 0x9f8c30\nBL              _ZN18ColorChannelSprite15updateCopyLabelEib; ColorChannelSprite::updateCopyLabel(int,bool) ; +0xe8, 0x9f8c34\nMOV             X0, X21; this                                          ; +0xec, 0x9f8c38\nFMOV            S0, #1.0; float                                        ; +0xf0, 0x9f8c3c\nBL              _ZN18ColorChannelSprite13updateOpacityEf; ColorChannelSprite::updateOpacity(float) ; +0xf4, 0x9f8c40\nMOV             X0, X21; this                                          ; +0xf8, 0x9f8c44\nMOV             W1, #0; bool                                           ; +0xfc, 0x9f8c48\nBL              _ZN18ColorChannelSprite14updateBlendingEb; ColorChannelSprite::updateBlending(bool) ; +0x100, 0x9f8c4c\nB               loc_9F8BD0                                             ; +0x104, 0x9f8c50\nBL              .__stack_chk_fail                                      ; +0x108, 0x9f8c54", "xrefs": ["CustomizeObjectLayer::updateColorSprite @ 0x983768", "CustomizeObjectLayer::updateColorSprite @ 0x9837c0", "GJColorSetupLayer::updateSpriteColor @ 0x9f743c", "GJColorSetupLayer::updateSpriteColor @ 0x9f7464", "LevelSettingsLayer::updateColorSprite @ 0xb62a84", "<???> @ 0xf8098"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}