{"type": "func", "start": 6443054064, "end": 6443054189, "name": "cocos2d::CCSpriteFrame::setOffsetInPixels", "pseudocode": "// \n// cocos2d::CCSpriteFrame::setOffsetInPixels from 0x1800933f0 to 0x18009346d (125 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0540\n// > <???> @ 0x1801c054c\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:08 +0000\n// \n\nvoid __fastcall cocos2d::CCSpriteFrame::setOffsetInPixels(\n        cocos2d::CCSpriteFrame *this,\n        const struct cocos2d::CCPoint *a2)\n{\n  cocos2d::CCDirector *v3; // rax\n  float ContentScaleFactor; // xmm0_4\n  float v5; // xmm6_4\n  float v6; // xmm7_4\n  cocos2d::CCDirector *v7; // rax\n  float v8; // xmm0_4\n  float *v9; // rax\n  float v10; // [rsp+50h] [rbp+8h] BYREF\n\n  cocos2d::CCSize::operator=((_DWORD *)this + 27, a2);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v3);\n  v5 = *((float *)this + 27);\n  v6 = *((float *)this + 28) / ContentScaleFactor;\n  v7 = cocos2d::CCDirector::sharedDirector();\n  v8 = cocos2d::CCDirector::getContentScaleFactor(v7);\n  v9 = kmVec2Fill(&v10, v5 / v8, v6);\n  cocos2d::CCSize::operator=((_DWORD *)this + 14, v9);\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::setOffsetInPixels from 0x1800933f0 to 0x18009346d (125 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0540\n; > <???> @ 0x1801c054c\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:08 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800933f0\npush    rdi                                                            ; +0x5, 0x1800933f5\nsub     rsp, 40h                                                       ; +0x6, 0x1800933f6\nmov     rdi, rcx                                                       ; +0xa, 0x1800933fa\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xd, 0x1800933fd\nadd     rcx, 6Ch ; 'l'                                                 ; +0x12, 0x180093402\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x16, 0x180093406\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x1b, 0x18009340b\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x20, 0x180093410\nmov     rcx, rax; this                                                 ; +0x25, 0x180093415\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x28, 0x180093418\nmovss   xmm7, dword ptr [rdi+70h]                                      ; +0x2d, 0x18009341d\nmovss   xmm6, dword ptr [rdi+6Ch]                                      ; +0x32, 0x180093422\ndivss   xmm7, xmm0                                                     ; +0x37, 0x180093427\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x3b, 0x18009342b\nmov     rcx, rax; this                                                 ; +0x40, 0x180093430\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x43, 0x180093433\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x48, 0x180093438\ndivss   xmm6, xmm0                                                     ; +0x4d, 0x18009343d\nmovaps  xmm2, xmm7                                                     ; +0x51, 0x180093441\nmovaps  xmm1, xmm6                                                     ; +0x54, 0x180093444\ncall    kmVec2Fill                                                     ; +0x57, 0x180093447\nmov     rdx, rax                                                       ; +0x5c, 0x18009344c\nlea     rcx, [rdi+38h]                                                 ; +0x5f, 0x18009344f\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x63, 0x180093453\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x68, 0x180093458\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x6d, 0x18009345d\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x72, 0x180093462\nadd     rsp, 40h                                                       ; +0x77, 0x180093467\npop     rdi                                                            ; +0x7b, 0x18009346b\nretn                                                                   ; +0x7c, 0x18009346c", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c0540", "<???> @ 0x1801c054c"], "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"}