{"type": "func", "start": 6442516528, "end": 6442516696, "name": "cocos2d::extension::CCScale9Sprite::setSpriteFrame", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::setSpriteFrame from 0x180010030 to 0x1800100d8 (168 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180027970\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004a080\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::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; // di\n  __int64 v7; // rbp\n  struct cocos2d::CCSpriteBatchNode *v8; // rsi\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_180048610);\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 + 1048))(\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 0x180010030 to 0x1800100d8 (168 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180027970\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004a080\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, 0x180010030\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180010035\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18001003a\npush    rdi                                                            ; +0xf, 0x18001003f\npush    r14                                                            ; +0x10, 0x180010040\npush    r15                                                            ; +0x12, 0x180010042\nsub     rsp, 50h                                                       ; +0x14, 0x180010044\nmov     r15, rcx                                                       ; +0x18, 0x180010048\nmov     r14, rdx                                                       ; +0x1b, 0x18001004b\nmov     rcx, rdx                                                       ; +0x1e, 0x18001004e\ncall    cs:?getTexture@CCSpriteFrame@cocos2d@@QEAAPEAVCCTexture2D@2@XZ; cocos2d::CCSpriteFrame::getTexture(void) ; +0x21, 0x180010051\nmov     rcx, rax                                                       ; +0x27, 0x180010057\nmov     edx, 9                                                         ; +0x2a, 0x18001005a\ncall    cs:?createWithTexture@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@I@Z; cocos2d::CCSpriteBatchNode::createWithTexture(cocos2d::CCTexture2D *,uint) ; +0x2f, 0x18001005f\nmovzx   edi, byte ptr [r14+58h]                                        ; +0x35, 0x180010065\nlea     rdx, unk_180048610                                             ; +0x3a, 0x18001006a\nmov     rbp, [r15]                                                     ; +0x41, 0x180010071\nlea     rcx, [rsp+68h+var_38]                                          ; +0x44, 0x180010074\nmov     rsi, rax                                                       ; +0x49, 0x180010079\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x4c, 0x18001007c\nlea     rdx, [r14+5Ch]                                                 ; +0x52, 0x180010082\nmov     rbx, rax                                                       ; +0x56, 0x180010086\nlea     rcx, [rsp+68h+var_28]                                          ; +0x59, 0x180010089\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x5e, 0x18001008e\nmovzx   r9d, dil                                                       ; +0x64, 0x180010094\nmov     [rsp+68h+var_48], rbx                                          ; +0x68, 0x180010098\nmov     r8, rax                                                        ; +0x6d, 0x18001009d\nmov     rdx, rsi                                                       ; +0x70, 0x1800100a0\nmov     rcx, r15                                                       ; +0x73, 0x1800100a3\ncall    qword ptr [rbp+418h]                                           ; +0x76, 0x1800100a6\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x7c, 0x1800100ac\nxor     eax, eax                                                       ; +0x81, 0x1800100b1\nmov     rbp, [rsp+68h+arg_8]                                           ; +0x83, 0x1800100b3\nmov     rsi, [rsp+68h+arg_10]                                          ; +0x88, 0x1800100b8\nmov     [r15+178h], rax                                                ; +0x90, 0x1800100c0\nmov     [r15+180h], rax                                                ; +0x97, 0x1800100c7\nadd     rsp, 50h                                                       ; +0x9e, 0x1800100ce\npop     r15                                                            ; +0xa2, 0x1800100d2\npop     r14                                                            ; +0xa4, 0x1800100d4\npop     rdi                                                            ; +0xa6, 0x1800100d6\nretn                                                                   ; +0xa7, 0x1800100d7", "xrefs": ["<???> @ 0x180027970", "<???> @ 0x18002fdf8", "<???> @ 0x18004a080"], "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"}