{"type": "func", "start": 6443035040, "end": 6443035442, "name": "cocos2d::CCSprite::displayFrame", "pseudocode": "// \n// cocos2d::CCSprite::displayFrame from 0x18008e9a0 to 0x18008eb32 (402 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800f1d70\n// > <???> @ 0x1800f2258\n// > <???> @ 0x1800f2e08\n// > <???> @ 0x18010a248\n// > <???> @ 0x18010d260\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfe38\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:07 +0000\n// \n\nstruct cocos2d::CCSpriteFrame *__fastcall cocos2d::CCSprite::displayFrame(cocos2d::CCSprite *this)\n{\n  float v2; // xmm6_4\n  cocos2d::CCDirector *v3; // rax\n  float v4; // xmm7_4\n  float v5; // xmm6_4\n  cocos2d::CCDirector *v6; // rax\n  float ContentScaleFactor; // xmm0_4\n  float *v8; // rax\n  float v9; // xmm6_4\n  const struct cocos2d::CCSize *v10; // rbp\n  cocos2d::CCDirector *v11; // rax\n  float v12; // xmm7_4\n  float v13; // xmm6_4\n  cocos2d::CCDirector *v14; // rax\n  float v15; // xmm0_4\n  float *v16; // rax\n  char v17; // si\n  const struct cocos2d::CCPoint *v18; // rdi\n  float v19; // xmm6_4\n  cocos2d::CCDirector *v20; // rax\n  float v21; // xmm9_4\n  float v22; // xmm6_4\n  cocos2d::CCDirector *v23; // rax\n  float v24; // xmm8_4\n  float v25; // xmm6_4\n  cocos2d::CCDirector *v26; // rax\n  float v27; // xmm7_4\n  float v28; // xmm6_4\n  cocos2d::CCDirector *v29; // rax\n  float v30; // xmm0_4\n  struct cocos2d::CCTexture2D *v31; // rbx\n  cocos2d::CCRect *v32; // rax\n  _BYTE v34[16]; // [rsp+30h] [rbp-68h] BYREF\n  float v35; // [rsp+A0h] [rbp+8h] BYREF\n  float v36; // [rsp+A8h] [rbp+10h] BYREF\n\n  v2 = *((float *)this + 28);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  v4 = cocos2d::CCDirector::getContentScaleFactor(v3) * v2;\n  v5 = *((float *)this + 27);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v6);\n  v8 = kmVec2Fill(&v35, ContentScaleFactor * v5, v4);\n  v9 = *((float *)this + 114);\n  v10 = (const struct cocos2d::CCSize *)v8;\n  v11 = cocos2d::CCDirector::sharedDirector();\n  v12 = cocos2d::CCDirector::getContentScaleFactor(v11) * v9;\n  v13 = *((float *)this + 113);\n  v14 = cocos2d::CCDirector::sharedDirector();\n  v15 = cocos2d::CCDirector::getContentScaleFactor(v14);\n  v16 = kmVec2Fill(&v36, v15 * v13, v12);\n  v17 = *((_BYTE *)this + 440);\n  v18 = (const struct cocos2d::CCPoint *)v16;\n  v19 = *((float *)this + 109);\n  v20 = cocos2d::CCDirector::sharedDirector();\n  v21 = cocos2d::CCDirector::getContentScaleFactor(v20) * v19;\n  v22 = *((float *)this + 108);\n  v23 = cocos2d::CCDirector::sharedDirector();\n  v24 = cocos2d::CCDirector::getContentScaleFactor(v23) * v22;\n  v25 = *((float *)this + 107);\n  v26 = cocos2d::CCDirector::sharedDirector();\n  v27 = cocos2d::CCDirector::getContentScaleFactor(v26) * v25;\n  v28 = *((float *)this + 106);\n  v29 = cocos2d::CCDirector::sharedDirector();\n  v30 = cocos2d::CCDirector::getContentScaleFactor(v29);\n  v31 = *((struct cocos2d::CCTexture2D **)this + 52);\n  v32 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v34, v30 * v28, v27, v24, v21);\n  return cocos2d::CCSpriteFrame::createWithTexture(v31, v32, v17, v18, v10);\n}", "assembly": "; \n; cocos2d::CCSprite::displayFrame from 0x18008e9a0 to 0x18008eb32 (402 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800f1d70\n; > <???> @ 0x1800f2258\n; > <???> @ 0x1800f2e08\n; > <???> @ 0x18010a248\n; > <???> @ 0x18010d260\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfe38\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:07 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x18008e9a0\npush    rbp                                                            ; +0x5, 0x18008e9a5\npush    rsi                                                            ; +0x6, 0x18008e9a6\npush    rdi                                                            ; +0x7, 0x18008e9a7\nsub     rsp, 80h                                                       ; +0x8, 0x18008e9a8\nmovaps  [rsp+98h+var_28], xmm6                                         ; +0xf, 0x18008e9af\nmov     rbx, rcx                                                       ; +0x14, 0x18008e9b4\nmovss   xmm6, dword ptr [rcx+70h]                                      ; +0x17, 0x18008e9b7\nmovaps  [rsp+98h+var_38], xmm7                                         ; +0x1c, 0x18008e9bc\nmovaps  [rsp+98h+var_48], xmm8                                         ; +0x21, 0x18008e9c1\nmovaps  [rsp+98h+var_58], xmm9                                         ; +0x27, 0x18008e9c7\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2d, 0x18008e9cd\nmov     rcx, rax; this                                                 ; +0x32, 0x18008e9d2\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x35, 0x18008e9d5\nmovaps  xmm7, xmm0                                                     ; +0x3a, 0x18008e9da\nmulss   xmm7, xmm6                                                     ; +0x3d, 0x18008e9dd\nmovss   xmm6, dword ptr [rbx+6Ch]                                      ; +0x41, 0x18008e9e1\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x46, 0x18008e9e6\nmov     rcx, rax; this                                                 ; +0x4b, 0x18008e9eb\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x4e, 0x18008e9ee\nmulss   xmm0, xmm6                                                     ; +0x53, 0x18008e9f3\nlea     rcx, [rsp+98h+arg_0]                                           ; +0x57, 0x18008e9f7\nmovaps  xmm2, xmm7                                                     ; +0x5f, 0x18008e9ff\nmovaps  xmm1, xmm0                                                     ; +0x62, 0x18008ea02\ncall    kmVec2Fill                                                     ; +0x65, 0x18008ea05\nmovss   xmm6, dword ptr [rbx+1C8h]                                     ; +0x6a, 0x18008ea0a\nmov     rbp, rax                                                       ; +0x72, 0x18008ea12\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x75, 0x18008ea15\nmov     rcx, rax; this                                                 ; +0x7a, 0x18008ea1a\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x7d, 0x18008ea1d\nmovaps  xmm7, xmm0                                                     ; +0x82, 0x18008ea22\nmulss   xmm7, xmm6                                                     ; +0x85, 0x18008ea25\nmovss   xmm6, dword ptr [rbx+1C4h]                                     ; +0x89, 0x18008ea29\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x91, 0x18008ea31\nmov     rcx, rax; this                                                 ; +0x96, 0x18008ea36\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x99, 0x18008ea39\nmulss   xmm0, xmm6                                                     ; +0x9e, 0x18008ea3e\nlea     rcx, [rsp+98h+arg_8]                                           ; +0xa2, 0x18008ea42\nmovaps  xmm2, xmm7                                                     ; +0xaa, 0x18008ea4a\nmovaps  xmm1, xmm0                                                     ; +0xad, 0x18008ea4d\ncall    kmVec2Fill                                                     ; +0xb0, 0x18008ea50\nmovzx   esi, byte ptr [rbx+1B8h]                                       ; +0xb5, 0x18008ea55\nmov     rdi, rax                                                       ; +0xbc, 0x18008ea5c\nmovss   xmm6, dword ptr [rbx+1B4h]                                     ; +0xbf, 0x18008ea5f\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc7, 0x18008ea67\nmov     rcx, rax; this                                                 ; +0xcc, 0x18008ea6c\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xcf, 0x18008ea6f\nmovaps  xmm9, xmm0                                                     ; +0xd4, 0x18008ea74\nmulss   xmm9, xmm6                                                     ; +0xd8, 0x18008ea78\nmovss   xmm6, dword ptr [rbx+1B0h]                                     ; +0xdd, 0x18008ea7d\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe5, 0x18008ea85\nmov     rcx, rax; this                                                 ; +0xea, 0x18008ea8a\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xed, 0x18008ea8d\nmovaps  xmm8, xmm0                                                     ; +0xf2, 0x18008ea92\nmulss   xmm8, xmm6                                                     ; +0xf6, 0x18008ea96\nmovss   xmm6, dword ptr [rbx+1ACh]                                     ; +0xfb, 0x18008ea9b\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x103, 0x18008eaa3\nmov     rcx, rax; this                                                 ; +0x108, 0x18008eaa8\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x10b, 0x18008eaab\nmovaps  xmm7, xmm0                                                     ; +0x110, 0x18008eab0\nmulss   xmm7, xmm6                                                     ; +0x113, 0x18008eab3\nmovss   xmm6, dword ptr [rbx+1A8h]                                     ; +0x117, 0x18008eab7\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x11f, 0x18008eabf\nmov     rcx, rax; this                                                 ; +0x124, 0x18008eac4\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x127, 0x18008eac7\nmov     rbx, [rbx+1A0h]                                                ; +0x12c, 0x18008eacc\nlea     rcx, [rsp+98h+var_68]; this                                    ; +0x133, 0x18008ead3\nmulss   xmm0, xmm6                                                     ; +0x138, 0x18008ead8\nmovaps  xmm3, xmm8; float                                              ; +0x13c, 0x18008eadc\nmovaps  xmm2, xmm7; float                                              ; +0x140, 0x18008eae0\nmovss   dword ptr [rsp+98h+var_78], xmm9; float                        ; +0x143, 0x18008eae3\nmovaps  xmm1, xmm0; float                                              ; +0x14a, 0x18008eaea\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x14d, 0x18008eaed\nmov     rdx, rax; struct cocos2d::CCRect *                             ; +0x152, 0x18008eaf2\nmov     [rsp+98h+var_78], rbp; struct cocos2d::CCSize *                ; +0x155, 0x18008eaf5\nmov     r9, rdi; struct cocos2d::CCPoint *                             ; +0x15a, 0x18008eafa\nmovzx   r8d, sil; bool                                                 ; +0x15d, 0x18008eafd\nmov     rcx, rbx; struct cocos2d::CCTexture2D *                        ; +0x161, 0x18008eb01\ncall    ?createWithTexture@CCSpriteFrame@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@AEBVCCRect@2@_NAEBVCCPoint@2@AEBVCCSize@2@@Z; cocos2d::CCSpriteFrame::createWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &,bool,cocos2d::CCPoint const &,cocos2d::CCSize const &) ; +0x164, 0x18008eb04\nmov     rbx, [rsp+98h+arg_10]                                          ; +0x169, 0x18008eb09\nmovaps  xmm6, [rsp+98h+var_28]                                         ; +0x171, 0x18008eb11\nmovaps  xmm7, [rsp+98h+var_38]                                         ; +0x176, 0x18008eb16\nmovaps  xmm8, [rsp+98h+var_48]                                         ; +0x17b, 0x18008eb1b\nmovaps  xmm9, [rsp+98h+var_58]                                         ; +0x181, 0x18008eb21\nadd     rsp, 80h                                                       ; +0x187, 0x18008eb27\npop     rdi                                                            ; +0x18e, 0x18008eb2e\npop     rsi                                                            ; +0x18f, 0x18008eb2f\npop     rbp                                                            ; +0x190, 0x18008eb30\nretn                                                                   ; +0x191, 0x18008eb31", "xrefs": ["<???> @ 0x1800f1d70", "<???> @ 0x1800f2258", "<???> @ 0x1800f2e08", "<???> @ 0x18010a248", "<???> @ 0x18010d260", "<???> @ 0x18014cf68", "<???> @ 0x1801bfe38"], "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"}