{"type": "func", "start": 6443054432, "end": 6443054651, "name": "cocos2d::CCSpriteFrame::setRectInPixels", "pseudocode": "// \n// cocos2d::CCSpriteFrame::setRectInPixels from 0x180093560 to 0x18009363b (219 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0564\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:09 +0000\n// \n\nvoid __fastcall cocos2d::CCSpriteFrame::setRectInPixels(cocos2d::CCSpriteFrame *this, const struct cocos2d::CCRect *a2)\n{\n  cocos2d::CCDirector *v4; // rax\n  float ContentScaleFactor; // xmm0_4\n  float v6; // xmm8_4\n  float v7; // xmm9_4\n  cocos2d::CCDirector *v8; // rax\n  float v9; // xmm0_4\n  float v10; // xmm7_4\n  float v11; // xmm8_4\n  cocos2d::CCDirector *v12; // rax\n  float v13; // xmm0_4\n  float v14; // xmm6_4\n  float v15; // xmm7_4\n  cocos2d::CCDirector *v16; // rax\n  float v17; // xmm0_4\n  cocos2d::CCRect *v18; // rax\n  _BYTE v19[16]; // [rsp+30h] [rbp-58h] BYREF\n\n  cocos2d::CCRect::operator=((__int64)this + 72, (__int64)a2);\n  v4 = cocos2d::CCDirector::sharedDirector();\n  ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v4);\n  v6 = *((float *)a2 + 2);\n  v7 = *((float *)a2 + 3) / ContentScaleFactor;\n  v8 = cocos2d::CCDirector::sharedDirector();\n  v9 = cocos2d::CCDirector::getContentScaleFactor(v8);\n  v10 = *((float *)a2 + 1);\n  v11 = v6 / v9;\n  v12 = cocos2d::CCDirector::sharedDirector();\n  v13 = cocos2d::CCDirector::getContentScaleFactor(v12);\n  v14 = *(float *)a2;\n  v15 = v10 / v13;\n  v16 = cocos2d::CCDirector::sharedDirector();\n  v17 = cocos2d::CCDirector::getContentScaleFactor(v16);\n  v18 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v19, v14 / v17, v15, v11, v7);\n  cocos2d::CCRect::operator=((__int64)this + 92, (__int64)v18);\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::setRectInPixels from 0x180093560 to 0x18009363b (219 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0564\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:09 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180093560\npush    rdi                                                            ; +0x5, 0x180093565\nsub     rsp, 80h                                                       ; +0x6, 0x180093566\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0xd, 0x18009356d\nmov     rdi, rcx                                                       ; +0x12, 0x180093572\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x15, 0x180093575\nadd     rcx, 48h ; 'H'                                                 ; +0x1a, 0x18009357a\nmovaps  [rsp+88h+var_38], xmm8                                         ; +0x1e, 0x18009357e\nmov     rbx, rdx                                                       ; +0x24, 0x180093584\nmovaps  [rsp+88h+var_48], xmm9                                         ; +0x27, 0x180093587\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x2d, 0x18009358d\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x32, 0x180093592\nmov     rcx, rax; this                                                 ; +0x37, 0x180093597\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x3a, 0x18009359a\nmovss   xmm9, dword ptr [rbx+0Ch]                                      ; +0x3f, 0x18009359f\nmovss   xmm8, dword ptr [rbx+8]                                        ; +0x45, 0x1800935a5\ndivss   xmm9, xmm0                                                     ; +0x4b, 0x1800935ab\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x50, 0x1800935b0\nmov     rcx, rax; this                                                 ; +0x55, 0x1800935b5\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x58, 0x1800935b8\nmovss   xmm7, dword ptr [rbx+4]                                        ; +0x5d, 0x1800935bd\ndivss   xmm8, xmm0                                                     ; +0x62, 0x1800935c2\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x67, 0x1800935c7\nmov     rcx, rax; this                                                 ; +0x6c, 0x1800935cc\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x6f, 0x1800935cf\nmovss   xmm6, dword ptr [rbx]                                          ; +0x74, 0x1800935d4\ndivss   xmm7, xmm0                                                     ; +0x78, 0x1800935d8\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x1800935dc\nmov     rcx, rax; this                                                 ; +0x81, 0x1800935e1\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x84, 0x1800935e4\nlea     rcx, [rsp+88h+var_58]; this                                    ; +0x89, 0x1800935e9\ndivss   xmm6, xmm0                                                     ; +0x8e, 0x1800935ee\nmovaps  xmm3, xmm8; float                                              ; +0x92, 0x1800935f2\nmovss   [rsp+88h+var_68], xmm9; float                                  ; +0x96, 0x1800935f6\nmovaps  xmm1, xmm6; float                                              ; +0x9d, 0x1800935fd\nmovaps  xmm2, xmm7; float                                              ; +0xa0, 0x180093600\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xa3, 0x180093603\nmov     rdx, rax                                                       ; +0xa8, 0x180093608\nlea     rcx, [rdi+5Ch]                                                 ; +0xab, 0x18009360b\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0xaf, 0x18009360f\nmov     rbx, [rsp+88h+arg_0]                                           ; +0xb4, 0x180093614\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0xbc, 0x18009361c\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0xc1, 0x180093621\nmovaps  xmm8, [rsp+88h+var_38]                                         ; +0xc6, 0x180093626\nmovaps  xmm9, [rsp+88h+var_48]                                         ; +0xcc, 0x18009362c\nadd     rsp, 80h                                                       ; +0xd2, 0x180093632\npop     rdi                                                            ; +0xd9, 0x180093639\nretn                                                                   ; +0xda, 0x18009363a", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c0564"], "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"}