{"type": "func", "start": 5372971024, "end": 5372971194, "name": "SetupAreaTintTriggerPopup::onClose", "pseudocode": "// \n// SetupAreaTintTriggerPopup::onClose from 0x140410810 to 0x1404108ba (170 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1405dd220\n// > <???> @ 0x1405de1c0\n// > <???> @ 0x14069f5e8\n// > <???> @ 0x14069f5f8\n// > <???> @ 0x1406d8c90\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 SetupAreaTintTriggerPopup::onClose(SetupAreaTintTriggerPopup *a1, cocos2d::CCObject *a2)\n{\n  EffectGameObject *m_gameObject; // rax\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v6; // edi\n  struct cocos2d::CCObject *v7; // rax\n\n  if ( a1->m_hsvChanged )\n  {\n    m_gameObject = a1->m_gameObject;\n    if ( m_gameObject )\n    {\n      m_gameObject->m_hsvValue = a1->m_hsvValue;\n    }\n    else\n    {\n      m_gameObjects = a1->m_gameObjects;\n      if ( m_gameObjects )\n      {\n        v6 = 0;\n        if ( cocos2d::CCArray::count(m_gameObjects) )\n        {\n          do\n          {\n            v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v6++);\n            *(cocos2d::ccHSVValue *)((char *)&v7[29].__vftable + 4) = a1->m_hsvValue;\n          }\n          while ( v6 < cocos2d::CCArray::count(a1->m_gameObjects) );\n        }\n      }\n    }\n  }\n  SetupTriggerPopup::onClose(a1, a2);\n}", "assembly": "; \n; SetupAreaTintTriggerPopup::onClose from 0x140410810 to 0x1404108ba (170 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1405dd220\n; > <???> @ 0x1405de1c0\n; > <???> @ 0x14069f5e8\n; > <???> @ 0x14069f5f8\n; > <???> @ 0x1406d8c90\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140410810\npush    rsi                                                            ; +0x5, 0x140410815\nsub     rsp, 20h                                                       ; +0x6, 0x140410816\ncmp     byte ptr [rcx+3D8h], 0                                         ; +0xa, 0x14041081a\nmov     rsi, rdx                                                       ; +0x11, 0x140410821\nmov     rbx, rcx                                                       ; +0x14, 0x140410824\njz      short loc_1404108A5                                            ; +0x17, 0x140410827\nmov     rax, [rcx+290h]                                                ; +0x19, 0x140410829\ntest    rax, rax                                                       ; +0x20, 0x140410830\njz      short loc_140410845                                            ; +0x23, 0x140410833\nmovups  xmm0, xmmword ptr [rcx+3C8h]                                   ; +0x25, 0x140410835\nmovups  xmmword ptr [rax+65Ch], xmm0                                   ; +0x2c, 0x14041083c\njmp     short loc_1404108A5                                            ; +0x33, 0x140410843\nmov     rcx, [rcx+298h]                                                ; +0x35, 0x140410845\ntest    rcx, rcx                                                       ; +0x3c, 0x14041084c\njz      short loc_1404108A5                                            ; +0x3f, 0x14041084f\nmov     [rsp+28h+arg_0], rdi                                           ; +0x41, 0x140410851\nxor     edi, edi                                                       ; +0x46, 0x140410856\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x48, 0x140410858\ntest    eax, eax                                                       ; +0x4e, 0x14041085e\njz      short loc_1404108A0                                            ; +0x50, 0x140410860\nnop     dword ptr [rax+00h]                                            ; +0x52, 0x140410862\nnop     word ptr [rax+rax+00000000h]                                   ; +0x56, 0x140410866\nmov     rcx, [rbx+298h]                                                ; +0x60, 0x140410870\nmov     edx, edi                                                       ; +0x67, 0x140410877\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x140410879\nmovups  xmm0, xmmword ptr [rbx+3C8h]                                   ; +0x6f, 0x14041087f\ninc     edi                                                            ; +0x76, 0x140410886\nmovups  xmmword ptr [rax+65Ch], xmm0                                   ; +0x78, 0x140410888\nmov     rcx, [rbx+298h]                                                ; +0x7f, 0x14041088f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x86, 0x140410896\ncmp     edi, eax                                                       ; +0x8c, 0x14041089c\njb      short loc_140410870                                            ; +0x8e, 0x14041089e\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x90, 0x1404108a0\nmov     rdx, rsi                                                       ; +0x95, 0x1404108a5\nmov     rcx, rbx                                                       ; +0x98, 0x1404108a8\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9b, 0x1404108ab\nadd     rsp, 20h                                                       ; +0xa0, 0x1404108b0\npop     rsi                                                            ; +0xa4, 0x1404108b4\njmp     SetupTriggerPopup__onClose                                     ; +0xa5, 0x1404108b5", "xrefs": ["<???> @ 0x1405dd220", "<???> @ 0x1405de1c0", "<???> @ 0x14069f5e8", "<???> @ 0x14069f5f8", "<???> @ 0x1406d8c90"], "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"}