{"type": "func", "start": 6442695440, "end": 6442695519, "name": "cocos2d::CCTurnOffTiles::shuffle", "pseudocode": "// \n// cocos2d::CCTurnOffTiles::shuffle from 0x18003bb10 to 0x18003bb5f (79 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bb02c\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\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  unsigned int v6; // edx\n  __int64 v7; // rcx\n  unsigned int v8; // edx\n\n  v3 = a3;\n  for ( i = a3 - 1; i >= 0; a2[v7] = v8 )\n  {\n    v6 = rand() % v3--;\n    v7 = v6;\n    v8 = a2[i];\n    a2[i--] = a2[v7];\n  }\n}", "assembly": "; \n; cocos2d::CCTurnOffTiles::shuffle from 0x18003bb10 to 0x18003bb5f (79 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bb02c\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, 0x18003bb10\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18003bb15\npush    rdi                                                            ; +0xa, 0x18003bb1a\nsub     rsp, 20h                                                       ; +0xb, 0x18003bb1b\nlea     eax, [r8-1]                                                    ; +0xf, 0x18003bb1f\nmov     ebx, r8d                                                       ; +0x13, 0x18003bb23\nmovsxd  rdi, eax                                                       ; +0x16, 0x18003bb26\nmov     rsi, rdx                                                       ; +0x19, 0x18003bb29\ntest    eax, eax                                                       ; +0x1c, 0x18003bb2c\njs      short loc_18003BB4F                                            ; +0x1e, 0x18003bb2e\ncall    cs:rand                                                        ; +0x20, 0x18003bb30\ncdq                                                                    ; +0x26, 0x18003bb36\nidiv    ebx                                                            ; +0x27, 0x18003bb37\ndec     ebx                                                            ; +0x29, 0x18003bb39\nmov     ecx, edx                                                       ; +0x2b, 0x18003bb3b\nmov     edx, [rsi+rdi*4]                                               ; +0x2d, 0x18003bb3d\nmov     eax, [rsi+rcx*4]                                               ; +0x30, 0x18003bb40\nmov     [rsi+rdi*4], eax                                               ; +0x33, 0x18003bb43\nsub     rdi, 1                                                         ; +0x36, 0x18003bb46\nmov     [rsi+rcx*4], edx                                               ; +0x3a, 0x18003bb4a\njns     short loc_18003BB30                                            ; +0x3d, 0x18003bb4d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3f, 0x18003bb4f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x44, 0x18003bb54\nadd     rsp, 20h                                                       ; +0x49, 0x18003bb59\npop     rdi                                                            ; +0x4d, 0x18003bb5d\nretn                                                                   ; +0x4e, 0x18003bb5e", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bb02c"], "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"}