{"type": "func", "start": 6443035840, "end": 6443035976, "name": "cocos2d::CCSprite::initWithFile", "pseudocode": "// \n// cocos2d::CCSprite::initWithFile from 0x18008ecc0 to 0x18008ed48 (136 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800f1d18\n// > <???> @ 0x1800f2200\n// > <???> @ 0x1800f2db0\n// > <???> @ 0x18010a1f0\n// > <???> @ 0x18010d208\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfe50\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:07 +0000\n// \n\nbool __fastcall cocos2d::CCSprite::initWithFile(cocos2d::CCSprite *this, const char *a2)\n{\n  cocos2d::CCTextureCache *v4; // rax\n  struct cocos2d::CCTexture2D *v5; // rax\n  struct cocos2d::CCTexture2D *v6; // rbx\n  _DWORD *v7; // rax\n  _BYTE v9[8]; // [rsp+20h] [rbp-18h] BYREF\n  _DWORD v10[4]; // [rsp+28h] [rbp-10h] BYREF\n  char v11; // [rsp+50h] [rbp+18h] BYREF\n\n  v4 = cocos2d::CCTextureCache::sharedTextureCache();\n  v5 = cocos2d::CCTextureCache::addImage(v4, a2, 0);\n  v6 = v5;\n  if ( v5 )\n  {\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, (const struct cocos2d::CCRect *)&unk_1801B2830);\n    v7 = (_DWORD *)(*(__int64 (__fastcall **)(struct cocos2d::CCTexture2D *, char *))(*(_QWORD *)v6 + 136LL))(v6, &v11);\n    cocos2d::CCSize::operator=(v10, v7);\n    LOBYTE(v5) = (*(bool (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCTexture2D *, _BYTE *))(*(_QWORD *)this + 896LL))(\n                   this,\n                   v6,\n                   v9);\n  }\n  return (char)v5;\n}", "assembly": "; \n; cocos2d::CCSprite::initWithFile from 0x18008ecc0 to 0x18008ed48 (136 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800f1d18\n; > <???> @ 0x1800f2200\n; > <???> @ 0x1800f2db0\n; > <???> @ 0x18010a1f0\n; > <???> @ 0x18010d208\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfe50\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:07 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008ecc0\npush    rdi                                                            ; +0x5, 0x18008ecc5\nsub     rsp, 30h                                                       ; +0x6, 0x18008ecc6\nmov     rbx, rdx                                                       ; +0xa, 0x18008ecca\nmov     rdi, rcx                                                       ; +0xd, 0x18008eccd\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x10, 0x18008ecd0\nmov     rcx, rax; this                                                 ; +0x15, 0x18008ecd5\nxor     r8d, r8d; bool                                                 ; +0x18, 0x18008ecd8\nmov     rdx, rbx; char *                                               ; +0x1b, 0x18008ecdb\ncall    ?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x1e, 0x18008ecde\nmov     rbx, rax                                                       ; +0x23, 0x18008ece3\ntest    rax, rax                                                       ; +0x26, 0x18008ece6\njz      short loc_18008ED3D                                            ; +0x29, 0x18008ece9\nlea     rdx, unk_1801B2830; struct cocos2d::CCRect *                   ; +0x2b, 0x18008eceb\nlea     rcx, [rsp+38h+var_18]; this                                    ; +0x32, 0x18008ecf2\ncall    ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x37, 0x18008ecf7\nmov     rdx, [rbx]                                                     ; +0x3c, 0x18008ecfc\nmov     rcx, rbx                                                       ; +0x3f, 0x18008ecff\nmov     r8, [rdx+88h]                                                  ; +0x42, 0x18008ed02\nlea     rdx, [rsp+38h+arg_10]                                          ; +0x49, 0x18008ed09\ncall    r8                                                             ; +0x4e, 0x18008ed0e\nmov     rdx, rax                                                       ; +0x51, 0x18008ed11\nlea     rcx, [rsp+38h+var_10]                                          ; +0x54, 0x18008ed14\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x59, 0x18008ed19\nmov     rax, [rdi]                                                     ; +0x5e, 0x18008ed1e\nlea     r8, [rsp+38h+var_18]                                           ; +0x61, 0x18008ed21\nmov     rdx, rbx                                                       ; +0x66, 0x18008ed26\nmov     rcx, rdi                                                       ; +0x69, 0x18008ed29\ncall    qword ptr [rax+380h]                                           ; +0x6c, 0x18008ed2c\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x72, 0x18008ed32\nadd     rsp, 30h                                                       ; +0x77, 0x18008ed37\npop     rdi                                                            ; +0x7b, 0x18008ed3b\nretn                                                                   ; +0x7c, 0x18008ed3c\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7d, 0x18008ed3d\nadd     rsp, 30h                                                       ; +0x82, 0x18008ed42\npop     rdi                                                            ; +0x86, 0x18008ed46\nretn                                                                   ; +0x87, 0x18008ed47", "xrefs": ["<???> @ 0x1800f1d18", "<???> @ 0x1800f2200", "<???> @ 0x1800f2db0", "<???> @ 0x18010a1f0", "<???> @ 0x18010d208", "<???> @ 0x18014cf68", "<???> @ 0x1801bfe50"], "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"}