{"type": "func", "start": 6442515392, "end": 6442515561, "name": "cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets from 0x18000fbc0 to 0x18000fc69 (169 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049fa8\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets(\n        __int64 a1,\n        const struct cocos2d::CCRect *a2)\n{\n  cocos2d::extension::CCScale9Sprite *v4; // rax\n  cocos2d::CCObject *v5; // rsi\n  __int64 v6; // rdi\n  __int64 v7; // rax\n  __int64 v8; // rbx\n  __int64 v9; // rax\n  _BYTE v11[16]; // [rsp+20h] [rbp-28h] BYREF\n  _BYTE v12[24]; // [rsp+30h] [rbp-18h] BYREF\n  cocos2d::extension::CCScale9Sprite *v13; // [rsp+60h] [rbp+18h]\n\n  v13 = (cocos2d::extension::CCScale9Sprite *)operator new(0x210u);\n  v4 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v13);\n  v5 = v4;\n  if ( v4 )\n  {\n    v6 = *(_QWORD *)v4;\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, a2);\n    v8 = v7;\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, (const struct cocos2d::CCRect *)(a1 + 396));\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, _QWORD, __int64, __int64))(v6 + 968))(\n           v5,\n           *(_QWORD *)(a1 + 440),\n           v9,\n           v8) )\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::resizableSpriteWithCapInsets from 0x18000fbc0 to 0x18000fc69 (169 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049fa8\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, 0x18000fbc0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18000fbc5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x18000fbca\npush    rdi                                                            ; +0xf, 0x18000fbcf\nsub     rsp, 40h                                                       ; +0x10, 0x18000fbd0\nmov     rbx, rdx                                                       ; +0x14, 0x18000fbd4\nmov     rbp, rcx                                                       ; +0x17, 0x18000fbd7\nmov     ecx, 210h; Size                                                ; +0x1a, 0x18000fbda\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1f, 0x18000fbdf\nmov     [rsp+48h+arg_10], rax                                          ; +0x24, 0x18000fbe4\nmov     rcx, rax; this                                                 ; +0x29, 0x18000fbe9\ncall    ??0CCScale9Sprite@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCScale9Sprite::CCScale9Sprite(void) ; +0x2c, 0x18000fbec\nmov     rsi, rax                                                       ; +0x31, 0x18000fbf1\ntest    rax, rax                                                       ; +0x34, 0x18000fbf4\njz      short loc_18000FC52                                            ; +0x37, 0x18000fbf7\nmov     rdi, [rax]                                                     ; +0x39, 0x18000fbf9\nmov     rdx, rbx                                                       ; +0x3c, 0x18000fbfc\nlea     rcx, [rsp+48h+var_28]                                          ; +0x3f, 0x18000fbff\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x44, 0x18000fc04\nmov     rbx, rax                                                       ; +0x4a, 0x18000fc0a\nlea     rdx, [rbp+18Ch]                                                ; +0x4d, 0x18000fc0d\nlea     rcx, [rsp+48h+var_18]                                          ; +0x54, 0x18000fc14\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x59, 0x18000fc19\nmov     r8, rax                                                        ; +0x5f, 0x18000fc1f\nmov     r9, rbx                                                        ; +0x62, 0x18000fc22\nmov     rdx, [rbp+1B8h]                                                ; +0x65, 0x18000fc25\nmov     rcx, rsi                                                       ; +0x6c, 0x18000fc2c\ncall    qword ptr [rdi+3C8h]                                           ; +0x6f, 0x18000fc2f\nmov     rcx, rsi                                                       ; +0x75, 0x18000fc35\ntest    al, al                                                         ; +0x78, 0x18000fc38\njz      short loc_18000FC47                                            ; +0x7a, 0x18000fc3a\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7c, 0x18000fc3c\nmov     rax, rsi                                                       ; +0x82, 0x18000fc42\njmp     short loc_18000FC54                                            ; +0x85, 0x18000fc45\nmov     rax, [rsi]                                                     ; +0x87, 0x18000fc47\nmov     edx, 1                                                         ; +0x8a, 0x18000fc4a\ncall    qword ptr [rax+8]                                              ; +0x8f, 0x18000fc4f\nxor     eax, eax                                                       ; +0x92, 0x18000fc52\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x94, 0x18000fc54\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x99, 0x18000fc59\nmov     rsi, [rsp+48h+arg_18]                                          ; +0x9e, 0x18000fc5e\nadd     rsp, 40h                                                       ; +0xa3, 0x18000fc63\npop     rdi                                                            ; +0xa7, 0x18000fc67\nretn                                                                   ; +0xa8, 0x18000fc68", "xrefs": ["<???> @ 0x18002fdf8", "<???> @ 0x180049fa8"], "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"}