{"type": "func", "start": 6443028448, "end": 6443028582, "name": "cocos2d::CCAnimationFrame::initWithSpriteFrame", "pseudocode": "// \n// cocos2d::CCAnimationFrame::initWithSpriteFrame from 0x18008cfe0 to 0x18008d066 (134 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008da4f\n// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e015\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfce8\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::CCAnimationFrame::initWithSpriteFrame(\n        cocos2d::CCAnimationFrame *this,\n        struct cocos2d::CCSpriteFrame *a2,\n        float a3,\n        struct cocos2d::CCDictionary *a4)\n{\n  cocos2d::CCObject *v7; // rcx\n  cocos2d::CCObject *v8; // rcx\n\n  if ( *((struct cocos2d::CCSpriteFrame **)this + 7) != a2 )\n  {\n    if ( a2 )\n      cocos2d::CCObject::retain(a2);\n    v7 = *((cocos2d::CCObject **)this + 7);\n    if ( v7 )\n      cocos2d::CCObject::release(v7);\n    *((_QWORD *)this + 7) = a2;\n  }\n  *((float *)this + 16) = a3;\n  if ( *((struct cocos2d::CCDictionary **)this + 9) != a4 )\n  {\n    if ( a4 )\n      cocos2d::CCObject::retain(a4);\n    v8 = *((cocos2d::CCObject **)this + 9);\n    if ( v8 )\n      cocos2d::CCObject::release(v8);\n    *((_QWORD *)this + 9) = a4;\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::CCAnimationFrame::initWithSpriteFrame from 0x18008cfe0 to 0x18008d066 (134 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008da4f\n; > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e015\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfce8\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, 0x18008cfe0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008cfe5\npush    rdi                                                            ; +0xa, 0x18008cfea\nsub     rsp, 30h                                                       ; +0xb, 0x18008cfeb\nmov     rdi, r9                                                        ; +0xf, 0x18008cfef\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x12, 0x18008cff2\nmovaps  xmm6, xmm2                                                     ; +0x17, 0x18008cff7\nmov     rsi, rdx                                                       ; +0x1a, 0x18008cffa\nmov     rbx, rcx                                                       ; +0x1d, 0x18008cffd\ncmp     [rcx+38h], rdx                                                 ; +0x20, 0x18008d000\njz      short loc_18008D025                                            ; +0x24, 0x18008d004\ntest    rdx, rdx                                                       ; +0x26, 0x18008d006\njz      short loc_18008D013                                            ; +0x29, 0x18008d009\nmov     rcx, rdx; this                                                 ; +0x2b, 0x18008d00b\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x2e, 0x18008d00e\nmov     rcx, [rbx+38h]; this                                           ; +0x33, 0x18008d013\ntest    rcx, rcx                                                       ; +0x37, 0x18008d017\njz      short loc_18008D021                                            ; +0x3a, 0x18008d01a\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x3c, 0x18008d01c\nmov     [rbx+38h], rsi                                                 ; +0x41, 0x18008d021\nmovss   dword ptr [rbx+40h], xmm6                                      ; +0x45, 0x18008d025\ncmp     [rbx+48h], rdi                                                 ; +0x4a, 0x18008d02a\njz      short loc_18008D04F                                            ; +0x4e, 0x18008d02e\ntest    rdi, rdi                                                       ; +0x50, 0x18008d030\njz      short loc_18008D03D                                            ; +0x53, 0x18008d033\nmov     rcx, rdi; this                                                 ; +0x55, 0x18008d035\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x58, 0x18008d038\nmov     rcx, [rbx+48h]; this                                           ; +0x5d, 0x18008d03d\ntest    rcx, rcx                                                       ; +0x61, 0x18008d041\njz      short loc_18008D04B                                            ; +0x64, 0x18008d044\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x66, 0x18008d046\nmov     [rbx+48h], rdi                                                 ; +0x6b, 0x18008d04b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6f, 0x18008d04f\nmov     al, 1                                                          ; +0x74, 0x18008d054\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x76, 0x18008d056\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x7b, 0x18008d05b\nadd     rsp, 30h                                                       ; +0x80, 0x18008d060\npop     rdi                                                            ; +0x84, 0x18008d064\nretn                                                                   ; +0x85, 0x18008d065", "xrefs": ["cocos2d::CCAnimationCache::parseVersion1 @ 0x18008da4f", "cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e015", "<???> @ 0x18014cf68", "<???> @ 0x1801bfce8"], "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"}