{"type": "func", "start": 6443052736, "end": 6443053179, "name": "cocos2d::CCSpriteFrame::initWithTexture", "pseudocode": "// \n// cocos2d::CCSpriteFrame::initWithTexture from 0x180092ec0 to 0x18009307b (443 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCSpriteFrame::createWithTexture @ 0x180092d09\n// > cocos2d::CCSpriteFrame::initWithTexture @ 0x180092e85\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x180094522\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c051c\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:08 +0000\n// \n\nchar __fastcall cocos2d::CCSpriteFrame::initWithTexture(\n        cocos2d::CCSpriteFrame *this,\n        struct cocos2d::CCTexture2D *a2,\n        const struct cocos2d::CCRect *a3,\n        char a4,\n        const struct cocos2d::CCPoint *a5,\n        const struct cocos2d::CCSize *a6)\n{\n  cocos2d::CCDirector *v9; // rax\n  float ContentScaleFactor; // xmm0_4\n  float v11; // xmm8_4\n  float v12; // xmm9_4\n  cocos2d::CCDirector *v13; // rax\n  float v14; // xmm0_4\n  float v15; // xmm7_4\n  float v16; // xmm8_4\n  cocos2d::CCDirector *v17; // rax\n  float v18; // xmm0_4\n  float v19; // xmm6_4\n  float v20; // xmm7_4\n  cocos2d::CCDirector *v21; // rax\n  float v22; // xmm0_4\n  cocos2d::CCRect *v23; // rax\n  cocos2d::CCDirector *v24; // rax\n  float v25; // xmm0_4\n  float v26; // xmm6_4\n  float v27; // xmm7_4\n  cocos2d::CCDirector *v28; // rax\n  float v29; // xmm0_4\n  float *v30; // rax\n  cocos2d::CCDirector *v31; // rax\n  float v32; // xmm0_4\n  float v33; // xmm6_4\n  float v34; // xmm7_4\n  cocos2d::CCDirector *v35; // rax\n  float v36; // xmm0_4\n  float *v37; // rax\n  _BYTE v39[16]; // [rsp+30h] [rbp-58h] BYREF\n  float v40; // [rsp+90h] [rbp+8h] BYREF\n\n  *((_QWORD *)this + 16) = a2;\n  if ( a2 )\n    cocos2d::CCObject::retain(a2);\n  cocos2d::CCRect::operator=((__int64)this + 72, (__int64)a3);\n  v9 = cocos2d::CCDirector::sharedDirector();\n  ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v9);\n  v11 = *((float *)a3 + 2);\n  v12 = *((float *)a3 + 3) / ContentScaleFactor;\n  v13 = cocos2d::CCDirector::sharedDirector();\n  v14 = cocos2d::CCDirector::getContentScaleFactor(v13);\n  v15 = *((float *)a3 + 1);\n  v16 = v11 / v14;\n  v17 = cocos2d::CCDirector::sharedDirector();\n  v18 = cocos2d::CCDirector::getContentScaleFactor(v17);\n  v19 = *(float *)a3;\n  v20 = v15 / v18;\n  v21 = cocos2d::CCDirector::sharedDirector();\n  v22 = cocos2d::CCDirector::getContentScaleFactor(v21);\n  v23 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v39, v19 / v22, v20, v16, v12);\n  cocos2d::CCRect::operator=((__int64)this + 92, (__int64)v23);\n  cocos2d::CCSize::operator=((_DWORD *)this + 27, a5);\n  v24 = cocos2d::CCDirector::sharedDirector();\n  v25 = cocos2d::CCDirector::getContentScaleFactor(v24);\n  v26 = *((float *)this + 27);\n  v27 = *((float *)this + 28) / v25;\n  v28 = cocos2d::CCDirector::sharedDirector();\n  v29 = cocos2d::CCDirector::getContentScaleFactor(v28);\n  v30 = kmVec2Fill(&v40, v26 / v29, v27);\n  cocos2d::CCSize::operator=((_DWORD *)this + 14, v30);\n  cocos2d::CCSize::operator=((_DWORD *)this + 29, a6);\n  v31 = cocos2d::CCDirector::sharedDirector();\n  v32 = cocos2d::CCDirector::getContentScaleFactor(v31);\n  v33 = *((float *)this + 29);\n  v34 = *((float *)this + 30) / v32;\n  v35 = cocos2d::CCDirector::sharedDirector();\n  v36 = cocos2d::CCDirector::getContentScaleFactor(v35);\n  v37 = kmVec2Fill(&v40, v33 / v36, v34);\n  cocos2d::CCSize::operator=((_DWORD *)this + 16, v37);\n  *((_BYTE *)this + 88) = a4;\n  return 1;\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::initWithTexture from 0x180092ec0 to 0x18009307b (443 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCSpriteFrame::createWithTexture @ 0x180092d09\n; > cocos2d::CCSpriteFrame::initWithTexture @ 0x180092e85\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x180094522\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c051c\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:08 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180092ec0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180092ec5\npush    rdi                                                            ; +0xa, 0x180092eca\nsub     rsp, 80h                                                       ; +0xb, 0x180092ecb\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0x12, 0x180092ed2\nmovzx   esi, r9b                                                       ; +0x17, 0x180092ed7\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x1b, 0x180092edb\nmov     rbx, r8                                                        ; +0x20, 0x180092ee0\nmovaps  [rsp+88h+var_38], xmm8                                         ; +0x23, 0x180092ee3\nmov     rdi, rcx                                                       ; +0x29, 0x180092ee9\nmovaps  [rsp+88h+var_48], xmm9                                         ; +0x2c, 0x180092eec\nmov     [rcx+80h], rdx                                                 ; +0x32, 0x180092ef2\ntest    rdx, rdx                                                       ; +0x39, 0x180092ef9\njz      short loc_180092F06                                            ; +0x3c, 0x180092efc\nmov     rcx, rdx; this                                                 ; +0x3e, 0x180092efe\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x41, 0x180092f01\nlea     rcx, [rdi+48h]                                                 ; +0x46, 0x180092f06\nmov     rdx, rbx                                                       ; +0x4a, 0x180092f0a\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x4d, 0x180092f0d\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x52, 0x180092f12\nmov     rcx, rax; this                                                 ; +0x57, 0x180092f17\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x5a, 0x180092f1a\nmovss   xmm9, dword ptr [rbx+0Ch]                                      ; +0x5f, 0x180092f1f\nmovss   xmm8, dword ptr [rbx+8]                                        ; +0x65, 0x180092f25\ndivss   xmm9, xmm0                                                     ; +0x6b, 0x180092f2b\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x70, 0x180092f30\nmov     rcx, rax; this                                                 ; +0x75, 0x180092f35\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x78, 0x180092f38\nmovss   xmm7, dword ptr [rbx+4]                                        ; +0x7d, 0x180092f3d\ndivss   xmm8, xmm0                                                     ; +0x82, 0x180092f42\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x87, 0x180092f47\nmov     rcx, rax; this                                                 ; +0x8c, 0x180092f4c\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x8f, 0x180092f4f\nmovss   xmm6, dword ptr [rbx]                                          ; +0x94, 0x180092f54\ndivss   xmm7, xmm0                                                     ; +0x98, 0x180092f58\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9c, 0x180092f5c\nmov     rcx, rax; this                                                 ; +0xa1, 0x180092f61\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xa4, 0x180092f64\nlea     rcx, [rsp+88h+var_58]; this                                    ; +0xa9, 0x180092f69\ndivss   xmm6, xmm0                                                     ; +0xae, 0x180092f6e\nmovaps  xmm3, xmm8; float                                              ; +0xb2, 0x180092f72\nmovss   [rsp+88h+var_68], xmm9; float                                  ; +0xb6, 0x180092f76\nmovaps  xmm1, xmm6; float                                              ; +0xbd, 0x180092f7d\nmovaps  xmm2, xmm7; float                                              ; +0xc0, 0x180092f80\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xc3, 0x180092f83\nmov     rdx, rax                                                       ; +0xc8, 0x180092f88\nlea     rcx, [rdi+5Ch]                                                 ; +0xcb, 0x180092f8b\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0xcf, 0x180092f8f\nmov     rdx, [rsp+88h+arg_20]                                          ; +0xd4, 0x180092f94\nlea     rcx, [rdi+6Ch]                                                 ; +0xdc, 0x180092f9c\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xe0, 0x180092fa0\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe5, 0x180092fa5\nmov     rcx, rax; this                                                 ; +0xea, 0x180092faa\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xed, 0x180092fad\nmovss   xmm7, dword ptr [rdi+70h]                                      ; +0xf2, 0x180092fb2\nmovss   xmm6, dword ptr [rdi+6Ch]                                      ; +0xf7, 0x180092fb7\ndivss   xmm7, xmm0                                                     ; +0xfc, 0x180092fbc\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x100, 0x180092fc0\nmov     rcx, rax; this                                                 ; +0x105, 0x180092fc5\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x108, 0x180092fc8\nlea     rcx, [rsp+88h+arg_0]                                           ; +0x10d, 0x180092fcd\ndivss   xmm6, xmm0                                                     ; +0x115, 0x180092fd5\nmovaps  xmm2, xmm7                                                     ; +0x119, 0x180092fd9\nmovaps  xmm1, xmm6                                                     ; +0x11c, 0x180092fdc\ncall    kmVec2Fill                                                     ; +0x11f, 0x180092fdf\nmov     rdx, rax                                                       ; +0x124, 0x180092fe4\nlea     rcx, [rdi+38h]                                                 ; +0x127, 0x180092fe7\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x12b, 0x180092feb\nmov     rdx, [rsp+88h+arg_28]                                          ; +0x130, 0x180092ff0\nlea     rcx, [rdi+74h]                                                 ; +0x138, 0x180092ff8\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x13c, 0x180092ffc\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x141, 0x180093001\nmov     rcx, rax; this                                                 ; +0x146, 0x180093006\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x149, 0x180093009\nmovss   xmm7, dword ptr [rdi+78h]                                      ; +0x14e, 0x18009300e\nmovss   xmm6, dword ptr [rdi+74h]                                      ; +0x153, 0x180093013\ndivss   xmm7, xmm0                                                     ; +0x158, 0x180093018\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x15c, 0x18009301c\nmov     rcx, rax; this                                                 ; +0x161, 0x180093021\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x164, 0x180093024\nlea     rcx, [rsp+88h+arg_0]                                           ; +0x169, 0x180093029\ndivss   xmm6, xmm0                                                     ; +0x171, 0x180093031\nmovaps  xmm2, xmm7                                                     ; +0x175, 0x180093035\nmovaps  xmm1, xmm6                                                     ; +0x178, 0x180093038\ncall    kmVec2Fill                                                     ; +0x17b, 0x18009303b\nmov     rdx, rax                                                       ; +0x180, 0x180093040\nlea     rcx, [rdi+40h]                                                 ; +0x183, 0x180093043\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x187, 0x180093047\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x18c, 0x18009304c\nlea     r11, [rsp+88h+var_8]                                           ; +0x191, 0x180093051\nmov     rbx, [r11+18h]                                                 ; +0x199, 0x180093059\nmov     al, 1                                                          ; +0x19d, 0x18009305d\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x19f, 0x18009305f\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x1a4, 0x180093064\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x1a9, 0x180093069\nmov     [rdi+58h], sil                                                 ; +0x1ae, 0x18009306e\nmov     rsi, [r11+20h]                                                 ; +0x1b2, 0x180093072\nmov     rsp, r11                                                       ; +0x1b6, 0x180093076\npop     rdi                                                            ; +0x1b9, 0x180093079\nretn                                                                   ; +0x1ba, 0x18009307a", "xrefs": ["cocos2d::CCSpriteFrame::createWithTexture @ 0x180092d09", "cocos2d::CCSpriteFrame::initWithTexture @ 0x180092e85", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x180094522", "<???> @ 0x18014cf68", "<???> @ 0x1801c051c"], "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"}