{"type": "func", "start": 6443026672, "end": 6443026888, "name": "cocos2d::CCAnimation::addSpriteFrame", "pseudocode": "// \n// cocos2d::CCAnimation::addSpriteFrame from 0x18008c8f0 to 0x18008c9c8 (216 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCAnimation::addSpriteFrameWithFileName @ 0x18008ca3c\n// > cocos2d::CCAnimation::addSpriteFrameWithTexture @ 0x18008ca72\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfc70\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\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCAnimation::addSpriteFrame(cocos2d::CCArray **this, struct cocos2d::CCSpriteFrame *a2)\n{\n  cocos2d::CCObject *v4; // rax\n  cocos2d::CCObject *v5; // rbx\n  cocos2d::CCObject *v6; // rcx\n  cocos2d::CCObject *v7; // rcx\n\n  v4 = (cocos2d::CCObject *)sub_1800E4AC0(0x50u);\n  v5 = v4;\n  if ( v4 )\n  {\n    cocos2d::CCObject::CCObject(v4);\n    *(_QWORD *)v5 = &cocos2d::CCAnimationFrame::`vftable';\n    *((_QWORD *)v5 + 7) = 0;\n    *((_DWORD *)v5 + 16) = 0;\n    *((_QWORD *)v5 + 9) = 0;\n    *((_DWORD *)v5 + 7) = 14;\n  }\n  else\n  {\n    v5 = nullptr;\n  }\n  if ( *((struct cocos2d::CCSpriteFrame **)v5 + 7) != a2 )\n  {\n    if ( a2 )\n      cocos2d::CCObject::retain(a2);\n    v6 = *((cocos2d::CCObject **)v5 + 7);\n    if ( v6 )\n      cocos2d::CCObject::release(v6);\n    *((_QWORD *)v5 + 7) = a2;\n  }\n  *((_DWORD *)v5 + 16) = 1065353216;\n  v7 = *((cocos2d::CCObject **)v5 + 9);\n  if ( v7 )\n  {\n    cocos2d::CCObject::release(v7);\n    *((_QWORD *)v5 + 9) = 0;\n  }\n  cocos2d::CCArray::addObject(*(this + 9), v5);\n  cocos2d::CCObject::release(v5);\n  *((float *)this + 14) = *((float *)this + 14) + 1.0;\n}", "assembly": "; \n; cocos2d::CCAnimation::addSpriteFrame from 0x18008c8f0 to 0x18008c9c8 (216 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCAnimation::addSpriteFrameWithFileName @ 0x18008ca3c\n; > cocos2d::CCAnimation::addSpriteFrameWithTexture @ 0x18008ca72\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfc70\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_8], rbx                                               ; +0x0, 0x18008c8f0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x18008c8f5\npush    rsi                                                            ; +0xa, 0x18008c8fa\nsub     rsp, 20h                                                       ; +0xb, 0x18008c8fb\nmov     rsi, rdx                                                       ; +0xf, 0x18008c8ff\nmov     rbp, rcx                                                       ; +0x12, 0x18008c902\nmov     ecx, 50h ; 'P'; Size                                           ; +0x15, 0x18008c905\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x18008c90a\nmov     rbx, rax                                                       ; +0x1f, 0x18008c90f\nmov     [rsp+28h+arg_0], rax                                           ; +0x22, 0x18008c912\ntest    rax, rax                                                       ; +0x27, 0x18008c917\njz      short loc_18008C94E                                            ; +0x2a, 0x18008c91a\nmov     rcx, rax; this                                                 ; +0x2c, 0x18008c91c\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2f, 0x18008c91f\nlea     rax, ??_7CCAnimationFrame@cocos2d@@6B@; const cocos2d::CCAnimationFrame::`vftable' ; +0x34, 0x18008c924\nmov     [rbx], rax                                                     ; +0x3b, 0x18008c92b\nmov     qword ptr [rbx+38h], 0                                         ; +0x3e, 0x18008c92e\nmov     dword ptr [rbx+40h], 0                                         ; +0x46, 0x18008c936\nmov     qword ptr [rbx+48h], 0                                         ; +0x4d, 0x18008c93d\nmov     dword ptr [rbx+1Ch], 0Eh                                       ; +0x55, 0x18008c945\njmp     short loc_18008C950                                            ; +0x5c, 0x18008c94c\nxor     ebx, ebx                                                       ; +0x5e, 0x18008c94e\ncmp     [rbx+38h], rsi                                                 ; +0x60, 0x18008c950\njz      short loc_18008C975                                            ; +0x64, 0x18008c954\ntest    rsi, rsi                                                       ; +0x66, 0x18008c956\njz      short loc_18008C963                                            ; +0x69, 0x18008c959\nmov     rcx, rsi; this                                                 ; +0x6b, 0x18008c95b\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x6e, 0x18008c95e\nmov     rcx, [rbx+38h]; this                                           ; +0x73, 0x18008c963\ntest    rcx, rcx                                                       ; +0x77, 0x18008c967\njz      short loc_18008C971                                            ; +0x7a, 0x18008c96a\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7c, 0x18008c96c\nmov     [rbx+38h], rsi                                                 ; +0x81, 0x18008c971\nmov     dword ptr [rbx+40h], 3F800000h                                 ; +0x85, 0x18008c975\nmov     rcx, [rbx+48h]; this                                           ; +0x8c, 0x18008c97c\ntest    rcx, rcx                                                       ; +0x90, 0x18008c980\njz      short loc_18008C992                                            ; +0x93, 0x18008c983\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x95, 0x18008c985\nmov     qword ptr [rbx+48h], 0                                         ; +0x9a, 0x18008c98a\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0xa2, 0x18008c992\nmov     rcx, [rbp+48h]; this                                           ; +0xa5, 0x18008c995\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xa9, 0x18008c999\nmov     rcx, rbx; this                                                 ; +0xae, 0x18008c99e\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xb1, 0x18008c9a1\nmovss   xmm0, dword ptr [rbp+38h]                                      ; +0xb6, 0x18008c9a6\naddss   xmm0, cs:flt_1800EC208                                         ; +0xbb, 0x18008c9ab\nmovss   dword ptr [rbp+38h], xmm0                                      ; +0xc3, 0x18008c9b3\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc8, 0x18008c9b8\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xcd, 0x18008c9bd\nadd     rsp, 20h                                                       ; +0xd2, 0x18008c9c2\npop     rsi                                                            ; +0xd6, 0x18008c9c6\nretn                                                                   ; +0xd7, 0x18008c9c7", "xrefs": ["cocos2d::CCAnimation::addSpriteFrameWithFileName @ 0x18008ca3c", "cocos2d::CCAnimation::addSpriteFrameWithTexture @ 0x18008ca72", "<???> @ 0x18014cf68", "<???> @ 0x1801bfc70"], "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"}