{"type": "func", "start": 6442626720, "end": 6442626995, "name": "cocos2d::CCGridAction::create", "pseudocode": "// \n// cocos2d::CCGridAction::create from 0x18002aea0 to 0x18002afb3 (275 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801afaa8\n// > <???> @ 0x1801afab4\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::CCGridAction *__fastcall cocos2d::CCGridAction::create(float a1, struct cocos2d::CCSize *a2)\n{\n  void *v3; // rbx\n  bool (__fastcall *v4)(cocos2d::CCGridAction *__hidden, float, const struct cocos2d::CCSize *); // rdx\n  cocos2d::CCAction *(__fastcall *v6)(cocos2d::CCAction *, char); // r8\n\n  v3 = operator new(0x68u);\n  if ( v3 )\n  {\n    *(_OWORD *)v3 = 0;\n    *((_OWORD *)v3 + 1) = 0;\n    *((_OWORD *)v3 + 2) = 0;\n    *((_OWORD *)v3 + 3) = 0;\n    *((_OWORD *)v3 + 4) = 0;\n    *((_OWORD *)v3 + 5) = 0;\n    *((_QWORD *)v3 + 12) = 0;\n    cocos2d::CCAction::CCAction((cocos2d::CCAction *)v3);\n    *((_DWORD *)v3 + 20) = 0;\n    *(_QWORD *)v3 = &cocos2d::CCGridAction::`vftable';\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v3 + 12);\n  }\n  else\n  {\n    v3 = nullptr;\n  }\n  if ( !v3 )\n    return (struct cocos2d::CCGridAction *)v3;\n  v4 = *(bool (__fastcall **)(cocos2d::CCGridAction *__hidden, float, const struct cocos2d::CCSize *))(*(_QWORD *)v3 + 112LL);\n  if ( v4 == cocos2d::CCGridAction::initWithDuration )\n  {\n    if ( cocos2d::CCActionInterval::initWithDuration((cocos2d::CCActionInterval *)v3, a1) )\n    {\n      cocos2d::CCSize::operator=((_DWORD *)v3 + 24, a2);\nLABEL_9:\n      cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n      return (struct cocos2d::CCGridAction *)v3;\n    }\n  }\n  else if ( ((unsigned __int8 (__fastcall *)(void *, bool (__fastcall *)(cocos2d::CCGridAction *__hidden, float, const struct cocos2d::CCSize *), struct cocos2d::CCSize *))v4)(\n              v3,\n              v4,\n              a2) )\n  {\n    goto LABEL_9;\n  }\n  v6 = *(cocos2d::CCAction *(__fastcall **)(cocos2d::CCAction *, char))(*(_QWORD *)v3 + 8LL);\n  if ( v6 == sub_18002AA50 )\n    sub_18002AA50((cocos2d::CCAction *)v3, 1);\n  else\n    v6((cocos2d::CCAction *)v3, 1);\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCGridAction::create from 0x18002aea0 to 0x18002afb3 (275 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801afaa8\n; > <???> @ 0x1801afab4\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, 0x18002aea0\npush    rdi                                                            ; +0x5, 0x18002aea5\nsub     rsp, 30h                                                       ; +0x6, 0x18002aea6\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x18002aeaa\nmov     rdi, rdx                                                       ; +0xf, 0x18002aeaf\nmovaps  xmm6, xmm0                                                     ; +0x12, 0x18002aeb2\nmov     ecx, 68h ; 'h'; Size                                           ; +0x15, 0x18002aeb5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x18002aeba\nmov     rbx, rax                                                       ; +0x1f, 0x18002aebf\nmov     [rsp+38h+arg_10], rax                                          ; +0x22, 0x18002aec2\ntest    rax, rax                                                       ; +0x27, 0x18002aec7\njz      short loc_18002AF11                                            ; +0x2a, 0x18002aeca\nxorps   xmm1, xmm1                                                     ; +0x2c, 0x18002aecc\nxor     eax, eax                                                       ; +0x2f, 0x18002aecf\nmovups  xmmword ptr [rbx], xmm1                                        ; +0x31, 0x18002aed1\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x34, 0x18002aed4\nmovups  xmmword ptr [rbx+20h], xmm1                                    ; +0x38, 0x18002aed8\nmovups  xmmword ptr [rbx+30h], xmm1                                    ; +0x3c, 0x18002aedc\nmovups  xmmword ptr [rbx+40h], xmm1                                    ; +0x40, 0x18002aee0\nmovups  xmmword ptr [rbx+50h], xmm1                                    ; +0x44, 0x18002aee4\nmov     [rbx+60h], rax                                                 ; +0x48, 0x18002aee8\nmov     rcx, rbx; this                                                 ; +0x4c, 0x18002aeec\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x4f, 0x18002aeef\nmov     dword ptr [rbx+50h], 0                                         ; +0x54, 0x18002aef4\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x5b, 0x18002aefb\nmov     [rbx], rax                                                     ; +0x62, 0x18002af02\nlea     rcx, [rbx+60h]; this                                           ; +0x65, 0x18002af05\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x69, 0x18002af09\nnop                                                                    ; +0x6e, 0x18002af0e\njmp     short loc_18002AF13                                            ; +0x6f, 0x18002af0f\nxor     ebx, ebx                                                       ; +0x71, 0x18002af11\ntest    rbx, rbx                                                       ; +0x73, 0x18002af13\njz      short loc_18002AF59                                            ; +0x76, 0x18002af16\nmov     rax, [rbx]                                                     ; +0x78, 0x18002af18\nmov     rdx, [rax+70h]                                                 ; +0x7b, 0x18002af1b\nlea     rax, ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0x7f, 0x18002af1f\nmovaps  xmm1, xmm6; float                                              ; +0x86, 0x18002af26\nmov     rcx, rbx; this                                                 ; +0x89, 0x18002af29\ncmp     rdx, rax                                                       ; +0x8c, 0x18002af2c\njnz     short loc_18002AF48                                            ; +0x8f, 0x18002af2f\ncall    ?initWithDuration@CCActionInterval@cocos2d@@QEAA_NM@Z; cocos2d::CCActionInterval::initWithDuration(float) ; +0x91, 0x18002af31\ntest    al, al                                                         ; +0x96, 0x18002af36\njz      short loc_18002AF6C                                            ; +0x98, 0x18002af38\nlea     rcx, [rbx+60h]                                                 ; +0x9a, 0x18002af3a\nmov     rdx, rdi                                                       ; +0x9e, 0x18002af3e\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xa1, 0x18002af41\njmp     short loc_18002AF51                                            ; +0xa6, 0x18002af46\nmov     r8, rdi                                                        ; +0xa8, 0x18002af48\ncall    rdx                                                            ; +0xab, 0x18002af4b\ntest    al, al                                                         ; +0xad, 0x18002af4d\njz      short loc_18002AF6C                                            ; +0xaf, 0x18002af4f\nmov     rcx, rbx; this                                                 ; +0xb1, 0x18002af51\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xb4, 0x18002af54\nmov     rax, rbx                                                       ; +0xb9, 0x18002af59\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xbc, 0x18002af5c\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xc1, 0x18002af61\nadd     rsp, 30h                                                       ; +0xc6, 0x18002af66\npop     rdi                                                            ; +0xca, 0x18002af6a\nretn                                                                   ; +0xcb, 0x18002af6b\nmov     rax, [rbx]                                                     ; +0xcc, 0x18002af6c\nmov     r8, [rax+8]                                                    ; +0xcf, 0x18002af6f\nlea     rax, sub_18002AA50                                             ; +0xd3, 0x18002af73\nmov     edx, 1                                                         ; +0xda, 0x18002af7a\nmov     rcx, rbx; Block                                                ; +0xdf, 0x18002af7f\ncmp     r8, rax                                                        ; +0xe2, 0x18002af82\njnz     short loc_18002AF9E                                            ; +0xe5, 0x18002af85\ncall    sub_18002AA50                                                  ; +0xe7, 0x18002af87\nxor     eax, eax                                                       ; +0xec, 0x18002af8c\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xee, 0x18002af8e\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xf3, 0x18002af93\nadd     rsp, 30h                                                       ; +0xf8, 0x18002af98\npop     rdi                                                            ; +0xfc, 0x18002af9c\nretn                                                                   ; +0xfd, 0x18002af9d\ncall    r8                                                             ; +0xfe, 0x18002af9e\nxor     eax, eax                                                       ; +0x101, 0x18002afa1\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x103, 0x18002afa3\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x108, 0x18002afa8\nadd     rsp, 30h                                                       ; +0x10d, 0x18002afad\npop     rdi                                                            ; +0x111, 0x18002afb1\nretn                                                                   ; +0x112, 0x18002afb2", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801afaa8", "<???> @ 0x1801afab4"], "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"}