{"type": "func", "start": 6443023312, "end": 6443023410, "name": "cocos2d::CCSprite::initWithSpriteFrame", "pseudocode": "// \n// cocos2d::CCSprite::initWithSpriteFrame from 0x18008bbd0 to 0x18008bc32 (98 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800ebc00\n// > <???> @ 0x1800ec0d8\n// > <???> @ 0x1800ecc58\n// > <???> @ 0x180103b10\n// > <???> @ 0x180106b08\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5b98\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\n__int64 __fastcall cocos2d::CCSprite::initWithSpriteFrame(cocos2d::CCSprite *this, struct cocos2d::CCSpriteFrame *a2)\n{\n  cocos2d::CCSprite_vtbl *v2; // rdi\n  struct cocos2d::CCTexture2D *Texture; // rax\n  unsigned __int8 v6; // bl\n\n  v2 = this->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  Texture = cocos2d::CCSpriteFrame::getTexture(a2);\n  v6 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, struct cocos2d::CCTexture2D *, cocos2d::CCRect *))v2->initWithTexture_0)(\n         this,\n         Texture,\n         &a2->m_obRect);\n  ((void (__fastcall *)(cocos2d::CCSprite *, struct cocos2d::CCSpriteFrame *))this->setDisplayFrame)(this, a2);\n  return v6;\n}", "assembly": "; \n; cocos2d::CCSprite::initWithSpriteFrame from 0x18008bbd0 to 0x18008bc32 (98 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800ebc00\n; > <???> @ 0x1800ec0d8\n; > <???> @ 0x1800ecc58\n; > <???> @ 0x180103b10\n; > <???> @ 0x180106b08\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5b98\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_0], rbx                                               ; +0x0, 0x18008bbd0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008bbd5\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x18008bbda\npush    r14                                                            ; +0xf, 0x18008bbdf\nsub     rsp, 20h                                                       ; +0x11, 0x18008bbe1\nmov     rdi, [rcx]                                                     ; +0x15, 0x18008bbe5\nmov     r14, rcx                                                       ; +0x18, 0x18008bbe8\nmov     rcx, rdx; this                                                 ; +0x1b, 0x18008bbeb\nmov     rsi, rdx                                                       ; +0x1e, 0x18008bbee\ncall    ?getTexture@CCSpriteFrame@cocos2d@@QEAAPEAVCCTexture2D@2@XZ; cocos2d::CCSpriteFrame::getTexture(void) ; +0x21, 0x18008bbf1\nmov     rdx, rax                                                       ; +0x26, 0x18008bbf6\nlea     r8, [rsi+5Ch]                                                  ; +0x29, 0x18008bbf9\nmov     rcx, r14                                                       ; +0x2d, 0x18008bbfd\ncall    qword ptr [rdi+370h]                                           ; +0x30, 0x18008bc00\nmov     r8, [r14]                                                      ; +0x36, 0x18008bc06\nmov     rdx, rsi                                                       ; +0x39, 0x18008bc09\nmov     rcx, r14                                                       ; +0x3c, 0x18008bc0c\nmovzx   ebx, al                                                        ; +0x3f, 0x18008bc0f\ncall    qword ptr [r8+3E0h]                                            ; +0x42, 0x18008bc12\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x49, 0x18008bc19\nmovzx   eax, bl                                                        ; +0x4e, 0x18008bc1e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x18008bc21\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x56, 0x18008bc26\nadd     rsp, 20h                                                       ; +0x5b, 0x18008bc2b\npop     r14                                                            ; +0x5f, 0x18008bc2f\nretn                                                                   ; +0x61, 0x18008bc31", "xrefs": ["<???> @ 0x1800ebc00", "<???> @ 0x1800ec0d8", "<???> @ 0x1800ecc58", "<???> @ 0x180103b10", "<???> @ 0x180106b08", "<???> @ 0x1801438a8", "<???> @ 0x1801b5b98"], "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"}