{"type": "func", "start": 6038640, "end": 6038816, "name": "ColorChannelSprite::updateValues", "pseudocode": "// \n// ColorChannelSprite::updateValues from 0x5c2470 to 0x5c2520 (176 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::updateColorSprite @ 0x57e784\n// > GJColorSetupLayer::updateSpriteColor @ 0x5c16de\n// > LevelSettingsLayer::updateColorSprite @ 0x6a95f4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:53:50 +0000\n// \n\nint __fastcall ColorChannelSprite::updateValues(ColorChannelSprite *this, ColorAction *a2)\n{\n  char v4; // r1\n  char v5; // r2\n  int v6; // r3\n  _DWORD v8[2]; // [sp+0h] [bp-8h] BYREF\n\n  v8[0] = this;\n  v8[1] = a2;\n  if ( a2 )\n  {\n    ColorChannelSprite::updateCopyLabel((int)this, *((GJSpecialColorSelect **)a2 + 29), *((unsigned __int8 *)a2 + 122));\n    ColorChannelSprite::updateOpacity((int)this, *((const char **)a2 + 23));\n    ColorChannelSprite::updateBlending((int)this, *((unsigned __int8 *)a2 + 80));\n    v4 = *((_BYTE *)a2 + 68);\n    v5 = *((_BYTE *)a2 + 69);\n    BYTE2(v8[0]) = *((_BYTE *)a2 + 70);\n    v6 = *((_DWORD *)a2 + 29);\n    LOBYTE(v8[0]) = v4;\n    BYTE1(v8[0]) = v5;\n    if ( v6 )\n    {\n      if ( !*((_BYTE *)a2 + 122) )\n      {\n        LOWORD(v8[0]) = -22874;\n        BYTE2(v8[0]) = -90;\n      }\n    }\n    return (*(int (__fastcall **)(ColorChannelSprite *, _DWORD *))(*(_DWORD *)this + 480))(this, v8);\n  }\n  else\n  {\n    (*(void (__fastcall **)(ColorChannelSprite *, __int16 *))(*(_DWORD *)this + 480))(this, &word_BEE137);\n    ColorChannelSprite::updateCopyLabel((int)this, nullptr, 0);\n    ColorChannelSprite::updateOpacity((int)this, (const char *)0x3F800000);\n    return ColorChannelSprite::updateBlending((int)this, 0);\n  }\n}", "assembly": "; \n; ColorChannelSprite::updateValues from 0x5c2470 to 0x5c2520 (176 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::updateColorSprite @ 0x57e784\n; > GJColorSetupLayer::updateSpriteColor @ 0x5c16de\n; > LevelSettingsLayer::updateColorSprite @ 0x6a95f4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:53:50 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x5C2478)                ; +0x0, 0x5c2470\nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x2, 0x5c2472\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x5c2474\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x5c2476\nMOV             R5, R0                                                 ; +0x8, 0x5c2478\nMOV             R4, R1                                                 ; +0xa, 0x5c247a\nLDR             R2, [R3]                                               ; +0xc, 0x5c247c\nMOV             R6, R3                                                 ; +0xe, 0x5c247e\nSTR             R2, [SP,#8+var_4]                                      ; +0x10, 0x5c2480\nCBZ             R1, loc_5C24D0                                         ; +0x12, 0x5c2482\nLDRB.W          R2, [R4,#0x7A]; bool                                   ; +0x14, 0x5c2484\nLDR             R1, [R1,#0x74]; GJSpecialColorSelect *                 ; +0x18, 0x5c2488\nBL              _ZN18ColorChannelSprite15updateCopyLabelEib; ColorChannelSprite::updateCopyLabel(int,bool) ; +0x1a, 0x5c248a\nMOV             R0, R5; this                                           ; +0x1e, 0x5c248e\nLDR             R1, [R4,#0x5C]; float                                  ; +0x20, 0x5c2490\nBL              _ZN18ColorChannelSprite13updateOpacityEf; ColorChannelSprite::updateOpacity(float) ; +0x22, 0x5c2492\nLDRB.W          R1, [R4,#0x50]; bool                                   ; +0x26, 0x5c2496\nMOV             R0, R5; this                                           ; +0x2a, 0x5c249a\nBL              _ZN18ColorChannelSprite14updateBlendingEb; ColorChannelSprite::updateBlending(bool) ; +0x2c, 0x5c249c\nLDRB.W          R3, [R4,#0x46]                                         ; +0x30, 0x5c24a0\nLDRB.W          R1, [R4,#0x44]                                         ; +0x34, 0x5c24a4\nLDRB.W          R2, [R4,#0x45]                                         ; +0x38, 0x5c24a8\nSTRB.W          R3, [SP,#8+var_6]                                      ; +0x3c, 0x5c24ac\nLDR             R3, [R4,#0x74]                                         ; +0x40, 0x5c24b0\nSTRB.W          R1, [SP,#8+var_8]                                      ; +0x42, 0x5c24b2\nMOV             R1, SP                                                 ; +0x46, 0x5c24b6\nSTRB.W          R2, [SP,#8+var_8+1]                                    ; +0x48, 0x5c24b8\nCBZ             R3, loc_5C24C4                                         ; +0x4c, 0x5c24bc\nLDRB.W          R3, [R4,#0x7A]                                         ; +0x4e, 0x5c24be\nCBZ             R3, loc_5C24FC                                         ; +0x52, 0x5c24c2\nLDR             R3, [R5]                                               ; +0x54, 0x5c24c4\nMOV             R0, R5                                                 ; +0x56, 0x5c24c6\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x58, 0x5c24c8\nBLX             R3                                                     ; +0x5c, 0x5c24cc\nB               loc_5C2510                                             ; +0x5e, 0x5c24ce\nLDR             R3, [R0]                                               ; +0x60, 0x5c24d0\nLDR             R1, =(unk_BEE134 - 0x5C24D8)                           ; +0x62, 0x5c24d2\nADD             R1, PC; unk_BEE134                                     ; +0x64, 0x5c24d4\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x66, 0x5c24d6\nADDS            R1, #(word_BEE137 - 0xBEE134)                          ; +0x6a, 0x5c24da\nBLX             R3                                                     ; +0x6c, 0x5c24dc\nMOV             R0, R5; this                                           ; +0x6e, 0x5c24de\nMOV             R1, R4; GJSpecialColorSelect *                         ; +0x70, 0x5c24e0\nMOV             R2, R4; bool                                           ; +0x72, 0x5c24e2\nBL              _ZN18ColorChannelSprite15updateCopyLabelEib; ColorChannelSprite::updateCopyLabel(int,bool) ; +0x74, 0x5c24e4\nMOV             R0, R5; this                                           ; +0x78, 0x5c24e8\nMOV.W           R1, #0x3F800000; float                                 ; +0x7a, 0x5c24ea\nBL              _ZN18ColorChannelSprite13updateOpacityEf; ColorChannelSprite::updateOpacity(float) ; +0x7e, 0x5c24ee\nMOV             R0, R5; this                                           ; +0x82, 0x5c24f2\nMOV             R1, R4; bool                                           ; +0x84, 0x5c24f4\nBL              _ZN18ColorChannelSprite14updateBlendingEb; ColorChannelSprite::updateBlending(bool) ; +0x86, 0x5c24f6\nB               loc_5C2510                                             ; +0x8a, 0x5c24fa\nLDR             R3, =(unk_BEE134 - 0x5C2502)                           ; +0x8c, 0x5c24fc\nADD             R3, PC; unk_BEE134                                     ; +0x8e, 0x5c24fe\nLDRH.W          R2, [R3,#(word_BEE13A - 0xBEE134)]!                    ; +0x90, 0x5c2500\nLDRB            R3, [R3,#(byte_BEE13C - 0xBEE13A)]                     ; +0x94, 0x5c2504\nSTRH.W          R2, [SP,#8+var_8]                                      ; +0x96, 0x5c2506\nSTRB.W          R3, [SP,#8+var_6]                                      ; +0x9a, 0x5c250a\nB               loc_5C24C4                                             ; +0x9e, 0x5c250e\nLDR             R2, [SP,#8+var_4]                                      ; +0xa0, 0x5c2510\nLDR             R3, [R6]                                               ; +0xa2, 0x5c2512\nCMP             R2, R3                                                 ; +0xa4, 0x5c2514\nBEQ             loc_5C251C                                             ; +0xa6, 0x5c2516\nBLX             __stack_chk_fail                                       ; +0xa8, 0x5c2518\nADD             SP, SP, #8                                             ; +0xac, 0x5c251c\nPOP             {R4-R6,PC}                                             ; +0xae, 0x5c251e", "xrefs": ["CustomizeObjectLayer::updateColorSprite @ 0x57e784", "GJColorSetupLayer::updateSpriteColor @ 0x5c16de", "LevelSettingsLayer::updateColorSprite @ 0x6a95f4"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}