{"type": "func", "start": 6443041136, "end": 6443041248, "name": "cocos2d::CCSpriteFrame::setOffsetInPixels", "pseudocode": "// \n// cocos2d::CCSpriteFrame::setOffsetInPixels from 0x180090170 to 0x1800901e0 (112 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6294\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::setOffsetInPixels(cocos2d::CCSpriteFrame *this, struct cocos2d::CCPoint *a2)\n{\n  cocos2d::CCDirector *v3; // rax\n  float v4; // xmm6_4\n  cocos2d::CCDirector *v5; // rax\n  float ContentScaleFactor; // xmm0_4\n  float *v7; // rax\n  float v8; // [rsp+40h] [rbp+8h] BYREF\n\n  cocos2d::CCSize::operator=(&this->m_obOffsetInPixels, a2);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  v4 = this->m_obOffsetInPixels.y / cocos2d::CCDirector::getContentScaleFactor(v3);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v5);\n  v7 = kmVec2Fill(&v8, this->m_obOffsetInPixels.x / ContentScaleFactor, v4);\n  cocos2d::CCSize::operator=(&this->m_obOffset, v7);\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::setOffsetInPixels from 0x180090170 to 0x1800901e0 (112 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6294\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_8], rbx                                               ; +0x0, 0x180090170\npush    rdi                                                            ; +0x5, 0x180090175\nsub     rsp, 30h                                                       ; +0x6, 0x180090176\nmov     rdi, rcx                                                       ; +0xa, 0x18009017a\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xd, 0x18009017d\nadd     rcx, 6Ch ; 'l'                                                 ; +0x12, 0x180090182\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x16, 0x180090186\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1b, 0x18009018b\nmov     rcx, rax; this                                                 ; +0x20, 0x180090190\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x23, 0x180090193\nmovss   xmm6, dword ptr [rdi+70h]                                      ; +0x28, 0x180090198\ndivss   xmm6, xmm0                                                     ; +0x2d, 0x18009019d\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x31, 0x1800901a1\nmov     rcx, rax; this                                                 ; +0x36, 0x1800901a6\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x39, 0x1800901a9\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x3e, 0x1800901ae\nmovss   xmm1, dword ptr [rdi+6Ch]                                      ; +0x43, 0x1800901b3\nmovaps  xmm2, xmm6                                                     ; +0x48, 0x1800901b8\ndivss   xmm1, xmm0                                                     ; +0x4b, 0x1800901bb\ncall    kmVec2Fill                                                     ; +0x4f, 0x1800901bf\nmov     rdx, rax                                                       ; +0x54, 0x1800901c4\nlea     rcx, [rdi+38h]                                                 ; +0x57, 0x1800901c7\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x5b, 0x1800901cb\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x60, 0x1800901d0\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x65, 0x1800901d5\nadd     rsp, 30h                                                       ; +0x6a, 0x1800901da\npop     rdi                                                            ; +0x6e, 0x1800901de\nretn                                                                   ; +0x6f, 0x1800901df", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b6294"], "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"}