{"type": "func", "start": 6442628976, "end": 6442629251, "name": "cocos2d::CCTiledGrid3DAction::create", "pseudocode": "// \n// cocos2d::CCTiledGrid3DAction::create from 0x18002b770 to 0x18002b883 (275 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9be0\n// > <???> @ 0x1801b9bec\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:31 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCTiledGrid3DAction *__fastcall cocos2d::CCTiledGrid3DAction::create(\n        float a1,\n        const struct cocos2d::CCSize *a2)\n{\n  _OWORD *v3; // rbx\n  bool (__fastcall *v4)(cocos2d::CCGridAction *__hidden, float, const struct cocos2d::CCSize *); // rdx\n  char v5; // al\n  cocos2d::CCAction *(__fastcall *v7)(cocos2d::CCAction *, char); // r8\n\n  v3 = (_OWORD *)sub_1800E4AC0(0x68u);\n  if ( v3 )\n  {\n    *v3 = 0;\n    v3[1] = 0;\n    v3[2] = 0;\n    v3[3] = 0;\n    v3[4] = 0;\n    v3[5] = 0;\n    *((_QWORD *)v3 + 12) = 0;\n    cocos2d::CCAction::CCAction((cocos2d::CCAction *)v3);\n    *((_DWORD *)v3 + 20) = 0;\n    *(_QWORD *)v3 = &cocos2d::CCGridAction::`vftable';\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v3 + 6));\n    *(_QWORD *)v3 = &cocos2d::CCTiledGrid3DAction::`vftable';\n  }\n  else\n  {\n    v3 = nullptr;\n  }\n  if ( v3 )\n  {\n    v4 = *(bool (__fastcall **)(cocos2d::CCGridAction *__hidden, float, const struct cocos2d::CCSize *))(*(_QWORD *)v3 + 112LL);\n    if ( v4 == cocos2d::CCGridAction::initWithDuration )\n    {\n      if ( cocos2d::CCActionInterval::initWithDuration((cocos2d::CCActionInterval *)v3, a1) )\n      {\n        cocos2d::CCSize::operator=((_DWORD *)v3 + 24, a2);\n        v5 = 1;\n      }\n      else\n      {\n        v5 = 0;\n      }\n    }\n    else\n    {\n      v5 = ((__int64 (__fastcall *)(_OWORD *, bool (__fastcall *)(cocos2d::CCGridAction *__hidden, float, const struct cocos2d::CCSize *), const struct cocos2d::CCSize *))v4)(\n             v3,\n             v4,\n             a2);\n    }\n    if ( v5 )\n    {\n      cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n      return (struct cocos2d::CCTiledGrid3DAction *)v3;\n    }\n    v7 = *(cocos2d::CCAction *(__fastcall **)(cocos2d::CCAction *, char))(*(_QWORD *)v3 + 8LL);\n    if ( v7 == sub_18002B120 )\n      sub_18002B120((cocos2d::CCAction *)v3, 1);\n    else\n      v7((cocos2d::CCAction *)v3, 1);\n    return nullptr;\n  }\n  return (struct cocos2d::CCTiledGrid3DAction *)v3;\n}", "assembly": "; \n; cocos2d::CCTiledGrid3DAction::create from 0x18002b770 to 0x18002b883 (275 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9be0\n; > <???> @ 0x1801b9bec\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:31 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18002b770\npush    rdi                                                            ; +0x5, 0x18002b775\nsub     rsp, 30h                                                       ; +0x6, 0x18002b776\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x18002b77a\nmov     rdi, rdx                                                       ; +0xf, 0x18002b77f\nmovaps  xmm6, xmm0                                                     ; +0x12, 0x18002b782\nmov     ecx, 68h ; 'h'; Size                                           ; +0x15, 0x18002b785\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x18002b78a\nmov     rbx, rax                                                       ; +0x1f, 0x18002b78f\nmov     [rsp+38h+arg_10], rax                                          ; +0x22, 0x18002b792\ntest    rax, rax                                                       ; +0x27, 0x18002b797\njz      short loc_18002B7EB                                            ; +0x2a, 0x18002b79a\nxorps   xmm1, xmm1                                                     ; +0x2c, 0x18002b79c\nxor     eax, eax                                                       ; +0x2f, 0x18002b79f\nmovups  xmmword ptr [rbx], xmm1                                        ; +0x31, 0x18002b7a1\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x34, 0x18002b7a4\nmovups  xmmword ptr [rbx+20h], xmm1                                    ; +0x38, 0x18002b7a8\nmovups  xmmword ptr [rbx+30h], xmm1                                    ; +0x3c, 0x18002b7ac\nmovups  xmmword ptr [rbx+40h], xmm1                                    ; +0x40, 0x18002b7b0\nmovups  xmmword ptr [rbx+50h], xmm1                                    ; +0x44, 0x18002b7b4\nmov     [rbx+60h], rax                                                 ; +0x48, 0x18002b7b8\nmov     rcx, rbx; this                                                 ; +0x4c, 0x18002b7bc\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x4f, 0x18002b7bf\nmov     dword ptr [rbx+50h], 0                                         ; +0x54, 0x18002b7c4\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x5b, 0x18002b7cb\nmov     [rbx], rax                                                     ; +0x62, 0x18002b7d2\nlea     rcx, [rbx+60h]; this                                           ; +0x65, 0x18002b7d5\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x69, 0x18002b7d9\nnop                                                                    ; +0x6e, 0x18002b7de\nlea     rax, ??_7CCTiledGrid3DAction@cocos2d@@6B@; const cocos2d::CCTiledGrid3DAction::`vftable' ; +0x6f, 0x18002b7df\nmov     [rbx], rax                                                     ; +0x76, 0x18002b7e6\njmp     short loc_18002B7ED                                            ; +0x79, 0x18002b7e9\nxor     ebx, ebx                                                       ; +0x7b, 0x18002b7eb\ntest    rbx, rbx                                                       ; +0x7d, 0x18002b7ed\njz      short loc_18002B870                                            ; +0x80, 0x18002b7f0\nmov     rax, [rbx]                                                     ; +0x82, 0x18002b7f2\nmov     rdx, [rax+70h]                                                 ; +0x85, 0x18002b7f5\nlea     rax, ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0x89, 0x18002b7f9\nmovaps  xmm1, xmm6; float                                              ; +0x90, 0x18002b800\nmov     rcx, rbx; this                                                 ; +0x93, 0x18002b803\ncmp     rdx, rax                                                       ; +0x96, 0x18002b806\njnz     short loc_18002B828                                            ; +0x99, 0x18002b809\ncall    ?initWithDuration@CCActionInterval@cocos2d@@QEAA_NM@Z; cocos2d::CCActionInterval::initWithDuration(float) ; +0x9b, 0x18002b80b\ntest    al, al                                                         ; +0xa0, 0x18002b810\njz      short loc_18002B824                                            ; +0xa2, 0x18002b812\nlea     rcx, [rbx+60h]                                                 ; +0xa4, 0x18002b814\nmov     rdx, rdi                                                       ; +0xa8, 0x18002b818\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xab, 0x18002b81b\nmov     al, 1                                                          ; +0xb0, 0x18002b820\njmp     short loc_18002B82D                                            ; +0xb2, 0x18002b822\nxor     al, al                                                         ; +0xb4, 0x18002b824\njmp     short loc_18002B82D                                            ; +0xb6, 0x18002b826\nmov     r8, rdi                                                        ; +0xb8, 0x18002b828\ncall    rdx                                                            ; +0xbb, 0x18002b82b\nmov     rcx, rbx; Block                                                ; +0xbd, 0x18002b82d\ntest    al, al                                                         ; +0xc0, 0x18002b830\njz      short loc_18002B84C                                            ; +0xc2, 0x18002b832\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xc4, 0x18002b834\nmov     rax, rbx                                                       ; +0xc9, 0x18002b839\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xcc, 0x18002b83c\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xd1, 0x18002b841\nadd     rsp, 30h                                                       ; +0xd6, 0x18002b846\npop     rdi                                                            ; +0xda, 0x18002b84a\nretn                                                                   ; +0xdb, 0x18002b84b\nmov     rax, [rbx]                                                     ; +0xdc, 0x18002b84c\nmov     r8, [rax+8]                                                    ; +0xdf, 0x18002b84f\nlea     rax, sub_18002B120                                             ; +0xe3, 0x18002b853\nmov     edx, 1                                                         ; +0xea, 0x18002b85a\ncmp     r8, rax                                                        ; +0xef, 0x18002b85f\njnz     short loc_18002B86B                                            ; +0xf2, 0x18002b862\ncall    sub_18002B120                                                  ; +0xf4, 0x18002b864\njmp     short loc_18002B86E                                            ; +0xf9, 0x18002b869\ncall    r8                                                             ; +0xfb, 0x18002b86b\nxor     ebx, ebx                                                       ; +0xfe, 0x18002b86e\nmov     rax, rbx                                                       ; +0x100, 0x18002b870\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x103, 0x18002b873\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x108, 0x18002b878\nadd     rsp, 30h                                                       ; +0x10d, 0x18002b87d\npop     rdi                                                            ; +0x111, 0x18002b881\nretn                                                                   ; +0x112, 0x18002b882", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b9be0", "<???> @ 0x1801b9bec"], "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"}