{"type": "func", "start": 4040160, "end": 4040348, "name": "ColorSelectPopup::updateHSVMode", "pseudocode": "// \n// ColorSelectPopup::updateHSVMode from 0x3da5e0 to 0x3da69c (188 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::init @ 0x3dc3b4\n// > ColorSelectPopup::onToggleHSVMode @ 0x3dc72e\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 ColorSelectPopup::updateHSVMode(ColorSelectPopup *a1)\n{\n  unsigned int i; // r5\n  int v3; // r0\n  unsigned int j; // r5\n  int v5; // r0\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_colorObjects); ++i )\n  {\n    v3 = cocos2d::CCArray::objectAtIndex(a1->m_colorObjects, i);\n    (*(void (__fastcall **)(int, bool))(*(_DWORD *)v3 + 164))(v3, !a1->m_showCopyObjects);\n  }\n  for ( j = 0; j < cocos2d::CCArray::count(a1->m_copyObjects); ++j )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(a1->m_copyObjects, j);\n    (*(void (__fastcall **)(int, bool))(*(_DWORD *)v5 + 164))(v5, a1->m_showCopyObjects);\n  }\n  a1->m_copyColorInput->setTouchEnabled(a1->m_copyColorInput, a1->m_showCopyObjects);\n  a1->m_rInput->setTouchEnabled(a1->m_rInput, !a1->m_showCopyObjects);\n  a1->m_gInput->setTouchEnabled(a1->m_gInput, !a1->m_showCopyObjects);\n  a1->m_bInput->setTouchEnabled(a1->m_bInput, !a1->m_showCopyObjects);\n  a1->m_hexInput->setTouchEnabled(a1->m_hexInput, !a1->m_showCopyObjects);\n}", "assembly": "; \n; ColorSelectPopup::updateHSVMode from 0x3da5e0 to 0x3da69c (188 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::init @ 0x3dc3b4\n; > ColorSelectPopup::onToggleHSVMode @ 0x3dc72e\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-R6,LR}                                             ; +0x0, 0x3da5e0\nMOV             R4, R0                                                 ; +0x2, 0x3da5e2\nMOVS            R5, #0                                                 ; +0x4, 0x3da5e4\nLDR.W           R0, [R4,#0x324]; this                                  ; +0x6, 0x3da5e6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xa, 0x3da5ea\nCMP             R5, R0                                                 ; +0xe, 0x3da5ee\nBCS             loc_3DA610                                             ; +0x10, 0x3da5f0\nMOV             R1, R5; unsigned int                                   ; +0x12, 0x3da5f2\nLDR.W           R0, [R4,#0x324]; this                                  ; +0x14, 0x3da5f4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x18, 0x3da5f8\nLDRB.W          R1, [R4,#0x33C]                                        ; +0x1c, 0x3da5fc\nADDS            R5, #1                                                 ; +0x20, 0x3da600\nEOR.W           R1, R1, #1                                             ; +0x22, 0x3da602\nLDR             R3, [R0]                                               ; +0x26, 0x3da606\nLDR.W           R3, [R3,#0xA4]                                         ; +0x28, 0x3da608\nBLX             R3                                                     ; +0x2c, 0x3da60c\nB               loc_3DA5E6                                             ; +0x2e, 0x3da60e\nMOVS            R5, #0                                                 ; +0x30, 0x3da610\nLDR.W           R0, [R4,#0x328]; this                                  ; +0x32, 0x3da612\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x36, 0x3da616\nCMP             R5, R0                                                 ; +0x3a, 0x3da61a\nBCS             loc_3DA638                                             ; +0x3c, 0x3da61c\nMOV             R1, R5; unsigned int                                   ; +0x3e, 0x3da61e\nLDR.W           R0, [R4,#0x328]; this                                  ; +0x40, 0x3da620\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x3da624\nLDRB.W          R1, [R4,#0x33C]                                        ; +0x48, 0x3da628\nADDS            R5, #1                                                 ; +0x4c, 0x3da62c\nLDR             R3, [R0]                                               ; +0x4e, 0x3da62e\nLDR.W           R3, [R3,#0xA4]                                         ; +0x50, 0x3da630\nBLX             R3                                                     ; +0x54, 0x3da634\nB               loc_3DA612                                             ; +0x56, 0x3da636\nLDR.W           R0, [R4,#0x32C]                                        ; +0x58, 0x3da638\nLDRB.W          R1, [R4,#0x33C]                                        ; +0x5c, 0x3da63c\nLDR             R3, [R0]                                               ; +0x60, 0x3da640\nLDR.W           R3, [R3,#0x1EC]                                        ; +0x62, 0x3da642\nBLX             R3                                                     ; +0x66, 0x3da646\nLDR.W           R0, [R4,#0x340]                                        ; +0x68, 0x3da648\nLDRB.W          R1, [R4,#0x33C]                                        ; +0x6c, 0x3da64c\nLDR             R3, [R0]                                               ; +0x70, 0x3da650\nEOR.W           R1, R1, #1                                             ; +0x72, 0x3da652\nLDR.W           R3, [R3,#0x1EC]                                        ; +0x76, 0x3da656\nBLX             R3                                                     ; +0x7a, 0x3da65a\nLDR.W           R0, [R4,#0x344]                                        ; +0x7c, 0x3da65c\nLDRB.W          R1, [R4,#0x33C]                                        ; +0x80, 0x3da660\nLDR             R3, [R0]                                               ; +0x84, 0x3da664\nEOR.W           R1, R1, #1                                             ; +0x86, 0x3da666\nLDR.W           R3, [R3,#0x1EC]                                        ; +0x8a, 0x3da66a\nBLX             R3                                                     ; +0x8e, 0x3da66e\nLDR.W           R0, [R4,#0x348]                                        ; +0x90, 0x3da670\nLDRB.W          R1, [R4,#0x33C]                                        ; +0x94, 0x3da674\nLDR             R3, [R0]                                               ; +0x98, 0x3da678\nEOR.W           R1, R1, #1                                             ; +0x9a, 0x3da67a\nLDR.W           R3, [R3,#0x1EC]                                        ; +0x9e, 0x3da67e\nBLX             R3                                                     ; +0xa2, 0x3da682\nLDR.W           R0, [R4,#0x34C]                                        ; +0xa4, 0x3da684\nLDRB.W          R1, [R4,#0x33C]                                        ; +0xa8, 0x3da688\nPOP.W           {R4-R6,LR}                                             ; +0xac, 0x3da68c\nEOR.W           R1, R1, #1                                             ; +0xb0, 0x3da690\nLDR             R3, [R0]                                               ; +0xb4, 0x3da694\nLDR.W           R3, [R3,#0x1EC]                                        ; +0xb6, 0x3da696\nBX              R3                                                     ; +0xba, 0x3da69a", "xrefs": ["ColorSelectPopup::init @ 0x3dc3b4", "ColorSelectPopup::onToggleHSVMode @ 0x3dc72e"], "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"}