{"type": "func", "start": 6442513104, "end": 6442513255, "name": "cocos2d::extension::CCScale9Sprite::initWithSpriteFrame", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::initWithSpriteFrame from 0x18000f2d0 to 0x18000f367 (151 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180029fa8\n// > <???> @ 0x180032408\n// > <???> @ 0x18004be28\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\n__int64 __fastcall cocos2d::extension::CCScale9Sprite::initWithSpriteFrame(\n        __int64 *a1,\n        _BYTE *a2,\n        const struct cocos2d::CCRect *a3)\n{\n  struct cocos2d::CCTexture2D *Texture; // rax\n  struct cocos2d::CCSpriteBatchNode *v7; // rax\n  unsigned __int8 v8; // si\n  __int64 v9; // rdi\n  struct cocos2d::CCSpriteBatchNode *v10; // rbp\n  __int64 v11; // rax\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  _BYTE v15[16]; // [rsp+30h] [rbp-38h] BYREF\n  _BYTE v16[40]; // [rsp+40h] [rbp-28h] BYREF\n\n  Texture = cocos2d::CCSpriteFrame::getTexture((cocos2d::CCSpriteFrame *)a2);\n  v7 = cocos2d::CCSpriteBatchNode::createWithTexture(Texture, 9u);\n  v8 = a2[88];\n  v9 = *a1;\n  v10 = v7;\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v15, a3);\n  v12 = v11;\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v16, (const struct cocos2d::CCRect *)(a2 + 92));\n  return (*(__int64 (__fastcall **)(__int64 *, struct cocos2d::CCSpriteBatchNode *, __int64, _QWORD, __int64))(v9 + 992))(\n           a1,\n           v10,\n           v13,\n           v8,\n           v12);\n}", "assembly": "; \n; cocos2d::extension::CCScale9Sprite::initWithSpriteFrame from 0x18000f2d0 to 0x18000f367 (151 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180029fa8\n; > <???> @ 0x180032408\n; > <???> @ 0x18004be28\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, 0x18000f2d0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18000f2d5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18000f2da\npush    rdi                                                            ; +0xf, 0x18000f2df\npush    r14                                                            ; +0x10, 0x18000f2e0\npush    r15                                                            ; +0x12, 0x18000f2e2\nsub     rsp, 50h                                                       ; +0x14, 0x18000f2e4\nmov     r15, rcx                                                       ; +0x18, 0x18000f2e8\nmov     rbx, r8                                                        ; +0x1b, 0x18000f2eb\nmov     rcx, rdx                                                       ; +0x1e, 0x18000f2ee\nmov     r14, rdx                                                       ; +0x21, 0x18000f2f1\ncall    cs:?getTexture@CCSpriteFrame@cocos2d@@QEAAPEAVCCTexture2D@2@XZ; cocos2d::CCSpriteFrame::getTexture(void) ; +0x24, 0x18000f2f4\nmov     rcx, rax                                                       ; +0x2a, 0x18000f2fa\nmov     edx, 9                                                         ; +0x2d, 0x18000f2fd\ncall    cs:?createWithTexture@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@I@Z; cocos2d::CCSpriteBatchNode::createWithTexture(cocos2d::CCTexture2D *,uint) ; +0x32, 0x18000f302\nmovzx   esi, byte ptr [r14+58h]                                        ; +0x38, 0x18000f308\nlea     rcx, [rsp+68h+var_38]                                          ; +0x3d, 0x18000f30d\nmov     rdi, [r15]                                                     ; +0x42, 0x18000f312\nmov     rdx, rbx                                                       ; +0x45, 0x18000f315\nmov     rbp, rax                                                       ; +0x48, 0x18000f318\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x4b, 0x18000f31b\nlea     rdx, [r14+5Ch]                                                 ; +0x51, 0x18000f321\nmov     rbx, rax                                                       ; +0x55, 0x18000f325\nlea     rcx, [rsp+68h+var_28]                                          ; +0x58, 0x18000f328\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x5d, 0x18000f32d\nmovzx   r9d, sil                                                       ; +0x63, 0x18000f333\nmov     [rsp+68h+var_48], rbx                                          ; +0x67, 0x18000f337\nmov     r8, rax                                                        ; +0x6c, 0x18000f33c\nmov     rdx, rbp                                                       ; +0x6f, 0x18000f33f\nmov     rcx, r15                                                       ; +0x72, 0x18000f342\ncall    qword ptr [rdi+3E0h]                                           ; +0x75, 0x18000f345\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x7b, 0x18000f34b\nmov     rbp, [rsp+68h+arg_8]                                           ; +0x80, 0x18000f350\nmov     rsi, [rsp+68h+arg_10]                                          ; +0x85, 0x18000f355\nadd     rsp, 50h                                                       ; +0x8d, 0x18000f35d\npop     r15                                                            ; +0x91, 0x18000f361\npop     r14                                                            ; +0x93, 0x18000f363\npop     rdi                                                            ; +0x95, 0x18000f365\nretn                                                                   ; +0x96, 0x18000f366", "xrefs": ["<???> @ 0x180029fa8", "<???> @ 0x180032408", "<???> @ 0x18004be28"], "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"}