{"type": "func", "start": 6443026896, "end": 6443027020, "name": "cocos2d::CCAnimation::addSpriteFrameWithFileName", "pseudocode": "// \n// cocos2d::CCAnimation::addSpriteFrameWithFileName from 0x18008c9d0 to 0x18008ca4c (124 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfc7c\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\nvoid __fastcall cocos2d::CCAnimation::addSpriteFrameWithFileName(cocos2d::CCArray **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  _BYTE v8[8]; // [rsp+20h] [rbp-18h] BYREF\n  _DWORD v9[4]; // [rsp+28h] [rbp-10h] BYREF\n  char v10; // [rsp+50h] [rbp+18h] BYREF\n\n  v4 = cocos2d::CCTextureCache::sharedTextureCache();\n  v5 = cocos2d::CCTextureCache::addImage(v4, a2, 0);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, (const struct cocos2d::CCRect *)&unk_1801B2818);\n  v6 = (_DWORD *)(*(__int64 (__fastcall **)(struct cocos2d::CCTexture2D *, char *))(*(_QWORD *)v5 + 136LL))(v5, &v10);\n  cocos2d::CCSize::operator=(v9, v6);\n  v7 = cocos2d::CCSpriteFrame::createWithTexture(v5, (const struct cocos2d::CCRect *)v8);\n  cocos2d::CCAnimation::addSpriteFrame(this, v7);\n}", "assembly": "; \n; cocos2d::CCAnimation::addSpriteFrameWithFileName from 0x18008c9d0 to 0x18008ca4c (124 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfc7c\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, 0x18008c9d0\npush    rdi                                                            ; +0x5, 0x18008c9d5\nsub     rsp, 30h                                                       ; +0x6, 0x18008c9d6\nmov     rbx, rdx                                                       ; +0xa, 0x18008c9da\nmov     rdi, rcx                                                       ; +0xd, 0x18008c9dd\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x10, 0x18008c9e0\nmov     rcx, rax; this                                                 ; +0x15, 0x18008c9e5\nxor     r8d, r8d; bool                                                 ; +0x18, 0x18008c9e8\nmov     rdx, rbx; char *                                               ; +0x1b, 0x18008c9eb\ncall    ?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x1e, 0x18008c9ee\nlea     rdx, unk_1801B2818; struct cocos2d::CCRect *                   ; +0x23, 0x18008c9f3\nmov     rbx, rax                                                       ; +0x2a, 0x18008c9fa\nlea     rcx, [rsp+38h+var_18]; this                                    ; +0x2d, 0x18008c9fd\ncall    ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x32, 0x18008ca02\nmov     rdx, [rbx]                                                     ; +0x37, 0x18008ca07\nmov     rcx, rbx                                                       ; +0x3a, 0x18008ca0a\nmov     r8, [rdx+88h]                                                  ; +0x3d, 0x18008ca0d\nlea     rdx, [rsp+38h+arg_10]                                          ; +0x44, 0x18008ca14\ncall    r8                                                             ; +0x49, 0x18008ca19\nmov     rdx, rax                                                       ; +0x4c, 0x18008ca1c\nlea     rcx, [rsp+38h+var_10]                                          ; +0x4f, 0x18008ca1f\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x54, 0x18008ca24\nlea     rdx, [rsp+38h+var_18]; struct cocos2d::CCRect *                ; +0x59, 0x18008ca29\nmov     rcx, rbx; struct cocos2d::CCTexture2D *                        ; +0x5e, 0x18008ca2e\ncall    ?createWithTexture@CCSpriteFrame@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@AEBVCCRect@2@@Z; cocos2d::CCSpriteFrame::createWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &) ; +0x61, 0x18008ca31\nmov     rdx, rax; struct cocos2d::CCSpriteFrame *                      ; +0x66, 0x18008ca36\nmov     rcx, rdi; this                                                 ; +0x69, 0x18008ca39\ncall    ?addSpriteFrame@CCAnimation@cocos2d@@QEAAXPEAVCCSpriteFrame@2@@Z; cocos2d::CCAnimation::addSpriteFrame(cocos2d::CCSpriteFrame *) ; +0x6c, 0x18008ca3c\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x71, 0x18008ca41\nadd     rsp, 30h                                                       ; +0x76, 0x18008ca46\npop     rdi                                                            ; +0x7a, 0x18008ca4a\nretn                                                                   ; +0x7b, 0x18008ca4b", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bfc7c"], "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"}