{"type": "func", "start": 6443053184, "end": 6443053443, "name": "cocos2d::CCSpriteFrame::initWithTextureFilename", "pseudocode": "// \n// cocos2d::CCSpriteFrame::initWithTextureFilename from 0x180093080 to 0x180093183 (259 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCSpriteFrame::create @ 0x180092b34\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0528\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::initWithTextureFilename(\n        cocos2d::CCSpriteFrame *this,\n        const char *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::initWithTextureFilename(\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::initWithTextureFilename from 0x180093080 to 0x180093183 (259 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCSpriteFrame::create @ 0x180092b34\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0528\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, 0x180093080\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180093085\npush    rdi                                                            ; +0xa, 0x18009308a\nsub     rsp, 80h                                                       ; +0xb, 0x18009308b\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0x12, 0x180093092\nmov     rbx, r8                                                        ; +0x17, 0x180093097\nmovss   xmm6, dword ptr [r8+0Ch]                                       ; +0x1a, 0x18009309a\nmov     rdi, rdx                                                       ; +0x20, 0x1800930a0\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x23, 0x1800930a3\nmov     rsi, rcx                                                       ; +0x28, 0x1800930a8\nmovaps  [rsp+88h+var_38], xmm8                                         ; +0x2b, 0x1800930ab\nmovaps  [rsp+88h+var_48], xmm9                                         ; +0x31, 0x1800930b1\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x37, 0x1800930b7\nmov     rcx, rax; this                                                 ; +0x3c, 0x1800930bc\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x3f, 0x1800930bf\nmovaps  xmm9, xmm0                                                     ; +0x44, 0x1800930c4\nmulss   xmm9, xmm6                                                     ; +0x48, 0x1800930c8\nmovss   xmm6, dword ptr [rbx+8]                                        ; +0x4d, 0x1800930cd\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x52, 0x1800930d2\nmov     rcx, rax; this                                                 ; +0x57, 0x1800930d7\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x5a, 0x1800930da\nmovaps  xmm8, xmm0                                                     ; +0x5f, 0x1800930df\nmulss   xmm8, xmm6                                                     ; +0x63, 0x1800930e3\nmovss   xmm6, dword ptr [rbx+4]                                        ; +0x68, 0x1800930e8\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x6d, 0x1800930ed\nmov     rcx, rax; this                                                 ; +0x72, 0x1800930f2\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x75, 0x1800930f5\nmovaps  xmm7, xmm0                                                     ; +0x7a, 0x1800930fa\nmulss   xmm7, xmm6                                                     ; +0x7d, 0x1800930fd\nmovss   xmm6, dword ptr [rbx]                                          ; +0x81, 0x180093101\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x85, 0x180093105\nmov     rcx, rax; this                                                 ; +0x8a, 0x18009310a\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x8d, 0x18009310d\nmulss   xmm0, xmm6                                                     ; +0x92, 0x180093112\nlea     rcx, [rsp+88h+var_58]; this                                    ; +0x96, 0x180093116\nmovaps  xmm3, xmm8; float                                              ; +0x9b, 0x18009311b\nmovss   dword ptr [rsp+88h+var_68], xmm9; float                        ; +0x9f, 0x18009311f\nmovaps  xmm2, xmm7; float                                              ; +0xa6, 0x180093126\nmovaps  xmm1, xmm0; float                                              ; +0xa9, 0x180093129\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xac, 0x18009312c\nlea     rax, [rsp+88h+var_50]                                          ; +0xb1, 0x180093131\nxor     r9d, r9d; bool                                                 ; +0xb6, 0x180093136\nmov     [rsp+88h+var_60], rax; struct cocos2d::CCSize *                ; +0xb9, 0x180093139\nlea     r8, [rsp+88h+var_58]; struct cocos2d::CCRect *                 ; +0xbe, 0x18009313e\nlea     rax, unk_1801B2848                                             ; +0xc3, 0x180093143\nmov     rdx, rdi; char *                                               ; +0xca, 0x18009314a\nmov     rcx, rsi; this                                                 ; +0xcd, 0x18009314d\nmov     [rsp+88h+var_68], rax; struct cocos2d::CCPoint *               ; +0xd0, 0x180093150\ncall    ?initWithTextureFilename@CCSpriteFrame@cocos2d@@QEAA_NPEBDAEBVCCRect@2@_NAEBVCCPoint@2@AEBVCCSize@2@@Z; cocos2d::CCSpriteFrame::initWithTextureFilename(char const *,cocos2d::CCRect const &,bool,cocos2d::CCPoint const &,cocos2d::CCSize const &) ; +0xd5, 0x180093155\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0xda, 0x18009315a\nlea     r11, [rsp+88h+var_8]                                           ; +0xdf, 0x18009315f\nmov     rbx, [r11+10h]                                                 ; +0xe7, 0x180093167\nmov     rsi, [r11+18h]                                                 ; +0xeb, 0x18009316b\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0xef, 0x18009316f\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0xf4, 0x180093174\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0xf9, 0x180093179\nmov     rsp, r11                                                       ; +0xfe, 0x18009317e\npop     rdi                                                            ; +0x101, 0x180093181\nretn                                                                   ; +0x102, 0x180093182", "xrefs": ["cocos2d::CCSpriteFrame::create @ 0x180092b34", "<???> @ 0x18014cf68", "<???> @ 0x1801c0528"], "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"}