{"type": "func", "start": 4595364, "end": 4595460, "name": "CustomizeObjectLayer::onUpdateCustomColor", "pseudocode": "// \n// CustomizeObjectLayer::onUpdateCustomColor from 0x461ea4 to 0x461f04 (96 bytes)\n// \n// 0 xrefs:\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 CustomizeObjectLayer::onUpdateCustomColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  int m_customColorChannel; // r3\n  int v5; // r3\n\n  a1->m_disableTextDelegate = 1;\n  v3 = a2->getTag(a2);\n  m_customColorChannel = a1->m_customColorChannel;\n  if ( v3 == 1 )\n    v5 = m_customColorChannel + 1;\n  else\n    v5 = m_customColorChannel - 1;\n  if ( v5 < 10 )\n    v5 = 10;\n  if ( v5 > 999 )\n    a1->m_customColorChannel = 999;\n  else\n    a1->m_customColorChannel = v5;\n  CustomizeObjectLayer::updateCustomColorLabels(a1);\n  CustomizeObjectLayer::updateSelected(a1, a1->m_customColorChannel);\n  a1->m_disableTextDelegate = 0;\n  CustomizeObjectLayer::updateColorSprite(a1);\n  CustomizeObjectLayer::updateChannelLabel(a1, a1->m_customColorChannel);\n}", "assembly": "; \n; CustomizeObjectLayer::onUpdateCustomColor from 0x461ea4 to 0x461f04 (96 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R4,LR}                                                ; +0x0, 0x461ea4\nMOVS            R3, #1                                                 ; +0x2, 0x461ea6\nSTRB.W          R3, [R0,#0x27A]                                        ; +0x4, 0x461ea8\nMOV             R4, R0                                                 ; +0x8, 0x461eac\nLDR             R3, [R1]                                               ; +0xa, 0x461eae\nMOV             R0, R1                                                 ; +0xc, 0x461eb0\nLDR             R3, [R3,#0x20]                                         ; +0xe, 0x461eb2\nBLX             R3                                                     ; +0x10, 0x461eb4\nLDR.W           R3, [R4,#0x220]                                        ; +0x12, 0x461eb6\nMOVW            R2, #0x3E7                                             ; +0x16, 0x461eba\nCMP             R0, #1                                                 ; +0x1a, 0x461ebe\nMOV             R0, R4; this                                           ; +0x1c, 0x461ec0\nITE EQ                                                                 ; +0x1e, 0x461ec2\nADDEQ           R3, #1                                                 ; +0x20, 0x461ec4\nADDNE.W         R3, R3, #0xFFFFFFFF                                    ; +0x22, 0x461ec6\nCMP             R3, #0xA                                               ; +0x26, 0x461eca\nIT LT                                                                  ; +0x28, 0x461ecc\nMOVLT           R3, #0xA                                               ; +0x2a, 0x461ece\nCMP             R3, R2                                                 ; +0x2c, 0x461ed0\nITE LE                                                                 ; +0x2e, 0x461ed2\nSTRLE.W         R3, [R4,#0x220]                                        ; +0x30, 0x461ed4\nSTRGT.W         R2, [R4,#0x220]                                        ; +0x34, 0x461ed8\nBL              _ZN20CustomizeObjectLayer23updateCustomColorLabelsEv; CustomizeObjectLayer::updateCustomColorLabels(void) ; +0x38, 0x461edc\nLDR.W           R1, [R4,#0x220]; int                                   ; +0x3c, 0x461ee0\nMOV             R0, R4; this                                           ; +0x40, 0x461ee4\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x42, 0x461ee6\nMOV             R0, R4; this                                           ; +0x46, 0x461eea\nMOVS            R3, #0                                                 ; +0x48, 0x461eec\nSTRB.W          R3, [R4,#0x27A]                                        ; +0x4a, 0x461eee\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x4e, 0x461ef2\nMOV             R0, R4; this                                           ; +0x52, 0x461ef6\nLDR.W           R1, [R4,#0x220]; GJSpecialColorSelect *                ; +0x54, 0x461ef8\nPOP.W           {R4,LR}                                                ; +0x58, 0x461efc\nB.W             _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x5c, 0x461f00", "xrefs": [], "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"}