{"type": "func", "start": 6443015600, "end": 6443015727, "name": "cocos2d::CCAnimation::createWithSpriteFrames", "pseudocode": "// \n// cocos2d::CCAnimation::createWithSpriteFrames from 0x180089db0 to 0x180089e2f (127 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b59f4\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\nstruct cocos2d::CCAnimation *__fastcall cocos2d::CCAnimation::createWithSpriteFrames(\n        struct cocos2d::CCArray *a1,\n        float a2)\n{\n  cocos2d::CCObject *v3; // rax\n  cocos2d::CCObject *v4; // rbx\n\n  v3 = (cocos2d::CCObject *)operator new(0x58u);\n  v4 = v3;\n  if ( v3 )\n  {\n    cocos2d::CCObject::CCObject(v3);\n    v4->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCAnimation::`vftable';\n    v4[1].__vftable = nullptr;\n    v4[1].m_uID = 0;\n    *(_QWORD *)&v4[1].m_nTag = 0;\n    LOBYTE(v4[1].m_uAutoReleaseCount) = 0;\n    v4[1].m_eObjType = 0;\n  }\n  else\n  {\n    v4 = nullptr;\n  }\n  cocos2d::CCAnimation::initWithSpriteFrames((cocos2d::CCAnimation *)v4, a1, a2);\n  cocos2d::CCObject::autorelease(v4);\n  return (struct cocos2d::CCAnimation *)v4;\n}", "assembly": "; \n; cocos2d::CCAnimation::createWithSpriteFrames from 0x180089db0 to 0x180089e2f (127 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b59f4\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, 0x180089db0\npush    rdi                                                            ; +0x5, 0x180089db5\nsub     rsp, 30h                                                       ; +0x6, 0x180089db6\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x180089dba\nmovaps  xmm6, xmm1                                                     ; +0xf, 0x180089dbf\nmov     rdi, rcx                                                       ; +0x12, 0x180089dc2\nmov     ecx, 58h ; 'X'; Size                                           ; +0x15, 0x180089dc5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x180089dca\nmov     rbx, rax                                                       ; +0x1f, 0x180089dcf\nmov     [rsp+38h+arg_10], rax                                          ; +0x22, 0x180089dd2\ntest    rax, rax                                                       ; +0x27, 0x180089dd7\njz      short loc_180089E03                                            ; +0x2a, 0x180089dda\nmov     rcx, rax; this                                                 ; +0x2c, 0x180089ddc\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2f, 0x180089ddf\nlea     rax, ??_7CCAnimation@cocos2d@@6B@; const cocos2d::CCAnimation::`vftable' ; +0x34, 0x180089de4\nmov     [rbx], rax                                                     ; +0x3b, 0x180089deb\nxor     eax, eax                                                       ; +0x3e, 0x180089dee\nmov     [rbx+38h], rax                                                 ; +0x40, 0x180089df0\nmov     [rbx+40h], eax                                                 ; +0x44, 0x180089df4\nmov     [rbx+48h], rax                                                 ; +0x47, 0x180089df7\nmov     [rbx+50h], al                                                  ; +0x4b, 0x180089dfb\nmov     [rbx+54h], eax                                                 ; +0x4e, 0x180089dfe\njmp     short loc_180089E06                                            ; +0x51, 0x180089e01\nmov     rbx, rax                                                       ; +0x53, 0x180089e03\nmovaps  xmm2, xmm6; float                                              ; +0x56, 0x180089e06\nmov     rdx, rdi; struct cocos2d::CCArray *                            ; +0x59, 0x180089e09\nmov     rcx, rbx; this                                                 ; +0x5c, 0x180089e0c\ncall    ?initWithSpriteFrames@CCAnimation@cocos2d@@QEAA_NPEAVCCArray@2@M@Z; cocos2d::CCAnimation::initWithSpriteFrames(cocos2d::CCArray *,float) ; +0x5f, 0x180089e0f\nmov     rcx, rbx; this                                                 ; +0x64, 0x180089e14\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x67, 0x180089e17\nmov     rax, rbx                                                       ; +0x6c, 0x180089e1c\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6f, 0x180089e1f\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x74, 0x180089e24\nadd     rsp, 30h                                                       ; +0x79, 0x180089e29\npop     rdi                                                            ; +0x7d, 0x180089e2d\nretn                                                                   ; +0x7e, 0x180089e2e", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b59f4"], "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"}