{"type": "func", "start": 6442636512, "end": 6442636766, "name": "cocos2d::CCWaves::create", "pseudocode": "// \n// cocos2d::CCWaves::create from 0x18002d4e0 to 0x18002d5de (254 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9e50\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:32 +0000\n// \n\nstruct cocos2d::CCWaves *__fastcall cocos2d::CCWaves::create(\n        float a1,\n        const struct cocos2d::CCSize *a2,\n        int a3,\n        float a4,\n        bool a5,\n        bool a6)\n{\n  __int64 v8; // rbx\n\n  v8 = sub_1800E4AC0(0x78u);\n  if ( v8 )\n  {\n    *(_OWORD *)v8 = 0;\n    *(_OWORD *)(v8 + 16) = 0;\n    *(_OWORD *)(v8 + 32) = 0;\n    *(_OWORD *)(v8 + 48) = 0;\n    *(_OWORD *)(v8 + 64) = 0;\n    *(_OWORD *)(v8 + 80) = 0;\n    *(_OWORD *)(v8 + 96) = 0;\n    *(_QWORD *)(v8 + 112) = 0;\n    cocos2d::CCAction::CCAction((cocos2d::CCAction *)v8);\n    *(_DWORD *)(v8 + 80) = 0;\n    *(_QWORD *)v8 = &cocos2d::CCGridAction::`vftable';\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v8 + 96));\n    *(_QWORD *)v8 = &cocos2d::CCWaves::`vftable';\n  }\n  else\n  {\n    v8 = 0;\n  }\n  if ( !v8 )\n    return (struct cocos2d::CCWaves *)v8;\n  if ( cocos2d::CCGridAction::initWithDuration((cocos2d::CCGridAction *)v8, a1, a2) )\n  {\n    *(_DWORD *)(v8 + 104) = a3;\n    *(float *)(v8 + 108) = a4;\n    *(_DWORD *)(v8 + 112) = 1065353216;\n    *(_BYTE *)(v8 + 117) = a5;\n    *(_BYTE *)(v8 + 116) = a6;\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);\n    return (struct cocos2d::CCWaves *)v8;\n  }\n  cocos2d::CCObject::release((cocos2d::CCObject *)v8);\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCWaves::create from 0x18002d4e0 to 0x18002d5de (254 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9e50\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:32 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18002d4e0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18002d4e5\npush    rdi                                                            ; +0xa, 0x18002d4ea\nsub     rsp, 50h                                                       ; +0xb, 0x18002d4eb\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0xf, 0x18002d4ef\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x14, 0x18002d4f4\nmovaps  xmm6, xmm3                                                     ; +0x19, 0x18002d4f9\nmov     edi, r8d                                                       ; +0x1c, 0x18002d4fc\nmov     rsi, rdx                                                       ; +0x1f, 0x18002d4ff\nmovaps  xmm7, xmm0                                                     ; +0x22, 0x18002d502\nmov     ecx, 78h ; 'x'; Size                                           ; +0x25, 0x18002d505\ncall    sub_1800E4AC0                                                  ; +0x2a, 0x18002d50a\nmov     rbx, rax                                                       ; +0x2f, 0x18002d50f\nmov     [rsp+58h+var_38], rax                                          ; +0x32, 0x18002d512\ntest    rax, rax                                                       ; +0x37, 0x18002d517\njz      short loc_18002D56F                                            ; +0x3a, 0x18002d51a\nxorps   xmm1, xmm1                                                     ; +0x3c, 0x18002d51c\nxor     eax, eax                                                       ; +0x3f, 0x18002d51f\nmovups  xmmword ptr [rbx], xmm1                                        ; +0x41, 0x18002d521\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x44, 0x18002d524\nmovups  xmmword ptr [rbx+20h], xmm1                                    ; +0x48, 0x18002d528\nmovups  xmmword ptr [rbx+30h], xmm1                                    ; +0x4c, 0x18002d52c\nmovups  xmmword ptr [rbx+40h], xmm1                                    ; +0x50, 0x18002d530\nmovups  xmmword ptr [rbx+50h], xmm1                                    ; +0x54, 0x18002d534\nmovups  xmmword ptr [rbx+60h], xmm1                                    ; +0x58, 0x18002d538\nmov     [rbx+70h], rax                                                 ; +0x5c, 0x18002d53c\nmov     rcx, rbx; this                                                 ; +0x60, 0x18002d540\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x63, 0x18002d543\nmov     dword ptr [rbx+50h], 0                                         ; +0x68, 0x18002d548\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6f, 0x18002d54f\nmov     [rbx], rax                                                     ; +0x76, 0x18002d556\nlea     rcx, [rbx+60h]; this                                           ; +0x79, 0x18002d559\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x7d, 0x18002d55d\nnop                                                                    ; +0x82, 0x18002d562\nlea     rax, ??_7CCWaves@cocos2d@@6B@; const cocos2d::CCWaves::`vftable' ; +0x83, 0x18002d563\nmov     [rbx], rax                                                     ; +0x8a, 0x18002d56a\njmp     short loc_18002D571                                            ; +0x8d, 0x18002d56d\nxor     ebx, ebx                                                       ; +0x8f, 0x18002d56f\ntest    rbx, rbx                                                       ; +0x91, 0x18002d571\njz      short loc_18002D5B5                                            ; +0x94, 0x18002d574\nmov     r8, rsi; struct cocos2d::CCSize *                              ; +0x96, 0x18002d576\nmovaps  xmm1, xmm7; float                                              ; +0x99, 0x18002d579\nmov     rcx, rbx; this                                                 ; +0x9c, 0x18002d57c\ncall    ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0x9f, 0x18002d57f\ntest    al, al                                                         ; +0xa4, 0x18002d584\njz      short loc_18002D5D2                                            ; +0xa6, 0x18002d586\nmov     [rbx+68h], edi                                                 ; +0xa8, 0x18002d588\nmovss   dword ptr [rbx+6Ch], xmm6                                      ; +0xab, 0x18002d58b\nmov     dword ptr [rbx+70h], 3F800000h                                 ; +0xb0, 0x18002d590\nmovzx   ecx, [rsp+58h+arg_20]                                          ; +0xb7, 0x18002d597\nmov     [rbx+75h], cl                                                  ; +0xbf, 0x18002d59f\nmovzx   ecx, [rsp+58h+arg_28]                                          ; +0xc2, 0x18002d5a2\nmov     [rbx+74h], cl                                                  ; +0xca, 0x18002d5aa\nmov     rcx, rbx; this                                                 ; +0xcd, 0x18002d5ad\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xd0, 0x18002d5b0\nmov     rax, rbx                                                       ; +0xd5, 0x18002d5b5\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xd8, 0x18002d5b8\nmov     rsi, [rsp+58h+arg_8]                                           ; +0xdd, 0x18002d5bd\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xe2, 0x18002d5c2\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xe7, 0x18002d5c7\nadd     rsp, 50h                                                       ; +0xec, 0x18002d5cc\npop     rdi                                                            ; +0xf0, 0x18002d5d0\nretn                                                                   ; +0xf1, 0x18002d5d1\nmov     rcx, rbx; this                                                 ; +0xf2, 0x18002d5d2\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xf5, 0x18002d5d5\nxor     eax, eax                                                       ; +0xfa, 0x18002d5da\njmp     short loc_18002D5B8                                            ; +0xfc, 0x18002d5dc", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b9e50"], "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"}