{"type": "func", "start": 6443132256, "end": 6443132349, "name": "cocos2d::CCTextureAtlas::initWithFile", "pseudocode": "// \n// cocos2d::CCTextureAtlas::initWithFile from 0x1800a6560 to 0x1800a65bd (93 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b7d10\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::CCTextureAtlas::initWithFile(cocos2d::CCTextureAtlas *this, const char *a2, unsigned int 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) = cocos2d::CCTextureAtlas::initWithTexture(this, v7, a3);\n  return (char)v7;\n}", "assembly": "; \n; cocos2d::CCTextureAtlas::initWithFile from 0x1800a6560 to 0x1800a65bd (93 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b7d10\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, 0x1800a6560\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800a6565\npush    rdi                                                            ; +0xa, 0x1800a656a\nsub     rsp, 20h                                                       ; +0xb, 0x1800a656b\nmov     edi, r8d                                                       ; +0xf, 0x1800a656f\nmov     rbx, rdx                                                       ; +0x12, 0x1800a6572\nmov     rsi, rcx                                                       ; +0x15, 0x1800a6575\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x18, 0x1800a6578\nmov     rcx, rax; this                                                 ; +0x1d, 0x1800a657d\nxor     r8d, r8d; bool                                                 ; +0x20, 0x1800a6580\nmov     rdx, rbx; char *                                               ; +0x23, 0x1800a6583\ncall    ?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x26, 0x1800a6586\ntest    rax, rax                                                       ; +0x2b, 0x1800a658b\njz      short loc_1800A65AD                                            ; +0x2e, 0x1800a658e\nmov     r8d, edi; unsigned int                                         ; +0x30, 0x1800a6590\nmov     rdx, rax; struct cocos2d::CCTexture2D *                        ; +0x33, 0x1800a6593\nmov     rcx, rsi; this                                                 ; +0x36, 0x1800a6596\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x39, 0x1800a6599\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x3e, 0x1800a659e\nadd     rsp, 20h                                                       ; +0x43, 0x1800a65a3\npop     rdi                                                            ; +0x47, 0x1800a65a7\njmp     ?initWithTexture@CCTextureAtlas@cocos2d@@QEAA_NPEAVCCTexture2D@2@I@Z; cocos2d::CCTextureAtlas::initWithTexture(cocos2d::CCTexture2D *,uint) ; +0x48, 0x1800a65a8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x1800a65ad\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x52, 0x1800a65b2\nadd     rsp, 20h                                                       ; +0x57, 0x1800a65b7\npop     rdi                                                            ; +0x5b, 0x1800a65bb\nretn                                                                   ; +0x5c, 0x1800a65bc", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b7d10"], "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"}