{"type": "func", "start": 7585260, "end": 7585412, "name": "ColorSelectPopup::onToggleTintMode", "pseudocode": "// \n// ColorSelectPopup::onToggleTintMode from 0x73bdec to 0x73be84 (152 bytes)\n// \n// 4 xrefs:\n// > ColorSelectPopup::onDefault @ 0x73c4f4\n// > <???> @ 0xa52a0\n// > ColorSelectPopup::init @ 0x73ed60\n// > <???> @ 0x122db70\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; // x1\n  _BOOL4 v3; // w2\n  cocos2d::CCArray *m_gameObjects; // x1\n  unsigned int v6; // w20\n  __int64 v7; // x0\n  bool v8; // cf\n  unsigned int v9; // w1\n  ColorAction *m_colorAction; // x0\n\n  m_gameObject = a1->m_gameObject;\n  v3 = a1->m_blending != 1;\n  a1->m_blending = v3;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_usesBlending = v3;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v6 = 0;\n      while ( 1 )\n      {\n        v8 = v6 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);\n        v9 = v6++;\n        if ( v8 )\n          break;\n        v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v9);\n        m_gameObjects = a1->m_gameObjects;\n        *(_BYTE *)(v7 + 1471) = a1->m_blending != 0;\n      }\n    }\n    else\n    {\n      m_colorAction = a1->m_colorAction;\n      if ( m_colorAction )\n        m_colorAction->m_blending = v3;\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::onToggleTintMode from 0x73bdec to 0x73be84 (152 bytes)\n; \n; 4 xrefs:\n; > ColorSelectPopup::onDefault @ 0x73c4f4\n; > <???> @ 0xa52a0\n; > ColorSelectPopup::init @ 0x73ed60\n; > <???> @ 0x122db70\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x73bdec\nMOV             X29, SP                                                ; +0x4, 0x73bdf0\nLDR             W2, [X0,#0x440]                                        ; +0x8, 0x73bdf4\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x73bdf8\nCMP             W2, #1                                                 ; +0x10, 0x73bdfc\nLDR             X1, [X0,#0x290]                                        ; +0x14, 0x73be00\nCSET            W2, NE                                                 ; +0x18, 0x73be04\nSTR             W2, [X0,#0x440]                                        ; +0x1c, 0x73be08\nCBZ             X1, loc_73BE20                                         ; +0x20, 0x73be0c\nSTRB            W2, [X1,#0x5BF]                                        ; +0x24, 0x73be10\nLDP             X19, X20, [SP,#var_s10]                                ; +0x28, 0x73be14\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x2c, 0x73be18\nRET                                                                    ; +0x30, 0x73be1c\nLDR             X1, [X0,#0x298]                                        ; +0x34, 0x73be20\nCBZ             X1, loc_73BE74                                         ; +0x38, 0x73be24\nMOV             X19, X0                                                ; +0x3c, 0x73be28\nMOV             W20, #0                                                ; +0x40, 0x73be2c\nB               loc_73BE50                                             ; +0x44, 0x73be30\nLDR             X0, [X19,#0x298]; this                                 ; +0x48, 0x73be34\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0x73be38\nLDR             W2, [X19,#0x440]                                       ; +0x50, 0x73be3c\nLDR             X1, [X19,#0x298]                                       ; +0x54, 0x73be40\nCMP             W2, WZR                                                ; +0x58, 0x73be44\nCSET            W2, NE                                                 ; +0x5c, 0x73be48\nSTRB            W2, [X0,#0x5BF]                                        ; +0x60, 0x73be4c\nMOV             X0, X1; this                                           ; +0x64, 0x73be50\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x68, 0x73be54\nCMP             W20, W0                                                ; +0x6c, 0x73be58\nMOV             W1, W20; unsigned int                                  ; +0x70, 0x73be5c\nADD             W20, W20, #1                                           ; +0x74, 0x73be60\nB.CC            loc_73BE34                                             ; +0x78, 0x73be64\nLDP             X19, X20, [SP,#var_s10]                                ; +0x7c, 0x73be68\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x80, 0x73be6c\nRET                                                                    ; +0x84, 0x73be70\nLDR             X0, [X0,#0x448]                                        ; +0x88, 0x73be74\nCBZ             X0, loc_73BE14                                         ; +0x8c, 0x73be78\nSTRB            W2, [X0,#0x54]                                         ; +0x90, 0x73be7c\nB               loc_73BE14                                             ; +0x94, 0x73be80", "xrefs": ["ColorSelectPopup::onDefault @ 0x73c4f4", "<???> @ 0xa52a0", "ColorSelectPopup::init @ 0x73ed60", "<???> @ 0x122db70"], "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"}