{"type": "func", "start": 4038240, "end": 4038332, "name": "ColorSelectPopup::onToggleTintMode", "pseudocode": "// \n// ColorSelectPopup::onToggleTintMode from 0x3d9e60 to 0x3d9ebc (92 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::onDefault @ 0x3da2e4\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::onToggleTintMode(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  EffectGameObject *m_gameObject; // r5\n  _BOOL4 v4; // r3\n  int v5; // r0\n  ColorAction *m_colorAction; // r2\n\n  m_gameObject = a1->m_gameObject;\n  v4 = a1->m_blending != 1;\n  a1->m_blending = v4;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_usesBlending = v4;\n  }\n  else if ( a1->m_gameObjects )\n  {\n    while ( (unsigned int)m_gameObject < cocos2d::CCArray::count(a1->m_gameObjects) )\n    {\n      v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)m_gameObject);\n      m_gameObject = (EffectGameObject *)((char *)m_gameObject + 1);\n      *(_BYTE *)(v5 + 1299) = a1->m_blending != 0;\n    }\n  }\n  else\n  {\n    m_colorAction = a1->m_colorAction;\n    if ( m_colorAction )\n      m_colorAction->m_blending = v4;\n  }\n}", "assembly": "; \n; ColorSelectPopup::onToggleTintMode from 0x3d9e60 to 0x3d9ebc (92 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::onDefault @ 0x3da2e4\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            {R3-R5,LR}                                             ; +0x0, 0x3d9e60\nMOV             R4, R0                                                 ; +0x2, 0x3d9e62\nLDR.W           R3, [R0,#0x2E8]                                        ; +0x4, 0x3d9e64\nLDR.W           R5, [R0,#0x1FC]                                        ; +0x8, 0x3d9e68\nADDS.W          R3, R3, #0xFFFFFFFF                                    ; +0xc, 0x3d9e6c\nIT NE                                                                  ; +0x10, 0x3d9e70\nMOVNE           R3, #1                                                 ; +0x12, 0x3d9e72\nSTR.W           R3, [R0,#0x2E8]                                        ; +0x14, 0x3d9e74\nCBZ             R5, loc_3D9E80                                         ; +0x18, 0x3d9e78\nSTRB.W          R3, [R5,#0x513]                                        ; +0x1a, 0x3d9e7a\nPOP             {R3-R5,PC}                                             ; +0x1e, 0x3d9e7e\nLDR.W           R2, [R0,#0x200]                                        ; +0x20, 0x3d9e80\nCBZ             R2, loc_3D9EB0                                         ; +0x24, 0x3d9e84\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x26, 0x3d9e86\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2a, 0x3d9e8a\nCMP             R5, R0                                                 ; +0x2e, 0x3d9e8e\nBCS             locret_3D9EAE                                          ; +0x30, 0x3d9e90\nMOV             R1, R5; unsigned int                                   ; +0x32, 0x3d9e92\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x34, 0x3d9e94\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x3d9e98\nLDR.W           R3, [R4,#0x2E8]                                        ; +0x3c, 0x3d9e9c\nADDS            R5, #1                                                 ; +0x40, 0x3d9ea0\nADDS            R3, #0                                                 ; +0x42, 0x3d9ea2\nIT NE                                                                  ; +0x44, 0x3d9ea4\nMOVNE           R3, #1                                                 ; +0x46, 0x3d9ea6\nSTRB.W          R3, [R0,#0x513]                                        ; +0x48, 0x3d9ea8\nB               loc_3D9E86                                             ; +0x4c, 0x3d9eac\nPOP             {R3-R5,PC}                                             ; +0x4e, 0x3d9eae\nLDR.W           R2, [R0,#0x2F0]                                        ; +0x50, 0x3d9eb0\nCBZ             R2, locret_3D9EBA                                      ; +0x54, 0x3d9eb4\nSTRB.W          R3, [R2,#0x50]                                         ; +0x56, 0x3d9eb6\nPOP             {R3-R5,PC}                                             ; +0x5a, 0x3d9eba", "xrefs": ["ColorSelectPopup::onDefault @ 0x3da2e4"], "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"}