{"type": "func", "start": 6443035984, "end": 6443036085, "name": "cocos2d::CCSprite::initWithFile", "pseudocode": "// \n// cocos2d::CCSprite::initWithFile from 0x18008ed50 to 0x18008edb5 (101 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800f1d10\n// > <???> @ 0x1800f21f8\n// > <???> @ 0x1800f2da8\n// > <???> @ 0x18010a1e8\n// > <???> @ 0x18010d200\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfe5c\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(\n        cocos2d::CCSprite *this,\n        const char *a2,\n        const struct cocos2d::CCRect *a3)\n{\n  cocos2d::CCTextureCache *v6; // rax\n  struct cocos2d::CCTexture2D *v7; // rax\n\n  v6 = cocos2d::CCTextureCache::sharedTextureCache();\n  v7 = cocos2d::CCTextureCache::addImage(v6, a2, 0);\n  if ( v7 )\n    LOBYTE(v7) = (*(bool (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCTexture2D *, const struct cocos2d::CCRect *))(*(_QWORD *)this + 896LL))(\n                   this,\n                   v7,\n                   a3);\n  return (char)v7;\n}", "assembly": "; \n; cocos2d::CCSprite::initWithFile from 0x18008ed50 to 0x18008edb5 (101 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800f1d10\n; > <???> @ 0x1800f21f8\n; > <???> @ 0x1800f2da8\n; > <???> @ 0x18010a1e8\n; > <???> @ 0x18010d200\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfe5c\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, 0x18008ed50\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008ed55\npush    rdi                                                            ; +0xa, 0x18008ed5a\nsub     rsp, 20h                                                       ; +0xb, 0x18008ed5b\nmov     rsi, r8                                                        ; +0xf, 0x18008ed5f\nmov     rbx, rdx                                                       ; +0x12, 0x18008ed62\nmov     rdi, rcx                                                       ; +0x15, 0x18008ed65\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x18, 0x18008ed68\nmov     rcx, rax; this                                                 ; +0x1d, 0x18008ed6d\nxor     r8d, r8d; bool                                                 ; +0x20, 0x18008ed70\nmov     rdx, rbx; char *                                               ; +0x23, 0x18008ed73\ncall    ?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x26, 0x18008ed76\ntest    rax, rax                                                       ; +0x2b, 0x18008ed7b\njz      short loc_18008EDA5                                            ; +0x2e, 0x18008ed7e\nmov     rdx, [rdi]                                                     ; +0x30, 0x18008ed80\nmov     r8, rsi                                                        ; +0x33, 0x18008ed83\nmov     rcx, rdi                                                       ; +0x36, 0x18008ed86\nmov     r9, [rdx+380h]                                                 ; +0x39, 0x18008ed89\nmov     rdx, rax                                                       ; +0x40, 0x18008ed90\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x43, 0x18008ed93\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x48, 0x18008ed98\nadd     rsp, 20h                                                       ; +0x4d, 0x18008ed9d\npop     rdi                                                            ; +0x51, 0x18008eda1\njmp     r9                                                             ; +0x52, 0x18008eda2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x55, 0x18008eda5\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5a, 0x18008edaa\nadd     rsp, 20h                                                       ; +0x5f, 0x18008edaf\npop     rdi                                                            ; +0x63, 0x18008edb3\nretn                                                                   ; +0x64, 0x18008edb4", "xrefs": ["<???> @ 0x1800f1d10", "<???> @ 0x1800f21f8", "<???> @ 0x1800f2da8", "<???> @ 0x18010a1e8", "<???> @ 0x18010d200", "<???> @ 0x18014cf68", "<???> @ 0x1801bfe5c"], "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"}