{"type": "func", "start": 6442514816, "end": 6442514927, "name": "cocos2d::extension::CCScale9Sprite::createWithSpriteFrame", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::createWithSpriteFrame from 0x18000f980 to 0x18000f9ef (111 bytes)\n// \n// 3 xrefs:\n// > cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState @ 0x180006d23\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049f6c\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\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 *)operator new(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 + 1016LL))(\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 0x18000f980 to 0x18000f9ef (111 bytes)\n; \n; 3 xrefs:\n; > cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState @ 0x180006d23\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049f6c\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, 0x18000f980\npush    rdi                                                            ; +0x5, 0x18000f985\nsub     rsp, 20h                                                       ; +0x6, 0x18000f986\nmov     rdi, rcx                                                       ; +0xa, 0x18000f98a\nmov     ecx, 210h; Size                                                ; +0xd, 0x18000f98d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x18000f992\nmov     [rsp+28h+arg_8], rax                                           ; +0x17, 0x18000f997\nmov     rcx, rax; this                                                 ; +0x1c, 0x18000f99c\ncall    ??0CCScale9Sprite@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCScale9Sprite::CCScale9Sprite(void) ; +0x1f, 0x18000f99f\nmov     rbx, rax                                                       ; +0x24, 0x18000f9a4\ntest    rax, rax                                                       ; +0x27, 0x18000f9a7\njz      short loc_18000F9E2                                            ; +0x2a, 0x18000f9aa\nmov     r8, [rax]                                                      ; +0x2c, 0x18000f9ac\nmov     rdx, rdi                                                       ; +0x2f, 0x18000f9af\nmov     rcx, rax                                                       ; +0x32, 0x18000f9b2\ncall    qword ptr [r8+3F8h]                                            ; +0x35, 0x18000f9b5\nmov     rcx, rbx                                                       ; +0x3c, 0x18000f9bc\ntest    al, al                                                         ; +0x3f, 0x18000f9bf\njz      short loc_18000F9D7                                            ; +0x41, 0x18000f9c1\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x43, 0x18000f9c3\nmov     rax, rbx                                                       ; +0x49, 0x18000f9c9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4c, 0x18000f9cc\nadd     rsp, 20h                                                       ; +0x51, 0x18000f9d1\npop     rdi                                                            ; +0x55, 0x18000f9d5\nretn                                                                   ; +0x56, 0x18000f9d6\nmov     rax, [rbx]                                                     ; +0x57, 0x18000f9d7\nmov     edx, 1                                                         ; +0x5a, 0x18000f9da\ncall    qword ptr [rax+8]                                              ; +0x5f, 0x18000f9df\nxor     eax, eax                                                       ; +0x62, 0x18000f9e2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x64, 0x18000f9e4\nadd     rsp, 20h                                                       ; +0x69, 0x18000f9e9\npop     rdi                                                            ; +0x6d, 0x18000f9ed\nretn                                                                   ; +0x6e, 0x18000f9ee", "xrefs": ["cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState @ 0x180006d23", "<???> @ 0x18002fdf8", "<???> @ 0x180049f6c"], "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"}