{"type": "func", "start": 6442859200, "end": 6442859391, "name": "sub_180063AC0", "pseudocode": "// \n// sub_180063AC0 from 0x180063ac0 to 0x180063b7f (191 bytes)\n// \n// 12 xrefs:\n// > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x180063dfc\n// > cocos2d::CCParticleFire::initWithTotalParticles @ 0x180063fd3\n// > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x1800641da\n// > cocos2d::CCParticleFlower::initWithTotalParticles @ 0x180064413\n// > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x180064639\n// > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x180064866\n// > cocos2d::CCParticleRain::initWithTotalParticles @ 0x180064a9b\n// > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x180064cad\n// > cocos2d::CCParticleSnow::initWithTotalParticles @ 0x180064edc\n// > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x180065114\n// > cocos2d::CCParticleSun::initWithTotalParticles @ 0x180065317\n// > <???> @ 0x1801b3990\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\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCTexture2D *sub_180063AC0()\n{\n  cocos2d::CCTextureCache *v0; // rax\n  struct cocos2d::CCTexture2D *result; // rax\n  struct cocos2d::CCTexture2D *v2; // rbx\n  cocos2d::CCImage *v3; // rax\n  struct cocos2d::CCImage *v4; // rdi\n  cocos2d::CCTextureCache *v5; // rax\n\n  v0 = cocos2d::CCTextureCache::sharedTextureCache();\n  result = cocos2d::CCTextureCache::textureForKey(v0, \"__firePngData\");\n  v2 = result;\n  if ( !result )\n  {\n    v3 = (cocos2d::CCImage *)operator new(0x50u);\n    if ( v3 )\n      v4 = (struct cocos2d::CCImage *)cocos2d::CCImage::CCImage(v3);\n    else\n      v4 = nullptr;\n    if ( v4 )\n    {\n      if ( cocos2d::CCImage::initWithImageData(v4, &unk_1800FA420, 722, kFmtPng, 0, 0, 8, 0) )\n      {\n        v5 = cocos2d::CCTextureCache::sharedTextureCache();\n        v2 = cocos2d::CCTextureCache::addUIImage(v5, v4, \"__firePngData\");\n      }\n      cocos2d::CCObject::release(v4);\n    }\n    return v2;\n  }\n  return result;\n}", "assembly": "; \n; sub_180063AC0 from 0x180063ac0 to 0x180063b7f (191 bytes)\n; \n; 12 xrefs:\n; > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x180063dfc\n; > cocos2d::CCParticleFire::initWithTotalParticles @ 0x180063fd3\n; > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x1800641da\n; > cocos2d::CCParticleFlower::initWithTotalParticles @ 0x180064413\n; > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x180064639\n; > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x180064866\n; > cocos2d::CCParticleRain::initWithTotalParticles @ 0x180064a9b\n; > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x180064cad\n; > cocos2d::CCParticleSnow::initWithTotalParticles @ 0x180064edc\n; > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x180065114\n; > cocos2d::CCParticleSun::initWithTotalParticles @ 0x180065317\n; > <???> @ 0x1801b3990\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_8], rbx                                               ; +0x0, 0x180063ac0\npush    rdi                                                            ; +0x5, 0x180063ac5\nsub     rsp, 40h                                                       ; +0x6, 0x180063ac6\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0xa, 0x180063aca\nmov     rcx, rax; this                                                 ; +0xf, 0x180063acf\nlea     rdx, aFirepngdata; \"__firePngData\"                             ; +0x12, 0x180063ad2\ncall    ?textureForKey@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD@Z; cocos2d::CCTextureCache::textureForKey(char const *) ; +0x19, 0x180063ad9\nmov     rbx, rax                                                       ; +0x1e, 0x180063ade\ntest    rax, rax                                                       ; +0x21, 0x180063ae1\njnz     loc_180063B74                                                  ; +0x24, 0x180063ae4\nlea     ecx, [rax+50h]; Size                                           ; +0x2a, 0x180063aea\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x180063aed\nmov     [rsp+48h+arg_0], rax                                           ; +0x32, 0x180063af2\ntest    rax, rax                                                       ; +0x37, 0x180063af7\njz      short loc_180063B09                                            ; +0x3a, 0x180063afa\nmov     rcx, rax; this                                                 ; +0x3c, 0x180063afc\ncall    ??0CCImage@cocos2d@@QEAA@XZ; cocos2d::CCImage::CCImage(void)   ; +0x3f, 0x180063aff\nmov     rdi, rax                                                       ; +0x44, 0x180063b04\njmp     short loc_180063B0B                                            ; +0x47, 0x180063b07\nxor     edi, edi                                                       ; +0x49, 0x180063b09\ntest    rdi, rdi                                                       ; +0x4b, 0x180063b0b\njz      short loc_180063B71                                            ; +0x4e, 0x180063b0e\nmov     [rsp+48h+var_10], 0                                            ; +0x50, 0x180063b10\nmov     [rsp+48h+var_18], 8                                            ; +0x58, 0x180063b18\nmov     [rsp+48h+var_20], 0                                            ; +0x60, 0x180063b20\nmov     [rsp+48h+var_28], 0                                            ; +0x68, 0x180063b28\nmov     r9d, 1                                                         ; +0x70, 0x180063b30\nmov     r8d, 2D2h                                                      ; +0x76, 0x180063b36\nlea     rdx, unk_1800FA420                                             ; +0x7c, 0x180063b3c\nmov     rcx, rdi                                                       ; +0x83, 0x180063b43\ncall    ?initWithImageData@CCImage@cocos2d@@QEAA_NPEAXHW4EImageFormat@12@HHHH@Z; cocos2d::CCImage::initWithImageData(void *,int,cocos2d::CCImage::EImageFormat,int,int,int,int) ; +0x86, 0x180063b46\ntest    al, al                                                         ; +0x8b, 0x180063b4b\njz      short loc_180063B69                                            ; +0x8d, 0x180063b4d\ncall    ?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x8f, 0x180063b4f\nmov     rcx, rax; this                                                 ; +0x94, 0x180063b54\nlea     r8, aFirepngdata; \"__firePngData\"                              ; +0x97, 0x180063b57\nmov     rdx, rdi; struct cocos2d::CCImage *                            ; +0x9e, 0x180063b5e\ncall    ?addUIImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEAVCCImage@2@PEBD@Z; cocos2d::CCTextureCache::addUIImage(cocos2d::CCImage *,char const *) ; +0xa1, 0x180063b61\nmov     rbx, rax                                                       ; +0xa6, 0x180063b66\nmov     rcx, rdi; this                                                 ; +0xa9, 0x180063b69\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xac, 0x180063b6c\nmov     rax, rbx                                                       ; +0xb1, 0x180063b71\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xb4, 0x180063b74\nadd     rsp, 40h                                                       ; +0xb9, 0x180063b79\npop     rdi                                                            ; +0xbd, 0x180063b7d\nretn                                                                   ; +0xbe, 0x180063b7e", "xrefs": ["cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x180063dfc", "cocos2d::CCParticleFire::initWithTotalParticles @ 0x180063fd3", "cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x1800641da", "cocos2d::CCParticleFlower::initWithTotalParticles @ 0x180064413", "cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x180064639", "cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x180064866", "cocos2d::CCParticleRain::initWithTotalParticles @ 0x180064a9b", "cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x180064cad", "cocos2d::CCParticleSnow::initWithTotalParticles @ 0x180064edc", "cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x180065114", "cocos2d::CCParticleSun::initWithTotalParticles @ 0x180065317", "<???> @ 0x1801b3990"], "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"}