{"type": "func", "start": 6443144432, "end": 6443144534, "name": "cocos2d::CCTexture2D::initWithImage", "pseudocode": "// \n// cocos2d::CCTexture2D::initWithImage from 0x1800a94f0 to 0x1800a9556 (102 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCTextureCache::addImage @ 0x1800ab75a\n// > cocos2d::CCTextureCache::addImageAsyncCallBack @ 0x1800abf88\n// > cocos2d::CCTextureCache::addUIImage @ 0x1800ac68a\n// > cocos2d::CCTextureCache::reloadTexture @ 0x1800acfae\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1f14\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\nchar __fastcall cocos2d::CCTexture2D::initWithImage(cocos2d::CCTexture2D *this, struct cocos2d::CCImage *a2)\n{\n  unsigned int v4; // ebp\n  unsigned int v5; // edi\n  cocos2d::CCInteger *v6; // rax\n  unsigned int Value; // eax\n\n  if ( a2\n    && (v4 = *((unsigned __int16 *)a2 + 28),\n        v5 = *((unsigned __int16 *)a2 + 29),\n        v6 = cocos2d::CCConfiguration::sharedConfiguration(),\n        Value = cocos2d::CCInteger::getValue(v6),\n        v4 <= Value)\n    && v5 <= Value )\n  {\n    return cocos2d::CCTexture2D::initPremultipliedATextureWithImage(this, a2, v4, v5);\n  }\n  else\n  {\n    return 0;\n  }\n}", "assembly": "; \n; cocos2d::CCTexture2D::initWithImage from 0x1800a94f0 to 0x1800a9556 (102 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCTextureCache::addImage @ 0x1800ab75a\n; > cocos2d::CCTextureCache::addImageAsyncCallBack @ 0x1800abf88\n; > cocos2d::CCTextureCache::addUIImage @ 0x1800ac68a\n; > cocos2d::CCTextureCache::reloadTexture @ 0x1800acfae\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1f14\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, 0x1800a94f0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800a94f5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800a94fa\npush    rdi                                                            ; +0xf, 0x1800a94ff\nsub     rsp, 20h                                                       ; +0x10, 0x1800a9500\nmov     rbx, rdx                                                       ; +0x14, 0x1800a9504\nmov     rsi, rcx                                                       ; +0x17, 0x1800a9507\ntest    rdx, rdx                                                       ; +0x1a, 0x1800a950a\njz      short loc_1800A953F                                            ; +0x1d, 0x1800a950d\nmovzx   ebp, word ptr [rdx+38h]                                        ; +0x1f, 0x1800a950f\nmovzx   edi, word ptr [rdx+3Ah]                                        ; +0x23, 0x1800a9513\ncall    ?sharedConfiguration@CCConfiguration@cocos2d@@SAPEAV12@XZ; cocos2d::CCConfiguration::sharedConfiguration(void) ; +0x27, 0x1800a9517\nmov     rcx, rax; this                                                 ; +0x2c, 0x1800a951c\ncall    ?getValue@CCInteger@cocos2d@@QEBAHXZ; cocos2d::CCInteger::getValue(void) ; +0x2f, 0x1800a951f\ncmp     ebp, eax                                                       ; +0x34, 0x1800a9524\nja      short loc_1800A953F                                            ; +0x36, 0x1800a9526\ncmp     edi, eax                                                       ; +0x38, 0x1800a9528\nja      short loc_1800A953F                                            ; +0x3a, 0x1800a952a\nmov     r9d, edi; unsigned int                                         ; +0x3c, 0x1800a952c\nmov     r8d, ebp; unsigned int                                         ; +0x3f, 0x1800a952f\nmov     rdx, rbx; struct cocos2d::CCImage *                            ; +0x42, 0x1800a9532\nmov     rcx, rsi; this                                                 ; +0x45, 0x1800a9535\ncall    ?initPremultipliedATextureWithImage@CCTexture2D@cocos2d@@AEAA_NPEAVCCImage@2@II@Z; cocos2d::CCTexture2D::initPremultipliedATextureWithImage(cocos2d::CCImage *,uint,uint) ; +0x48, 0x1800a9538\njmp     short loc_1800A9541                                            ; +0x4d, 0x1800a953d\nxor     al, al                                                         ; +0x4f, 0x1800a953f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x1800a9541\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x56, 0x1800a9546\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x5b, 0x1800a954b\nadd     rsp, 20h                                                       ; +0x60, 0x1800a9550\npop     rdi                                                            ; +0x64, 0x1800a9554\nretn                                                                   ; +0x65, 0x1800a9555", "xrefs": ["cocos2d::CCTextureCache::addImage @ 0x1800ab75a", "cocos2d::CCTextureCache::addImageAsyncCallBack @ 0x1800abf88", "cocos2d::CCTextureCache::addUIImage @ 0x1800ac68a", "cocos2d::CCTextureCache::reloadTexture @ 0x1800acfae", "<???> @ 0x18014cf68", "<???> @ 0x1801c1f14"], "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"}