{"type": "func", "start": 6443041024, "end": 6443041134, "name": "cocos2d::CCSpriteFrame::setOffset", "pseudocode": "// \n// cocos2d::CCSpriteFrame::setOffset from 0x180090100 to 0x18009016e (110 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6288\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::setOffset(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_obOffset, a2);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  v4 = cocos2d::CCDirector::getContentScaleFactor(v3) * this->m_obOffset.y;\n  v5 = cocos2d::CCDirector::sharedDirector();\n  ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v5);\n  v7 = kmVec2Fill(&v8, ContentScaleFactor * this->m_obOffset.x, v4);\n  cocos2d::CCSize::operator=(&this->m_obOffsetInPixels, v7);\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::setOffset from 0x180090100 to 0x18009016e (110 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6288\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, 0x180090100\npush    rdi                                                            ; +0x5, 0x180090105\nsub     rsp, 30h                                                       ; +0x6, 0x180090106\nmov     rdi, rcx                                                       ; +0xa, 0x18009010a\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xd, 0x18009010d\nadd     rcx, 38h ; '8'                                                 ; +0x12, 0x180090112\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x16, 0x180090116\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1b, 0x18009011b\nmov     rcx, rax; this                                                 ; +0x20, 0x180090120\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x23, 0x180090123\nmovaps  xmm6, xmm0                                                     ; +0x28, 0x180090128\nmulss   xmm6, dword ptr [rdi+3Ch]                                      ; +0x2b, 0x18009012b\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x30, 0x180090130\nmov     rcx, rax; this                                                 ; +0x35, 0x180090135\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x38, 0x180090138\nmulss   xmm0, dword ptr [rdi+38h]                                      ; +0x3d, 0x18009013d\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x42, 0x180090142\nmovaps  xmm2, xmm6                                                     ; +0x47, 0x180090147\nmovaps  xmm1, xmm0                                                     ; +0x4a, 0x18009014a\ncall    kmVec2Fill                                                     ; +0x4d, 0x18009014d\nmov     rdx, rax                                                       ; +0x52, 0x180090152\nlea     rcx, [rdi+6Ch]                                                 ; +0x55, 0x180090155\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x59, 0x180090159\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x5e, 0x18009015e\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x63, 0x180090163\nadd     rsp, 30h                                                       ; +0x68, 0x180090168\npop     rdi                                                            ; +0x6c, 0x18009016c\nretn                                                                   ; +0x6d, 0x18009016d", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b6288"], "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"}