{"type": "func", "start": 6442692400, "end": 6442692660, "name": "cocos2d::CCShakyTiles3D::create", "pseudocode": "// \n// cocos2d::CCShakyTiles3D::create from 0x18003af30 to 0x18003b034 (260 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801baf78\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// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCShakyTiles3D *__fastcall cocos2d::CCShakyTiles3D::create(\n        float a1,\n        const struct cocos2d::CCSize *a2,\n        unsigned int a3,\n        char a4)\n{\n  cocos2d::CCGridAction *v7; // rax\n  cocos2d::CCGridAction *v8; // rbx\n  char (__fastcall *v9)(cocos2d::CCShakyTiles3D *, float, const struct cocos2d::CCSize *, int, bool); // rdx\n  char v10; // al\n\n  v7 = (cocos2d::CCGridAction *)sub_1800E4AC0(0x70u);\n  v8 = v7;\n  if ( v7 )\n  {\n    *(_OWORD *)v7 = 0;\n    *((_OWORD *)v7 + 1) = 0;\n    *((_OWORD *)v7 + 2) = 0;\n    *((_OWORD *)v7 + 3) = 0;\n    *((_OWORD *)v7 + 4) = 0;\n    *((_OWORD *)v7 + 5) = 0;\n    *((_OWORD *)v7 + 6) = 0;\n    cocos2d::CCAction::CCAction(v7);\n    *((_DWORD *)v8 + 20) = 0;\n    *(_QWORD *)v8 = &cocos2d::CCGridAction::`vftable';\n    cocos2d::CCSize::CCSize((cocos2d::CCGridAction *)((char *)v8 + 96));\n    *(_QWORD *)v8 = &cocos2d::CCShakyTiles3D::`vftable';\n  }\n  else\n  {\n    v8 = nullptr;\n  }\n  if ( !v8 )\n    return v8;\n  v9 = *(char (__fastcall **)(cocos2d::CCShakyTiles3D *, float, const struct cocos2d::CCSize *, int, bool))(*(_QWORD *)v8 + 128LL);\n  if ( v9 == cocos2d::CCShakyTiles3D::initWithDuration )\n  {\n    if ( cocos2d::CCGridAction::initWithDuration(v8, a1, a2) )\n    {\n      *((_DWORD *)v8 + 26) = a3;\n      *((_BYTE *)v8 + 108) = a4;\n      v10 = 1;\n    }\n    else\n    {\n      v10 = 0;\n    }\n  }\n  else\n  {\n    v10 = ((__int64 (__fastcall *)(cocos2d::CCGridAction *, char (__fastcall *)(cocos2d::CCShakyTiles3D *, float, const struct cocos2d::CCSize *, int, bool), const struct cocos2d::CCSize *, _QWORD, char))v9)(\n            v8,\n            v9,\n            a2,\n            a3,\n            a4);\n  }\n  if ( v10 )\n  {\n    cocos2d::CCObject::autorelease(v8);\n    return v8;\n  }\n  cocos2d::CCObject::release(v8);\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCShakyTiles3D::create from 0x18003af30 to 0x18003b034 (260 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801baf78\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, 0x18003af30\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18003af35\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18003af3a\npush    rdi                                                            ; +0xf, 0x18003af3f\nsub     rsp, 50h                                                       ; +0x10, 0x18003af40\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x14, 0x18003af44\nmovzx   edi, r9b                                                       ; +0x19, 0x18003af49\nmov     esi, r8d                                                       ; +0x1d, 0x18003af4d\nmov     rbp, rdx                                                       ; +0x20, 0x18003af50\nmovaps  xmm6, xmm0                                                     ; +0x23, 0x18003af53\nmov     ecx, 70h ; 'p'; Size                                           ; +0x26, 0x18003af56\ncall    sub_1800E4AC0                                                  ; +0x2b, 0x18003af5b\nmov     rbx, rax                                                       ; +0x30, 0x18003af60\nmov     [rsp+58h+var_28], rax                                          ; +0x33, 0x18003af63\ntest    rax, rax                                                       ; +0x38, 0x18003af68\njz      short loc_18003AFBA                                            ; +0x3b, 0x18003af6b\nxorps   xmm1, xmm1                                                     ; +0x3d, 0x18003af6d\nmovups  xmmword ptr [rax], xmm1                                        ; +0x40, 0x18003af70\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x43, 0x18003af73\nmovups  xmmword ptr [rax+20h], xmm1                                    ; +0x47, 0x18003af77\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x4b, 0x18003af7b\nmovups  xmmword ptr [rax+40h], xmm1                                    ; +0x4f, 0x18003af7f\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0x53, 0x18003af83\nmovups  xmmword ptr [rax+60h], xmm1                                    ; +0x57, 0x18003af87\nmov     rcx, rax; this                                                 ; +0x5b, 0x18003af8b\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x5e, 0x18003af8e\nmov     dword ptr [rbx+50h], 0                                         ; +0x63, 0x18003af93\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6a, 0x18003af9a\nmov     [rbx], rax                                                     ; +0x71, 0x18003afa1\nlea     rcx, [rbx+60h]; this                                           ; +0x74, 0x18003afa4\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x78, 0x18003afa8\nnop                                                                    ; +0x7d, 0x18003afad\nlea     rax, ??_7CCShakyTiles3D@cocos2d@@6B@; const cocos2d::CCShakyTiles3D::`vftable' ; +0x7e, 0x18003afae\nmov     [rbx], rax                                                     ; +0x85, 0x18003afb5\njmp     short loc_18003AFBC                                            ; +0x88, 0x18003afb8\nxor     ebx, ebx                                                       ; +0x8a, 0x18003afba\ntest    rbx, rbx                                                       ; +0x8c, 0x18003afbc\njz      short loc_18003B00E                                            ; +0x8f, 0x18003afbf\nmov     rax, [rbx]                                                     ; +0x91, 0x18003afc1\nmov     rdx, [rax+80h]                                                 ; +0x94, 0x18003afc4\nlea     rax, ?initWithDuration@CCShakyTiles3D@cocos2d@@UEAA_NMAEBVCCSize@2@H_N@Z; cocos2d::CCShakyTiles3D::initWithDuration(float,cocos2d::CCSize const &,int,bool) ; +0x9b, 0x18003afcb\nmov     r8, rbp; struct cocos2d::CCSize *                              ; +0xa2, 0x18003afd2\nmovaps  xmm1, xmm6; float                                              ; +0xa5, 0x18003afd5\nmov     rcx, rbx; this                                                 ; +0xa8, 0x18003afd8\ncmp     rdx, rax                                                       ; +0xab, 0x18003afdb\njnz     short loc_18003AFF8                                            ; +0xae, 0x18003afde\ncall    ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0xb0, 0x18003afe0\ntest    al, al                                                         ; +0xb5, 0x18003afe5\njz      short loc_18003AFF4                                            ; +0xb7, 0x18003afe7\nmov     [rbx+68h], esi                                                 ; +0xb9, 0x18003afe9\nmov     [rbx+6Ch], dil                                                 ; +0xbc, 0x18003afec\nmov     al, 1                                                          ; +0xc0, 0x18003aff0\njmp     short loc_18003B002                                            ; +0xc2, 0x18003aff2\nxor     al, al                                                         ; +0xc4, 0x18003aff4\njmp     short loc_18003B002                                            ; +0xc6, 0x18003aff6\nmov     [rsp+58h+var_38], dil                                          ; +0xc8, 0x18003aff8\nmov     r9d, esi                                                       ; +0xcd, 0x18003affd\ncall    rdx                                                            ; +0xd0, 0x18003b000\nmov     rcx, rbx; this                                                 ; +0xd2, 0x18003b002\ntest    al, al                                                         ; +0xd5, 0x18003b005\njz      short loc_18003B02B                                            ; +0xd7, 0x18003b007\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xd9, 0x18003b009\nmov     rax, rbx                                                       ; +0xde, 0x18003b00e\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xe1, 0x18003b011\nmov     rbp, [rsp+58h+arg_8]                                           ; +0xe6, 0x18003b016\nmov     rsi, [rsp+58h+arg_10]                                          ; +0xeb, 0x18003b01b\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xf0, 0x18003b020\nadd     rsp, 50h                                                       ; +0xf5, 0x18003b025\npop     rdi                                                            ; +0xf9, 0x18003b029\nretn                                                                   ; +0xfa, 0x18003b02a\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xfb, 0x18003b02b\nxor     eax, eax                                                       ; +0x100, 0x18003b030\njmp     short loc_18003B011                                            ; +0x102, 0x18003b032", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801baf78"], "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"}