{"type": "func", "start": 6442692192, "end": 6442692440, "name": "cocos2d::CCTurnOffTiles::create", "pseudocode": "// \n// cocos2d::CCTurnOffTiles::create from 0x18003ae60 to 0x18003af58 (248 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0e94\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\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCTurnOffTiles *__fastcall cocos2d::CCTurnOffTiles::create(\n        float a1,\n        struct cocos2d::CCSize *a2,\n        unsigned int a3)\n{\n  void *v5; // rbx\n  bool (__fastcall *v6)(cocos2d::CCTurnOffTiles *__hidden, float, const struct cocos2d::CCSize *, unsigned int); // rdx\n\n  v5 = operator new(0x78u);\n  if ( v5 )\n  {\n    *(_OWORD *)v5 = 0;\n    *((_OWORD *)v5 + 1) = 0;\n    *((_OWORD *)v5 + 2) = 0;\n    *((_OWORD *)v5 + 3) = 0;\n    *((_OWORD *)v5 + 4) = 0;\n    *((_OWORD *)v5 + 5) = 0;\n    *((_OWORD *)v5 + 6) = 0;\n    *((_QWORD *)v5 + 14) = 0;\n    cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);\n    *((_DWORD *)v5 + 20) = 0;\n    *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 12);\n    *(_QWORD *)v5 = &cocos2d::CCTurnOffTiles::`vftable';\n  }\n  else\n  {\n    v5 = nullptr;\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 + 26) = a3;\n      *((_QWORD *)v5 + 14) = 0;\nLABEL_9:\n      cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);\n      return (struct cocos2d::CCTurnOffTiles *)v5;\n    }\n  }\n  else if ( ((unsigned __int8 (__fastcall *)(void *, bool (__fastcall *)(cocos2d::CCTurnOffTiles *__hidden, float, const struct cocos2d::CCSize *, unsigned int), struct cocos2d::CCSize *, _QWORD))v6)(\n              v5,\n              v6,\n              a2,\n              a3) )\n  {\n    goto LABEL_9;\n  }\n  cocos2d::CCObject::release((cocos2d::CCObject *)v5);\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCTurnOffTiles::create from 0x18003ae60 to 0x18003af58 (248 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0e94\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, 0x18003ae60\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18003ae65\npush    rdi                                                            ; +0xa, 0x18003ae6a\nsub     rsp, 30h                                                       ; +0xb, 0x18003ae6b\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xf, 0x18003ae6f\nmov     edi, r8d                                                       ; +0x14, 0x18003ae74\nmov     rsi, rdx                                                       ; +0x17, 0x18003ae77\nmovaps  xmm6, xmm0                                                     ; +0x1a, 0x18003ae7a\nmov     ecx, 78h ; 'x'; Size                                           ; +0x1d, 0x18003ae7d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x18003ae82\nmov     rbx, rax                                                       ; +0x27, 0x18003ae87\nmov     [rsp+38h+arg_18], rax                                          ; +0x2a, 0x18003ae8a\ntest    rax, rax                                                       ; +0x2f, 0x18003ae8f\njz      short loc_18003AEE7                                            ; +0x32, 0x18003ae92\nxorps   xmm1, xmm1                                                     ; +0x34, 0x18003ae94\nxor     eax, eax                                                       ; +0x37, 0x18003ae97\nmovups  xmmword ptr [rbx], xmm1                                        ; +0x39, 0x18003ae99\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x3c, 0x18003ae9c\nmovups  xmmword ptr [rbx+20h], xmm1                                    ; +0x40, 0x18003aea0\nmovups  xmmword ptr [rbx+30h], xmm1                                    ; +0x44, 0x18003aea4\nmovups  xmmword ptr [rbx+40h], xmm1                                    ; +0x48, 0x18003aea8\nmovups  xmmword ptr [rbx+50h], xmm1                                    ; +0x4c, 0x18003aeac\nmovups  xmmword ptr [rbx+60h], xmm1                                    ; +0x50, 0x18003aeb0\nmov     [rbx+70h], rax                                                 ; +0x54, 0x18003aeb4\nmov     rcx, rbx; this                                                 ; +0x58, 0x18003aeb8\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x5b, 0x18003aebb\nmov     dword ptr [rbx+50h], 0                                         ; +0x60, 0x18003aec0\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x67, 0x18003aec7\nmov     [rbx], rax                                                     ; +0x6e, 0x18003aece\nlea     rcx, [rbx+60h]; this                                           ; +0x71, 0x18003aed1\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x75, 0x18003aed5\nnop                                                                    ; +0x7a, 0x18003aeda\nlea     rax, ??_7CCTurnOffTiles@cocos2d@@6B@; const cocos2d::CCTurnOffTiles::`vftable' ; +0x7b, 0x18003aedb\nmov     [rbx], rax                                                     ; +0x82, 0x18003aee2\njmp     short loc_18003AEE9                                            ; +0x85, 0x18003aee5\nxor     ebx, ebx                                                       ; +0x87, 0x18003aee7\ntest    rbx, rbx                                                       ; +0x89, 0x18003aee9\njz      short loc_18003AF34                                            ; +0x8c, 0x18003aeec\nmov     rax, [rbx]                                                     ; +0x8e, 0x18003aeee\nmov     rdx, [rax+80h]                                                 ; +0x91, 0x18003aef1\nlea     rax, ?initWithDuration@CCTurnOffTiles@cocos2d@@UEAA_NMAEBVCCSize@2@I@Z; cocos2d::CCTurnOffTiles::initWithDuration(float,cocos2d::CCSize const &,uint) ; +0x98, 0x18003aef8\nmov     r8, rsi; struct cocos2d::CCSize *                              ; +0x9f, 0x18003aeff\nmovaps  xmm1, xmm6; float                                              ; +0xa2, 0x18003af02\nmov     rcx, rbx; this                                                 ; +0xa5, 0x18003af05\ncmp     rdx, rax                                                       ; +0xa8, 0x18003af08\njnz     short loc_18003AF23                                            ; +0xab, 0x18003af0b\ncall    ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0xad, 0x18003af0d\ntest    al, al                                                         ; +0xb2, 0x18003af12\njz      short loc_18003AF4C                                            ; +0xb4, 0x18003af14\nmov     [rbx+68h], edi                                                 ; +0xb6, 0x18003af16\nmov     qword ptr [rbx+70h], 0                                         ; +0xb9, 0x18003af19\njmp     short loc_18003AF2C                                            ; +0xc1, 0x18003af21\nmov     r9d, edi                                                       ; +0xc3, 0x18003af23\ncall    rdx                                                            ; +0xc6, 0x18003af26\ntest    al, al                                                         ; +0xc8, 0x18003af28\njz      short loc_18003AF4C                                            ; +0xca, 0x18003af2a\nmov     rcx, rbx; this                                                 ; +0xcc, 0x18003af2c\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xcf, 0x18003af2f\nmov     rax, rbx                                                       ; +0xd4, 0x18003af34\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd7, 0x18003af37\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xdc, 0x18003af3c\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xe1, 0x18003af41\nadd     rsp, 30h                                                       ; +0xe6, 0x18003af46\npop     rdi                                                            ; +0xea, 0x18003af4a\nretn                                                                   ; +0xeb, 0x18003af4b\nmov     rcx, rbx; this                                                 ; +0xec, 0x18003af4c\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xef, 0x18003af4f\nxor     eax, eax                                                       ; +0xf4, 0x18003af54\njmp     short loc_18003AF37                                            ; +0xf6, 0x18003af56", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b0e94"], "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"}