{"type": "func", "start": 6443015744, "end": 6443015829, "name": "cocos2d::CCAnimation::init", "pseudocode": "// \n// cocos2d::CCAnimation::init from 0x180089e40 to 0x180089e95 (85 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5a00\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\nchar __fastcall cocos2d::CCAnimation::init(cocos2d::CCAnimation *this)\n{\n  cocos2d::CCArray *v2; // rax\n  cocos2d::CCArray *v3; // rbx\n  cocos2d::CCArray *m_pFrames; // rcx\n\n  this->m_uLoops = 1;\n  this->m_fDelayPerUnit = 0.0;\n  v2 = cocos2d::CCArray::create();\n  v3 = v2;\n  if ( this->m_pFrames != v2 )\n  {\n    if ( v2 )\n      cocos2d::CCObject::retain(v2);\n    m_pFrames = this->m_pFrames;\n    if ( m_pFrames )\n      cocos2d::CCObject::release(m_pFrames);\n    this->m_pFrames = v3;\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::CCAnimation::init from 0x180089e40 to 0x180089e95 (85 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5a00\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, 0x180089e40\npush    rdi                                                            ; +0x5, 0x180089e45\nsub     rsp, 20h                                                       ; +0x6, 0x180089e46\nmov     rdi, rcx                                                       ; +0xa, 0x180089e4a\nmov     dword ptr [rcx+54h], 1                                         ; +0xd, 0x180089e4d\nmov     dword ptr [rcx+3Ch], 0                                         ; +0x14, 0x180089e54\ncall    ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x1b, 0x180089e5b\nmov     rbx, rax                                                       ; +0x20, 0x180089e60\ncmp     [rdi+48h], rax                                                 ; +0x23, 0x180089e63\njz      short loc_180089E88                                            ; +0x27, 0x180089e67\ntest    rax, rax                                                       ; +0x29, 0x180089e69\njz      short loc_180089E76                                            ; +0x2c, 0x180089e6c\nmov     rcx, rax; this                                                 ; +0x2e, 0x180089e6e\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x31, 0x180089e71\nmov     rcx, [rdi+48h]; this                                           ; +0x36, 0x180089e76\ntest    rcx, rcx                                                       ; +0x3a, 0x180089e7a\njz      short loc_180089E84                                            ; +0x3d, 0x180089e7d\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x3f, 0x180089e7f\nmov     [rdi+48h], rbx                                                 ; +0x44, 0x180089e84\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x48, 0x180089e88\nmov     al, 1                                                          ; +0x4d, 0x180089e8d\nadd     rsp, 20h                                                       ; +0x4f, 0x180089e8f\npop     rdi                                                            ; +0x53, 0x180089e93\nretn                                                                   ; +0x54, 0x180089e94", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b5a00"], "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"}