{"type": "func", "start": 6443014576, "end": 6443014697, "name": "cocos2d::CCAnimation::addSpriteFrameWithFileName", "pseudocode": "// \n// cocos2d::CCAnimation::addSpriteFrameWithFileName from 0x1800899b0 to 0x180089a29 (121 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b59ac\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\nvoid __fastcall cocos2d::CCAnimation::addSpriteFrameWithFileName(cocos2d::CCAnimation *this, const char *a2)\n{\n  cocos2d::CCTextureCache *v4; // rax\n  struct cocos2d::CCTexture2D *v5; // rbx\n  _DWORD *v6; // rax\n  struct cocos2d::CCSpriteFrame *v7; // rax\n  cocos2d::CCRect v8; // [rsp+20h] [rbp-18h] BYREF\n  char v9; // [rsp+50h] [rbp+18h] BYREF\n\n  v4 = cocos2d::CCTextureCache::sharedTextureCache();\n  v5 = cocos2d::CCTextureCache::addImage(v4, a2, 0);\n  cocos2d::CCRect::CCRect(&v8, &unk_1801A87B8);\n  v6 = (_DWORD *)((__int64 (__fastcall *)(struct cocos2d::CCTexture2D *, char *))v5->getContentSize)(v5, &v9);\n  cocos2d::CCSize::operator=(&v8.size, v6);\n  v7 = cocos2d::CCSpriteFrame::createWithTexture(v5, &v8);\n  cocos2d::CCAnimation::addSpriteFrame(this, v7);\n}", "assembly": "; \n; cocos2d::CCAnimation::addSpriteFrameWithFileName from 0x1800899b0 to 0x180089a29 (121 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b59ac\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, 0x1800899b0\npush    rdi                                                            ; +0x5, 0x1800899b5\nsub     rsp, 30h                                                       ; +0x6, 0x1800899b6\nmov     rbx, rdx                                                       ; +0xa, 0x1800899ba\nmov     rdi, rcx                                                       ; +0xd, 0x1800899bd\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x10, 0x1800899c0\nmov     rcx, rax; this                                                 ; +0x15, 0x1800899c5\nxor     r8d, r8d; bool                                                 ; +0x18, 0x1800899c8\nmov     rdx, rbx; char *                                               ; +0x1b, 0x1800899cb\ncall    ?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x1e, 0x1800899ce\nlea     rdx, unk_1801A87B8; struct cocos2d::CCRect *                   ; +0x23, 0x1800899d3\nmov     rbx, rax                                                       ; +0x2a, 0x1800899da\nlea     rcx, [rsp+38h+var_18]; this                                    ; +0x2d, 0x1800899dd\ncall    ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x32, 0x1800899e2\nmov     r8, [rbx]                                                      ; +0x37, 0x1800899e7\nlea     rdx, [rsp+38h+arg_10]                                          ; +0x3a, 0x1800899ea\nmov     rcx, rbx                                                       ; +0x3f, 0x1800899ef\ncall    qword ptr [r8+88h]                                             ; +0x42, 0x1800899f2\nmov     rdx, rax                                                       ; +0x49, 0x1800899f9\nlea     rcx, [rsp+38h+var_10]                                          ; +0x4c, 0x1800899fc\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x51, 0x180089a01\nlea     rdx, [rsp+38h+var_18]; struct cocos2d::CCRect *                ; +0x56, 0x180089a06\nmov     rcx, rbx; struct cocos2d::CCTexture2D *                        ; +0x5b, 0x180089a0b\ncall    ?createWithTexture@CCSpriteFrame@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@AEBVCCRect@2@@Z; cocos2d::CCSpriteFrame::createWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &) ; +0x5e, 0x180089a0e\nmov     rdx, rax; struct cocos2d::CCSpriteFrame *                      ; +0x63, 0x180089a13\nmov     rcx, rdi; this                                                 ; +0x66, 0x180089a16\ncall    ?addSpriteFrame@CCAnimation@cocos2d@@QEAAXPEAVCCSpriteFrame@2@@Z; cocos2d::CCAnimation::addSpriteFrame(cocos2d::CCSpriteFrame *) ; +0x69, 0x180089a19\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6e, 0x180089a1e\nadd     rsp, 30h                                                       ; +0x73, 0x180089a23\npop     rdi                                                            ; +0x77, 0x180089a27\nretn                                                                   ; +0x78, 0x180089a28", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b59ac"], "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"}