{"type": "func", "start": 5762616, "end": 5762712, "name": "CustomizeObjectLayer::onUpdateCustomColor", "pseudocode": "// \n// CustomizeObjectLayer::onUpdateCustomColor from 0x57ee38 to 0x57ee98 (96 bytes)\n// \n// 0 xrefs:\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:52:51 +0000\n// \n\nint __fastcall CustomizeObjectLayer::onUpdateCustomColor(CustomizeObjectLayer *this, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  int v4; // r3\n  int v5; // r3\n\n  *((_BYTE *)this + 654) = 1;\n  v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  v4 = *((_DWORD *)this + 141);\n  if ( v3 == 1 )\n    v5 = v4 + 1;\n  else\n    v5 = v4 - 1;\n  if ( v5 < 10 )\n    v5 = 10;\n  if ( v5 > 999 )\n    *((_DWORD *)this + 141) = 999;\n  else\n    *((_DWORD *)this + 141) = v5;\n  CustomizeObjectLayer::updateCustomColorLabels(this);\n  CustomizeObjectLayer::updateSelected(this, *((_DWORD *)this + 141));\n  *((_BYTE *)this + 654) = 0;\n  CustomizeObjectLayer::updateColorSprite((ColorChannelSprite **)this);\n  return CustomizeObjectLayer::updateChannelLabel(this, *((GJSpecialColorSelect **)this + 141));\n}", "assembly": "; \n; CustomizeObjectLayer::onUpdateCustomColor from 0x57ee38 to 0x57ee98 (96 bytes)\n; \n; 0 xrefs:\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:52:51 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x57ee38\nMOVS            R3, #1                                                 ; +0x2, 0x57ee3a\nSTRB.W          R3, [R0,#0x28E]                                        ; +0x4, 0x57ee3c\nMOV             R4, R0                                                 ; +0x8, 0x57ee40\nLDR             R3, [R1]                                               ; +0xa, 0x57ee42\nMOV             R0, R1                                                 ; +0xc, 0x57ee44\nLDR             R3, [R3,#0x20]                                         ; +0xe, 0x57ee46\nBLX             R3                                                     ; +0x10, 0x57ee48\nLDR.W           R3, [R4,#0x234]                                        ; +0x12, 0x57ee4a\nMOVW            R2, #0x3E7                                             ; +0x16, 0x57ee4e\nCMP             R0, #1                                                 ; +0x1a, 0x57ee52\nMOV             R0, R4; this                                           ; +0x1c, 0x57ee54\nITE EQ                                                                 ; +0x1e, 0x57ee56\nADDEQ           R3, #1                                                 ; +0x20, 0x57ee58\nADDNE.W         R3, R3, #0xFFFFFFFF                                    ; +0x22, 0x57ee5a\nCMP             R3, #0xA                                               ; +0x26, 0x57ee5e\nIT LT                                                                  ; +0x28, 0x57ee60\nMOVLT           R3, #0xA                                               ; +0x2a, 0x57ee62\nCMP             R3, R2                                                 ; +0x2c, 0x57ee64\nITE LE                                                                 ; +0x2e, 0x57ee66\nSTRLE.W         R3, [R4,#0x234]                                        ; +0x30, 0x57ee68\nSTRGT.W         R2, [R4,#0x234]                                        ; +0x34, 0x57ee6c\nBL              _ZN20CustomizeObjectLayer23updateCustomColorLabelsEv; CustomizeObjectLayer::updateCustomColorLabels(void) ; +0x38, 0x57ee70\nLDR.W           R1, [R4,#0x234]; int                                   ; +0x3c, 0x57ee74\nMOV             R0, R4; this                                           ; +0x40, 0x57ee78\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x42, 0x57ee7a\nMOV             R0, R4; this                                           ; +0x46, 0x57ee7e\nMOVS            R3, #0                                                 ; +0x48, 0x57ee80\nSTRB.W          R3, [R4,#0x28E]                                        ; +0x4a, 0x57ee82\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x4e, 0x57ee86\nMOV             R0, R4; this                                           ; +0x52, 0x57ee8a\nLDR.W           R1, [R4,#0x234]; GJSpecialColorSelect *                ; +0x54, 0x57ee8c\nPOP.W           {R4,LR}                                                ; +0x58, 0x57ee90\nB.W             _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x5c, 0x57ee94", "xrefs": [], "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"}