{"type": "func", "start": 6442691072, "end": 6442691326, "name": "cocos2d::CCShuffleTiles::create", "pseudocode": "// \n// cocos2d::CCShuffleTiles::create from 0x18003aa00 to 0x18003aafe (254 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0e64\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// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCShuffleTiles *__fastcall cocos2d::CCShuffleTiles::create(\n        float a1,\n        struct cocos2d::CCSize *a2,\n        unsigned int a3)\n{\n  cocos2d::CCGridAction *v5; // rax\n  cocos2d::CCGridAction *v6; // rbx\n  cocos2d::CCObject *(__stdcall *copyWithZone)(cocos2d::CCGridAction *__hidden, cocos2d::CCZone *); // rdx\n\n  v5 = (cocos2d::CCGridAction *)operator new(0x80u);\n  v6 = v5;\n  if ( v5 )\n  {\n    *(_OWORD *)&v5->__vftable = 0;\n    *(_OWORD *)&v5->cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = 0;\n    *(_OWORD *)&v5->m_uIndexInArray = 0;\n    *(_OWORD *)&v5->m_uOrderOfArrival = 0;\n    *(_OWORD *)&v5->m_pTarget = 0;\n    *(_OWORD *)&v5->m_fDuration = 0;\n    *(_OWORD *)&v5[1].__vftable = 0;\n    *(_OWORD *)&v5[1].cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = 0;\n    cocos2d::CCAction::CCAction(v5);\n    v6->m_fDuration = 0.0;\n    v6->__vftable = (cocos2d::CCGridAction_vtbl *)&cocos2d::CCGridAction::`vftable';\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v6[1]);\n    v6->__vftable = (cocos2d::CCGridAction_vtbl *)&cocos2d::CCShuffleTiles::`vftable';\n  }\n  else\n  {\n    v6 = nullptr;\n  }\n  if ( !v6 )\n    return (struct cocos2d::CCShuffleTiles *)v6;\n  copyWithZone = v6->__vftable[1].copyWithZone;\n  if ( (char *)copyWithZone == (char *)cocos2d::CCShuffleTiles::initWithDuration )\n  {\n    if ( cocos2d::CCGridAction::initWithDuration(v6, a1, a2) )\n    {\n      v6[1].m_uID = a3;\n      *(_QWORD *)&v6[1].cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = 0;\n      *(_QWORD *)&v6[1].m_uAutoReleaseCount = 0;\nLABEL_9:\n      cocos2d::CCObject::autorelease(v6);\n      return (struct cocos2d::CCShuffleTiles *)v6;\n    }\n  }\n  else if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCGridAction *, cocos2d::CCObject *(__stdcall *)(cocos2d::CCGridAction *__hidden, cocos2d::CCZone *), struct cocos2d::CCSize *, _QWORD))copyWithZone)(\n              v6,\n              copyWithZone,\n              a2,\n              a3) )\n  {\n    goto LABEL_9;\n  }\n  cocos2d::CCObject::release(v6);\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCShuffleTiles::create from 0x18003aa00 to 0x18003aafe (254 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0e64\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, 0x18003aa00\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18003aa05\npush    rsi                                                            ; +0xa, 0x18003aa0a\nsub     rsp, 30h                                                       ; +0xb, 0x18003aa0b\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xf, 0x18003aa0f\nmov     esi, r8d                                                       ; +0x14, 0x18003aa14\nmov     rbp, rdx                                                       ; +0x17, 0x18003aa17\nmovaps  xmm6, xmm0                                                     ; +0x1a, 0x18003aa1a\nmov     ecx, 80h; Size                                                 ; +0x1d, 0x18003aa1d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x18003aa22\nmov     rbx, rax                                                       ; +0x27, 0x18003aa27\nmov     [rsp+38h+arg_18], rax                                          ; +0x2a, 0x18003aa2a\ntest    rax, rax                                                       ; +0x2f, 0x18003aa2f\njz      short loc_18003AA85                                            ; +0x32, 0x18003aa32\nxorps   xmm1, xmm1                                                     ; +0x34, 0x18003aa34\nmovups  xmmword ptr [rax], xmm1                                        ; +0x37, 0x18003aa37\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x3a, 0x18003aa3a\nmovups  xmmword ptr [rax+20h], xmm1                                    ; +0x3e, 0x18003aa3e\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x42, 0x18003aa42\nmovups  xmmword ptr [rax+40h], xmm1                                    ; +0x46, 0x18003aa46\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0x4a, 0x18003aa4a\nmovups  xmmword ptr [rax+60h], xmm1                                    ; +0x4e, 0x18003aa4e\nmovups  xmmword ptr [rax+70h], xmm1                                    ; +0x52, 0x18003aa52\nmov     rcx, rax; this                                                 ; +0x56, 0x18003aa56\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x59, 0x18003aa59\nmov     dword ptr [rbx+50h], 0                                         ; +0x5e, 0x18003aa5e\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x65, 0x18003aa65\nmov     [rbx], rax                                                     ; +0x6c, 0x18003aa6c\nlea     rcx, [rbx+60h]; this                                           ; +0x6f, 0x18003aa6f\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x73, 0x18003aa73\nnop                                                                    ; +0x78, 0x18003aa78\nlea     rax, ??_7CCShuffleTiles@cocos2d@@6B@; const cocos2d::CCShuffleTiles::`vftable' ; +0x79, 0x18003aa79\nmov     [rbx], rax                                                     ; +0x80, 0x18003aa80\njmp     short loc_18003AA87                                            ; +0x83, 0x18003aa83\nxor     ebx, ebx                                                       ; +0x85, 0x18003aa85\ntest    rbx, rbx                                                       ; +0x87, 0x18003aa87\njz      short loc_18003AADA                                            ; +0x8a, 0x18003aa8a\nmov     rax, [rbx]                                                     ; +0x8c, 0x18003aa8c\nmov     rdx, [rax+80h]                                                 ; +0x8f, 0x18003aa8f\nlea     rax, ?initWithDuration@CCShuffleTiles@cocos2d@@UEAA_NMAEBVCCSize@2@I@Z; cocos2d::CCShuffleTiles::initWithDuration(float,cocos2d::CCSize const &,uint) ; +0x96, 0x18003aa96\nmov     r8, rbp; struct cocos2d::CCSize *                              ; +0x9d, 0x18003aa9d\nmovaps  xmm1, xmm6; float                                              ; +0xa0, 0x18003aaa0\nmov     rcx, rbx; this                                                 ; +0xa3, 0x18003aaa3\ncmp     rdx, rax                                                       ; +0xa6, 0x18003aaa6\njnz     short loc_18003AAC9                                            ; +0xa9, 0x18003aaa9\ncall    ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0xab, 0x18003aaab\ntest    al, al                                                         ; +0xb0, 0x18003aab0\njz      short loc_18003AAF2                                            ; +0xb2, 0x18003aab2\nmov     [rbx+68h], esi                                                 ; +0xb4, 0x18003aab4\nmov     qword ptr [rbx+70h], 0                                         ; +0xb7, 0x18003aab7\nmov     qword ptr [rbx+78h], 0                                         ; +0xbf, 0x18003aabf\njmp     short loc_18003AAD2                                            ; +0xc7, 0x18003aac7\nmov     r9d, esi                                                       ; +0xc9, 0x18003aac9\ncall    rdx                                                            ; +0xcc, 0x18003aacc\ntest    al, al                                                         ; +0xce, 0x18003aace\njz      short loc_18003AAF2                                            ; +0xd0, 0x18003aad0\nmov     rcx, rbx; this                                                 ; +0xd2, 0x18003aad2\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xd5, 0x18003aad5\nmov     rax, rbx                                                       ; +0xda, 0x18003aada\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xdd, 0x18003aadd\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xe2, 0x18003aae2\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xe7, 0x18003aae7\nadd     rsp, 30h                                                       ; +0xec, 0x18003aaec\npop     rsi                                                            ; +0xf0, 0x18003aaf0\nretn                                                                   ; +0xf1, 0x18003aaf1\nmov     rcx, rbx; this                                                 ; +0xf2, 0x18003aaf2\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xf5, 0x18003aaf5\nxor     eax, eax                                                       ; +0xfa, 0x18003aafa\njmp     short loc_18003AADD                                            ; +0xfc, 0x18003aafc", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b0e64"], "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"}