{"type": "func", "start": 6442513264, "end": 6442513405, "name": "cocos2d::extension::CCScale9Sprite::createWithSpriteFrame", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::createWithSpriteFrame from 0x18000f370 to 0x18000f3fd (141 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004be34\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\ncocos2d::CCObject *__fastcall cocos2d::extension::CCScale9Sprite::createWithSpriteFrame(\n        __int64 a1,\n        const struct cocos2d::CCRect *a2)\n{\n  cocos2d::extension::CCScale9Sprite *v4; // rax\n  cocos2d::CCObject *v5; // rdi\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  _BYTE v9[24]; // [rsp+20h] [rbp-18h] BYREF\n  cocos2d::extension::CCScale9Sprite *v10; // [rsp+50h] [rbp+18h]\n\n  v10 = (cocos2d::extension::CCScale9Sprite *)sub_18001F040(0x210u);\n  v4 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v10);\n  v5 = v4;\n  if ( v4 )\n  {\n    v6 = *(_QWORD *)v4;\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, a2);\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(v6 + 1040))(v5, a1, v7) )\n    {\n      cocos2d::CCObject::autorelease(v5);\n      return v5;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::extension::CCScale9Sprite::createWithSpriteFrame from 0x18000f370 to 0x18000f3fd (141 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004be34\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, 0x18000f370\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18000f375\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x18000f37a\npush    rdi                                                            ; +0xf, 0x18000f37f\nsub     rsp, 30h                                                       ; +0x10, 0x18000f380\nmov     rsi, rdx                                                       ; +0x14, 0x18000f384\nmov     rbp, rcx                                                       ; +0x17, 0x18000f387\nmov     ecx, 210h; Size                                                ; +0x1a, 0x18000f38a\ncall    sub_18001F040                                                  ; +0x1f, 0x18000f38f\nmov     [rsp+38h+arg_10], rax                                          ; +0x24, 0x18000f394\nmov     rcx, rax; this                                                 ; +0x29, 0x18000f399\ncall    ??0CCScale9Sprite@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCScale9Sprite::CCScale9Sprite(void) ; +0x2c, 0x18000f39c\nmov     rdi, rax                                                       ; +0x31, 0x18000f3a1\ntest    rax, rax                                                       ; +0x34, 0x18000f3a4\njz      short loc_18000F3E6                                            ; +0x37, 0x18000f3a7\nmov     rbx, [rax]                                                     ; +0x39, 0x18000f3a9\nmov     rdx, rsi                                                       ; +0x3c, 0x18000f3ac\nlea     rcx, [rsp+38h+var_18]                                          ; +0x3f, 0x18000f3af\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x44, 0x18000f3b4\nmov     r8, rax                                                        ; +0x4a, 0x18000f3ba\nmov     rdx, rbp                                                       ; +0x4d, 0x18000f3bd\nmov     rcx, rdi                                                       ; +0x50, 0x18000f3c0\ncall    qword ptr [rbx+410h]                                           ; +0x53, 0x18000f3c3\nmov     rcx, rdi                                                       ; +0x59, 0x18000f3c9\ntest    al, al                                                         ; +0x5c, 0x18000f3cc\njz      short loc_18000F3DB                                            ; +0x5e, 0x18000f3ce\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x60, 0x18000f3d0\nmov     rax, rdi                                                       ; +0x66, 0x18000f3d6\njmp     short loc_18000F3E8                                            ; +0x69, 0x18000f3d9\nmov     rax, [rdi]                                                     ; +0x6b, 0x18000f3db\nmov     edx, 1                                                         ; +0x6e, 0x18000f3de\ncall    qword ptr [rax+8]                                              ; +0x73, 0x18000f3e3\nxor     eax, eax                                                       ; +0x76, 0x18000f3e6\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x78, 0x18000f3e8\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x7d, 0x18000f3ed\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x82, 0x18000f3f2\nadd     rsp, 30h                                                       ; +0x87, 0x18000f3f7\npop     rdi                                                            ; +0x8b, 0x18000f3fb\nretn                                                                   ; +0x8c, 0x18000f3fc", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004be34"], "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"}