{"type": "func", "start": 6443016128, "end": 6443016262, "name": "cocos2d::CCAnimationFrame::initWithSpriteFrame", "pseudocode": "// \n// cocos2d::CCAnimationFrame::initWithSpriteFrame from 0x180089fc0 to 0x18008a046 (134 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008a9df\n// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008af28\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5a18\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::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 0x180089fc0 to 0x18008a046 (134 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008a9df\n; > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008af28\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5a18\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, 0x180089fc0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180089fc5\npush    rdi                                                            ; +0xa, 0x180089fca\nsub     rsp, 30h                                                       ; +0xb, 0x180089fcb\nmov     rdi, r9                                                        ; +0xf, 0x180089fcf\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x12, 0x180089fd2\nmovaps  xmm6, xmm2                                                     ; +0x17, 0x180089fd7\nmov     rsi, rdx                                                       ; +0x1a, 0x180089fda\nmov     rbx, rcx                                                       ; +0x1d, 0x180089fdd\ncmp     [rcx+38h], rdx                                                 ; +0x20, 0x180089fe0\njz      short loc_18008A005                                            ; +0x24, 0x180089fe4\ntest    rdx, rdx                                                       ; +0x26, 0x180089fe6\njz      short loc_180089FF3                                            ; +0x29, 0x180089fe9\nmov     rcx, rdx; this                                                 ; +0x2b, 0x180089feb\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x2e, 0x180089fee\nmov     rcx, [rbx+38h]; this                                           ; +0x33, 0x180089ff3\ntest    rcx, rcx                                                       ; +0x37, 0x180089ff7\njz      short loc_18008A001                                            ; +0x3a, 0x180089ffa\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x3c, 0x180089ffc\nmov     [rbx+38h], rsi                                                 ; +0x41, 0x18008a001\nmovss   dword ptr [rbx+40h], xmm6                                      ; +0x45, 0x18008a005\ncmp     [rbx+48h], rdi                                                 ; +0x4a, 0x18008a00a\njz      short loc_18008A02F                                            ; +0x4e, 0x18008a00e\ntest    rdi, rdi                                                       ; +0x50, 0x18008a010\njz      short loc_18008A01D                                            ; +0x53, 0x18008a013\nmov     rcx, rdi; this                                                 ; +0x55, 0x18008a015\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x58, 0x18008a018\nmov     rcx, [rbx+48h]; this                                           ; +0x5d, 0x18008a01d\ntest    rcx, rcx                                                       ; +0x61, 0x18008a021\njz      short loc_18008A02B                                            ; +0x64, 0x18008a024\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x66, 0x18008a026\nmov     [rbx+48h], rdi                                                 ; +0x6b, 0x18008a02b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6f, 0x18008a02f\nmov     al, 1                                                          ; +0x74, 0x18008a034\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x76, 0x18008a036\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x7b, 0x18008a03b\nadd     rsp, 30h                                                       ; +0x80, 0x18008a040\npop     rdi                                                            ; +0x84, 0x18008a044\nretn                                                                   ; +0x85, 0x18008a045", "xrefs": ["cocos2d::CCAnimationCache::parseVersion1 @ 0x18008a9df", "cocos2d::CCAnimationCache::parseVersion2 @ 0x18008af28", "<???> @ 0x1801438a8", "<???> @ 0x1801b5a18"], "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"}