{"type": "func", "start": 6443023200, "end": 6443023298, "name": "cocos2d::CCSprite::initWithFile", "pseudocode": "// \n// cocos2d::CCSprite::initWithFile from 0x18008bb60 to 0x18008bbc2 (98 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800ebc10\n// > <???> @ 0x1800ec0e8\n// > <???> @ 0x1800ecc68\n// > <???> @ 0x180103b20\n// > <???> @ 0x180106b18\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5b8c\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\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 *))this->initWithTexture_0)(\n                   this,\n                   v7,\n                   a3);\n  return (char)v7;\n}", "assembly": "; \n; cocos2d::CCSprite::initWithFile from 0x18008bb60 to 0x18008bbc2 (98 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800ebc10\n; > <???> @ 0x1800ec0e8\n; > <???> @ 0x1800ecc68\n; > <???> @ 0x180103b20\n; > <???> @ 0x180106b18\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5b8c\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, 0x18008bb60\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008bb65\npush    rdi                                                            ; +0xa, 0x18008bb6a\nsub     rsp, 20h                                                       ; +0xb, 0x18008bb6b\nmov     rsi, r8                                                        ; +0xf, 0x18008bb6f\nmov     rbx, rdx                                                       ; +0x12, 0x18008bb72\nmov     rdi, rcx                                                       ; +0x15, 0x18008bb75\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x18, 0x18008bb78\nmov     rcx, rax; this                                                 ; +0x1d, 0x18008bb7d\nxor     r8d, r8d; bool                                                 ; +0x20, 0x18008bb80\nmov     rdx, rbx; char *                                               ; +0x23, 0x18008bb83\ncall    ?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x26, 0x18008bb86\ntest    rax, rax                                                       ; +0x2b, 0x18008bb8b\njz      short loc_18008BBB2                                            ; +0x2e, 0x18008bb8e\nmov     r9, [rdi]                                                      ; +0x30, 0x18008bb90\nmov     r8, rsi                                                        ; +0x33, 0x18008bb93\nmov     rdx, rax                                                       ; +0x36, 0x18008bb96\nmov     rcx, rdi                                                       ; +0x39, 0x18008bb99\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3c, 0x18008bb9c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x41, 0x18008bba1\nadd     rsp, 20h                                                       ; +0x46, 0x18008bba6\npop     rdi                                                            ; +0x4a, 0x18008bbaa\njmp     qword ptr [r9+370h]                                            ; +0x4b, 0x18008bbab\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x18008bbb2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x57, 0x18008bbb7\nadd     rsp, 20h                                                       ; +0x5c, 0x18008bbbc\npop     rdi                                                            ; +0x60, 0x18008bbc0\nretn                                                                   ; +0x61, 0x18008bbc1", "xrefs": ["<???> @ 0x1800ebc10", "<???> @ 0x1800ec0e8", "<???> @ 0x1800ecc68", "<???> @ 0x180103b20", "<???> @ 0x180106b18", "<???> @ 0x1801438a8", "<???> @ 0x1801b5b8c"], "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"}