{"type": "func", "start": 5373048800, "end": 5373049001, "name": "SetupInstantCountPopup::onCountType", "pseudocode": "// \n// SetupInstantCountPopup::onCountType from 0x1404237e0 to 0x1404238a9 (201 bytes)\n// \n// 6 xrefs:\n// > SetupInstantCountPopup::init @ 0x1404230dd\n// > SetupInstantCountPopup::init @ 0x14042317f\n// > SetupInstantCountPopup::init @ 0x140423231\n// > <???> @ 0x1406a07c4\n// > <???> @ 0x1406a07d4\n// > <???> @ 0x1406d9680\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 SetupInstantCountPopup::onCountType(SetupInstantCountPopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // eax\n  CCMenuItemToggler *m_equalsToggler; // rcx\n  EffectGameObject *m_gameObject; // rcx\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v7; // edi\n  struct cocos2d::CCObject *v8; // rax\n\n  v3 = a2->getTag(a2);\n  m_equalsToggler = a1->m_equalsToggler;\n  a1->m_mode = v3;\n  CCMenuItemToggler::toggle(m_equalsToggler, v3 == 0);\n  CCMenuItemToggler::toggle(a1->m_largerToggler, a1->m_mode == 1);\n  CCMenuItemToggler::toggle(a1->m_smallerToggler, a1->m_mode == 2);\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    HIDWORD(m_gameObject[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = a1->m_mode;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v7 = 0;\n      if ( cocos2d::CCArray::count(m_gameObjects) )\n      {\n        do\n        {\n          v8 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7++);\n          v8[33].m_nLuaID = a1->m_mode;\n        }\n        while ( v7 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; SetupInstantCountPopup::onCountType from 0x1404237e0 to 0x1404238a9 (201 bytes)\n; \n; 6 xrefs:\n; > SetupInstantCountPopup::init @ 0x1404230dd\n; > SetupInstantCountPopup::init @ 0x14042317f\n; > SetupInstantCountPopup::init @ 0x140423231\n; > <???> @ 0x1406a07c4\n; > <???> @ 0x1406a07d4\n; > <???> @ 0x1406d9680\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\npush    rbx                                                            ; +0x0, 0x1404237e0\nsub     rsp, 20h                                                       ; +0x2, 0x1404237e2\nmov     rax, [rdx]                                                     ; +0x6, 0x1404237e6\nmov     rbx, rcx                                                       ; +0x9, 0x1404237e9\nmov     rcx, rdx                                                       ; +0xc, 0x1404237ec\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x1404237ef\nmov     rcx, [rbx+3D8h]                                                ; +0x12, 0x1404237f2\ntest    eax, eax                                                       ; +0x19, 0x1404237f9\nmov     [rbx+3D0h], eax                                                ; +0x1b, 0x1404237fb\nsetz    dl                                                             ; +0x21, 0x140423801\ncall    CCMenuItemToggler__toggle                                      ; +0x24, 0x140423804\ncmp     dword ptr [rbx+3D0h], 1                                        ; +0x29, 0x140423809\nmov     rcx, [rbx+3E0h]                                                ; +0x30, 0x140423810\nsetz    dl                                                             ; +0x37, 0x140423817\ncall    CCMenuItemToggler__toggle                                      ; +0x3a, 0x14042381a\ncmp     dword ptr [rbx+3D0h], 2                                        ; +0x3f, 0x14042381f\nmov     rcx, [rbx+3E8h]                                                ; +0x46, 0x140423826\nsetz    dl                                                             ; +0x4d, 0x14042382d\ncall    CCMenuItemToggler__toggle                                      ; +0x50, 0x140423830\nmov     rcx, [rbx+290h]                                                ; +0x55, 0x140423835\ntest    rcx, rcx                                                       ; +0x5c, 0x14042383c\njz      short loc_140423853                                            ; +0x5f, 0x14042383f\nmov     eax, [rbx+3D0h]                                                ; +0x61, 0x140423841\nmov     [rcx+744h], eax                                                ; +0x67, 0x140423847\nadd     rsp, 20h                                                       ; +0x6d, 0x14042384d\npop     rbx                                                            ; +0x71, 0x140423851\nretn                                                                   ; +0x72, 0x140423852\nmov     rcx, [rbx+298h]                                                ; +0x73, 0x140423853\ntest    rcx, rcx                                                       ; +0x7a, 0x14042385a\njz      short loc_1404238A3                                            ; +0x7d, 0x14042385d\nmov     [rsp+28h+arg_0], rdi                                           ; +0x7f, 0x14042385f\nxor     edi, edi                                                       ; +0x84, 0x140423864\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x86, 0x140423866\ntest    eax, eax                                                       ; +0x8c, 0x14042386c\njz      short loc_14042389E                                            ; +0x8e, 0x14042386e\nmov     rcx, [rbx+298h]                                                ; +0x90, 0x140423870\nmov     edx, edi                                                       ; +0x97, 0x140423877\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x99, 0x140423879\nmov     ecx, [rbx+3D0h]                                                ; +0x9f, 0x14042387f\ninc     edi                                                            ; +0xa5, 0x140423885\nmov     [rax+744h], ecx                                                ; +0xa7, 0x140423887\nmov     rcx, [rbx+298h]                                                ; +0xad, 0x14042388d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb4, 0x140423894\ncmp     edi, eax                                                       ; +0xba, 0x14042389a\njb      short loc_140423870                                            ; +0xbc, 0x14042389c\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xbe, 0x14042389e\nadd     rsp, 20h                                                       ; +0xc3, 0x1404238a3\npop     rbx                                                            ; +0xc7, 0x1404238a7\nretn                                                                   ; +0xc8, 0x1404238a8", "xrefs": ["SetupInstantCountPopup::init @ 0x1404230dd", "SetupInstantCountPopup::init @ 0x14042317f", "SetupInstantCountPopup::init @ 0x140423231", "<???> @ 0x1406a07c4", "<???> @ 0x1406a07d4", "<???> @ 0x1406d9680"], "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"}