{"type": "func", "start": 6443144544, "end": 6443144768, "name": "cocos2d::CCTexture2D::initWithPVRFile", "pseudocode": "// \n// cocos2d::CCTexture2D::initWithPVRFile from 0x1800a9560 to 0x1800a9640 (224 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTextureCache::addPVRImage @ 0x1800ac2a8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1f20\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\n__int64 __fastcall cocos2d::CCTexture2D::initWithPVRFile(cocos2d::CCTexture2D *this, char *a2)\n{\n  __int64 v4; // rax\n  __int64 v5; // rbx\n  __int64 result; // rax\n  unsigned __int8 v7; // di\n  int v8; // edx\n  int v9; // ecx\n  float *v10; // rax\n  __int64 v11; // [rsp+40h] [rbp+18h] BYREF\n\n  v4 = sub_1800E4AC0(0x158u);\n  v11 = v4;\n  if ( v4 )\n    v5 = cocos2d::CCTexturePVR::CCTexturePVR(v4);\n  else\n    v5 = 0;\n  result = cocos2d::CCTexturePVR::initWithContentsOfFile((cocos2d::CCObject *)v5, a2);\n  v7 = result;\n  if ( (_BYTE)result )\n  {\n    *(_BYTE *)(v5 + 331) = 1;\n    *((_DWORD *)this + 18) = *(_DWORD *)(v5 + 324);\n    *((_DWORD *)this + 19) = 1065353216;\n    *((_DWORD *)this + 20) = 1065353216;\n    v8 = *(_DWORD *)(v5 + 316);\n    *((_DWORD *)this + 16) = v8;\n    v9 = *(_DWORD *)(v5 + 320);\n    *((_DWORD *)this + 17) = v9;\n    v10 = kmVec2Fill((float *)&v11, (float)v8, (float)v9);\n    cocos2d::CCSize::operator=((_DWORD *)this + 21, v10);\n    *((_BYTE *)this + 92) = byte_1801B3AC8;\n    *((_DWORD *)this + 15) = *(_DWORD *)(v5 + 332);\n    *((_BYTE *)this + 93) = *(_DWORD *)(v5 + 312) > 1u;\n    cocos2d::CCObject::release((cocos2d::CCObject *)v5);\n    return v7;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCTexture2D::initWithPVRFile from 0x1800a9560 to 0x1800a9640 (224 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTextureCache::addPVRImage @ 0x1800ac2a8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1f20\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, 0x1800a9560\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800a9565\npush    rdi                                                            ; +0xa, 0x1800a956a\nsub     rsp, 20h                                                       ; +0xb, 0x1800a956b\nmov     rdi, rdx                                                       ; +0xf, 0x1800a956f\nmov     rsi, rcx                                                       ; +0x12, 0x1800a9572\nmov     ecx, 158h; Size                                                ; +0x15, 0x1800a9575\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x1800a957a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x1800a957f\ntest    rax, rax                                                       ; +0x24, 0x1800a9584\njz      short loc_1800A9596                                            ; +0x27, 0x1800a9587\nmov     rcx, rax                                                       ; +0x29, 0x1800a9589\ncall    cocos2d__CCTexturePVR__CCTexturePVR                            ; +0x2c, 0x1800a958c\nmov     rbx, rax                                                       ; +0x31, 0x1800a9591\njmp     short loc_1800A9598                                            ; +0x34, 0x1800a9594\nxor     ebx, ebx                                                       ; +0x36, 0x1800a9596\nmov     rdx, rdi; char *                                               ; +0x38, 0x1800a9598\nmov     rcx, rbx; this                                                 ; +0x3b, 0x1800a959b\ncall    cocos2d__CCTexturePVR__initWithContentsOfFile                  ; +0x3e, 0x1800a959e\nmovzx   edi, al                                                        ; +0x43, 0x1800a95a3\ntest    al, al                                                         ; +0x46, 0x1800a95a6\njz      loc_1800A9630                                                  ; +0x48, 0x1800a95a8\nmov     byte ptr [rbx+14Bh], 1                                         ; +0x4e, 0x1800a95ae\nmov     ecx, [rbx+144h]                                                ; +0x55, 0x1800a95b5\nmov     [rsi+48h], ecx                                                 ; +0x5b, 0x1800a95bb\nmov     dword ptr [rsi+4Ch], 3F800000h                                 ; +0x5e, 0x1800a95be\nmov     dword ptr [rsi+50h], 3F800000h                                 ; +0x65, 0x1800a95c5\nmov     edx, [rbx+13Ch]                                                ; +0x6c, 0x1800a95cc\nmov     [rsi+40h], edx                                                 ; +0x72, 0x1800a95d2\nmov     ecx, [rbx+140h]                                                ; +0x75, 0x1800a95d5\nmov     [rsi+44h], ecx                                                 ; +0x7b, 0x1800a95db\nxorps   xmm2, xmm2                                                     ; +0x7e, 0x1800a95de\ncvtsi2ss xmm2, rcx                                                     ; +0x81, 0x1800a95e1\nxorps   xmm1, xmm1                                                     ; +0x86, 0x1800a95e6\ncvtsi2ss xmm1, rdx                                                     ; +0x89, 0x1800a95e9\nlea     rcx, [rsp+28h+arg_10]                                          ; +0x8e, 0x1800a95ee\ncall    kmVec2Fill                                                     ; +0x93, 0x1800a95f3\nmov     rdx, rax                                                       ; +0x98, 0x1800a95f8\nlea     rcx, [rsi+54h]                                                 ; +0x9b, 0x1800a95fb\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x9f, 0x1800a95ff\nmovzx   eax, cs:byte_1801B3AC8                                         ; +0xa4, 0x1800a9604\nmov     [rsi+5Ch], al                                                  ; +0xab, 0x1800a960b\nmov     eax, [rbx+14Ch]                                                ; +0xae, 0x1800a960e\nmov     [rsi+3Ch], eax                                                 ; +0xb4, 0x1800a9614\ncmp     dword ptr [rbx+138h], 1                                        ; +0xb7, 0x1800a9617\nsetnbe  al                                                             ; +0xbe, 0x1800a961e\nmov     [rsi+5Dh], al                                                  ; +0xc1, 0x1800a9621\nmov     rcx, rbx; this                                                 ; +0xc4, 0x1800a9624\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xc7, 0x1800a9627\nmovzx   eax, dil                                                       ; +0xcc, 0x1800a962c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd0, 0x1800a9630\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xd5, 0x1800a9635\nadd     rsp, 20h                                                       ; +0xda, 0x1800a963a\npop     rdi                                                            ; +0xde, 0x1800a963e\nretn                                                                   ; +0xdf, 0x1800a963f", "xrefs": ["cocos2d::CCTextureCache::addPVRImage @ 0x1800ac2a8", "<???> @ 0x18014cf68", "<???> @ 0x1801c1f20"], "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"}