{"type": "func", "start": 6443052464, "end": 6443052723, "name": "cocos2d::CCSpriteFrame::initWithTexture", "pseudocode": "// \n// cocos2d::CCSpriteFrame::initWithTexture from 0x180092db0 to 0x180092eb3 (259 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCSpriteFrame::createWithTexture @ 0x180092c64\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0510\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\nbool __fastcall cocos2d::CCSpriteFrame::initWithTexture(\n        cocos2d::CCSpriteFrame *this,\n        struct cocos2d::CCTexture2D *a2,\n        const struct cocos2d::CCRect *a3)\n{\n  float v4; // xmm6_4\n  cocos2d::CCDirector *v7; // rax\n  float v8; // xmm9_4\n  float v9; // xmm6_4\n  cocos2d::CCDirector *v10; // rax\n  float v11; // xmm8_4\n  float v12; // xmm6_4\n  cocos2d::CCDirector *v13; // rax\n  float v14; // xmm7_4\n  float v15; // xmm6_4\n  cocos2d::CCDirector *v16; // rax\n  float ContentScaleFactor; // xmm0_4\n  _BYTE v19[8]; // [rsp+30h] [rbp-58h] BYREF\n  _BYTE v20[8]; // [rsp+38h] [rbp-50h] BYREF\n\n  v4 = *((float *)a3 + 3);\n  v7 = cocos2d::CCDirector::sharedDirector();\n  v8 = cocos2d::CCDirector::getContentScaleFactor(v7) * v4;\n  v9 = *((float *)a3 + 2);\n  v10 = cocos2d::CCDirector::sharedDirector();\n  v11 = cocos2d::CCDirector::getContentScaleFactor(v10) * v9;\n  v12 = *((float *)a3 + 1);\n  v13 = cocos2d::CCDirector::sharedDirector();\n  v14 = cocos2d::CCDirector::getContentScaleFactor(v13) * v12;\n  v15 = *(float *)a3;\n  v16 = cocos2d::CCDirector::sharedDirector();\n  ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v16);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v19, ContentScaleFactor * v15, v14, v11, v8);\n  return cocos2d::CCSpriteFrame::initWithTexture(\n           this,\n           a2,\n           (const struct cocos2d::CCRect *)v19,\n           0,\n           (const struct cocos2d::CCPoint *)&unk_1801B2848,\n           (const struct cocos2d::CCSize *)v20);\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::initWithTexture from 0x180092db0 to 0x180092eb3 (259 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCSpriteFrame::createWithTexture @ 0x180092c64\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0510\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_0], rbx                                               ; +0x0, 0x180092db0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180092db5\npush    rdi                                                            ; +0xa, 0x180092dba\nsub     rsp, 80h                                                       ; +0xb, 0x180092dbb\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0x12, 0x180092dc2\nmov     rbx, r8                                                        ; +0x17, 0x180092dc7\nmovss   xmm6, dword ptr [r8+0Ch]                                       ; +0x1a, 0x180092dca\nmov     rdi, rdx                                                       ; +0x20, 0x180092dd0\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x23, 0x180092dd3\nmov     rsi, rcx                                                       ; +0x28, 0x180092dd8\nmovaps  [rsp+88h+var_38], xmm8                                         ; +0x2b, 0x180092ddb\nmovaps  [rsp+88h+var_48], xmm9                                         ; +0x31, 0x180092de1\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x37, 0x180092de7\nmov     rcx, rax; this                                                 ; +0x3c, 0x180092dec\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x3f, 0x180092def\nmovaps  xmm9, xmm0                                                     ; +0x44, 0x180092df4\nmulss   xmm9, xmm6                                                     ; +0x48, 0x180092df8\nmovss   xmm6, dword ptr [rbx+8]                                        ; +0x4d, 0x180092dfd\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x52, 0x180092e02\nmov     rcx, rax; this                                                 ; +0x57, 0x180092e07\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x5a, 0x180092e0a\nmovaps  xmm8, xmm0                                                     ; +0x5f, 0x180092e0f\nmulss   xmm8, xmm6                                                     ; +0x63, 0x180092e13\nmovss   xmm6, dword ptr [rbx+4]                                        ; +0x68, 0x180092e18\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x6d, 0x180092e1d\nmov     rcx, rax; this                                                 ; +0x72, 0x180092e22\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x75, 0x180092e25\nmovaps  xmm7, xmm0                                                     ; +0x7a, 0x180092e2a\nmulss   xmm7, xmm6                                                     ; +0x7d, 0x180092e2d\nmovss   xmm6, dword ptr [rbx]                                          ; +0x81, 0x180092e31\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x85, 0x180092e35\nmov     rcx, rax; this                                                 ; +0x8a, 0x180092e3a\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x8d, 0x180092e3d\nmulss   xmm0, xmm6                                                     ; +0x92, 0x180092e42\nlea     rcx, [rsp+88h+var_58]; this                                    ; +0x96, 0x180092e46\nmovaps  xmm3, xmm8; float                                              ; +0x9b, 0x180092e4b\nmovss   dword ptr [rsp+88h+var_68], xmm9; float                        ; +0x9f, 0x180092e4f\nmovaps  xmm2, xmm7; float                                              ; +0xa6, 0x180092e56\nmovaps  xmm1, xmm0; float                                              ; +0xa9, 0x180092e59\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xac, 0x180092e5c\nlea     rax, [rsp+88h+var_50]                                          ; +0xb1, 0x180092e61\nxor     r9d, r9d; bool                                                 ; +0xb6, 0x180092e66\nmov     [rsp+88h+var_60], rax; struct cocos2d::CCSize *                ; +0xb9, 0x180092e69\nlea     r8, [rsp+88h+var_58]; struct cocos2d::CCRect *                 ; +0xbe, 0x180092e6e\nlea     rax, unk_1801B2848                                             ; +0xc3, 0x180092e73\nmov     rdx, rdi; struct cocos2d::CCTexture2D *                        ; +0xca, 0x180092e7a\nmov     rcx, rsi; this                                                 ; +0xcd, 0x180092e7d\nmov     [rsp+88h+var_68], rax; struct cocos2d::CCPoint *               ; +0xd0, 0x180092e80\ncall    ?initWithTexture@CCSpriteFrame@cocos2d@@QEAA_NPEAVCCTexture2D@2@AEBVCCRect@2@_NAEBVCCPoint@2@AEBVCCSize@2@@Z; cocos2d::CCSpriteFrame::initWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &,bool,cocos2d::CCPoint const &,cocos2d::CCSize const &) ; +0xd5, 0x180092e85\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0xda, 0x180092e8a\nlea     r11, [rsp+88h+var_8]                                           ; +0xdf, 0x180092e8f\nmov     rbx, [r11+10h]                                                 ; +0xe7, 0x180092e97\nmov     rsi, [r11+18h]                                                 ; +0xeb, 0x180092e9b\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0xef, 0x180092e9f\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0xf4, 0x180092ea4\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0xf9, 0x180092ea9\nmov     rsp, r11                                                       ; +0xfe, 0x180092eae\npop     rdi                                                            ; +0x101, 0x180092eb1\nretn                                                                   ; +0x102, 0x180092eb2", "xrefs": ["cocos2d::CCSpriteFrame::createWithTexture @ 0x180092c64", "<???> @ 0x18014cf68", "<???> @ 0x1801c0510"], "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"}