{"type": "func", "start": 6442696256, "end": 6442696429, "name": "cocos2d::CCTurnOffTiles::startWithTarget", "pseudocode": "// \n// cocos2d::CCTurnOffTiles::startWithTarget from 0x18003be40 to 0x18003beed (173 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f06f0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bb050\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:37 +0000\n// \n\nvoid __fastcall cocos2d::CCTurnOffTiles::startWithTarget(cocos2d::CCTurnOffTiles *this, struct cocos2d::CCNode *a2)\n{\n  unsigned int v3; // ecx\n  float v4; // xmm0_4\n  __int64 v5; // rax\n  unsigned int v6; // ebx\n  __int64 v7; // rdx\n  __int64 v8; // rsi\n  __int64 i; // rdi\n  int v10; // eax\n  int v11; // ecx\n  __int64 v12; // rdx\n\n  cocos2d::CCGridAction::startWithTarget(this, a2);\n  v3 = *((_DWORD *)this + 26);\n  if ( v3 != -1 )\n    srand(v3);\n  v4 = *((float *)this + 25) * *((float *)this + 24);\n  *((_DWORD *)this + 27) = (int)v4;\n  v5 = sub_1800E4C6C(saturated_mul((unsigned int)(int)v4, 4u));\n  v6 = *((_DWORD *)this + 27);\n  v7 = 0;\n  for ( *((_QWORD *)this + 14) = v5; (unsigned int)v7 < v6; v6 = *((_DWORD *)this + 27) )\n  {\n    *(_DWORD *)(*((_QWORD *)this + 14) + 4 * v7) = v7;\n    v7 = (unsigned int)(v7 + 1);\n  }\n  v8 = *((_QWORD *)this + 14);\n  for ( i = (int)(v6 - 1); i >= 0; *(_DWORD *)(v8 + 4 * v12) = v11 )\n  {\n    v10 = rand();\n    v11 = *(_DWORD *)(v8 + 4 * i);\n    v12 = (unsigned int)(v10 >> 31);\n    LODWORD(v12) = v10 % (int)v6--;\n    *(_DWORD *)(v8 + 4 * i--) = *(_DWORD *)(v8 + 4 * v12);\n  }\n}", "assembly": "; \n; cocos2d::CCTurnOffTiles::startWithTarget from 0x18003be40 to 0x18003beed (173 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f06f0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bb050\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:37 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18003be40\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18003be45\npush    rdi                                                            ; +0xa, 0x18003be4a\nsub     rsp, 20h                                                       ; +0xb, 0x18003be4b\nmov     rdi, rcx                                                       ; +0xf, 0x18003be4f\ncall    ?startWithTarget@CCGridAction@cocos2d@@UEAAXPEAVCCNode@2@@Z; cocos2d::CCGridAction::startWithTarget(cocos2d::CCNode *) ; +0x12, 0x18003be52\nmov     ecx, [rdi+68h]; Seed                                           ; +0x17, 0x18003be57\ncmp     ecx, 0FFFFFFFFh                                                ; +0x1a, 0x18003be5a\njz      short loc_18003BE65                                            ; +0x1d, 0x18003be5d\ncall    cs:srand                                                       ; +0x1f, 0x18003be5f\nmovss   xmm0, dword ptr [rdi+64h]                                      ; +0x25, 0x18003be65\nmulss   xmm0, dword ptr [rdi+60h]                                      ; +0x2a, 0x18003be6a\ncvttss2si rax, xmm0                                                    ; +0x2f, 0x18003be6f\nmov     ecx, eax                                                       ; +0x34, 0x18003be74\nmov     [rdi+6Ch], eax                                                 ; +0x36, 0x18003be76\nmov     eax, 4                                                         ; +0x39, 0x18003be79\nmul     rcx                                                            ; +0x3e, 0x18003be7e\nmov     rcx, 0FFFFFFFFFFFFFFFFh                                        ; +0x41, 0x18003be81\ncmovb   rax, rcx                                                       ; +0x48, 0x18003be88\nmov     rcx, rax; Size                                                 ; +0x4c, 0x18003be8c\ncall    sub_1800E4C6C                                                  ; +0x4f, 0x18003be8f\nmov     ebx, [rdi+6Ch]                                                 ; +0x54, 0x18003be94\nxor     edx, edx                                                       ; +0x57, 0x18003be97\nmov     [rdi+70h], rax                                                 ; +0x59, 0x18003be99\ntest    ebx, ebx                                                       ; +0x5d, 0x18003be9d\njz      short loc_18003BEB1                                            ; +0x5f, 0x18003be9f\nmov     rax, [rdi+70h]                                                 ; +0x61, 0x18003bea1\nmov     [rax+rdx*4], edx                                               ; +0x65, 0x18003bea5\ninc     edx                                                            ; +0x68, 0x18003bea8\nmov     ebx, [rdi+6Ch]                                                 ; +0x6a, 0x18003beaa\ncmp     edx, ebx                                                       ; +0x6d, 0x18003bead\njb      short loc_18003BEA1                                            ; +0x6f, 0x18003beaf\nmov     rsi, [rdi+70h]                                                 ; +0x71, 0x18003beb1\nlea     eax, [rbx-1]                                                   ; +0x75, 0x18003beb5\nmovsxd  rdi, eax                                                       ; +0x78, 0x18003beb8\ntest    eax, eax                                                       ; +0x7b, 0x18003bebb\njs      short loc_18003BEDD                                            ; +0x7d, 0x18003bebd\nnop                                                                    ; +0x7f, 0x18003bebf\ncall    cs:rand                                                        ; +0x80, 0x18003bec0\nmov     ecx, [rsi+rdi*4]                                               ; +0x86, 0x18003bec6\ncdq                                                                    ; +0x89, 0x18003bec9\nidiv    ebx                                                            ; +0x8a, 0x18003beca\ndec     ebx                                                            ; +0x8c, 0x18003becc\nmov     eax, [rsi+rdx*4]                                               ; +0x8e, 0x18003bece\nmov     [rsi+rdi*4], eax                                               ; +0x91, 0x18003bed1\nsub     rdi, 1                                                         ; +0x94, 0x18003bed4\nmov     [rsi+rdx*4], ecx                                               ; +0x98, 0x18003bed8\njns     short loc_18003BEC0                                            ; +0x9b, 0x18003bedb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9d, 0x18003bedd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa2, 0x18003bee2\nadd     rsp, 20h                                                       ; +0xa7, 0x18003bee7\npop     rdi                                                            ; +0xab, 0x18003beeb\nretn                                                                   ; +0xac, 0x18003beec", "xrefs": ["<???> @ 0x1800f06f0", "<???> @ 0x18014cf68", "<???> @ 0x1801bb050"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}