{"type": "func", "start": 6442514096, "end": 6442514264, "name": "cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::resizableSpriteWithCapInsets from 0x18000f6b0 to 0x18000f758 (168 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004be88\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::resizableSpriteWithCapInsets(\n        __int64 a1,\n        const struct cocos2d::CCRect *a2)\n{\n  cocos2d::extension::CCScale9Sprite *v4; // rax\n  cocos2d::CCObject *v5; // r14\n  __int64 v6; // rdi\n  __int64 v7; // rsi\n  __int64 v8; // rax\n  __int64 v9; // rbx\n  __int64 v10; // rax\n  _BYTE v12[16]; // [rsp+20h] [rbp-38h] BYREF\n  _BYTE v13[40]; // [rsp+30h] [rbp-28h] BYREF\n  cocos2d::extension::CCScale9Sprite *v14; // [rsp+70h] [rbp+18h]\n\n  v14 = (cocos2d::extension::CCScale9Sprite *)sub_18001F040(0x210u);\n  v4 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v14);\n  v5 = v4;\n  if ( v4 )\n  {\n    v6 = *(_QWORD *)v4;\n    v7 = *(_QWORD *)(a1 + 440);\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, a2);\n    v9 = v8;\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v13, (const struct cocos2d::CCRect *)(a1 + 396));\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, __int64, __int64, __int64))(v6 + 984))(v5, v7, v10, v9) )\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 0x18000f6b0 to 0x18000f758 (168 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004be88\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, 0x18000f6b0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18000f6b5\npush    rsi                                                            ; +0xa, 0x18000f6ba\npush    rdi                                                            ; +0xb, 0x18000f6bb\npush    r14                                                            ; +0xc, 0x18000f6bc\nsub     rsp, 40h                                                       ; +0xe, 0x18000f6be\nmov     rbx, rdx                                                       ; +0x12, 0x18000f6c2\nmov     rbp, rcx                                                       ; +0x15, 0x18000f6c5\nmov     ecx, 210h; Size                                                ; +0x18, 0x18000f6c8\ncall    sub_18001F040                                                  ; +0x1d, 0x18000f6cd\nmov     [rsp+58h+arg_10], rax                                          ; +0x22, 0x18000f6d2\nmov     rcx, rax; this                                                 ; +0x27, 0x18000f6d7\ncall    ??0CCScale9Sprite@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCScale9Sprite::CCScale9Sprite(void) ; +0x2a, 0x18000f6da\nmov     r14, rax                                                       ; +0x2f, 0x18000f6df\ntest    rax, rax                                                       ; +0x32, 0x18000f6e2\njz      short loc_18000F743                                            ; +0x35, 0x18000f6e5\nmov     rdi, [rax]                                                     ; +0x37, 0x18000f6e7\nmov     rsi, [rbp+1B8h]                                                ; +0x3a, 0x18000f6ea\nmov     rdx, rbx                                                       ; +0x41, 0x18000f6f1\nlea     rcx, [rsp+58h+var_38]                                          ; +0x44, 0x18000f6f4\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x49, 0x18000f6f9\nmov     rbx, rax                                                       ; +0x4f, 0x18000f6ff\nlea     rdx, [rbp+18Ch]                                                ; +0x52, 0x18000f702\nlea     rcx, [rsp+58h+var_28]                                          ; +0x59, 0x18000f709\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x5e, 0x18000f70e\nmov     r8, rax                                                        ; +0x64, 0x18000f714\nmov     r9, rbx                                                        ; +0x67, 0x18000f717\nmov     rdx, rsi                                                       ; +0x6a, 0x18000f71a\nmov     rcx, r14                                                       ; +0x6d, 0x18000f71d\ncall    qword ptr [rdi+3D8h]                                           ; +0x70, 0x18000f720\nmov     rcx, r14                                                       ; +0x76, 0x18000f726\ntest    al, al                                                         ; +0x79, 0x18000f729\njz      short loc_18000F738                                            ; +0x7b, 0x18000f72b\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7d, 0x18000f72d\nmov     rax, r14                                                       ; +0x83, 0x18000f733\njmp     short loc_18000F745                                            ; +0x86, 0x18000f736\nmov     rax, [r14]                                                     ; +0x88, 0x18000f738\nmov     edx, 1                                                         ; +0x8b, 0x18000f73b\ncall    qword ptr [rax+8]                                              ; +0x90, 0x18000f740\nxor     eax, eax                                                       ; +0x93, 0x18000f743\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x95, 0x18000f745\nmov     rbp, [rsp+58h+arg_8]                                           ; +0x9a, 0x18000f74a\nadd     rsp, 40h                                                       ; +0x9f, 0x18000f74f\npop     r14                                                            ; +0xa3, 0x18000f753\npop     rdi                                                            ; +0xa5, 0x18000f755\npop     rsi                                                            ; +0xa6, 0x18000f756\nretn                                                                   ; +0xa7, 0x18000f757", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004be88"], "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"}