{"type": "func", "start": 6443041440, "end": 6443041635, "name": "cocos2d::CCSpriteFrame::setRectInPixels", "pseudocode": "// \n// cocos2d::CCSpriteFrame::setRectInPixels from 0x1800902a0 to 0x180090363 (195 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b62ac\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::setRectInPixels(cocos2d::CCSpriteFrame *this, const struct cocos2d::CCRect *a2)\n{\n  cocos2d::CCDirector *v4; // rax\n  float v5; // xmm8_4\n  cocos2d::CCDirector *v6; // rax\n  float v7; // xmm7_4\n  cocos2d::CCDirector *v8; // rax\n  float v9; // xmm6_4\n  cocos2d::CCDirector *v10; // rax\n  float ContentScaleFactor; // xmm0_4\n  cocos2d::CCRect *v12; // rax\n  cocos2d::CCRect v13; // [rsp+30h] [rbp-48h] BYREF\n\n  cocos2d::CCRect::operator=((float *)&this->m_obRectInPixels.origin, (float *)&a2->origin);\n  v4 = cocos2d::CCDirector::sharedDirector();\n  v5 = a2->size.height / cocos2d::CCDirector::getContentScaleFactor(v4);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  v7 = a2->size.width / cocos2d::CCDirector::getContentScaleFactor(v6);\n  v8 = cocos2d::CCDirector::sharedDirector();\n  v9 = a2->origin.y / cocos2d::CCDirector::getContentScaleFactor(v8);\n  v10 = cocos2d::CCDirector::sharedDirector();\n  ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v10);\n  v12 = cocos2d::CCRect::CCRect(&v13, a2->origin.x / ContentScaleFactor, v9, v7, v5);\n  cocos2d::CCRect::operator=((float *)&this->m_obRect.origin, (float *)&v12->origin);\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::setRectInPixels from 0x1800902a0 to 0x180090363 (195 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b62ac\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, 0x1800902a0\npush    rdi                                                            ; +0x5, 0x1800902a5\nsub     rsp, 70h                                                       ; +0x6, 0x1800902a6\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0xa, 0x1800902aa\nmov     rdi, rcx                                                       ; +0xf, 0x1800902af\nmovaps  [rsp+78h+var_28], xmm7                                         ; +0x12, 0x1800902b2\nadd     rcx, 48h ; 'H'                                                 ; +0x17, 0x1800902b7\nmovaps  [rsp+78h+var_38], xmm8                                         ; +0x1b, 0x1800902bb\nmov     rbx, rdx                                                       ; +0x21, 0x1800902c1\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x24, 0x1800902c4\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x29, 0x1800902c9\nmov     rcx, rax; this                                                 ; +0x2e, 0x1800902ce\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x31, 0x1800902d1\nmovss   xmm8, dword ptr [rbx+0Ch]                                      ; +0x36, 0x1800902d6\ndivss   xmm8, xmm0                                                     ; +0x3c, 0x1800902dc\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x41, 0x1800902e1\nmov     rcx, rax; this                                                 ; +0x46, 0x1800902e6\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x49, 0x1800902e9\nmovss   xmm7, dword ptr [rbx+8]                                        ; +0x4e, 0x1800902ee\ndivss   xmm7, xmm0                                                     ; +0x53, 0x1800902f3\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x57, 0x1800902f7\nmov     rcx, rax; this                                                 ; +0x5c, 0x1800902fc\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x5f, 0x1800902ff\nmovss   xmm6, dword ptr [rbx+4]                                        ; +0x64, 0x180090304\ndivss   xmm6, xmm0                                                     ; +0x69, 0x180090309\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x6d, 0x18009030d\nmov     rcx, rax; this                                                 ; +0x72, 0x180090312\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x75, 0x180090315\nlea     rcx, [rsp+78h+var_48]; this                                    ; +0x7a, 0x18009031a\nmovss   xmm1, dword ptr [rbx]                                          ; +0x7f, 0x18009031f\nmovaps  xmm3, xmm7; float                                              ; +0x83, 0x180090323\ndivss   xmm1, xmm0; float                                              ; +0x86, 0x180090326\nmovaps  xmm2, xmm6; float                                              ; +0x8a, 0x18009032a\nmovss   [rsp+78h+var_58], xmm8; float                                  ; +0x8d, 0x18009032d\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x94, 0x180090334\nmov     rdx, rax                                                       ; +0x99, 0x180090339\nlea     rcx, [rdi+5Ch]                                                 ; +0x9c, 0x18009033c\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0xa0, 0x180090340\nmov     rbx, [rsp+78h+arg_0]                                           ; +0xa5, 0x180090345\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0xad, 0x18009034d\nmovaps  xmm7, [rsp+78h+var_28]                                         ; +0xb2, 0x180090352\nmovaps  xmm8, [rsp+78h+var_38]                                         ; +0xb7, 0x180090357\nadd     rsp, 70h                                                       ; +0xbd, 0x18009035d\npop     rdi                                                            ; +0xc1, 0x180090361\nretn                                                                   ; +0xc2, 0x180090362", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b62ac"], "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"}