{"type": "func", "start": 5373036656, "end": 5373036826, "name": "SetupEnterEffectPopup::onClose", "pseudocode": "// \n// SetupEnterEffectPopup::onClose from 0x140420870 to 0x14042091a (170 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405e40a8\n// > <???> @ 0x1406a04b8\n// > <???> @ 0x1406a04c8\n// > <???> @ 0x1406d9500\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 SetupEnterEffectPopup::onClose(SetupEnterEffectPopup *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_objectID == 3021 && 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; SetupEnterEffectPopup::onClose from 0x140420870 to 0x14042091a (170 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405e40a8\n; > <???> @ 0x1406a04b8\n; > <???> @ 0x1406a04c8\n; > <???> @ 0x1406d9500\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, 0x140420870\npush    rsi                                                            ; +0x5, 0x140420875\nsub     rsp, 20h                                                       ; +0x6, 0x140420876\ncmp     dword ptr [rcx+3B0h], 0BCDh                                    ; +0xa, 0x14042087a\nmov     rsi, rdx                                                       ; +0x14, 0x140420884\nmov     rbx, rcx                                                       ; +0x17, 0x140420887\njnz     short loc_140420905                                            ; +0x1a, 0x14042088a\ncmp     byte ptr [rcx+3E8h], 0                                         ; +0x1c, 0x14042088c\njz      short loc_140420905                                            ; +0x23, 0x140420893\nmov     rax, [rcx+290h]                                                ; +0x25, 0x140420895\ntest    rax, rax                                                       ; +0x2c, 0x14042089c\njz      short loc_1404208B1                                            ; +0x2f, 0x14042089f\nmovups  xmm0, xmmword ptr [rcx+3D8h]                                   ; +0x31, 0x1404208a1\nmovups  xmmword ptr [rax+65Ch], xmm0                                   ; +0x38, 0x1404208a8\njmp     short loc_140420905                                            ; +0x3f, 0x1404208af\nmov     rcx, [rcx+298h]                                                ; +0x41, 0x1404208b1\ntest    rcx, rcx                                                       ; +0x48, 0x1404208b8\njz      short loc_140420905                                            ; +0x4b, 0x1404208bb\nmov     [rsp+28h+arg_0], rdi                                           ; +0x4d, 0x1404208bd\nxor     edi, edi                                                       ; +0x52, 0x1404208c2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x54, 0x1404208c4\ntest    eax, eax                                                       ; +0x5a, 0x1404208ca\njz      short loc_140420900                                            ; +0x5c, 0x1404208cc\nxchg    ax, ax                                                         ; +0x5e, 0x1404208ce\nmov     rcx, [rbx+298h]                                                ; +0x60, 0x1404208d0\nmov     edx, edi                                                       ; +0x67, 0x1404208d7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x1404208d9\nmovups  xmm0, xmmword ptr [rbx+3D8h]                                   ; +0x6f, 0x1404208df\ninc     edi                                                            ; +0x76, 0x1404208e6\nmovups  xmmword ptr [rax+65Ch], xmm0                                   ; +0x78, 0x1404208e8\nmov     rcx, [rbx+298h]                                                ; +0x7f, 0x1404208ef\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x86, 0x1404208f6\ncmp     edi, eax                                                       ; +0x8c, 0x1404208fc\njb      short loc_1404208D0                                            ; +0x8e, 0x1404208fe\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x90, 0x140420900\nmov     rdx, rsi                                                       ; +0x95, 0x140420905\nmov     rcx, rbx                                                       ; +0x98, 0x140420908\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9b, 0x14042090b\nadd     rsp, 20h                                                       ; +0xa0, 0x140420910\npop     rsi                                                            ; +0xa4, 0x140420914\njmp     SetupTriggerPopup__onClose                                     ; +0xa5, 0x140420915", "xrefs": ["<???> @ 0x1405e40a8", "<???> @ 0x1406a04b8", "<???> @ 0x1406a04c8", "<???> @ 0x1406d9500"], "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"}