{"type": "func", "start": 6442628224, "end": 6442628409, "name": "cocos2d::CCGridAction::startWithTarget", "pseudocode": "// \n// cocos2d::CCGridAction::startWithTarget from 0x18002b480 to 0x18002b539 (185 bytes)\n// \n// 26 xrefs:\n// > cocos2d::CCShuffleTiles::startWithTarget @ 0x18003b44e\n// > cocos2d::CCSplitRows::startWithTarget @ 0x18003b6d9\n// > cocos2d::CCTurnOffTiles::startWithTarget @ 0x18003b722\n// > <???> @ 0x1800e84b0\n// > <???> @ 0x1800e8538\n// > <???> @ 0x1800e8818\n// > <???> @ 0x1800e88a0\n// > <???> @ 0x1800e8928\n// > <???> @ 0x1800e89c0\n// > <???> @ 0x1800e8a58\n// > <???> @ 0x1800e8ae0\n// > <???> @ 0x1800e8b68\n// > <???> @ 0x1800e8bf0\n// > <???> @ 0x1800e8c78\n// > <???> @ 0x1800e8d00\n// > <???> @ 0x1800ea0e8\n// > <???> @ 0x1800ea280\n// > <???> @ 0x1800ea310\n// > <???> @ 0x1800ea430\n// > <???> @ 0x1800ea4c8\n// > <???> @ 0x1800ea560\n// > <???> @ 0x1800ea5f8\n// > <???> @ 0x1800ea720\n// > <???> @ 0x1800ea7b0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801afb5c\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 __fastcall cocos2d::CCGridAction::startWithTarget(cocos2d::CCGridAction *this, struct cocos2d::CCNode *a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCNode *m_pTarget; // rdi\n  __int64 v5; // rsi\n  cocos2d::CCGridBase *v6; // rax\n  bool m_bActive; // dl\n  cocos2d::CCGridBase *v8; // rax\n\n  cocos2d::CCActionInterval::startWithTarget(this, a2);\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCGridAction *))this->getGrid)(this);\n  m_pTarget = this->m_pTarget;\n  v5 = v3;\n  v6 = (cocos2d::CCGridBase *)((__int64 (__fastcall *)(cocos2d::CCNode *))m_pTarget->getGrid)(m_pTarget);\n  if ( !v6 )\n  {\nLABEL_9:\n    ((void (__fastcall *)(cocos2d::CCNode *, __int64))m_pTarget->setGrid)(m_pTarget, v5);\n    v8 = (cocos2d::CCGridBase *)((__int64 (__fastcall *)(cocos2d::CCNode *))m_pTarget->getGrid)(m_pTarget);\n    cocos2d::CCGridBase::setActive(v8, 1);\n    return;\n  }\n  m_bActive = v6->m_bActive;\n  if ( v6->m_nReuseGrid <= 0 )\n  {\n    if ( m_bActive )\n      cocos2d::CCGridBase::setActive(v6, 0);\n    goto LABEL_9;\n  }\n  if ( m_bActive && v6->m_sGridSize.width == *((float *)this + 24) && v6->m_sGridSize.height == *((float *)this + 25) )\n    ((void (__fastcall *)(cocos2d::CCGridBase *))v6->reuse)(v6);\n}", "assembly": "; \n; cocos2d::CCGridAction::startWithTarget from 0x18002b480 to 0x18002b539 (185 bytes)\n; \n; 26 xrefs:\n; > cocos2d::CCShuffleTiles::startWithTarget @ 0x18003b44e\n; > cocos2d::CCSplitRows::startWithTarget @ 0x18003b6d9\n; > cocos2d::CCTurnOffTiles::startWithTarget @ 0x18003b722\n; > <???> @ 0x1800e84b0\n; > <???> @ 0x1800e8538\n; > <???> @ 0x1800e8818\n; > <???> @ 0x1800e88a0\n; > <???> @ 0x1800e8928\n; > <???> @ 0x1800e89c0\n; > <???> @ 0x1800e8a58\n; > <???> @ 0x1800e8ae0\n; > <???> @ 0x1800e8b68\n; > <???> @ 0x1800e8bf0\n; > <???> @ 0x1800e8c78\n; > <???> @ 0x1800e8d00\n; > <???> @ 0x1800ea0e8\n; > <???> @ 0x1800ea280\n; > <???> @ 0x1800ea310\n; > <???> @ 0x1800ea430\n; > <???> @ 0x1800ea4c8\n; > <???> @ 0x1800ea560\n; > <???> @ 0x1800ea5f8\n; > <???> @ 0x1800ea720\n; > <???> @ 0x1800ea7b0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801afb5c\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, 0x18002b480\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18002b485\npush    rdi                                                            ; +0xa, 0x18002b48a\nsub     rsp, 20h                                                       ; +0xb, 0x18002b48b\nmov     rbx, rcx                                                       ; +0xf, 0x18002b48f\ncall    ?startWithTarget@CCActionInterval@cocos2d@@UEAAXPEAVCCNode@2@@Z; cocos2d::CCActionInterval::startWithTarget(cocos2d::CCNode *) ; +0x12, 0x18002b492\nmov     rax, [rbx]                                                     ; +0x17, 0x18002b497\nmov     rcx, rbx                                                       ; +0x1a, 0x18002b49a\ncall    qword ptr [rax+78h]                                            ; +0x1d, 0x18002b49d\nmov     rdi, [rbx+40h]                                                 ; +0x20, 0x18002b4a0\nmov     rsi, rax                                                       ; +0x24, 0x18002b4a4\nmov     rcx, rdi                                                       ; +0x27, 0x18002b4a7\nmov     rdx, [rdi]                                                     ; +0x2a, 0x18002b4aa\ncall    qword ptr [rdx+248h]                                           ; +0x2d, 0x18002b4ad\nmov     rcx, rax; this                                                 ; +0x33, 0x18002b4b3\ntest    rax, rax                                                       ; +0x36, 0x18002b4b6\njz      short loc_18002B504                                            ; +0x39, 0x18002b4b9\ncmp     dword ptr [rax+3Ch], 0                                         ; +0x3b, 0x18002b4bb\nmovzx   edx, byte ptr [rax+38h]                                        ; +0x3f, 0x18002b4bf\njle     short loc_18002B4F9                                            ; +0x43, 0x18002b4c3\ntest    dl, dl                                                         ; +0x45, 0x18002b4c5\njz      short loc_18002B529                                            ; +0x47, 0x18002b4c7\nmovss   xmm0, dword ptr [rax+40h]                                      ; +0x49, 0x18002b4c9\nucomiss xmm0, dword ptr [rbx+60h]                                      ; +0x4e, 0x18002b4ce\njp      short loc_18002B529                                            ; +0x52, 0x18002b4d2\njnz     short loc_18002B529                                            ; +0x54, 0x18002b4d4\nmovss   xmm0, dword ptr [rax+44h]                                      ; +0x56, 0x18002b4d6\nucomiss xmm0, dword ptr [rbx+64h]                                      ; +0x5b, 0x18002b4db\njp      short loc_18002B529                                            ; +0x5f, 0x18002b4df\njnz     short loc_18002B529                                            ; +0x61, 0x18002b4e1\nmov     rax, [rax]                                                     ; +0x63, 0x18002b4e3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x18002b4e6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6b, 0x18002b4eb\nadd     rsp, 20h                                                       ; +0x70, 0x18002b4f0\npop     rdi                                                            ; +0x74, 0x18002b4f4\njmp     qword ptr [rax+50h]                                            ; +0x75, 0x18002b4f5\ntest    dl, dl                                                         ; +0x79, 0x18002b4f9\njz      short loc_18002B504                                            ; +0x7b, 0x18002b4fb\nxor     edx, edx; bool                                                 ; +0x7d, 0x18002b4fd\ncall    ?setActive@CCGridBase@cocos2d@@QEAAX_N@Z; cocos2d::CCGridBase::setActive(bool) ; +0x7f, 0x18002b4ff\nmov     rax, [rdi]                                                     ; +0x84, 0x18002b504\nmov     rdx, rsi                                                       ; +0x87, 0x18002b507\nmov     rcx, rdi                                                       ; +0x8a, 0x18002b50a\ncall    qword ptr [rax+250h]                                           ; +0x8d, 0x18002b50d\nmov     rax, [rdi]                                                     ; +0x93, 0x18002b513\nmov     rcx, rdi                                                       ; +0x96, 0x18002b516\ncall    qword ptr [rax+248h]                                           ; +0x99, 0x18002b519\nmov     rcx, rax; this                                                 ; +0x9f, 0x18002b51f\nmov     dl, 1; bool                                                    ; +0xa2, 0x18002b522\ncall    ?setActive@CCGridBase@cocos2d@@QEAAX_N@Z; cocos2d::CCGridBase::setActive(bool) ; +0xa4, 0x18002b524\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa9, 0x18002b529\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xae, 0x18002b52e\nadd     rsp, 20h                                                       ; +0xb3, 0x18002b533\npop     rdi                                                            ; +0xb7, 0x18002b537\nretn                                                                   ; +0xb8, 0x18002b538", "xrefs": ["cocos2d::CCShuffleTiles::startWithTarget @ 0x18003b44e", "cocos2d::CCSplitRows::startWithTarget @ 0x18003b6d9", "cocos2d::CCTurnOffTiles::startWithTarget @ 0x18003b722", "<???> @ 0x1800e84b0", "<???> @ 0x1800e8538", "<???> @ 0x1800e8818", "<???> @ 0x1800e88a0", "<???> @ 0x1800e8928", "<???> @ 0x1800e89c0", "<???> @ 0x1800e8a58", "<???> @ 0x1800e8ae0", "<???> @ 0x1800e8b68", "<???> @ 0x1800e8bf0", "<???> @ 0x1800e8c78", "<???> @ 0x1800e8d00", "<???> @ 0x1800ea0e8", "<???> @ 0x1800ea280", "<???> @ 0x1800ea310", "<???> @ 0x1800ea430", "<???> @ 0x1800ea4c8", "<???> @ 0x1800ea560", "<???> @ 0x1800ea5f8", "<???> @ 0x1800ea720", "<???> @ 0x1800ea7b0", "<???> @ 0x1801438a8", "<???> @ 0x1801afb5c"], "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"}