{"type": "func", "start": 6442693792, "end": 6442694043, "name": "cocos2d::CCTurnOffTiles::create", "pseudocode": "// \n// cocos2d::CCTurnOffTiles::create from 0x18003b4a0 to 0x18003b59b (251 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTransitionTurnOffTiles::onEnter @ 0x180057ee1\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bafb4\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::CCTurnOffTiles *__fastcall cocos2d::CCTurnOffTiles::create(float a1, const struct cocos2d::CCSize *a2)\n{\n  __int64 v3; // rbx\n  bool (__fastcall *v4)(cocos2d::CCTurnOffTiles *__hidden, float, const struct cocos2d::CCSize *, unsigned int); // rdx\n  char v5; // al\n\n  v3 = sub_1800E4AC0(0x78u);\n  if ( v3 )\n  {\n    *(_OWORD *)v3 = 0;\n    *(_OWORD *)(v3 + 16) = 0;\n    *(_OWORD *)(v3 + 32) = 0;\n    *(_OWORD *)(v3 + 48) = 0;\n    *(_OWORD *)(v3 + 64) = 0;\n    *(_OWORD *)(v3 + 80) = 0;\n    *(_OWORD *)(v3 + 96) = 0;\n    *(_QWORD *)(v3 + 112) = 0;\n    cocos2d::CCAction::CCAction((cocos2d::CCAction *)v3);\n    *(_DWORD *)(v3 + 80) = 0;\n    *(_QWORD *)v3 = &cocos2d::CCGridAction::`vftable';\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v3 + 96));\n    *(_QWORD *)v3 = &cocos2d::CCTurnOffTiles::`vftable';\n  }\n  else\n  {\n    v3 = 0;\n  }\n  v4 = *(bool (__fastcall **)(cocos2d::CCTurnOffTiles *__hidden, float, const struct cocos2d::CCSize *, unsigned int))(*(_QWORD *)v3 + 128LL);\n  if ( v4 == cocos2d::CCTurnOffTiles::initWithDuration )\n  {\n    if ( cocos2d::CCGridAction::initWithDuration((cocos2d::CCGridAction *)v3, a1, a2) )\n    {\n      *(_DWORD *)(v3 + 104) = 0;\n      *(_QWORD *)(v3 + 112) = 0;\n      v5 = 1;\n    }\n    else\n    {\n      v5 = 0;\n    }\n  }\n  else\n  {\n    v5 = ((__int64 (__fastcall *)(__int64, bool (__fastcall *)(cocos2d::CCTurnOffTiles *__hidden, float, const struct cocos2d::CCSize *, unsigned int), const struct cocos2d::CCSize *, _QWORD))v4)(\n           v3,\n           v4,\n           a2,\n           0);\n  }\n  if ( v5 )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n    return (struct cocos2d::CCTurnOffTiles *)v3;\n  }\n  else\n  {\n    cocos2d::CCObject::release((cocos2d::CCObject *)v3);\n    return nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCTurnOffTiles::create from 0x18003b4a0 to 0x18003b59b (251 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTransitionTurnOffTiles::onEnter @ 0x180057ee1\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bafb4\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, 0x18003b4a0\npush    rsi                                                            ; +0x5, 0x18003b4a5\nsub     rsp, 30h                                                       ; +0x6, 0x18003b4a6\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x18003b4aa\nmov     rsi, rdx                                                       ; +0xf, 0x18003b4af\nmovaps  xmm6, xmm0                                                     ; +0x12, 0x18003b4b2\nmov     ecx, 78h ; 'x'; Size                                           ; +0x15, 0x18003b4b5\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x18003b4ba\nmov     rbx, rax                                                       ; +0x1f, 0x18003b4bf\nmov     [rsp+38h+arg_8], rax                                           ; +0x22, 0x18003b4c2\ntest    rax, rax                                                       ; +0x27, 0x18003b4c7\njz      short loc_18003B51F                                            ; +0x2a, 0x18003b4ca\nxorps   xmm1, xmm1                                                     ; +0x2c, 0x18003b4cc\nxor     eax, eax                                                       ; +0x2f, 0x18003b4cf\nmovups  xmmword ptr [rbx], xmm1                                        ; +0x31, 0x18003b4d1\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x34, 0x18003b4d4\nmovups  xmmword ptr [rbx+20h], xmm1                                    ; +0x38, 0x18003b4d8\nmovups  xmmword ptr [rbx+30h], xmm1                                    ; +0x3c, 0x18003b4dc\nmovups  xmmword ptr [rbx+40h], xmm1                                    ; +0x40, 0x18003b4e0\nmovups  xmmword ptr [rbx+50h], xmm1                                    ; +0x44, 0x18003b4e4\nmovups  xmmword ptr [rbx+60h], xmm1                                    ; +0x48, 0x18003b4e8\nmov     [rbx+70h], rax                                                 ; +0x4c, 0x18003b4ec\nmov     rcx, rbx; this                                                 ; +0x50, 0x18003b4f0\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x53, 0x18003b4f3\nmov     dword ptr [rbx+50h], 0                                         ; +0x58, 0x18003b4f8\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x5f, 0x18003b4ff\nmov     [rbx], rax                                                     ; +0x66, 0x18003b506\nlea     rcx, [rbx+60h]; this                                           ; +0x69, 0x18003b509\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x6d, 0x18003b50d\nnop                                                                    ; +0x72, 0x18003b512\nlea     rax, ??_7CCTurnOffTiles@cocos2d@@6B@; const cocos2d::CCTurnOffTiles::`vftable' ; +0x73, 0x18003b513\nmov     [rbx], rax                                                     ; +0x7a, 0x18003b51a\njmp     short loc_18003B521                                            ; +0x7d, 0x18003b51d\nxor     ebx, ebx                                                       ; +0x7f, 0x18003b51f\nmov     rax, [rbx]                                                     ; +0x81, 0x18003b521\nmov     rdx, [rax+80h]                                                 ; +0x84, 0x18003b524\nlea     rax, ?initWithDuration@CCTurnOffTiles@cocos2d@@UEAA_NMAEBVCCSize@2@I@Z; cocos2d::CCTurnOffTiles::initWithDuration(float,cocos2d::CCSize const &,uint) ; +0x8b, 0x18003b52b\nmov     r8, rsi; struct cocos2d::CCSize *                              ; +0x92, 0x18003b532\nmovaps  xmm1, xmm6; float                                              ; +0x95, 0x18003b535\nmov     rcx, rbx; this                                                 ; +0x98, 0x18003b538\ncmp     rdx, rax                                                       ; +0x9b, 0x18003b53b\njnz     short loc_18003B560                                            ; +0x9e, 0x18003b53e\ncall    ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0xa0, 0x18003b540\ntest    al, al                                                         ; +0xa5, 0x18003b545\njz      short loc_18003B55C                                            ; +0xa7, 0x18003b547\nmov     dword ptr [rbx+68h], 0                                         ; +0xa9, 0x18003b549\nmov     qword ptr [rbx+70h], 0                                         ; +0xb0, 0x18003b550\nmov     al, 1                                                          ; +0xb8, 0x18003b558\njmp     short loc_18003B565                                            ; +0xba, 0x18003b55a\nxor     al, al                                                         ; +0xbc, 0x18003b55c\njmp     short loc_18003B565                                            ; +0xbe, 0x18003b55e\nxor     r9d, r9d                                                       ; +0xc0, 0x18003b560\ncall    rdx                                                            ; +0xc3, 0x18003b563\nmov     rcx, rbx; this                                                 ; +0xc5, 0x18003b565\ntest    al, al                                                         ; +0xc8, 0x18003b568\njz      short loc_18003B584                                            ; +0xca, 0x18003b56a\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xcc, 0x18003b56c\nmov     rax, rbx                                                       ; +0xd1, 0x18003b571\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd4, 0x18003b574\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xd9, 0x18003b579\nadd     rsp, 30h                                                       ; +0xde, 0x18003b57e\npop     rsi                                                            ; +0xe2, 0x18003b582\nretn                                                                   ; +0xe3, 0x18003b583\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xe4, 0x18003b584\nxor     eax, eax                                                       ; +0xe9, 0x18003b589\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xeb, 0x18003b58b\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xf0, 0x18003b590\nadd     rsp, 30h                                                       ; +0xf5, 0x18003b595\npop     rsi                                                            ; +0xf9, 0x18003b599\nretn                                                                   ; +0xfa, 0x18003b59a", "xrefs": ["cocos2d::CCTransitionTurnOffTiles::onEnter @ 0x180057ee1", "<???> @ 0x18014cf68", "<???> @ 0x1801bafb4"], "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"}