{"type": "func", "start": 6442694048, "end": 6442694299, "name": "cocos2d::CCTurnOffTiles::create", "pseudocode": "// \n// cocos2d::CCTurnOffTiles::create from 0x18003b5a0 to 0x18003b69b (251 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bafc0\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(\n        float a1,\n        const struct cocos2d::CCSize *a2,\n        unsigned int a3)\n{\n  __int64 v5; // rbx\n  bool (__fastcall *v6)(cocos2d::CCTurnOffTiles *__hidden, float, const struct cocos2d::CCSize *, unsigned int); // rdx\n  char v7; // al\n\n  v5 = sub_1800E4AC0(0x78u);\n  if ( v5 )\n  {\n    *(_OWORD *)v5 = 0;\n    *(_OWORD *)(v5 + 16) = 0;\n    *(_OWORD *)(v5 + 32) = 0;\n    *(_OWORD *)(v5 + 48) = 0;\n    *(_OWORD *)(v5 + 64) = 0;\n    *(_OWORD *)(v5 + 80) = 0;\n    *(_OWORD *)(v5 + 96) = 0;\n    *(_QWORD *)(v5 + 112) = 0;\n    cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);\n    *(_DWORD *)(v5 + 80) = 0;\n    *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 96));\n    *(_QWORD *)v5 = &cocos2d::CCTurnOffTiles::`vftable';\n  }\n  else\n  {\n    v5 = 0;\n  }\n  if ( !v5 )\n    return (struct cocos2d::CCTurnOffTiles *)v5;\n  v6 = *(bool (__fastcall **)(cocos2d::CCTurnOffTiles *__hidden, float, const struct cocos2d::CCSize *, unsigned int))(*(_QWORD *)v5 + 128LL);\n  if ( v6 == cocos2d::CCTurnOffTiles::initWithDuration )\n  {\n    if ( cocos2d::CCGridAction::initWithDuration((cocos2d::CCGridAction *)v5, a1, a2) )\n    {\n      *(_DWORD *)(v5 + 104) = a3;\n      *(_QWORD *)(v5 + 112) = 0;\n      v7 = 1;\n    }\n    else\n    {\n      v7 = 0;\n    }\n  }\n  else\n  {\n    v7 = ((__int64 (__fastcall *)(__int64, bool (__fastcall *)(cocos2d::CCTurnOffTiles *__hidden, float, const struct cocos2d::CCSize *, unsigned int), const struct cocos2d::CCSize *, _QWORD))v6)(\n           v5,\n           v6,\n           a2,\n           a3);\n  }\n  if ( v7 )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);\n    return (struct cocos2d::CCTurnOffTiles *)v5;\n  }\n  cocos2d::CCObject::release((cocos2d::CCObject *)v5);\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCTurnOffTiles::create from 0x18003b5a0 to 0x18003b69b (251 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bafc0\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, 0x18003b5a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18003b5a5\npush    rdi                                                            ; +0xa, 0x18003b5aa\nsub     rsp, 30h                                                       ; +0xb, 0x18003b5ab\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xf, 0x18003b5af\nmov     edi, r8d                                                       ; +0x14, 0x18003b5b4\nmov     rsi, rdx                                                       ; +0x17, 0x18003b5b7\nmovaps  xmm6, xmm0                                                     ; +0x1a, 0x18003b5ba\nmov     ecx, 78h ; 'x'; Size                                           ; +0x1d, 0x18003b5bd\ncall    sub_1800E4AC0                                                  ; +0x22, 0x18003b5c2\nmov     rbx, rax                                                       ; +0x27, 0x18003b5c7\nmov     [rsp+38h+arg_18], rax                                          ; +0x2a, 0x18003b5ca\ntest    rax, rax                                                       ; +0x2f, 0x18003b5cf\njz      short loc_18003B627                                            ; +0x32, 0x18003b5d2\nxorps   xmm1, xmm1                                                     ; +0x34, 0x18003b5d4\nxor     eax, eax                                                       ; +0x37, 0x18003b5d7\nmovups  xmmword ptr [rbx], xmm1                                        ; +0x39, 0x18003b5d9\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x3c, 0x18003b5dc\nmovups  xmmword ptr [rbx+20h], xmm1                                    ; +0x40, 0x18003b5e0\nmovups  xmmword ptr [rbx+30h], xmm1                                    ; +0x44, 0x18003b5e4\nmovups  xmmword ptr [rbx+40h], xmm1                                    ; +0x48, 0x18003b5e8\nmovups  xmmword ptr [rbx+50h], xmm1                                    ; +0x4c, 0x18003b5ec\nmovups  xmmword ptr [rbx+60h], xmm1                                    ; +0x50, 0x18003b5f0\nmov     [rbx+70h], rax                                                 ; +0x54, 0x18003b5f4\nmov     rcx, rbx; this                                                 ; +0x58, 0x18003b5f8\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x5b, 0x18003b5fb\nmov     dword ptr [rbx+50h], 0                                         ; +0x60, 0x18003b600\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x67, 0x18003b607\nmov     [rbx], rax                                                     ; +0x6e, 0x18003b60e\nlea     rcx, [rbx+60h]; this                                           ; +0x71, 0x18003b611\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x75, 0x18003b615\nnop                                                                    ; +0x7a, 0x18003b61a\nlea     rax, ??_7CCTurnOffTiles@cocos2d@@6B@; const cocos2d::CCTurnOffTiles::`vftable' ; +0x7b, 0x18003b61b\nmov     [rbx], rax                                                     ; +0x82, 0x18003b622\njmp     short loc_18003B629                                            ; +0x85, 0x18003b625\nxor     ebx, ebx                                                       ; +0x87, 0x18003b627\ntest    rbx, rbx                                                       ; +0x89, 0x18003b629\njz      short loc_18003B67A                                            ; +0x8c, 0x18003b62c\nmov     rax, [rbx]                                                     ; +0x8e, 0x18003b62e\nmov     rdx, [rax+80h]                                                 ; +0x91, 0x18003b631\nlea     rax, ?initWithDuration@CCTurnOffTiles@cocos2d@@UEAA_NMAEBVCCSize@2@I@Z; cocos2d::CCTurnOffTiles::initWithDuration(float,cocos2d::CCSize const &,uint) ; +0x98, 0x18003b638\nmov     r8, rsi; struct cocos2d::CCSize *                              ; +0x9f, 0x18003b63f\nmovaps  xmm1, xmm6; float                                              ; +0xa2, 0x18003b642\nmov     rcx, rbx; this                                                 ; +0xa5, 0x18003b645\ncmp     rdx, rax                                                       ; +0xa8, 0x18003b648\njnz     short loc_18003B669                                            ; +0xab, 0x18003b64b\ncall    ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0xad, 0x18003b64d\ntest    al, al                                                         ; +0xb2, 0x18003b652\njz      short loc_18003B665                                            ; +0xb4, 0x18003b654\nmov     [rbx+68h], edi                                                 ; +0xb6, 0x18003b656\nmov     qword ptr [rbx+70h], 0                                         ; +0xb9, 0x18003b659\nmov     al, 1                                                          ; +0xc1, 0x18003b661\njmp     short loc_18003B66E                                            ; +0xc3, 0x18003b663\nxor     al, al                                                         ; +0xc5, 0x18003b665\njmp     short loc_18003B66E                                            ; +0xc7, 0x18003b667\nmov     r9d, edi                                                       ; +0xc9, 0x18003b669\ncall    rdx                                                            ; +0xcc, 0x18003b66c\nmov     rcx, rbx; this                                                 ; +0xce, 0x18003b66e\ntest    al, al                                                         ; +0xd1, 0x18003b671\njz      short loc_18003B692                                            ; +0xd3, 0x18003b673\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xd5, 0x18003b675\nmov     rax, rbx                                                       ; +0xda, 0x18003b67a\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xdd, 0x18003b67d\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xe2, 0x18003b682\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xe7, 0x18003b687\nadd     rsp, 30h                                                       ; +0xec, 0x18003b68c\npop     rdi                                                            ; +0xf0, 0x18003b690\nretn                                                                   ; +0xf1, 0x18003b691\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xf2, 0x18003b692\nxor     eax, eax                                                       ; +0xf7, 0x18003b697\njmp     short loc_18003B67D                                            ; +0xf9, 0x18003b699", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bafc0"], "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"}