{"type": "func", "start": 5371394224, "end": 5371394446, "name": "SetupEnterTriggerPopup::onEnterType", "pseudocode": "// \n// SetupEnterTriggerPopup::onEnterType from 0x14028f8b0 to 0x14028f98e (222 bytes)\n// \n// 3 xrefs:\n// > SetupEnterTriggerPopup::init @ 0x14028f584\n// > SetupEnterTriggerPopup::init @ 0x14028f667\n// > <???> @ 0x1406d1904\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 SetupEnterTriggerPopup::onEnterType(SetupEnterTriggerPopup *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; SetupEnterTriggerPopup::onEnterType from 0x14028f8b0 to 0x14028f98e (222 bytes)\n; \n; 3 xrefs:\n; > SetupEnterTriggerPopup::init @ 0x14028f584\n; > SetupEnterTriggerPopup::init @ 0x14028f667\n; > <???> @ 0x1406d1904\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, 0x14028f8b0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14028f8b5\npush    rdi                                                            ; +0xa, 0x14028f8ba\nsub     rsp, 20h                                                       ; +0xb, 0x14028f8bb\nmov     rax, [rdx]                                                     ; +0xf, 0x14028f8bf\nmov     rbx, rcx                                                       ; +0x12, 0x14028f8c2\nmov     rcx, rdx                                                       ; +0x15, 0x14028f8c5\nmov     rsi, rdx                                                       ; +0x18, 0x14028f8c8\ncall    qword ptr [rax+38h]                                            ; +0x1b, 0x14028f8cb\nxor     edi, edi                                                       ; +0x1e, 0x14028f8ce\ncmp     eax, [rbx+3B8h]                                                ; +0x20, 0x14028f8d0\njnz     short loc_14028F8DC                                            ; +0x26, 0x14028f8d6\nmov     eax, edi                                                       ; +0x28, 0x14028f8d8\njmp     short loc_14028F8E5                                            ; +0x2a, 0x14028f8da\nmov     rax, [rsi]                                                     ; +0x2c, 0x14028f8dc\nmov     rcx, rsi                                                       ; +0x2f, 0x14028f8df\ncall    qword ptr [rax+38h]                                            ; +0x32, 0x14028f8e2\ncmp     eax, 1                                                         ; +0x35, 0x14028f8e5\nmov     [rbx+3B8h], eax                                                ; +0x38, 0x14028f8e8\nmov     rcx, [rbx+3A8h]                                                ; +0x3e, 0x14028f8ee\nsetz    dl                                                             ; +0x45, 0x14028f8f5\ncall    CCMenuItemToggler__toggle                                      ; +0x48, 0x14028f8f8\ncmp     dword ptr [rbx+3B8h], 2                                        ; +0x4d, 0x14028f8fd\nmov     rcx, [rbx+3B0h]                                                ; +0x54, 0x14028f904\nsetz    dl                                                             ; +0x5b, 0x14028f90b\ncall    CCMenuItemToggler__toggle                                      ; +0x5e, 0x14028f90e\nmov     rcx, [rbx+290h]                                                ; +0x63, 0x14028f913\ntest    rcx, rcx                                                       ; +0x6a, 0x14028f91a\njz      short loc_14028F93B                                            ; +0x6d, 0x14028f91d\nmov     eax, [rbx+3B8h]                                                ; +0x6f, 0x14028f91f\nmov     [rcx+740h], eax                                                ; +0x75, 0x14028f925\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7b, 0x14028f92b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x80, 0x14028f930\nadd     rsp, 20h                                                       ; +0x85, 0x14028f935\npop     rdi                                                            ; +0x89, 0x14028f939\nretn                                                                   ; +0x8a, 0x14028f93a\nmov     rcx, [rbx+298h]                                                ; +0x8b, 0x14028f93b\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x92, 0x14028f942\ntest    eax, eax                                                       ; +0x98, 0x14028f948\njz      short loc_14028F97E                                            ; +0x9a, 0x14028f94a\nnop     dword ptr [rax+00h]                                            ; +0x9c, 0x14028f94c\nmov     rcx, [rbx+298h]                                                ; +0xa0, 0x14028f950\nmov     edx, edi                                                       ; +0xa7, 0x14028f957\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa9, 0x14028f959\nmov     ecx, [rbx+3B8h]                                                ; +0xaf, 0x14028f95f\ninc     edi                                                            ; +0xb5, 0x14028f965\nmov     [rax+740h], ecx                                                ; +0xb7, 0x14028f967\nmov     rcx, [rbx+298h]                                                ; +0xbd, 0x14028f96d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc4, 0x14028f974\ncmp     edi, eax                                                       ; +0xca, 0x14028f97a\njb      short loc_14028F950                                            ; +0xcc, 0x14028f97c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xce, 0x14028f97e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xd3, 0x14028f983\nadd     rsp, 20h                                                       ; +0xd8, 0x14028f988\npop     rdi                                                            ; +0xdc, 0x14028f98c\nretn                                                                   ; +0xdd, 0x14028f98d", "xrefs": ["SetupEnterTriggerPopup::init @ 0x14028f584", "SetupEnterTriggerPopup::init @ 0x14028f667", "<???> @ 0x1406d1904"], "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"}