{"type": "func", "start": 6443038304, "end": 6443038428, "name": "cocos2d::CCSprite::setDisplayFrame", "pseudocode": "// \n// cocos2d::CCSprite::setDisplayFrame from 0x18008f660 to 0x18008f6dc (124 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800f1d60\n// > <???> @ 0x1800f2248\n// > <???> @ 0x1800f2df8\n// > <???> @ 0x18010a238\n// > <???> @ 0x18010d250\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0030\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\nvoid __fastcall cocos2d::CCSprite::setDisplayFrame(cocos2d::CCSprite *this, struct cocos2d::CCSpriteFrame *a2)\n{\n  const struct cocos2d::CCPoint *PositionOffset; // rax\n  struct cocos2d::CCTexture2D *Texture; // rax\n  __int64 v6; // r8\n  __int64 v7; // rax\n\n  if ( a2 )\n  {\n    PositionOffset = cocos2d::CCTMXObjectGroup::getPositionOffset(a2);\n    cocos2d::CCSize::operator=((_DWORD *)this + 113, PositionOffset);\n    Texture = cocos2d::CCSpriteFrame::getTexture(a2);\n    if ( Texture != *((struct cocos2d::CCTexture2D **)this + 52) )\n      (*(void (__fastcall **)(char *, struct cocos2d::CCTexture2D *))(*((_QWORD *)this + 43) + 24LL))(\n        (char *)this + 344,\n        Texture);\n    v6 = *((unsigned __int8 *)a2 + 88);\n    v7 = *(_QWORD *)this;\n    *((_BYTE *)this + 440) = v6;\n    (*(void (__fastcall **)(cocos2d::CCSprite *, char *, __int64, char *))(v7 + 984))(\n      this,\n      (char *)a2 + 92,\n      v6,\n      (char *)a2 + 64);\n  }\n}", "assembly": "; \n; cocos2d::CCSprite::setDisplayFrame from 0x18008f660 to 0x18008f6dc (124 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800f1d60\n; > <???> @ 0x1800f2248\n; > <???> @ 0x1800f2df8\n; > <???> @ 0x18010a238\n; > <???> @ 0x18010d250\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0030\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; \ntest    rdx, rdx                                                       ; +0x0, 0x18008f660\njz      short locret_18008F6DB                                         ; +0x3, 0x18008f663\nmov     [rsp+arg_0], rbx                                               ; +0x5, 0x18008f665\npush    rdi                                                            ; +0xa, 0x18008f66a\nsub     rsp, 20h                                                       ; +0xb, 0x18008f66b\nmov     rdi, rcx                                                       ; +0xf, 0x18008f66f\nmov     rbx, rdx                                                       ; +0x12, 0x18008f672\nmov     rcx, rdx; this                                                 ; +0x15, 0x18008f675\ncall    ?getPositionOffset@CCTMXObjectGroup@cocos2d@@QEBAAEBVCCPoint@2@XZ; cocos2d::CCTMXObjectGroup::getPositionOffset(void) ; +0x18, 0x18008f678\nmov     rdx, rax                                                       ; +0x1d, 0x18008f67d\nlea     rcx, [rdi+1C4h]                                                ; +0x20, 0x18008f680\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x27, 0x18008f687\nmov     rcx, rbx; this                                                 ; +0x2c, 0x18008f68c\ncall    ?getTexture@CCSpriteFrame@cocos2d@@QEAAPEAVCCTexture2D@2@XZ; cocos2d::CCSpriteFrame::getTexture(void) ; +0x2f, 0x18008f68f\ncmp     rax, [rdi+1A0h]                                                ; +0x34, 0x18008f694\njz      short loc_18008F6B1                                            ; +0x3b, 0x18008f69b\nlea     rcx, [rdi+158h]                                                ; +0x3d, 0x18008f69d\nmov     rdx, [rcx]                                                     ; +0x44, 0x18008f6a4\nmov     r8, [rdx+18h]                                                  ; +0x47, 0x18008f6a7\nmov     rdx, rax                                                       ; +0x4b, 0x18008f6ab\ncall    r8                                                             ; +0x4e, 0x18008f6ae\nmovzx   r8d, byte ptr [rbx+58h]                                        ; +0x51, 0x18008f6b1\nlea     r9, [rbx+40h]                                                  ; +0x56, 0x18008f6b6\nmov     rax, [rdi]                                                     ; +0x5a, 0x18008f6ba\nlea     rdx, [rbx+5Ch]                                                 ; +0x5d, 0x18008f6bd\nmov     rcx, rdi                                                       ; +0x61, 0x18008f6c1\nmov     [rdi+1B8h], r8b                                                ; +0x64, 0x18008f6c4\ncall    qword ptr [rax+3D8h]                                           ; +0x6b, 0x18008f6cb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x71, 0x18008f6d1\nadd     rsp, 20h                                                       ; +0x76, 0x18008f6d6\npop     rdi                                                            ; +0x7a, 0x18008f6da\nretn                                                                   ; +0x7b, 0x18008f6db", "xrefs": ["<???> @ 0x1800f1d60", "<???> @ 0x1800f2248", "<???> @ 0x1800f2df8", "<???> @ 0x18010a238", "<???> @ 0x18010d250", "<???> @ 0x18014cf68", "<???> @ 0x1801c0030"], "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"}