{"type": "func", "start": 6443028160, "end": 6443028447, "name": "cocos2d::CCAnimation::initWithAnimationFrames", "pseudocode": "// \n// cocos2d::CCAnimation::initWithAnimationFrames from 0x18008cec0 to 0x18008cfdf (287 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCAnimation::copyWithZone @ 0x18008cb13\n// > cocos2d::CCAnimation::create @ 0x18008cd0a\n// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e115\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfcdc\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:22:06 +0000\n// \n\nchar __fastcall cocos2d::CCAnimation::initWithAnimationFrames(\n        cocos2d::CCAnimation *this,\n        struct cocos2d::CCArray *a2,\n        float a3,\n        int a4)\n{\n  struct cocos2d::CCDictionary *v5; // rdi\n  struct cocos2d::CCDictionary *v6; // rax\n  cocos2d::CCObject *v7; // rcx\n  unsigned int *v8; // rcx\n  __int64 v9; // rax\n  _QWORD *v10; // rcx\n  _QWORD *v11; // rdx\n  float v12; // xmm0_4\n  __int64 v13; // rax\n  float v14; // xmm0_4\n  __int64 v15; // rax\n  float v16; // xmm0_4\n  __int64 v17; // rax\n  __int64 v18; // rax\n\n  *((float *)this + 15) = a3;\n  *((_DWORD *)this + 21) = a4;\n  v5 = cocos2d::CCDictionary::createWithDictionary(a2);\n  v6 = *((struct cocos2d::CCDictionary **)this + 9);\n  if ( v6 != v5 )\n  {\n    if ( v5 )\n      cocos2d::CCObject::retain(v5);\n    v7 = *((cocos2d::CCObject **)this + 9);\n    if ( v7 )\n      cocos2d::CCObject::release(v7);\n    *((_QWORD *)this + 9) = v5;\n    v6 = v5;\n  }\n  if ( v6 )\n  {\n    v8 = *((unsigned int **)v6 + 7);\n    v9 = *v8;\n    if ( (_DWORD)v9 )\n    {\n      v10 = *((_QWORD **)v8 + 2);\n      v11 = &v10[v9 - 1];\n      if ( v10 <= v11 )\n      {\n        if ( ((8 * (v9 - 1) + 8) & 0xFFFFFFFFFFFFFFF8uLL) < 0x20 )\n        {\n          do\n          {\nLABEL_17:\n            v18 = *v10;\n            if ( !*v10 )\n              break;\n            ++v10;\n            *((float *)this + 14) = *(float *)(v18 + 64) + *((float *)this + 14);\n          }\n          while ( v10 <= v11 );\n        }\n        else\n        {\n          while ( *v10 )\n          {\n            v12 = *(float *)(*v10 + 64LL) + *((float *)this + 14);\n            *((float *)this + 14) = v12;\n            v13 = v10[1];\n            if ( !v13 )\n              break;\n            v14 = v12 + *(float *)(v13 + 64);\n            *((float *)this + 14) = v14;\n            v15 = v10[2];\n            if ( !v15 )\n              break;\n            v16 = v14 + *(float *)(v15 + 64);\n            *((float *)this + 14) = v16;\n            v17 = v10[3];\n            if ( !v17 )\n              break;\n            v10 += 4;\n            *((float *)this + 14) = v16 + *(float *)(v17 + 64);\n            if ( v10 > v11 - 3 )\n            {\n              if ( v10 > v11 )\n                return 1;\n              goto LABEL_17;\n            }\n          }\n        }\n      }\n    }\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::CCAnimation::initWithAnimationFrames from 0x18008cec0 to 0x18008cfdf (287 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCAnimation::copyWithZone @ 0x18008cb13\n; > cocos2d::CCAnimation::create @ 0x18008cd0a\n; > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e115\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfcdc\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:22:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008cec0\npush    rdi                                                            ; +0x5, 0x18008cec5\nsub     rsp, 20h                                                       ; +0x6, 0x18008cec6\nmovss   dword ptr [rcx+3Ch], xmm2                                      ; +0xa, 0x18008ceca\nmov     rbx, rcx                                                       ; +0xf, 0x18008cecf\nmov     [rcx+54h], r9d                                                 ; +0x12, 0x18008ced2\nmov     rcx, rdx; struct cocos2d::CCDictionary *                       ; +0x16, 0x18008ced6\ncall    ?createWithDictionary@CCDictionary@cocos2d@@SAPEAV12@PEAV12@@Z; cocos2d::CCDictionary::createWithDictionary(cocos2d::CCDictionary *) ; +0x19, 0x18008ced9\nmov     rdi, rax                                                       ; +0x1e, 0x18008cede\nmov     rax, [rbx+48h]                                                 ; +0x21, 0x18008cee1\ncmp     rax, rdi                                                       ; +0x25, 0x18008cee5\njz      short loc_18008CF0C                                            ; +0x28, 0x18008cee8\ntest    rdi, rdi                                                       ; +0x2a, 0x18008ceea\njz      short loc_18008CEF7                                            ; +0x2d, 0x18008ceed\nmov     rcx, rdi; this                                                 ; +0x2f, 0x18008ceef\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x32, 0x18008cef2\nmov     rcx, [rbx+48h]; this                                           ; +0x37, 0x18008cef7\ntest    rcx, rcx                                                       ; +0x3b, 0x18008cefb\njz      short loc_18008CF05                                            ; +0x3e, 0x18008cefe\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x40, 0x18008cf00\nmov     [rbx+48h], rdi                                                 ; +0x45, 0x18008cf05\nmov     rax, rdi                                                       ; +0x49, 0x18008cf09\ntest    rax, rax                                                       ; +0x4c, 0x18008cf0c\njz      loc_18008CFD2                                                  ; +0x4f, 0x18008cf0f\nmov     rcx, [rax+38h]                                                 ; +0x55, 0x18008cf15\nmov     eax, [rcx]                                                     ; +0x59, 0x18008cf19\ntest    eax, eax                                                       ; +0x5b, 0x18008cf1b\njz      loc_18008CFD2                                                  ; +0x5d, 0x18008cf1d\nmov     rcx, [rcx+10h]                                                 ; +0x63, 0x18008cf23\nlea     rdx, [rax-1]                                                   ; +0x67, 0x18008cf27\nlea     rdx, [rcx+rdx*8]                                               ; +0x6b, 0x18008cf2b\ncmp     rcx, rdx                                                       ; +0x6f, 0x18008cf2f\nja      loc_18008CFD2                                                  ; +0x72, 0x18008cf32\nmov     rax, rdx                                                       ; +0x78, 0x18008cf38\nsub     rax, rcx                                                       ; +0x7b, 0x18008cf3b\nadd     rax, 8                                                         ; +0x7e, 0x18008cf3e\nand     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x82, 0x18008cf42\ncmp     rax, 20h ; ' '                                                 ; +0x86, 0x18008cf46\njb      short loc_18008CFB2                                            ; +0x8a, 0x18008cf4a\nnop     dword ptr [rax+00h]                                            ; +0x8c, 0x18008cf4c\nmov     rax, [rcx]                                                     ; +0x90, 0x18008cf50\ntest    rax, rax                                                       ; +0x93, 0x18008cf53\njz      short loc_18008CFD2                                            ; +0x96, 0x18008cf56\nmovss   xmm0, dword ptr [rax+40h]                                      ; +0x98, 0x18008cf58\naddss   xmm0, dword ptr [rbx+38h]                                      ; +0x9d, 0x18008cf5d\nmovss   dword ptr [rbx+38h], xmm0                                      ; +0xa2, 0x18008cf62\nmov     rax, [rcx+8]                                                   ; +0xa7, 0x18008cf67\ntest    rax, rax                                                       ; +0xab, 0x18008cf6b\njz      short loc_18008CFD2                                            ; +0xae, 0x18008cf6e\naddss   xmm0, dword ptr [rax+40h]                                      ; +0xb0, 0x18008cf70\nmovss   dword ptr [rbx+38h], xmm0                                      ; +0xb5, 0x18008cf75\nmov     rax, [rcx+10h]                                                 ; +0xba, 0x18008cf7a\ntest    rax, rax                                                       ; +0xbe, 0x18008cf7e\njz      short loc_18008CFD2                                            ; +0xc1, 0x18008cf81\naddss   xmm0, dword ptr [rax+40h]                                      ; +0xc3, 0x18008cf83\nmovss   dword ptr [rbx+38h], xmm0                                      ; +0xc8, 0x18008cf88\nmov     rax, [rcx+18h]                                                 ; +0xcd, 0x18008cf8d\ntest    rax, rax                                                       ; +0xd1, 0x18008cf91\njz      short loc_18008CFD2                                            ; +0xd4, 0x18008cf94\naddss   xmm0, dword ptr [rax+40h]                                      ; +0xd6, 0x18008cf96\nadd     rcx, 20h ; ' '                                                 ; +0xdb, 0x18008cf9b\nlea     rax, [rdx-18h]                                                 ; +0xdf, 0x18008cf9f\nmovss   dword ptr [rbx+38h], xmm0                                      ; +0xe3, 0x18008cfa3\ncmp     rcx, rax                                                       ; +0xe8, 0x18008cfa8\njbe     short loc_18008CF50                                            ; +0xeb, 0x18008cfab\ncmp     rcx, rdx                                                       ; +0xed, 0x18008cfad\nja      short loc_18008CFD2                                            ; +0xf0, 0x18008cfb0\nmov     rax, [rcx]                                                     ; +0xf2, 0x18008cfb2\ntest    rax, rax                                                       ; +0xf5, 0x18008cfb5\njz      short loc_18008CFD2                                            ; +0xf8, 0x18008cfb8\nmovss   xmm0, dword ptr [rax+40h]                                      ; +0xfa, 0x18008cfba\nadd     rcx, 8                                                         ; +0xff, 0x18008cfbf\naddss   xmm0, dword ptr [rbx+38h]                                      ; +0x103, 0x18008cfc3\nmovss   dword ptr [rbx+38h], xmm0                                      ; +0x108, 0x18008cfc8\ncmp     rcx, rdx                                                       ; +0x10d, 0x18008cfcd\njbe     short loc_18008CFB2                                            ; +0x110, 0x18008cfd0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x112, 0x18008cfd2\nmov     al, 1                                                          ; +0x117, 0x18008cfd7\nadd     rsp, 20h                                                       ; +0x119, 0x18008cfd9\npop     rdi                                                            ; +0x11d, 0x18008cfdd\nretn                                                                   ; +0x11e, 0x18008cfde", "xrefs": ["cocos2d::CCAnimation::copyWithZone @ 0x18008cb13", "cocos2d::CCAnimation::create @ 0x18008cd0a", "cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e115", "<???> @ 0x18014cf68", "<???> @ 0x1801bfcdc"], "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"}