{"type": "func", "start": 6442690800, "end": 6442691061, "name": "cocos2d::CCShatteredTiles3D::create", "pseudocode": "// \n// cocos2d::CCShatteredTiles3D::create from 0x18003a8f0 to 0x18003a9f5 (261 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0e58\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\nstruct cocos2d::CCShatteredTiles3D *__fastcall cocos2d::CCShatteredTiles3D::create(\n        float a1,\n        struct cocos2d::CCSize *a2,\n        unsigned int a3,\n        char a4)\n{\n  cocos2d::CCGridAction *v7; // rax\n  cocos2d::CCGridAction *v8; // rbx\n  cocos2d::CCObject *(__stdcall *copyWithZone)(cocos2d::CCGridAction *__hidden, cocos2d::CCZone *); // rdx\n\n  v7 = (cocos2d::CCGridAction *)operator new(0x70u);\n  v8 = v7;\n  if ( v7 )\n  {\n    *(_OWORD *)&v7->__vftable = 0;\n    *(_OWORD *)&v7->cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = 0;\n    *(_OWORD *)&v7->m_uIndexInArray = 0;\n    *(_OWORD *)&v7->m_uOrderOfArrival = 0;\n    *(_OWORD *)&v7->m_pTarget = 0;\n    *(_OWORD *)&v7->m_fDuration = 0;\n    *(_OWORD *)&v7[1].__vftable = 0;\n    cocos2d::CCAction::CCAction(v7);\n    v8->m_fDuration = 0.0;\n    v8->__vftable = (cocos2d::CCGridAction_vtbl *)&cocos2d::CCGridAction::`vftable';\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v8[1]);\n    v8->__vftable = (cocos2d::CCGridAction_vtbl *)&cocos2d::CCShatteredTiles3D::`vftable';\n  }\n  else\n  {\n    v8 = nullptr;\n  }\n  if ( !v8 )\n    return (struct cocos2d::CCShatteredTiles3D *)v8;\n  copyWithZone = v8->__vftable[1].copyWithZone;\n  if ( (char *)copyWithZone == (char *)cocos2d::CCShatteredTiles3D::initWithDuration )\n  {\n    if ( cocos2d::CCGridAction::initWithDuration(v8, a1, a2) )\n    {\n      LOBYTE(v8[1].m_nLuaID) = 0;\n      v8[1].m_uID = a3;\n      BYTE1(v8[1].m_nLuaID) = a4;\nLABEL_9:\n      cocos2d::CCObject::autorelease(v8);\n      return (struct cocos2d::CCShatteredTiles3D *)v8;\n    }\n  }\n  else if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCGridAction *, cocos2d::CCObject *(__stdcall *)(cocos2d::CCGridAction *__hidden, cocos2d::CCZone *), struct cocos2d::CCSize *, _QWORD, char))copyWithZone)(\n              v8,\n              copyWithZone,\n              a2,\n              a3,\n              a4) )\n  {\n    goto LABEL_9;\n  }\n  cocos2d::CCObject::release(v8);\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCShatteredTiles3D::create from 0x18003a8f0 to 0x18003a9f5 (261 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0e58\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, 0x18003a8f0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18003a8f5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18003a8fa\npush    rdi                                                            ; +0xf, 0x18003a8ff\nsub     rsp, 50h                                                       ; +0x10, 0x18003a900\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x14, 0x18003a904\nmovzx   edi, r9b                                                       ; +0x19, 0x18003a909\nmov     esi, r8d                                                       ; +0x1d, 0x18003a90d\nmov     rbp, rdx                                                       ; +0x20, 0x18003a910\nmovaps  xmm6, xmm0                                                     ; +0x23, 0x18003a913\nmov     ecx, 70h ; 'p'; Size                                           ; +0x26, 0x18003a916\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2b, 0x18003a91b\nmov     rbx, rax                                                       ; +0x30, 0x18003a920\nmov     [rsp+58h+var_28], rax                                          ; +0x33, 0x18003a923\ntest    rax, rax                                                       ; +0x38, 0x18003a928\njz      short loc_18003A97A                                            ; +0x3b, 0x18003a92b\nxorps   xmm1, xmm1                                                     ; +0x3d, 0x18003a92d\nmovups  xmmword ptr [rax], xmm1                                        ; +0x40, 0x18003a930\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x43, 0x18003a933\nmovups  xmmword ptr [rax+20h], xmm1                                    ; +0x47, 0x18003a937\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x4b, 0x18003a93b\nmovups  xmmword ptr [rax+40h], xmm1                                    ; +0x4f, 0x18003a93f\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0x53, 0x18003a943\nmovups  xmmword ptr [rax+60h], xmm1                                    ; +0x57, 0x18003a947\nmov     rcx, rax; this                                                 ; +0x5b, 0x18003a94b\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x5e, 0x18003a94e\nmov     dword ptr [rbx+50h], 0                                         ; +0x63, 0x18003a953\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6a, 0x18003a95a\nmov     [rbx], rax                                                     ; +0x71, 0x18003a961\nlea     rcx, [rbx+60h]; this                                           ; +0x74, 0x18003a964\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x78, 0x18003a968\nnop                                                                    ; +0x7d, 0x18003a96d\nlea     rax, ??_7CCShatteredTiles3D@cocos2d@@6B@; const cocos2d::CCShatteredTiles3D::`vftable' ; +0x7e, 0x18003a96e\nmov     [rbx], rax                                                     ; +0x85, 0x18003a975\njmp     short loc_18003A97C                                            ; +0x88, 0x18003a978\nxor     ebx, ebx                                                       ; +0x8a, 0x18003a97a\ntest    rbx, rbx                                                       ; +0x8c, 0x18003a97c\njz      short loc_18003A9CC                                            ; +0x8f, 0x18003a97f\nmov     rax, [rbx]                                                     ; +0x91, 0x18003a981\nmov     rdx, [rax+80h]                                                 ; +0x94, 0x18003a984\nlea     rax, ?initWithDuration@CCShatteredTiles3D@cocos2d@@UEAA_NMAEBVCCSize@2@H_N@Z; cocos2d::CCShatteredTiles3D::initWithDuration(float,cocos2d::CCSize const &,int,bool) ; +0x9b, 0x18003a98b\nmov     r8, rbp; struct cocos2d::CCSize *                              ; +0xa2, 0x18003a992\nmovaps  xmm1, xmm6; float                                              ; +0xa5, 0x18003a995\nmov     rcx, rbx; this                                                 ; +0xa8, 0x18003a998\ncmp     rdx, rax                                                       ; +0xab, 0x18003a99b\njnz     short loc_18003A9B6                                            ; +0xae, 0x18003a99e\ncall    ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0xb0, 0x18003a9a0\ntest    al, al                                                         ; +0xb5, 0x18003a9a5\njz      short loc_18003A9E9                                            ; +0xb7, 0x18003a9a7\nmov     byte ptr [rbx+6Ch], 0                                          ; +0xb9, 0x18003a9a9\nmov     [rbx+68h], esi                                                 ; +0xbd, 0x18003a9ad\nmov     [rbx+6Dh], dil                                                 ; +0xc0, 0x18003a9b0\njmp     short loc_18003A9C4                                            ; +0xc4, 0x18003a9b4\nmov     [rsp+58h+var_38], dil                                          ; +0xc6, 0x18003a9b6\nmov     r9d, esi                                                       ; +0xcb, 0x18003a9bb\ncall    rdx                                                            ; +0xce, 0x18003a9be\ntest    al, al                                                         ; +0xd0, 0x18003a9c0\njz      short loc_18003A9E9                                            ; +0xd2, 0x18003a9c2\nmov     rcx, rbx; this                                                 ; +0xd4, 0x18003a9c4\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xd7, 0x18003a9c7\nmov     rax, rbx                                                       ; +0xdc, 0x18003a9cc\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xdf, 0x18003a9cf\nmov     rbp, [rsp+58h+arg_8]                                           ; +0xe4, 0x18003a9d4\nmov     rsi, [rsp+58h+arg_10]                                          ; +0xe9, 0x18003a9d9\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xee, 0x18003a9de\nadd     rsp, 50h                                                       ; +0xf3, 0x18003a9e3\npop     rdi                                                            ; +0xf7, 0x18003a9e7\nretn                                                                   ; +0xf8, 0x18003a9e8\nmov     rcx, rbx; this                                                 ; +0xf9, 0x18003a9e9\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xfc, 0x18003a9ec\nxor     eax, eax                                                       ; +0x101, 0x18003a9f1\njmp     short loc_18003A9CF                                            ; +0x103, 0x18003a9f3", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b0e58"], "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"}