{"type": "func", "start": 6443144224, "end": 6443144420, "name": "cocos2d::CCTexture2D::initWithETCFile", "pseudocode": "// \n// cocos2d::CCTexture2D::initWithETCFile from 0x1800a9420 to 0x1800a94e4 (196 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTextureCache::addETCImage @ 0x1800aaf28\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1efc\n// > <???> @ 0x1801c1f08\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:16 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar __fastcall cocos2d::CCTexture2D::initWithETCFile(cocos2d::CCTexture2D *this, const char *a2)\n{\n  cocos2d::CCTextureETC *v3; // rax\n  cocos2d::CCInteger *v4; // rbx\n  char result; // al\n  char v6; // di\n  int ScriptHandler; // eax\n  float *v8; // rax\n  cocos2d::CCTextureETC *v9; // [rsp+40h] [rbp+18h] BYREF\n\n  v3 = (cocos2d::CCTextureETC *)sub_1800E4AC0(0x48u);\n  v9 = v3;\n  if ( v3 )\n    v4 = (cocos2d::CCInteger *)cocos2d::CCTextureETC::CCTextureETC(v3);\n  else\n    v4 = nullptr;\n  result = kmRay2IntersectCircle();\n  v6 = result;\n  if ( result )\n  {\n    *((_DWORD *)this + 18) = cocos2d::CCInteger::getValue(v4);\n    *((_DWORD *)this + 19) = 1065353216;\n    *((_DWORD *)this + 20) = 1065353216;\n    *((_DWORD *)this + 16) = cocos2d::CCTextureETC::getWidth(v4);\n    ScriptHandler = cocos2d::CCNotificationCenter::getScriptHandler(v4);\n    *((_DWORD *)this + 17) = ScriptHandler;\n    v8 = kmVec2Fill((float *)&v9, (float)*((int *)this + 16), (float)ScriptHandler);\n    cocos2d::CCSize::operator=((_DWORD *)this + 21, v8);\n    *((_BYTE *)this + 92) = 1;\n    cocos2d::CCObject::release(v4);\n    return v6;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCTexture2D::initWithETCFile from 0x1800a9420 to 0x1800a94e4 (196 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTextureCache::addETCImage @ 0x1800aaf28\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1efc\n; > <???> @ 0x1801c1f08\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:16 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800a9420\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800a9425\npush    rdi                                                            ; +0xa, 0x1800a942a\nsub     rsp, 20h                                                       ; +0xb, 0x1800a942b\nmov     rdi, rdx                                                       ; +0xf, 0x1800a942f\nmov     rsi, rcx                                                       ; +0x12, 0x1800a9432\nmov     ecx, 48h ; 'H'; Size                                           ; +0x15, 0x1800a9435\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x1800a943a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x1800a943f\ntest    rax, rax                                                       ; +0x24, 0x1800a9444\njz      short loc_1800A9456                                            ; +0x27, 0x1800a9447\nmov     rcx, rax; this                                                 ; +0x29, 0x1800a9449\ncall    ??0CCTextureETC@cocos2d@@QEAA@XZ; cocos2d::CCTextureETC::CCTextureETC(void) ; +0x2c, 0x1800a944c\nmov     rbx, rax                                                       ; +0x31, 0x1800a9451\njmp     short loc_1800A9458                                            ; +0x34, 0x1800a9454\nxor     ebx, ebx                                                       ; +0x36, 0x1800a9456\nmov     rdx, rdi                                                       ; +0x38, 0x1800a9458\nmov     rcx, rbx                                                       ; +0x3b, 0x1800a945b\ncall    kmRay2IntersectCircle                                          ; +0x3e, 0x1800a945e\nmovzx   edi, al                                                        ; +0x43, 0x1800a9463\ntest    al, al                                                         ; +0x46, 0x1800a9466\njz      short loc_1800A94D4                                            ; +0x48, 0x1800a9468\nmov     rcx, rbx; this                                                 ; +0x4a, 0x1800a946a\ncall    ?getValue@CCInteger@cocos2d@@QEBAHXZ; cocos2d::CCInteger::getValue(void) ; +0x4d, 0x1800a946d\nmov     [rsi+48h], eax                                                 ; +0x52, 0x1800a9472\nmov     dword ptr [rsi+4Ch], 3F800000h                                 ; +0x55, 0x1800a9475\nmov     dword ptr [rsi+50h], 3F800000h                                 ; +0x5c, 0x1800a947c\nmov     rcx, rbx; this                                                 ; +0x63, 0x1800a9483\ncall    ?getWidth@CCTextureETC@cocos2d@@QEBAIXZ; cocos2d::CCTextureETC::getWidth(void) ; +0x66, 0x1800a9486\nmov     [rsi+40h], eax                                                 ; +0x6b, 0x1800a948b\nmov     rcx, rbx; this                                                 ; +0x6e, 0x1800a948e\ncall    ?getScriptHandler@CCNotificationCenter@cocos2d@@QEAAHXZ; cocos2d::CCNotificationCenter::getScriptHandler(void) ; +0x71, 0x1800a9491\nmov     eax, eax                                                       ; +0x76, 0x1800a9496\nmov     [rsi+44h], eax                                                 ; +0x78, 0x1800a9498\nxorps   xmm2, xmm2                                                     ; +0x7b, 0x1800a949b\ncvtsi2ss xmm2, rax                                                     ; +0x7e, 0x1800a949e\nmov     eax, [rsi+40h]                                                 ; +0x83, 0x1800a94a3\nxorps   xmm1, xmm1                                                     ; +0x86, 0x1800a94a6\ncvtsi2ss xmm1, rax                                                     ; +0x89, 0x1800a94a9\nlea     rcx, [rsp+28h+arg_10]                                          ; +0x8e, 0x1800a94ae\ncall    kmVec2Fill                                                     ; +0x93, 0x1800a94b3\nmov     rdx, rax                                                       ; +0x98, 0x1800a94b8\nlea     rcx, [rsi+54h]                                                 ; +0x9b, 0x1800a94bb\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x9f, 0x1800a94bf\nmov     byte ptr [rsi+5Ch], 1                                          ; +0xa4, 0x1800a94c4\nmov     rcx, rbx; this                                                 ; +0xa8, 0x1800a94c8\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xab, 0x1800a94cb\nmovzx   eax, dil                                                       ; +0xb0, 0x1800a94d0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb4, 0x1800a94d4\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb9, 0x1800a94d9\nadd     rsp, 20h                                                       ; +0xbe, 0x1800a94de\npop     rdi                                                            ; +0xc2, 0x1800a94e2\nretn                                                                   ; +0xc3, 0x1800a94e3", "xrefs": ["cocos2d::CCTextureCache::addETCImage @ 0x1800aaf28", "<???> @ 0x18014cf68", "<???> @ 0x1801c1efc", "<???> @ 0x1801c1f08"], "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"}