{"type": "func", "start": 6442513488, "end": 6442513602, "name": "cocos2d::extension::CCScale9Sprite::createWithSpriteFrame", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::createWithSpriteFrame from 0x18000f450 to 0x18000f4c2 (114 bytes)\n// \n// 3 xrefs:\n// > cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState @ 0x1800067b3\n// > <???> @ 0x180032408\n// > <???> @ 0x18004be4c\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\nstruct cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCScale9Sprite::createWithSpriteFrame(\n        struct cocos2d::CCSpriteFrame *a1)\n{\n  cocos2d::extension::CCScale9Sprite *v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  cocos2d::extension::CCScale9Sprite *v5; // [rsp+38h] [rbp+10h]\n\n  v5 = (cocos2d::extension::CCScale9Sprite *)sub_18001F040(0x210u);\n  v2 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v5);\n  v3 = v2;\n  if ( v2 )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCScale9Sprite *, struct cocos2d::CCSpriteFrame *))(*(_QWORD *)v2 + 1032LL))(\n           v2,\n           a1) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::extension::CCScale9Sprite::createWithSpriteFrame from 0x18000f450 to 0x18000f4c2 (114 bytes)\n; \n; 3 xrefs:\n; > cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState @ 0x1800067b3\n; > <???> @ 0x180032408\n; > <???> @ 0x18004be4c\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, 0x18000f450\npush    rdi                                                            ; +0x5, 0x18000f455\nsub     rsp, 20h                                                       ; +0x6, 0x18000f456\nmov     rdi, rcx                                                       ; +0xa, 0x18000f45a\nmov     ecx, 210h; Size                                                ; +0xd, 0x18000f45d\ncall    sub_18001F040                                                  ; +0x12, 0x18000f462\nmov     [rsp+28h+arg_8], rax                                           ; +0x17, 0x18000f467\nmov     rcx, rax; this                                                 ; +0x1c, 0x18000f46c\ncall    ??0CCScale9Sprite@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCScale9Sprite::CCScale9Sprite(void) ; +0x1f, 0x18000f46f\nmov     rbx, rax                                                       ; +0x24, 0x18000f474\ntest    rax, rax                                                       ; +0x27, 0x18000f477\njz      short loc_18000F4B5                                            ; +0x2a, 0x18000f47a\nmov     rcx, [rax]                                                     ; +0x2c, 0x18000f47c\nmov     r8, [rcx+408h]                                                 ; +0x2f, 0x18000f47f\nmov     rdx, rdi                                                       ; +0x36, 0x18000f486\nmov     rcx, rax                                                       ; +0x39, 0x18000f489\ncall    r8                                                             ; +0x3c, 0x18000f48c\nmov     rcx, rbx                                                       ; +0x3f, 0x18000f48f\ntest    al, al                                                         ; +0x42, 0x18000f492\njz      short loc_18000F4AA                                            ; +0x44, 0x18000f494\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x46, 0x18000f496\nmov     rax, rbx                                                       ; +0x4c, 0x18000f49c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4f, 0x18000f49f\nadd     rsp, 20h                                                       ; +0x54, 0x18000f4a4\npop     rdi                                                            ; +0x58, 0x18000f4a8\nretn                                                                   ; +0x59, 0x18000f4a9\nmov     rax, [rbx]                                                     ; +0x5a, 0x18000f4aa\nmov     edx, 1                                                         ; +0x5d, 0x18000f4ad\ncall    qword ptr [rax+8]                                              ; +0x62, 0x18000f4b2\nxor     eax, eax                                                       ; +0x65, 0x18000f4b5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x67, 0x18000f4b7\nadd     rsp, 20h                                                       ; +0x6c, 0x18000f4bc\npop     rdi                                                            ; +0x70, 0x18000f4c0\nretn                                                                   ; +0x71, 0x18000f4c1", "xrefs": ["cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState @ 0x1800067b3", "<???> @ 0x180032408", "<???> @ 0x18004be4c"], "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"}