{"type": "func", "start": 6442670592, "end": 6442670842, "name": "cocos2d::CCAnimate::reverse", "pseudocode": "// \n// cocos2d::CCAnimate::reverse from 0x180035a00 to 0x180035afa (250 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e9f38\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b07bc\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=1\ncocos2d::CCAnimate *__fastcall cocos2d::CCAnimate::reverse(cocos2d::CCAnimate *this)\n{\n  cocos2d::CCArray *Myfirst; // rbx\n  unsigned int v3; // eax\n  cocos2d::CCArray *v4; // rsi\n  cocos2d::ccArray *data; // rdi\n  __int64 num; // rcx\n  unsigned __int64 arr; // rdi\n  cocos2d::CCObject **i; // rbx\n  cocos2d::CCObject *v9; // rax\n  struct cocos2d::CCObject *v10; // rax\n  struct cocos2d::CCAnimation *v11; // rdi\n  cocos2d::CCAnimate *v12; // rax\n  cocos2d::CCAnimate *v13; // rbx\n\n  Myfirst = (cocos2d::CCArray *)this->m_pSplitTimes[3]._Mypair._Myval2._Myfirst;\n  v3 = cocos2d::CCArray::count(Myfirst);\n  v4 = cocos2d::CCArray::createWithCapacity(v3);\n  if ( (unsigned int)cocos2d::CCArray::count(Myfirst) )\n  {\n    if ( Myfirst )\n    {\n      data = Myfirst->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = (unsigned __int64)data->arr;\n        for ( i = (cocos2d::CCObject **)(arr + 8 * (num - 1)); (unsigned __int64)i >= arr; --i )\n        {\n          if ( !*i )\n            break;\n          v9 = cocos2d::CCObject::copy(*i);\n          v10 = cocos2d::CCObject::autorelease(v9);\n          cocos2d::CCArray::addObject(v4, v10);\n        }\n      }\n    }\n  }\n  v11 = cocos2d::CCAnimation::create(\n          v4,\n          *((float *)&this->m_pSplitTimes[2]._Mypair._Myval2._Mylast + 1),\n          HIDWORD(this->m_pSplitTimes[3]._Mypair._Myval2._Mylast));\n  v11->m_bRestoreOriginalFrame = (bool)this->m_pSplitTimes[3]._Mypair._Myval2._Mylast;\n  v12 = (cocos2d::CCAnimate *)operator new(0x88u);\n  if ( v12 )\n    v13 = cocos2d::CCAnimate::CCAnimate(v12);\n  else\n    v13 = nullptr;\n  cocos2d::CCAnimate::initWithAnimation(v13, v11);\n  cocos2d::CCObject::autorelease(v13);\n  return v13;\n}", "assembly": "; \n; cocos2d::CCAnimate::reverse from 0x180035a00 to 0x180035afa (250 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e9f38\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b07bc\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_8], rbx                                               ; +0x0, 0x180035a00\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180035a05\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x180035a0a\npush    rdi                                                            ; +0xf, 0x180035a0f\nsub     rsp, 20h                                                       ; +0x10, 0x180035a10\nmov     rbp, rcx                                                       ; +0x14, 0x180035a14\nmov     rax, [rcx+60h]                                                 ; +0x17, 0x180035a17\nmov     rbx, [rax+48h]                                                 ; +0x1b, 0x180035a1b\nmov     rcx, rbx; this                                                 ; +0x1f, 0x180035a1f\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x22, 0x180035a22\nmov     ecx, eax; Count                                                ; +0x27, 0x180035a27\ncall    ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x29, 0x180035a29\nmov     rsi, rax                                                       ; +0x2e, 0x180035a2e\nmov     rcx, rbx; this                                                 ; +0x31, 0x180035a31\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x34, 0x180035a34\ntest    eax, eax                                                       ; +0x39, 0x180035a39\njz      short loc_180035A89                                            ; +0x3b, 0x180035a3b\ntest    rbx, rbx                                                       ; +0x3d, 0x180035a3d\njz      short loc_180035A89                                            ; +0x40, 0x180035a40\nmov     rdi, [rbx+38h]                                                 ; +0x42, 0x180035a42\nmov     ecx, [rdi]                                                     ; +0x46, 0x180035a46\ntest    ecx, ecx                                                       ; +0x48, 0x180035a48\njz      short loc_180035A89                                            ; +0x4a, 0x180035a4a\nmov     rdi, [rdi+10h]                                                 ; +0x4c, 0x180035a4c\nlea     rbx, [rcx-1]                                                   ; +0x50, 0x180035a50\nlea     rbx, [rdi+rbx*8]                                               ; +0x54, 0x180035a54\ncmp     rbx, rdi                                                       ; +0x58, 0x180035a58\njb      short loc_180035A89                                            ; +0x5b, 0x180035a5b\nnop     dword ptr [rax]                                                ; +0x5d, 0x180035a5d\nmov     rcx, [rbx]; this                                               ; +0x60, 0x180035a60\ntest    rcx, rcx                                                       ; +0x63, 0x180035a63\njz      short loc_180035A89                                            ; +0x66, 0x180035a66\ncall    ?copy@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::copy(void) ; +0x68, 0x180035a68\nmov     rcx, rax; this                                                 ; +0x6d, 0x180035a6d\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x70, 0x180035a70\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x75, 0x180035a75\nmov     rcx, rsi; this                                                 ; +0x78, 0x180035a78\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x7b, 0x180035a7b\nsub     rbx, 8                                                         ; +0x80, 0x180035a80\ncmp     rbx, rdi                                                       ; +0x84, 0x180035a84\njnb     short loc_180035A60                                            ; +0x87, 0x180035a87\nmov     rax, [rbp+60h]                                                 ; +0x89, 0x180035a89\nmov     r8d, [rax+54h]; unsigned int                                   ; +0x8d, 0x180035a8d\nmovss   xmm1, dword ptr [rax+3Ch]; float                               ; +0x91, 0x180035a91\nmov     rcx, rsi; struct cocos2d::CCArray *                            ; +0x96, 0x180035a96\ncall    ?create@CCAnimation@cocos2d@@SAPEAV12@PEAVCCArray@2@MI@Z; cocos2d::CCAnimation::create(cocos2d::CCArray *,float,uint) ; +0x99, 0x180035a99\nmov     rdi, rax                                                       ; +0x9e, 0x180035a9e\nmov     rcx, [rbp+60h]                                                 ; +0xa1, 0x180035aa1\nmovzx   edx, byte ptr [rcx+50h]                                        ; +0xa5, 0x180035aa5\nmov     [rax+50h], dl                                                  ; +0xa9, 0x180035aa9\nmov     ecx, 88h; Size                                                 ; +0xac, 0x180035aac\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb1, 0x180035ab1\nmov     [rsp+28h+arg_0], rax                                           ; +0xb6, 0x180035ab6\ntest    rax, rax                                                       ; +0xbb, 0x180035abb\njz      short loc_180035ACD                                            ; +0xbe, 0x180035abe\nmov     rcx, rax; this                                                 ; +0xc0, 0x180035ac0\ncall    ??0CCAnimate@cocos2d@@QEAA@XZ; cocos2d::CCAnimate::CCAnimate(void) ; +0xc3, 0x180035ac3\nmov     rbx, rax                                                       ; +0xc8, 0x180035ac8\njmp     short loc_180035ACF                                            ; +0xcb, 0x180035acb\nxor     ebx, ebx                                                       ; +0xcd, 0x180035acd\nmov     rdx, rdi; struct cocos2d::CCAnimation *                        ; +0xcf, 0x180035acf\nmov     rcx, rbx; this                                                 ; +0xd2, 0x180035ad2\ncall    ?initWithAnimation@CCAnimate@cocos2d@@QEAA_NPEAVCCAnimation@2@@Z; cocos2d::CCAnimate::initWithAnimation(cocos2d::CCAnimation *) ; +0xd5, 0x180035ad5\nmov     rcx, rbx; this                                                 ; +0xda, 0x180035ada\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xdd, 0x180035add\nmov     rax, rbx                                                       ; +0xe2, 0x180035ae2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xe5, 0x180035ae5\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xea, 0x180035aea\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xef, 0x180035aef\nadd     rsp, 20h                                                       ; +0xf4, 0x180035af4\npop     rdi                                                            ; +0xf8, 0x180035af8\nretn                                                                   ; +0xf9, 0x180035af9", "xrefs": ["<???> @ 0x1800e9f38", "<???> @ 0x1801438a8", "<???> @ 0x1801b07bc"], "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"}