{"type": "func", "start": 5107988, "end": 5108176, "name": "ColorSelectPopup::updateHSVMode", "pseudocode": "// \n// ColorSelectPopup::updateHSVMode from 0x4df114 to 0x4df1d0 (188 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::onToggleHSVMode @ 0x4dfa9c\n// > ColorSelectPopup::init @ 0x4e167c\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:50:59 +0000\n// \n\nint __fastcall ColorSelectPopup::updateHSVMode(cocos2d::CCArray **this)\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(*(this + 209)); ++i )\n  {\n    v3 = cocos2d::CCArray::objectAtIndex(*(this + 209), i);\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 172))(v3, *((unsigned __int8 *)this + 860) ^ 1);\n  }\n  for ( j = 0; j < cocos2d::CCArray::count(*(this + 210)); ++j )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(*(this + 210), j);\n    (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 172))(v5, *((unsigned __int8 *)this + 860));\n  }\n  (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 211) + 500))(\n    *(this + 211),\n    *((unsigned __int8 *)this + 860));\n  (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 216) + 500))(\n    *(this + 216),\n    *((unsigned __int8 *)this + 860) ^ 1);\n  (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 217) + 500))(\n    *(this + 217),\n    *((unsigned __int8 *)this + 860) ^ 1);\n  (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 218) + 500))(\n    *(this + 218),\n    *((unsigned __int8 *)this + 860) ^ 1);\n  return (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 219) + 500))(\n           *(this + 219),\n           *((unsigned __int8 *)this + 860) ^ 1);\n}", "assembly": "; \n; ColorSelectPopup::updateHSVMode from 0x4df114 to 0x4df1d0 (188 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::onToggleHSVMode @ 0x4dfa9c\n; > ColorSelectPopup::init @ 0x4e167c\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:50:59 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x4df114\nMOV             R4, R0                                                 ; +0x2, 0x4df116\nMOVS            R5, #0                                                 ; +0x4, 0x4df118\nLDR.W           R0, [R4,#0x344]; this                                  ; +0x6, 0x4df11a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xa, 0x4df11e\nCMP             R5, R0                                                 ; +0xe, 0x4df122\nBCS             loc_4DF144                                             ; +0x10, 0x4df124\nMOV             R1, R5; unsigned int                                   ; +0x12, 0x4df126\nLDR.W           R0, [R4,#0x344]; this                                  ; +0x14, 0x4df128\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x18, 0x4df12c\nLDRB.W          R1, [R4,#0x35C]                                        ; +0x1c, 0x4df130\nADDS            R5, #1                                                 ; +0x20, 0x4df134\nEOR.W           R1, R1, #1                                             ; +0x22, 0x4df136\nLDR             R3, [R0]                                               ; +0x26, 0x4df13a\nLDR.W           R3, [R3,#0xAC]                                         ; +0x28, 0x4df13c\nBLX             R3                                                     ; +0x2c, 0x4df140\nB               loc_4DF11A                                             ; +0x2e, 0x4df142\nMOVS            R5, #0                                                 ; +0x30, 0x4df144\nLDR.W           R0, [R4,#0x348]; this                                  ; +0x32, 0x4df146\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x36, 0x4df14a\nCMP             R5, R0                                                 ; +0x3a, 0x4df14e\nBCS             loc_4DF16C                                             ; +0x3c, 0x4df150\nMOV             R1, R5; unsigned int                                   ; +0x3e, 0x4df152\nLDR.W           R0, [R4,#0x348]; this                                  ; +0x40, 0x4df154\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x4df158\nLDRB.W          R1, [R4,#0x35C]                                        ; +0x48, 0x4df15c\nADDS            R5, #1                                                 ; +0x4c, 0x4df160\nLDR             R3, [R0]                                               ; +0x4e, 0x4df162\nLDR.W           R3, [R3,#0xAC]                                         ; +0x50, 0x4df164\nBLX             R3                                                     ; +0x54, 0x4df168\nB               loc_4DF146                                             ; +0x56, 0x4df16a\nLDR.W           R0, [R4,#0x34C]                                        ; +0x58, 0x4df16c\nLDRB.W          R1, [R4,#0x35C]                                        ; +0x5c, 0x4df170\nLDR             R3, [R0]                                               ; +0x60, 0x4df174\nLDR.W           R3, [R3,#0x1F4]                                        ; +0x62, 0x4df176\nBLX             R3                                                     ; +0x66, 0x4df17a\nLDR.W           R0, [R4,#0x360]                                        ; +0x68, 0x4df17c\nLDRB.W          R1, [R4,#0x35C]                                        ; +0x6c, 0x4df180\nLDR             R3, [R0]                                               ; +0x70, 0x4df184\nEOR.W           R1, R1, #1                                             ; +0x72, 0x4df186\nLDR.W           R3, [R3,#0x1F4]                                        ; +0x76, 0x4df18a\nBLX             R3                                                     ; +0x7a, 0x4df18e\nLDR.W           R0, [R4,#0x364]                                        ; +0x7c, 0x4df190\nLDRB.W          R1, [R4,#0x35C]                                        ; +0x80, 0x4df194\nLDR             R3, [R0]                                               ; +0x84, 0x4df198\nEOR.W           R1, R1, #1                                             ; +0x86, 0x4df19a\nLDR.W           R3, [R3,#0x1F4]                                        ; +0x8a, 0x4df19e\nBLX             R3                                                     ; +0x8e, 0x4df1a2\nLDR.W           R0, [R4,#0x368]                                        ; +0x90, 0x4df1a4\nLDRB.W          R1, [R4,#0x35C]                                        ; +0x94, 0x4df1a8\nLDR             R3, [R0]                                               ; +0x98, 0x4df1ac\nEOR.W           R1, R1, #1                                             ; +0x9a, 0x4df1ae\nLDR.W           R3, [R3,#0x1F4]                                        ; +0x9e, 0x4df1b2\nBLX             R3                                                     ; +0xa2, 0x4df1b6\nLDR.W           R0, [R4,#0x36C]                                        ; +0xa4, 0x4df1b8\nLDRB.W          R1, [R4,#0x35C]                                        ; +0xa8, 0x4df1bc\nPOP.W           {R4-R6,LR}                                             ; +0xac, 0x4df1c0\nEOR.W           R1, R1, #1                                             ; +0xb0, 0x4df1c4\nLDR             R3, [R0]                                               ; +0xb4, 0x4df1c8\nLDR.W           R3, [R3,#0x1F4]                                        ; +0xb6, 0x4df1ca\nBX              R3                                                     ; +0xba, 0x4df1ce", "xrefs": ["ColorSelectPopup::onToggleHSVMode @ 0x4dfa9c", "ColorSelectPopup::init @ 0x4e167c"], "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"}