{"type": "func", "start": 5373036064, "end": 5373036286, "name": "SetupEnterEffectPopup::onEnterType", "pseudocode": "// \n// SetupEnterEffectPopup::onEnterType from 0x140420620 to 0x1404206fe (222 bytes)\n// \n// 3 xrefs:\n// > SetupEnterEffectPopup::init @ 0x14041ffbb\n// > SetupEnterEffectPopup::init @ 0x140420099\n// > <???> @ 0x1406d94dc\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::onEnterType(SetupEnterEffectPopup *a1, cocos2d::CCObject *a2)\n{\n  unsigned int v4; // edi\n  int v5; // eax\n  EffectGameObject *m_gameObject; // rcx\n  struct cocos2d::CCObject *v7; // rax\n\n  v4 = 0;\n  if ( a2->getTag(a2) == a1->m_enterType )\n    v5 = 0;\n  else\n    v5 = a2->getTag(a2);\n  a1->m_enterType = v5;\n  CCMenuItemToggler::toggle(a1->m_enterOnlyToggler, v5 == 1);\n  CCMenuItemToggler::toggle(a1->m_exitOnlyToggler, a1->m_enterType == 2);\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    LODWORD(m_gameObject[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = a1->m_enterType;\n  }\n  else if ( cocos2d::CCArray::count(a1->m_gameObjects) )\n  {\n    do\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v4++);\n      v7[33].m_uID = a1->m_enterType;\n    }\n    while ( v4 < cocos2d::CCArray::count(a1->m_gameObjects) );\n  }\n}", "assembly": "; \n; SetupEnterEffectPopup::onEnterType from 0x140420620 to 0x1404206fe (222 bytes)\n; \n; 3 xrefs:\n; > SetupEnterEffectPopup::init @ 0x14041ffbb\n; > SetupEnterEffectPopup::init @ 0x140420099\n; > <???> @ 0x1406d94dc\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_0], rbx                                               ; +0x0, 0x140420620\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140420625\npush    rdi                                                            ; +0xa, 0x14042062a\nsub     rsp, 20h                                                       ; +0xb, 0x14042062b\nmov     rax, [rdx]                                                     ; +0xf, 0x14042062f\nmov     rbx, rcx                                                       ; +0x12, 0x140420632\nmov     rcx, rdx                                                       ; +0x15, 0x140420635\nmov     rsi, rdx                                                       ; +0x18, 0x140420638\ncall    qword ptr [rax+38h]                                            ; +0x1b, 0x14042063b\nxor     edi, edi                                                       ; +0x1e, 0x14042063e\ncmp     eax, [rbx+3C8h]                                                ; +0x20, 0x140420640\njnz     short loc_14042064C                                            ; +0x26, 0x140420646\nmov     eax, edi                                                       ; +0x28, 0x140420648\njmp     short loc_140420655                                            ; +0x2a, 0x14042064a\nmov     rax, [rsi]                                                     ; +0x2c, 0x14042064c\nmov     rcx, rsi                                                       ; +0x2f, 0x14042064f\ncall    qword ptr [rax+38h]                                            ; +0x32, 0x140420652\ncmp     eax, 1                                                         ; +0x35, 0x140420655\nmov     [rbx+3C8h], eax                                                ; +0x38, 0x140420658\nmov     rcx, [rbx+3B8h]                                                ; +0x3e, 0x14042065e\nsetz    dl                                                             ; +0x45, 0x140420665\ncall    CCMenuItemToggler__toggle                                      ; +0x48, 0x140420668\ncmp     dword ptr [rbx+3C8h], 2                                        ; +0x4d, 0x14042066d\nmov     rcx, [rbx+3C0h]                                                ; +0x54, 0x140420674\nsetz    dl                                                             ; +0x5b, 0x14042067b\ncall    CCMenuItemToggler__toggle                                      ; +0x5e, 0x14042067e\nmov     rcx, [rbx+290h]                                                ; +0x63, 0x140420683\ntest    rcx, rcx                                                       ; +0x6a, 0x14042068a\njz      short loc_1404206AB                                            ; +0x6d, 0x14042068d\nmov     eax, [rbx+3C8h]                                                ; +0x6f, 0x14042068f\nmov     [rcx+740h], eax                                                ; +0x75, 0x140420695\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7b, 0x14042069b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x80, 0x1404206a0\nadd     rsp, 20h                                                       ; +0x85, 0x1404206a5\npop     rdi                                                            ; +0x89, 0x1404206a9\nretn                                                                   ; +0x8a, 0x1404206aa\nmov     rcx, [rbx+298h]                                                ; +0x8b, 0x1404206ab\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x92, 0x1404206b2\ntest    eax, eax                                                       ; +0x98, 0x1404206b8\njz      short loc_1404206EE                                            ; +0x9a, 0x1404206ba\nnop     dword ptr [rax+00h]                                            ; +0x9c, 0x1404206bc\nmov     rcx, [rbx+298h]                                                ; +0xa0, 0x1404206c0\nmov     edx, edi                                                       ; +0xa7, 0x1404206c7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa9, 0x1404206c9\nmov     ecx, [rbx+3C8h]                                                ; +0xaf, 0x1404206cf\ninc     edi                                                            ; +0xb5, 0x1404206d5\nmov     [rax+740h], ecx                                                ; +0xb7, 0x1404206d7\nmov     rcx, [rbx+298h]                                                ; +0xbd, 0x1404206dd\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc4, 0x1404206e4\ncmp     edi, eax                                                       ; +0xca, 0x1404206ea\njb      short loc_1404206C0                                            ; +0xcc, 0x1404206ec\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xce, 0x1404206ee\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xd3, 0x1404206f3\nadd     rsp, 20h                                                       ; +0xd8, 0x1404206f8\npop     rdi                                                            ; +0xdc, 0x1404206fc\nretn                                                                   ; +0xdd, 0x1404206fd", "xrefs": ["SetupEnterEffectPopup::init @ 0x14041ffbb", "SetupEnterEffectPopup::init @ 0x140420099", "<???> @ 0x1406d94dc"], "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"}