{"type": "func", "start": 6442515264, "end": 6442515432, "name": "cocos2d::extension::CCScale9Sprite::setSpriteFrame", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::setSpriteFrame from 0x18000fb40 to 0x18000fbe8 (168 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180029fc8\n// > <???> @ 0x180032408\n// > <???> @ 0x18004bf60\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 12:15:39 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCScale9Sprite::setSpriteFrame(\n        cocos2d::extension::CCScale9Sprite *this,\n        struct cocos2d::CCSpriteFrame *a2)\n{\n  struct cocos2d::CCTexture2D *Texture; // rax\n  struct cocos2d::CCSpriteBatchNode *v5; // rax\n  unsigned __int8 v6; // si\n  __int64 v7; // rdi\n  struct cocos2d::CCSpriteBatchNode *v8; // rbp\n  __int64 v9; // rax\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  _BYTE v12[16]; // [rsp+30h] [rbp-38h] BYREF\n  _BYTE v13[40]; // [rsp+40h] [rbp-28h] BYREF\n\n  Texture = cocos2d::CCSpriteFrame::getTexture(a2);\n  v5 = cocos2d::CCSpriteBatchNode::createWithTexture(Texture, 9u);\n  v6 = *((_BYTE *)a2 + 88);\n  v7 = *(_QWORD *)this;\n  v8 = v5;\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, (const struct cocos2d::CCRect *)&unk_18004A600);\n  v10 = v9;\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v13, (struct cocos2d::CCSpriteFrame *)((char *)a2 + 92));\n  (*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *, struct cocos2d::CCSpriteBatchNode *, __int64, _QWORD, __int64))(v7 + 1064))(\n    this,\n    v8,\n    v11,\n    v6,\n    v10);\n  *((_QWORD *)this + 47) = 0;\n  *((_QWORD *)this + 48) = 0;\n}", "assembly": "; \n; cocos2d::extension::CCScale9Sprite::setSpriteFrame from 0x18000fb40 to 0x18000fbe8 (168 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180029fc8\n; > <???> @ 0x180032408\n; > <???> @ 0x18004bf60\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 12:15:39 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18000fb40\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18000fb45\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18000fb4a\npush    rdi                                                            ; +0xf, 0x18000fb4f\npush    r14                                                            ; +0x10, 0x18000fb50\npush    r15                                                            ; +0x12, 0x18000fb52\nsub     rsp, 50h                                                       ; +0x14, 0x18000fb54\nmov     r15, rcx                                                       ; +0x18, 0x18000fb58\nmov     r14, rdx                                                       ; +0x1b, 0x18000fb5b\nmov     rcx, rdx                                                       ; +0x1e, 0x18000fb5e\ncall    cs:?getTexture@CCSpriteFrame@cocos2d@@QEAAPEAVCCTexture2D@2@XZ; cocos2d::CCSpriteFrame::getTexture(void) ; +0x21, 0x18000fb61\nmov     rcx, rax                                                       ; +0x27, 0x18000fb67\nmov     edx, 9                                                         ; +0x2a, 0x18000fb6a\ncall    cs:?createWithTexture@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@I@Z; cocos2d::CCSpriteBatchNode::createWithTexture(cocos2d::CCTexture2D *,uint) ; +0x2f, 0x18000fb6f\nmovzx   esi, byte ptr [r14+58h]                                        ; +0x35, 0x18000fb75\nlea     rdx, unk_18004A600                                             ; +0x3a, 0x18000fb7a\nmov     rdi, [r15]                                                     ; +0x41, 0x18000fb81\nlea     rcx, [rsp+68h+var_38]                                          ; +0x44, 0x18000fb84\nmov     rbp, rax                                                       ; +0x49, 0x18000fb89\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x4c, 0x18000fb8c\nlea     rdx, [r14+5Ch]                                                 ; +0x52, 0x18000fb92\nmov     rbx, rax                                                       ; +0x56, 0x18000fb96\nlea     rcx, [rsp+68h+var_28]                                          ; +0x59, 0x18000fb99\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x5e, 0x18000fb9e\nmovzx   r9d, sil                                                       ; +0x64, 0x18000fba4\nmov     [rsp+68h+var_48], rbx                                          ; +0x68, 0x18000fba8\nmov     r8, rax                                                        ; +0x6d, 0x18000fbad\nmov     rdx, rbp                                                       ; +0x70, 0x18000fbb0\nmov     rcx, r15                                                       ; +0x73, 0x18000fbb3\ncall    qword ptr [rdi+428h]                                           ; +0x76, 0x18000fbb6\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x7c, 0x18000fbbc\nxor     eax, eax                                                       ; +0x81, 0x18000fbc1\nmov     rbp, [rsp+68h+arg_8]                                           ; +0x83, 0x18000fbc3\nmov     rsi, [rsp+68h+arg_10]                                          ; +0x88, 0x18000fbc8\nmov     [r15+178h], rax                                                ; +0x90, 0x18000fbd0\nmov     [r15+180h], rax                                                ; +0x97, 0x18000fbd7\nadd     rsp, 50h                                                       ; +0x9e, 0x18000fbde\npop     r15                                                            ; +0xa2, 0x18000fbe2\npop     r14                                                            ; +0xa4, 0x18000fbe4\npop     rdi                                                            ; +0xa6, 0x18000fbe6\nretn                                                                   ; +0xa7, 0x18000fbe7", "xrefs": ["<???> @ 0x180029fc8", "<???> @ 0x180032408", "<???> @ 0x18004bf60"], "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"}