{"type": "func", "start": 6442692448, "end": 6442692719, "name": "cocos2d::CCWavesTiles3D::create", "pseudocode": "// \n// cocos2d::CCWavesTiles3D::create from 0x18003af60 to 0x18003b06f (271 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0ea0\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::CCWavesTiles3D *__fastcall cocos2d::CCWavesTiles3D::create(\n        float a1,\n        struct cocos2d::CCSize *a2,\n        unsigned int a3,\n        float a4)\n{\n  void *v6; // rbx\n  char (__fastcall *v7)(cocos2d::CCWavesTiles3D *, float, struct cocos2d::CCSize *, int, float); // rdx\n\n  v6 = operator new(0x78u);\n  if ( v6 )\n  {\n    *(_OWORD *)v6 = 0;\n    *((_OWORD *)v6 + 1) = 0;\n    *((_OWORD *)v6 + 2) = 0;\n    *((_OWORD *)v6 + 3) = 0;\n    *((_OWORD *)v6 + 4) = 0;\n    *((_OWORD *)v6 + 5) = 0;\n    *((_OWORD *)v6 + 6) = 0;\n    *((_QWORD *)v6 + 14) = 0;\n    cocos2d::CCAction::CCAction((cocos2d::CCAction *)v6);\n    *((_DWORD *)v6 + 20) = 0;\n    *(_QWORD *)v6 = &cocos2d::CCGridAction::`vftable';\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v6 + 12);\n    *(_QWORD *)v6 = &cocos2d::CCWavesTiles3D::`vftable';\n  }\n  else\n  {\n    v6 = nullptr;\n  }\n  if ( !v6 )\n    return (struct cocos2d::CCWavesTiles3D *)v6;\n  v7 = *(char (__fastcall **)(cocos2d::CCWavesTiles3D *, float, struct cocos2d::CCSize *, int, float))(*(_QWORD *)v6 + 128LL);\n  if ( v7 == cocos2d::CCWavesTiles3D::initWithDuration )\n  {\n    if ( cocos2d::CCGridAction::initWithDuration((cocos2d::CCGridAction *)v6, a1, a2) )\n    {\n      *((_DWORD *)v6 + 26) = a3;\n      *((float *)v6 + 27) = a4;\n      *((_DWORD *)v6 + 28) = 1065353216;\nLABEL_9:\n      cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n      return (struct cocos2d::CCWavesTiles3D *)v6;\n    }\n  }\n  else if ( ((unsigned __int8 (__fastcall *)(void *, char (__fastcall *)(cocos2d::CCWavesTiles3D *, float, struct cocos2d::CCSize *, int, float), struct cocos2d::CCSize *, _QWORD, _DWORD))v7)(\n              v6,\n              v7,\n              a2,\n              a3,\n              LODWORD(a4)) )\n  {\n    goto LABEL_9;\n  }\n  cocos2d::CCObject::release((cocos2d::CCObject *)v6);\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCWavesTiles3D::create from 0x18003af60 to 0x18003b06f (271 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0ea0\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, 0x18003af60\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18003af65\npush    rdi                                                            ; +0xa, 0x18003af6a\nsub     rsp, 60h                                                       ; +0xb, 0x18003af6b\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0xf, 0x18003af6f\nmovaps  [rsp+68h+var_28], xmm7                                         ; +0x14, 0x18003af74\nmovaps  xmm6, xmm3                                                     ; +0x19, 0x18003af79\nmov     edi, r8d                                                       ; +0x1c, 0x18003af7c\nmov     rsi, rdx                                                       ; +0x1f, 0x18003af7f\nmovaps  xmm7, xmm0                                                     ; +0x22, 0x18003af82\nmov     ecx, 78h ; 'x'; Size                                           ; +0x25, 0x18003af85\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x18003af8a\nmov     rbx, rax                                                       ; +0x2f, 0x18003af8f\nmov     [rsp+68h+var_38], rax                                          ; +0x32, 0x18003af92\ntest    rax, rax                                                       ; +0x37, 0x18003af97\njz      short loc_18003AFEF                                            ; +0x3a, 0x18003af9a\nxorps   xmm1, xmm1                                                     ; +0x3c, 0x18003af9c\nxor     eax, eax                                                       ; +0x3f, 0x18003af9f\nmovups  xmmword ptr [rbx], xmm1                                        ; +0x41, 0x18003afa1\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x44, 0x18003afa4\nmovups  xmmword ptr [rbx+20h], xmm1                                    ; +0x48, 0x18003afa8\nmovups  xmmword ptr [rbx+30h], xmm1                                    ; +0x4c, 0x18003afac\nmovups  xmmword ptr [rbx+40h], xmm1                                    ; +0x50, 0x18003afb0\nmovups  xmmword ptr [rbx+50h], xmm1                                    ; +0x54, 0x18003afb4\nmovups  xmmword ptr [rbx+60h], xmm1                                    ; +0x58, 0x18003afb8\nmov     [rbx+70h], rax                                                 ; +0x5c, 0x18003afbc\nmov     rcx, rbx; this                                                 ; +0x60, 0x18003afc0\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x63, 0x18003afc3\nmov     dword ptr [rbx+50h], 0                                         ; +0x68, 0x18003afc8\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6f, 0x18003afcf\nmov     [rbx], rax                                                     ; +0x76, 0x18003afd6\nlea     rcx, [rbx+60h]; this                                           ; +0x79, 0x18003afd9\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x7d, 0x18003afdd\nnop                                                                    ; +0x82, 0x18003afe2\nlea     rax, ??_7CCWavesTiles3D@cocos2d@@6B@; const cocos2d::CCWavesTiles3D::`vftable' ; +0x83, 0x18003afe3\nmov     [rbx], rax                                                     ; +0x8a, 0x18003afea\njmp     short loc_18003AFF1                                            ; +0x8d, 0x18003afed\nxor     ebx, ebx                                                       ; +0x8f, 0x18003afef\ntest    rbx, rbx                                                       ; +0x91, 0x18003aff1\njz      short loc_18003B046                                            ; +0x94, 0x18003aff4\nmov     rax, [rbx]                                                     ; +0x96, 0x18003aff6\nmov     rdx, [rax+80h]                                                 ; +0x99, 0x18003aff9\nlea     rax, ?initWithDuration@CCWavesTiles3D@cocos2d@@UEAA_NMAEBVCCSize@2@IM@Z; cocos2d::CCWavesTiles3D::initWithDuration(float,cocos2d::CCSize const &,uint,float) ; +0xa0, 0x18003b000\nmov     r8, rsi; struct cocos2d::CCSize *                              ; +0xa7, 0x18003b007\nmovaps  xmm1, xmm7; float                                              ; +0xaa, 0x18003b00a\nmov     rcx, rbx; this                                                 ; +0xad, 0x18003b00d\ncmp     rdx, rax                                                       ; +0xb0, 0x18003b010\njnz     short loc_18003B02F                                            ; +0xb3, 0x18003b013\ncall    ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0xb5, 0x18003b015\ntest    al, al                                                         ; +0xba, 0x18003b01a\njz      short loc_18003B063                                            ; +0xbc, 0x18003b01c\nmov     [rbx+68h], edi                                                 ; +0xbe, 0x18003b01e\nmovss   dword ptr [rbx+6Ch], xmm6                                      ; +0xc1, 0x18003b021\nmov     dword ptr [rbx+70h], 3F800000h                                 ; +0xc6, 0x18003b026\njmp     short loc_18003B03E                                            ; +0xcd, 0x18003b02d\nmovss   [rsp+68h+var_48], xmm6                                         ; +0xcf, 0x18003b02f\nmov     r9d, edi                                                       ; +0xd5, 0x18003b035\ncall    rdx                                                            ; +0xd8, 0x18003b038\ntest    al, al                                                         ; +0xda, 0x18003b03a\njz      short loc_18003B063                                            ; +0xdc, 0x18003b03c\nmov     rcx, rbx; this                                                 ; +0xde, 0x18003b03e\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe1, 0x18003b041\nmov     rax, rbx                                                       ; +0xe6, 0x18003b046\nmov     rbx, [rsp+68h+arg_0]                                           ; +0xe9, 0x18003b049\nmov     rsi, [rsp+68h+arg_8]                                           ; +0xee, 0x18003b04e\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0xf3, 0x18003b053\nmovaps  xmm7, [rsp+68h+var_28]                                         ; +0xf8, 0x18003b058\nadd     rsp, 60h                                                       ; +0xfd, 0x18003b05d\npop     rdi                                                            ; +0x101, 0x18003b061\nretn                                                                   ; +0x102, 0x18003b062\nmov     rcx, rbx; this                                                 ; +0x103, 0x18003b063\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x106, 0x18003b066\nxor     eax, eax                                                       ; +0x10b, 0x18003b06b\njmp     short loc_18003B049                                            ; +0x10d, 0x18003b06d", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b0ea0"], "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"}