{"type": "func", "start": 6443053456, "end": 6443053924, "name": "cocos2d::CCSpriteFrame::initWithTextureFilename", "pseudocode": "// \n// cocos2d::CCSpriteFrame::initWithTextureFilename from 0x180093190 to 0x180093364 (468 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCSpriteFrame::copyWithZone @ 0x180092a92\n// > cocos2d::CCSpriteFrame::create @ 0x180092bd9\n// > cocos2d::CCSpriteFrame::initWithTextureFilename @ 0x180093155\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0534\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::initWithTextureFilename(\n        cocos2d::CCSpriteFrame *this,\n        char *a2,\n        const struct cocos2d::CCRect *a3,\n        char a4,\n        const struct cocos2d::CCPoint *a5,\n        const struct cocos2d::CCSize *a6)\n{\n  size_t v10; // rax\n  cocos2d::CCDirector *v11; // rax\n  float ContentScaleFactor; // xmm0_4\n  float v13; // xmm8_4\n  float v14; // xmm9_4\n  cocos2d::CCDirector *v15; // rax\n  float v16; // xmm0_4\n  float v17; // xmm7_4\n  float v18; // xmm8_4\n  cocos2d::CCDirector *v19; // rax\n  float v20; // xmm0_4\n  float v21; // xmm6_4\n  float v22; // xmm7_4\n  cocos2d::CCDirector *v23; // rax\n  float v24; // xmm0_4\n  cocos2d::CCRect *v25; // rax\n  cocos2d::CCDirector *v26; // rax\n  float v27; // xmm0_4\n  float v28; // xmm6_4\n  float v29; // xmm7_4\n  cocos2d::CCDirector *v30; // rax\n  float v31; // xmm0_4\n  float *v32; // rax\n  cocos2d::CCDirector *v33; // rax\n  float v34; // xmm0_4\n  float v35; // xmm6_4\n  float v36; // xmm7_4\n  cocos2d::CCDirector *v37; // rax\n  float v38; // xmm0_4\n  float *v39; // rax\n  _BYTE v41[48]; // [rsp+30h] [rbp-58h] BYREF\n  float v42; // [rsp+90h] [rbp+8h] BYREF\n\n  *((_QWORD *)this + 16) = 0;\n  v10 = strlen(a2);\n  sub_1800101E0((void **)this + 17, a2, v10);\n  cocos2d::CCRect::operator=((__int64)this + 72, (__int64)a3);\n  v11 = cocos2d::CCDirector::sharedDirector();\n  ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v11);\n  v13 = *((float *)a3 + 2);\n  v14 = *((float *)a3 + 3) / ContentScaleFactor;\n  v15 = cocos2d::CCDirector::sharedDirector();\n  v16 = cocos2d::CCDirector::getContentScaleFactor(v15);\n  v17 = *((float *)a3 + 1);\n  v18 = v13 / v16;\n  v19 = cocos2d::CCDirector::sharedDirector();\n  v20 = cocos2d::CCDirector::getContentScaleFactor(v19);\n  v21 = *(float *)a3;\n  v22 = v17 / v20;\n  v23 = cocos2d::CCDirector::sharedDirector();\n  v24 = cocos2d::CCDirector::getContentScaleFactor(v23);\n  v25 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v41, v21 / v24, v22, v18, v14);\n  cocos2d::CCRect::operator=((__int64)this + 92, (__int64)v25);\n  cocos2d::CCSize::operator=((_DWORD *)this + 27, a5);\n  v26 = cocos2d::CCDirector::sharedDirector();\n  v27 = cocos2d::CCDirector::getContentScaleFactor(v26);\n  v28 = *((float *)this + 27);\n  v29 = *((float *)this + 28) / v27;\n  v30 = cocos2d::CCDirector::sharedDirector();\n  v31 = cocos2d::CCDirector::getContentScaleFactor(v30);\n  v32 = kmVec2Fill(&v42, v28 / v31, v29);\n  cocos2d::CCSize::operator=((_DWORD *)this + 14, v32);\n  cocos2d::CCSize::operator=((_DWORD *)this + 29, a6);\n  v33 = cocos2d::CCDirector::sharedDirector();\n  v34 = cocos2d::CCDirector::getContentScaleFactor(v33);\n  v35 = *((float *)this + 29);\n  v36 = *((float *)this + 30) / v34;\n  v37 = cocos2d::CCDirector::sharedDirector();\n  v38 = cocos2d::CCDirector::getContentScaleFactor(v37);\n  v39 = kmVec2Fill(&v42, v35 / v38, v36);\n  cocos2d::CCSize::operator=((_DWORD *)this + 16, v39);\n  *((_BYTE *)this + 88) = a4;\n  return 1;\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::initWithTextureFilename from 0x180093190 to 0x180093364 (468 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCSpriteFrame::copyWithZone @ 0x180092a92\n; > cocos2d::CCSpriteFrame::create @ 0x180092bd9\n; > cocos2d::CCSpriteFrame::initWithTextureFilename @ 0x180093155\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0534\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     rax, rsp                                                       ; +0x0, 0x180093190\nmov     [rax+10h], rbx                                                 ; +0x3, 0x180093193\nmov     [rax+18h], rbp                                                 ; +0x7, 0x180093197\nmov     [rax+20h], rsi                                                 ; +0xb, 0x18009319b\npush    rdi                                                            ; +0xf, 0x18009319f\nsub     rsp, 80h                                                       ; +0x10, 0x1800931a0\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x17, 0x1800931a7\nmov     rsi, rcx                                                       ; +0x1b, 0x1800931ab\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x1e, 0x1800931ae\nmovzx   ebp, r9b                                                       ; +0x22, 0x1800931b2\nmov     qword ptr [rcx+80h], 0                                         ; +0x26, 0x1800931b6\nmov     rdi, r8                                                        ; +0x31, 0x1800931c1\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x34, 0x1800931c4\nmov     rcx, rdx; Str                                                  ; +0x39, 0x1800931c9\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x3c, 0x1800931cc\nmov     rbx, rdx                                                       ; +0x41, 0x1800931d1\ncall    strlen                                                         ; +0x44, 0x1800931d4\nlea     rcx, [rsi+88h]; void *                                         ; +0x49, 0x1800931d9\nmov     r8, rax; Size                                                  ; +0x50, 0x1800931e0\nmov     rdx, rbx; Src                                                  ; +0x53, 0x1800931e3\ncall    sub_1800101E0                                                  ; +0x56, 0x1800931e6\nlea     rcx, [rsi+48h]                                                 ; +0x5b, 0x1800931eb\nmov     rdx, rdi                                                       ; +0x5f, 0x1800931ef\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x62, 0x1800931f2\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x67, 0x1800931f7\nmov     rcx, rax; this                                                 ; +0x6c, 0x1800931fc\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x6f, 0x1800931ff\nmovss   xmm9, dword ptr [rdi+0Ch]                                      ; +0x74, 0x180093204\nmovss   xmm8, dword ptr [rdi+8]                                        ; +0x7a, 0x18009320a\ndivss   xmm9, xmm0                                                     ; +0x80, 0x180093210\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x85, 0x180093215\nmov     rcx, rax; this                                                 ; +0x8a, 0x18009321a\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x8d, 0x18009321d\nmovss   xmm7, dword ptr [rdi+4]                                        ; +0x92, 0x180093222\ndivss   xmm8, xmm0                                                     ; +0x97, 0x180093227\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9c, 0x18009322c\nmov     rcx, rax; this                                                 ; +0xa1, 0x180093231\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xa4, 0x180093234\nmovss   xmm6, dword ptr [rdi]                                          ; +0xa9, 0x180093239\ndivss   xmm7, xmm0                                                     ; +0xad, 0x18009323d\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xb1, 0x180093241\nmov     rcx, rax; this                                                 ; +0xb6, 0x180093246\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xb9, 0x180093249\nlea     rcx, [rsp+88h+var_58]; this                                    ; +0xbe, 0x18009324e\ndivss   xmm6, xmm0                                                     ; +0xc3, 0x180093253\nmovaps  xmm3, xmm8; float                                              ; +0xc7, 0x180093257\nmovss   [rsp+88h+var_68], xmm9; float                                  ; +0xcb, 0x18009325b\nmovaps  xmm1, xmm6; float                                              ; +0xd2, 0x180093262\nmovaps  xmm2, xmm7; float                                              ; +0xd5, 0x180093265\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xd8, 0x180093268\nmov     rdx, rax                                                       ; +0xdd, 0x18009326d\nlea     rcx, [rsi+5Ch]                                                 ; +0xe0, 0x180093270\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0xe4, 0x180093274\nmov     rdx, [rsp+88h+arg_20]                                          ; +0xe9, 0x180093279\nlea     rcx, [rsi+6Ch]                                                 ; +0xf1, 0x180093281\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xf5, 0x180093285\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xfa, 0x18009328a\nmov     rcx, rax; this                                                 ; +0xff, 0x18009328f\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x102, 0x180093292\nmovss   xmm7, dword ptr [rsi+70h]                                      ; +0x107, 0x180093297\nmovss   xmm6, dword ptr [rsi+6Ch]                                      ; +0x10c, 0x18009329c\ndivss   xmm7, xmm0                                                     ; +0x111, 0x1800932a1\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x115, 0x1800932a5\nmov     rcx, rax; this                                                 ; +0x11a, 0x1800932aa\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x11d, 0x1800932ad\nlea     rcx, [rsp+88h+arg_0]                                           ; +0x122, 0x1800932b2\ndivss   xmm6, xmm0                                                     ; +0x12a, 0x1800932ba\nmovaps  xmm2, xmm7                                                     ; +0x12e, 0x1800932be\nmovaps  xmm1, xmm6                                                     ; +0x131, 0x1800932c1\ncall    kmVec2Fill                                                     ; +0x134, 0x1800932c4\nmov     rdx, rax                                                       ; +0x139, 0x1800932c9\nlea     rcx, [rsi+38h]                                                 ; +0x13c, 0x1800932cc\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x140, 0x1800932d0\nmov     rdx, [rsp+88h+arg_28]                                          ; +0x145, 0x1800932d5\nlea     rcx, [rsi+74h]                                                 ; +0x14d, 0x1800932dd\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x151, 0x1800932e1\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x156, 0x1800932e6\nmov     rcx, rax; this                                                 ; +0x15b, 0x1800932eb\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x15e, 0x1800932ee\nmovss   xmm7, dword ptr [rsi+78h]                                      ; +0x163, 0x1800932f3\nmovss   xmm6, dword ptr [rsi+74h]                                      ; +0x168, 0x1800932f8\ndivss   xmm7, xmm0                                                     ; +0x16d, 0x1800932fd\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x171, 0x180093301\nmov     rcx, rax; this                                                 ; +0x176, 0x180093306\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x179, 0x180093309\ndivss   xmm6, xmm0                                                     ; +0x17e, 0x18009330e\nmovaps  xmm2, xmm7                                                     ; +0x182, 0x180093312\nmovaps  xmm1, xmm6                                                     ; +0x185, 0x180093315\nlea     rcx, [rsp+88h+arg_0]                                           ; +0x188, 0x180093318\ncall    kmVec2Fill                                                     ; +0x190, 0x180093320\nmov     rdx, rax                                                       ; +0x195, 0x180093325\nlea     rcx, [rsi+40h]                                                 ; +0x198, 0x180093328\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x19c, 0x18009332c\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x1a1, 0x180093331\nlea     r11, [rsp+88h+var_8]                                           ; +0x1a6, 0x180093336\nmov     rbx, [r11+18h]                                                 ; +0x1ae, 0x18009333e\nmov     al, 1                                                          ; +0x1b2, 0x180093342\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x1b4, 0x180093344\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x1b9, 0x180093349\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x1be, 0x18009334e\nmov     [rsi+58h], bpl                                                 ; +0x1c3, 0x180093353\nmov     rbp, [r11+20h]                                                 ; +0x1c7, 0x180093357\nmov     rsi, [r11+28h]                                                 ; +0x1cb, 0x18009335b\nmov     rsp, r11                                                       ; +0x1cf, 0x18009335f\npop     rdi                                                            ; +0x1d2, 0x180093362\nretn                                                                   ; +0x1d3, 0x180093363", "xrefs": ["cocos2d::CCSpriteFrame::copyWithZone @ 0x180092a92", "cocos2d::CCSpriteFrame::create @ 0x180092bd9", "cocos2d::CCSpriteFrame::initWithTextureFilename @ 0x180093155", "<???> @ 0x18014cf68", "<???> @ 0x1801c0534"], "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"}