{"type": "func", "start": 5107110, "end": 5107202, "name": "ColorSelectPopup::onToggleTintMode", "pseudocode": "// \n// ColorSelectPopup::onToggleTintMode from 0x4deda6 to 0x4dee02 (92 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::onDefault @ 0x4df444\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\n_DWORD *__fastcall ColorSelectPopup::onToggleTintMode(_DWORD *this, cocos2d::CCObject *a2)\n{\n  _DWORD *v2; // r4\n  unsigned int v3; // r5\n  _BOOL4 v4; // r3\n  int v5; // r0\n  int v6; // r2\n\n  v2 = this;\n  v3 = *(this + 132);\n  v4 = *(this + 194) != 1;\n  *(this + 194) = v4;\n  if ( v3 )\n  {\n    *(_BYTE *)(v3 + 1307) = v4;\n  }\n  else if ( *(this + 133) )\n  {\n    while ( 1 )\n    {\n      this = (_DWORD *)cocos2d::CCArray::count((cocos2d::CCArray *)v2[133]);\n      if ( v3 >= (unsigned int)this )\n        break;\n      v5 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v2[133], v3++);\n      *(_BYTE *)(v5 + 1307) = v2[194] != 0;\n    }\n  }\n  else\n  {\n    v6 = *(this + 196);\n    if ( v6 )\n      *(_BYTE *)(v6 + 80) = v4;\n  }\n  return this;\n}", "assembly": "; \n; ColorSelectPopup::onToggleTintMode from 0x4deda6 to 0x4dee02 (92 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::onDefault @ 0x4df444\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            {R3-R5,LR}                                             ; +0x0, 0x4deda6\nMOV             R4, R0                                                 ; +0x2, 0x4deda8\nLDR.W           R3, [R0,#0x308]                                        ; +0x4, 0x4dedaa\nLDR.W           R5, [R0,#0x210]                                        ; +0x8, 0x4dedae\nADDS.W          R3, R3, #0xFFFFFFFF                                    ; +0xc, 0x4dedb2\nIT NE                                                                  ; +0x10, 0x4dedb6\nMOVNE           R3, #1                                                 ; +0x12, 0x4dedb8\nSTR.W           R3, [R0,#0x308]                                        ; +0x14, 0x4dedba\nCBZ             R5, loc_4DEDC6                                         ; +0x18, 0x4dedbe\nSTRB.W          R3, [R5,#0x51B]                                        ; +0x1a, 0x4dedc0\nPOP             {R3-R5,PC}                                             ; +0x1e, 0x4dedc4\nLDR.W           R2, [R0,#0x214]                                        ; +0x20, 0x4dedc6\nCBZ             R2, loc_4DEDF6                                         ; +0x24, 0x4dedca\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x26, 0x4dedcc\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2a, 0x4dedd0\nCMP             R5, R0                                                 ; +0x2e, 0x4dedd4\nBCS             locret_4DEDF4                                          ; +0x30, 0x4dedd6\nMOV             R1, R5; unsigned int                                   ; +0x32, 0x4dedd8\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x34, 0x4dedda\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x4dedde\nLDR.W           R3, [R4,#0x308]                                        ; +0x3c, 0x4dede2\nADDS            R5, #1                                                 ; +0x40, 0x4dede6\nADDS            R3, #0                                                 ; +0x42, 0x4dede8\nIT NE                                                                  ; +0x44, 0x4dedea\nMOVNE           R3, #1                                                 ; +0x46, 0x4dedec\nSTRB.W          R3, [R0,#0x51B]                                        ; +0x48, 0x4dedee\nB               loc_4DEDCC                                             ; +0x4c, 0x4dedf2\nPOP             {R3-R5,PC}                                             ; +0x4e, 0x4dedf4\nLDR.W           R2, [R0,#0x310]                                        ; +0x50, 0x4dedf6\nCBZ             R2, locret_4DEE00                                      ; +0x54, 0x4dedfa\nSTRB.W          R3, [R2,#0x50]                                         ; +0x56, 0x4dedfc\nPOP             {R3-R5,PC}                                             ; +0x5a, 0x4dee00", "xrefs": ["ColorSelectPopup::onDefault @ 0x4df444"], "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"}