{"type": "func", "start": 6442694304, "end": 6442694578, "name": "cocos2d::CCWavesTiles3D::create", "pseudocode": "// \n// cocos2d::CCWavesTiles3D::create from 0x18003b6a0 to 0x18003b7b2 (274 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bafcc\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::CCWavesTiles3D *__fastcall cocos2d::CCWavesTiles3D::create(\n        float a1,\n        const struct cocos2d::CCSize *a2,\n        unsigned int a3,\n        float a4)\n{\n  __int64 v6; // rbx\n  char (__fastcall *v7)(cocos2d::CCWavesTiles3D *, float, const struct cocos2d::CCSize *, int, float); // rdx\n  char v8; // al\n\n  v6 = sub_1800E4AC0(0x78u);\n  if ( v6 )\n  {\n    *(_OWORD *)v6 = 0;\n    *(_OWORD *)(v6 + 16) = 0;\n    *(_OWORD *)(v6 + 32) = 0;\n    *(_OWORD *)(v6 + 48) = 0;\n    *(_OWORD *)(v6 + 64) = 0;\n    *(_OWORD *)(v6 + 80) = 0;\n    *(_OWORD *)(v6 + 96) = 0;\n    *(_QWORD *)(v6 + 112) = 0;\n    cocos2d::CCAction::CCAction((cocos2d::CCAction *)v6);\n    *(_DWORD *)(v6 + 80) = 0;\n    *(_QWORD *)v6 = &cocos2d::CCGridAction::`vftable';\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v6 + 96));\n    *(_QWORD *)v6 = &cocos2d::CCWavesTiles3D::`vftable';\n  }\n  else\n  {\n    v6 = 0;\n  }\n  if ( !v6 )\n    return (struct cocos2d::CCWavesTiles3D *)v6;\n  v7 = *(char (__fastcall **)(cocos2d::CCWavesTiles3D *, float, const 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 + 104) = a3;\n      *(float *)(v6 + 108) = a4;\n      *(_DWORD *)(v6 + 112) = 1065353216;\n      v8 = 1;\n    }\n    else\n    {\n      v8 = 0;\n    }\n  }\n  else\n  {\n    v8 = ((__int64 (__fastcall *)(__int64, char (__fastcall *)(cocos2d::CCWavesTiles3D *, float, const struct cocos2d::CCSize *, int, float), const struct cocos2d::CCSize *, _QWORD, _DWORD))v7)(\n           v6,\n           v7,\n           a2,\n           a3,\n           LODWORD(a4));\n  }\n  if ( v8 )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n    return (struct cocos2d::CCWavesTiles3D *)v6;\n  }\n  cocos2d::CCObject::release((cocos2d::CCObject *)v6);\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCWavesTiles3D::create from 0x18003b6a0 to 0x18003b7b2 (274 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bafcc\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, 0x18003b6a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18003b6a5\npush    rdi                                                            ; +0xa, 0x18003b6aa\nsub     rsp, 60h                                                       ; +0xb, 0x18003b6ab\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0xf, 0x18003b6af\nmovaps  [rsp+68h+var_28], xmm7                                         ; +0x14, 0x18003b6b4\nmovaps  xmm6, xmm3                                                     ; +0x19, 0x18003b6b9\nmov     edi, r8d                                                       ; +0x1c, 0x18003b6bc\nmov     rsi, rdx                                                       ; +0x1f, 0x18003b6bf\nmovaps  xmm7, xmm0                                                     ; +0x22, 0x18003b6c2\nmov     ecx, 78h ; 'x'; Size                                           ; +0x25, 0x18003b6c5\ncall    sub_1800E4AC0                                                  ; +0x2a, 0x18003b6ca\nmov     rbx, rax                                                       ; +0x2f, 0x18003b6cf\nmov     [rsp+68h+var_38], rax                                          ; +0x32, 0x18003b6d2\ntest    rax, rax                                                       ; +0x37, 0x18003b6d7\njz      short loc_18003B72F                                            ; +0x3a, 0x18003b6da\nxorps   xmm1, xmm1                                                     ; +0x3c, 0x18003b6dc\nxor     eax, eax                                                       ; +0x3f, 0x18003b6df\nmovups  xmmword ptr [rbx], xmm1                                        ; +0x41, 0x18003b6e1\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x44, 0x18003b6e4\nmovups  xmmword ptr [rbx+20h], xmm1                                    ; +0x48, 0x18003b6e8\nmovups  xmmword ptr [rbx+30h], xmm1                                    ; +0x4c, 0x18003b6ec\nmovups  xmmword ptr [rbx+40h], xmm1                                    ; +0x50, 0x18003b6f0\nmovups  xmmword ptr [rbx+50h], xmm1                                    ; +0x54, 0x18003b6f4\nmovups  xmmword ptr [rbx+60h], xmm1                                    ; +0x58, 0x18003b6f8\nmov     [rbx+70h], rax                                                 ; +0x5c, 0x18003b6fc\nmov     rcx, rbx; this                                                 ; +0x60, 0x18003b700\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x63, 0x18003b703\nmov     dword ptr [rbx+50h], 0                                         ; +0x68, 0x18003b708\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6f, 0x18003b70f\nmov     [rbx], rax                                                     ; +0x76, 0x18003b716\nlea     rcx, [rbx+60h]; this                                           ; +0x79, 0x18003b719\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x7d, 0x18003b71d\nnop                                                                    ; +0x82, 0x18003b722\nlea     rax, ??_7CCWavesTiles3D@cocos2d@@6B@; const cocos2d::CCWavesTiles3D::`vftable' ; +0x83, 0x18003b723\nmov     [rbx], rax                                                     ; +0x8a, 0x18003b72a\njmp     short loc_18003B731                                            ; +0x8d, 0x18003b72d\nxor     ebx, ebx                                                       ; +0x8f, 0x18003b72f\ntest    rbx, rbx                                                       ; +0x91, 0x18003b731\njz      short loc_18003B78C                                            ; +0x94, 0x18003b734\nmov     rax, [rbx]                                                     ; +0x96, 0x18003b736\nmov     rdx, [rax+80h]                                                 ; +0x99, 0x18003b739\nlea     rax, ?initWithDuration@CCWavesTiles3D@cocos2d@@UEAA_NMAEBVCCSize@2@IM@Z; cocos2d::CCWavesTiles3D::initWithDuration(float,cocos2d::CCSize const &,uint,float) ; +0xa0, 0x18003b740\nmov     r8, rsi; struct cocos2d::CCSize *                              ; +0xa7, 0x18003b747\nmovaps  xmm1, xmm7; float                                              ; +0xaa, 0x18003b74a\nmov     rcx, rbx; this                                                 ; +0xad, 0x18003b74d\ncmp     rdx, rax                                                       ; +0xb0, 0x18003b750\njnz     short loc_18003B775                                            ; +0xb3, 0x18003b753\ncall    ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0xb5, 0x18003b755\ntest    al, al                                                         ; +0xba, 0x18003b75a\njz      short loc_18003B771                                            ; +0xbc, 0x18003b75c\nmov     [rbx+68h], edi                                                 ; +0xbe, 0x18003b75e\nmovss   dword ptr [rbx+6Ch], xmm6                                      ; +0xc1, 0x18003b761\nmov     dword ptr [rbx+70h], 3F800000h                                 ; +0xc6, 0x18003b766\nmov     al, 1                                                          ; +0xcd, 0x18003b76d\njmp     short loc_18003B780                                            ; +0xcf, 0x18003b76f\nxor     al, al                                                         ; +0xd1, 0x18003b771\njmp     short loc_18003B780                                            ; +0xd3, 0x18003b773\nmovss   [rsp+68h+var_48], xmm6                                         ; +0xd5, 0x18003b775\nmov     r9d, edi                                                       ; +0xdb, 0x18003b77b\ncall    rdx                                                            ; +0xde, 0x18003b77e\nmov     rcx, rbx; this                                                 ; +0xe0, 0x18003b780\ntest    al, al                                                         ; +0xe3, 0x18003b783\njz      short loc_18003B7A9                                            ; +0xe5, 0x18003b785\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe7, 0x18003b787\nmov     rax, rbx                                                       ; +0xec, 0x18003b78c\nmov     rbx, [rsp+68h+arg_0]                                           ; +0xef, 0x18003b78f\nmov     rsi, [rsp+68h+arg_8]                                           ; +0xf4, 0x18003b794\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0xf9, 0x18003b799\nmovaps  xmm7, [rsp+68h+var_28]                                         ; +0xfe, 0x18003b79e\nadd     rsp, 60h                                                       ; +0x103, 0x18003b7a3\npop     rdi                                                            ; +0x107, 0x18003b7a7\nretn                                                                   ; +0x108, 0x18003b7a8\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x109, 0x18003b7a9\nxor     eax, eax                                                       ; +0x10e, 0x18003b7ae\njmp     short loc_18003B78F                                            ; +0x110, 0x18003b7b0", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bafcc"], "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"}