{"type": "func", "start": 6443041248, "end": 6443041437, "name": "cocos2d::CCSpriteFrame::setRect", "pseudocode": "// \n// cocos2d::CCSpriteFrame::setRect from 0x1800901e0 to 0x18009029d (189 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6294\n// > <???> @ 0x1801b62a0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCSpriteFrame::setRect(cocos2d::CCSpriteFrame *this, const struct cocos2d::CCRect *a2)\n{\n  cocos2d::CCDirector *v3; // rax\n  float v4; // xmm8_4\n  cocos2d::CCDirector *v5; // rax\n  float v6; // xmm7_4\n  cocos2d::CCDirector *v7; // rax\n  float v8; // xmm6_4\n  cocos2d::CCDirector *v9; // rax\n  float ContentScaleFactor; // xmm0_4\n  cocos2d::CCRect *v11; // rax\n  cocos2d::CCRect v12; // [rsp+30h] [rbp-48h] BYREF\n\n  cocos2d::CCRect::operator=((float *)&this->m_obRect.origin, (float *)&a2->origin);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  v4 = cocos2d::CCDirector::getContentScaleFactor(v3) * this->m_obRect.size.height;\n  v5 = cocos2d::CCDirector::sharedDirector();\n  v6 = cocos2d::CCDirector::getContentScaleFactor(v5) * this->m_obRect.size.width;\n  v7 = cocos2d::CCDirector::sharedDirector();\n  v8 = cocos2d::CCDirector::getContentScaleFactor(v7) * this->m_obRect.origin.y;\n  v9 = cocos2d::CCDirector::sharedDirector();\n  ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v9);\n  v11 = cocos2d::CCRect::CCRect(&v12, ContentScaleFactor * this->m_obRect.origin.x, v8, v6, v4);\n  cocos2d::CCRect::operator=((float *)&this->m_obRectInPixels.origin, (float *)&v11->origin);\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::setRect from 0x1800901e0 to 0x18009029d (189 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6294\n; > <???> @ 0x1801b62a0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800901e0\npush    rdi                                                            ; +0x5, 0x1800901e5\nsub     rsp, 70h                                                       ; +0x6, 0x1800901e6\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0xa, 0x1800901ea\nmov     rdi, rcx                                                       ; +0xf, 0x1800901ef\nmovaps  [rsp+78h+var_28], xmm7                                         ; +0x12, 0x1800901f2\nadd     rcx, 5Ch ; '\\'                                                 ; +0x17, 0x1800901f7\nmovaps  [rsp+78h+var_38], xmm8                                         ; +0x1b, 0x1800901fb\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x21, 0x180090201\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x26, 0x180090206\nmov     rcx, rax; this                                                 ; +0x2b, 0x18009020b\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x2e, 0x18009020e\nmovaps  xmm8, xmm0                                                     ; +0x33, 0x180090213\nmulss   xmm8, dword ptr [rdi+68h]                                      ; +0x37, 0x180090217\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x3d, 0x18009021d\nmov     rcx, rax; this                                                 ; +0x42, 0x180090222\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x45, 0x180090225\nmovaps  xmm7, xmm0                                                     ; +0x4a, 0x18009022a\nmulss   xmm7, dword ptr [rdi+64h]                                      ; +0x4d, 0x18009022d\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x52, 0x180090232\nmov     rcx, rax; this                                                 ; +0x57, 0x180090237\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x5a, 0x18009023a\nmovaps  xmm6, xmm0                                                     ; +0x5f, 0x18009023f\nmulss   xmm6, dword ptr [rdi+60h]                                      ; +0x62, 0x180090242\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x67, 0x180090247\nmov     rcx, rax; this                                                 ; +0x6c, 0x18009024c\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x6f, 0x18009024f\nmulss   xmm0, dword ptr [rdi+5Ch]                                      ; +0x74, 0x180090254\nlea     rcx, [rsp+78h+var_48]; this                                    ; +0x79, 0x180090259\nmovaps  xmm3, xmm7; float                                              ; +0x7e, 0x18009025e\nmovss   [rsp+78h+var_58], xmm8; float                                  ; +0x81, 0x180090261\nmovaps  xmm2, xmm6; float                                              ; +0x88, 0x180090268\nmovaps  xmm1, xmm0; float                                              ; +0x8b, 0x18009026b\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x8e, 0x18009026e\nmov     rdx, rax                                                       ; +0x93, 0x180090273\nlea     rcx, [rdi+48h]                                                 ; +0x96, 0x180090276\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x9a, 0x18009027a\nmov     rbx, [rsp+78h+arg_0]                                           ; +0x9f, 0x18009027f\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0xa7, 0x180090287\nmovaps  xmm7, [rsp+78h+var_28]                                         ; +0xac, 0x18009028c\nmovaps  xmm8, [rsp+78h+var_38]                                         ; +0xb1, 0x180090291\nadd     rsp, 70h                                                       ; +0xb7, 0x180090297\npop     rdi                                                            ; +0xbb, 0x18009029b\nretn                                                                   ; +0xbc, 0x18009029c", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b6294", "<???> @ 0x1801b62a0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}