{"type": "func", "start": 6442693584, "end": 6442693666, "name": "cocos2d::CCTurnOffTiles::shuffle", "pseudocode": "// \n// cocos2d::CCTurnOffTiles::shuffle from 0x18003b3d0 to 0x18003b422 (82 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0f00\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\n// Alternative name is '?shuffle@CCShuffleTiles@cocos2d@@QEAAXPEAII@Z'\nvoid __fastcall cocos2d::CCTurnOffTiles::shuffle(cocos2d::CCTurnOffTiles *this, unsigned int *a2, int a3)\n{\n  int v3; // ebx\n  __int64 i; // rdi\n  int v6; // eax\n  unsigned int v7; // r8d\n  __int64 v8; // rdx\n\n  v3 = a3;\n  for ( i = a3 - 1; i >= 0; a2[v8] = v7 )\n  {\n    v6 = rand();\n    v7 = a2[i];\n    v8 = (unsigned int)(v6 >> 31);\n    LODWORD(v8) = v6 % v3;\n    a2[i] = a2[v8];\n    --v3;\n    --i;\n  }\n}", "assembly": "; \n; cocos2d::CCTurnOffTiles::shuffle from 0x18003b3d0 to 0x18003b422 (82 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0f00\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, 0x18003b3d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18003b3d5\npush    rdi                                                            ; +0xa, 0x18003b3da\nsub     rsp, 20h                                                       ; +0xb, 0x18003b3db\nlea     eax, [r8-1]                                                    ; +0xf, 0x18003b3df\nmov     ebx, r8d                                                       ; +0x13, 0x18003b3e3\nmovsxd  rdi, eax                                                       ; +0x16, 0x18003b3e6\nmov     rsi, rdx                                                       ; +0x19, 0x18003b3e9\ntest    eax, eax                                                       ; +0x1c, 0x18003b3ec\njs      short loc_18003B412                                            ; +0x1e, 0x18003b3ee\ncall    cs:rand                                                        ; +0x20, 0x18003b3f0\nmov     r8d, [rsi+rdi*4]                                               ; +0x26, 0x18003b3f6\ncdq                                                                    ; +0x2a, 0x18003b3fa\nidiv    ebx                                                            ; +0x2b, 0x18003b3fb\nmov     eax, [rsi+rdx*4]                                               ; +0x2d, 0x18003b3fd\nlea     rcx, [rsi+rdx*4]                                               ; +0x30, 0x18003b400\nmov     [rsi+rdi*4], eax                                               ; +0x34, 0x18003b404\ndec     ebx                                                            ; +0x37, 0x18003b407\nsub     rdi, 1                                                         ; +0x39, 0x18003b409\nmov     [rcx], r8d                                                     ; +0x3d, 0x18003b40d\njns     short loc_18003B3F0                                            ; +0x40, 0x18003b410\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x42, 0x18003b412\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x47, 0x18003b417\nadd     rsp, 20h                                                       ; +0x4c, 0x18003b41c\npop     rdi                                                            ; +0x50, 0x18003b420\nretn                                                                   ; +0x51, 0x18003b421", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b0f00"], "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"}