{"type": "func", "start": 6442512208, "end": 6442512368, "name": "cocos2d::extension::CCScale9Sprite::create", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::create from 0x18000ef50 to 0x18000eff0 (160 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004bdd4\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// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall cocos2d::extension::CCScale9Sprite::create(\n        __int64 a1,\n        const struct cocos2d::CCRect *a2,\n        const struct cocos2d::CCRect *a3)\n{\n  cocos2d::extension::CCScale9Sprite *v6; // rax\n  cocos2d::CCObject *v7; // rsi\n  __int64 v8; // rdi\n  __int64 v9; // rax\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  _BYTE v13[16]; // [rsp+20h] [rbp-38h] BYREF\n  _BYTE v14[40]; // [rsp+30h] [rbp-28h] BYREF\n  cocos2d::extension::CCScale9Sprite *v15; // [rsp+78h] [rbp+20h]\n\n  v15 = (cocos2d::extension::CCScale9Sprite *)sub_18001F040(0x210u);\n  v6 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v15);\n  v7 = v6;\n  if ( v6 )\n  {\n    v8 = *(_QWORD *)v6;\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v13, a3);\n    v10 = v9;\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, a2);\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, __int64, __int64, __int64))(v8 + 1024))(\n           v7,\n           a1,\n           v11,\n           v10) )\n    {\n      cocos2d::CCObject::autorelease(v7);\n      return v7;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::extension::CCScale9Sprite::create from 0x18000ef50 to 0x18000eff0 (160 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004bdd4\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, 0x18000ef50\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18000ef55\npush    rsi                                                            ; +0xa, 0x18000ef5a\npush    rdi                                                            ; +0xb, 0x18000ef5b\npush    r14                                                            ; +0xc, 0x18000ef5c\nsub     rsp, 40h                                                       ; +0xe, 0x18000ef5e\nmov     rbx, r8                                                        ; +0x12, 0x18000ef62\nmov     rbp, rdx                                                       ; +0x15, 0x18000ef65\nmov     r14, rcx                                                       ; +0x18, 0x18000ef68\nmov     ecx, 210h; Size                                                ; +0x1b, 0x18000ef6b\ncall    sub_18001F040                                                  ; +0x20, 0x18000ef70\nmov     [rsp+58h+arg_18], rax                                          ; +0x25, 0x18000ef75\nmov     rcx, rax; this                                                 ; +0x2a, 0x18000ef7a\ncall    ??0CCScale9Sprite@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCScale9Sprite::CCScale9Sprite(void) ; +0x2d, 0x18000ef7d\nmov     rsi, rax                                                       ; +0x32, 0x18000ef82\ntest    rax, rax                                                       ; +0x35, 0x18000ef85\njz      short loc_18000EFDB                                            ; +0x38, 0x18000ef88\nmov     rdi, [rax]                                                     ; +0x3a, 0x18000ef8a\nmov     rdx, rbx                                                       ; +0x3d, 0x18000ef8d\nlea     rcx, [rsp+58h+var_38]                                          ; +0x40, 0x18000ef90\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x45, 0x18000ef95\nmov     rbx, rax                                                       ; +0x4b, 0x18000ef9b\nmov     rdx, rbp                                                       ; +0x4e, 0x18000ef9e\nlea     rcx, [rsp+58h+var_28]                                          ; +0x51, 0x18000efa1\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x56, 0x18000efa6\nmov     r8, rax                                                        ; +0x5c, 0x18000efac\nmov     r9, rbx                                                        ; +0x5f, 0x18000efaf\nmov     rdx, r14                                                       ; +0x62, 0x18000efb2\nmov     rcx, rsi                                                       ; +0x65, 0x18000efb5\ncall    qword ptr [rdi+400h]                                           ; +0x68, 0x18000efb8\nmov     rcx, rsi                                                       ; +0x6e, 0x18000efbe\ntest    al, al                                                         ; +0x71, 0x18000efc1\njz      short loc_18000EFD0                                            ; +0x73, 0x18000efc3\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x75, 0x18000efc5\nmov     rax, rsi                                                       ; +0x7b, 0x18000efcb\njmp     short loc_18000EFDD                                            ; +0x7e, 0x18000efce\nmov     rax, [rsi]                                                     ; +0x80, 0x18000efd0\nmov     edx, 1                                                         ; +0x83, 0x18000efd3\ncall    qword ptr [rax+8]                                              ; +0x88, 0x18000efd8\nxor     eax, eax                                                       ; +0x8b, 0x18000efdb\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x8d, 0x18000efdd\nmov     rbp, [rsp+58h+arg_8]                                           ; +0x92, 0x18000efe2\nadd     rsp, 40h                                                       ; +0x97, 0x18000efe7\npop     r14                                                            ; +0x9b, 0x18000efeb\npop     rdi                                                            ; +0x9d, 0x18000efed\npop     rsi                                                            ; +0x9e, 0x18000efee\nretn                                                                   ; +0x9f, 0x18000efef", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004bdd4"], "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"}