{"type": "func", "start": 6443025520, "end": 6443025641, "name": "cocos2d::CCSprite::setDisplayFrame", "pseudocode": "// \n// cocos2d::CCSprite::setDisplayFrame from 0x18008c470 to 0x18008c4e9 (121 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800ebc60\n// > <???> @ 0x1800ec138\n// > <???> @ 0x1800eccb8\n// > <???> @ 0x180103b70\n// > <???> @ 0x180106b68\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5d60\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::CCSprite::setDisplayFrame(cocos2d::CCSprite *this, cocos2d::CCTMXObjectGroup *a2)\n{\n  struct cocos2d::CCPoint *PositionOffset; // rax\n  cocos2d::CCTexture2D *Texture; // rax\n  _BOOL8 m_uIndexInArray_low; // r8\n  cocos2d::CCSprite_vtbl *v7; // rax\n\n  if ( a2 )\n  {\n    PositionOffset = (struct cocos2d::CCPoint *)cocos2d::CCTMXObjectGroup::getPositionOffset(a2);\n    cocos2d::CCSize::operator=(&this->m_obUnflippedOffsetPositionFromCenter, PositionOffset);\n    Texture = cocos2d::CCSpriteFrame::getTexture((cocos2d::CCSpriteFrame *)a2);\n    if ( Texture != this->m_pobTexture )\n      ((void (__fastcall *)(cocos2d::CCTextureProtocol *, cocos2d::CCTexture2D *))this->setTexture)(\n        &this->cocos2d::CCTextureProtocol,\n        Texture);\n    m_uIndexInArray_low = LOBYTE(a2[1].m_uIndexInArray);\n    v7 = this->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    this->m_bRectRotated = m_uIndexInArray_low;\n    ((void (__fastcall *)(cocos2d::CCSprite *, int *, _BOOL8, unsigned int *))v7->setTextureRect)(\n      this,\n      &a2[1].m_uUnknown,\n      m_uIndexInArray_low,\n      &a2[1].m_uID);\n  }\n}", "assembly": "; \n; cocos2d::CCSprite::setDisplayFrame from 0x18008c470 to 0x18008c4e9 (121 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800ebc60\n; > <???> @ 0x1800ec138\n; > <???> @ 0x1800eccb8\n; > <???> @ 0x180103b70\n; > <???> @ 0x180106b68\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5d60\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\ntest    rdx, rdx                                                       ; +0x0, 0x18008c470\njz      short locret_18008C4E8                                         ; +0x3, 0x18008c473\nmov     [rsp+arg_0], rbx                                               ; +0x5, 0x18008c475\npush    rdi                                                            ; +0xa, 0x18008c47a\nsub     rsp, 20h                                                       ; +0xb, 0x18008c47b\nmov     rdi, rcx                                                       ; +0xf, 0x18008c47f\nmov     rbx, rdx                                                       ; +0x12, 0x18008c482\nmov     rcx, rdx; this                                                 ; +0x15, 0x18008c485\ncall    ?getPositionOffset@CCTMXObjectGroup@cocos2d@@QEBAAEBVCCPoint@2@XZ; cocos2d::CCTMXObjectGroup::getPositionOffset(void) ; +0x18, 0x18008c488\nmov     rdx, rax                                                       ; +0x1d, 0x18008c48d\nlea     rcx, [rdi+1C4h]                                                ; +0x20, 0x18008c490\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x27, 0x18008c497\nmov     rcx, rbx; this                                                 ; +0x2c, 0x18008c49c\ncall    ?getTexture@CCSpriteFrame@cocos2d@@QEAAPEAVCCTexture2D@2@XZ; cocos2d::CCSpriteFrame::getTexture(void) ; +0x2f, 0x18008c49f\ncmp     rax, [rdi+1A0h]                                                ; +0x34, 0x18008c4a4\njz      short loc_18008C4BE                                            ; +0x3b, 0x18008c4ab\nlea     rcx, [rdi+158h]                                                ; +0x3d, 0x18008c4ad\nmov     rdx, rax                                                       ; +0x44, 0x18008c4b4\nmov     r8, [rcx]                                                      ; +0x47, 0x18008c4b7\ncall    qword ptr [r8+18h]                                             ; +0x4a, 0x18008c4ba\nmovzx   r8d, byte ptr [rbx+58h]                                        ; +0x4e, 0x18008c4be\nlea     r9, [rbx+40h]                                                  ; +0x53, 0x18008c4c3\nmov     rax, [rdi]                                                     ; +0x57, 0x18008c4c7\nlea     rdx, [rbx+5Ch]                                                 ; +0x5a, 0x18008c4ca\nmov     rcx, rdi                                                       ; +0x5e, 0x18008c4ce\nmov     [rdi+1B8h], r8b                                                ; +0x61, 0x18008c4d1\ncall    qword ptr [rax+3C8h]                                           ; +0x68, 0x18008c4d8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6e, 0x18008c4de\nadd     rsp, 20h                                                       ; +0x73, 0x18008c4e3\npop     rdi                                                            ; +0x77, 0x18008c4e7\nretn                                                                   ; +0x78, 0x18008c4e8", "xrefs": ["<???> @ 0x1800ebc60", "<???> @ 0x1800ec138", "<???> @ 0x1800eccb8", "<???> @ 0x180103b70", "<???> @ 0x180106b68", "<???> @ 0x1801438a8", "<???> @ 0x1801b5d60"], "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"}