{"type": "func", "start": 6442514480, "end": 6442514656, "name": "cocos2d::extension::CCScale9Sprite::setCapInsets", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::setCapInsets from 0x18000f830 to 0x18000f8e0 (176 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x180029f28\n// > <???> @ 0x180030930\n// > <???> @ 0x180030940\n// > <???> @ 0x180032408\n// > <???> @ 0x18004beb8\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_UNKNOWN **__fastcall cocos2d::extension::CCScale9Sprite::setCapInsets(__int64 *a1, const struct cocos2d::CCRect *a2)\n{\n  _UNKNOWN **result; // rax\n  __int64 v5; // rdi\n  unsigned __int8 v6; // si\n  __int64 v7; // rbp\n  __int64 v8; // rax\n  __int64 v9; // rbx\n  __int64 v10; // rax\n  _BYTE v11[16]; // [rsp+30h] [rbp-38h] BYREF\n  _BYTE v12[16]; // [rsp+40h] [rbp-28h] BYREF\n  _UNKNOWN *retaddr; // [rsp+68h] [rbp+0h] BYREF\n  char v14; // [rsp+70h] [rbp+8h] BYREF\n\n  result = &retaddr;\n  if ( a1[55] )\n  {\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v14, (const struct cocos2d::CCSize *)((char *)a1 + 108));\n    v5 = *a1;\n    v6 = *((_BYTE *)a1 + 412);\n    v7 = a1[55];\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, a2);\n    v9 = v8;\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, (const struct cocos2d::CCRect *)((char *)a1 + 396));\n    (*(void (__fastcall **)(__int64 *, __int64, __int64, _QWORD, __int64))(v5 + 1064))(a1, v7, v10, v6, v9);\n    return (_UNKNOWN **)(*(__int64 (__fastcall **)(__int64 *, char *))(*a1 + 312))(a1, &v14);\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::extension::CCScale9Sprite::setCapInsets from 0x18000f830 to 0x18000f8e0 (176 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x180029f28\n; > <???> @ 0x180030930\n; > <???> @ 0x180030940\n; > <???> @ 0x180032408\n; > <???> @ 0x18004beb8\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     rax, rsp                                                       ; +0x0, 0x18000f830\npush    rbx                                                            ; +0x3, 0x18000f833\npush    r14                                                            ; +0x4, 0x18000f834\nsub     rsp, 58h                                                       ; +0x6, 0x18000f836\ncmp     qword ptr [rcx+1B8h], 0                                        ; +0xa, 0x18000f83a\nmov     rbx, rdx                                                       ; +0x12, 0x18000f842\nmov     r14, rcx                                                       ; +0x15, 0x18000f845\njz      loc_18000F8D8                                                  ; +0x18, 0x18000f848\nmov     [rax+10h], rbp                                                 ; +0x1e, 0x18000f84e\nlea     rdx, [rcx+6Ch]                                                 ; +0x22, 0x18000f852\nmov     [rax+18h], rsi                                                 ; +0x26, 0x18000f856\nlea     rcx, [rax+8]                                                   ; +0x2a, 0x18000f85a\nmov     [rax-18h], rdi                                                 ; +0x2e, 0x18000f85e\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0x32, 0x18000f862\nmov     rdi, [r14]                                                     ; +0x38, 0x18000f868\nlea     rcx, [rsp+68h+var_38]                                          ; +0x3b, 0x18000f86b\nmovzx   esi, byte ptr [r14+19Ch]                                       ; +0x40, 0x18000f870\nmov     rdx, rbx                                                       ; +0x48, 0x18000f878\nmov     rbp, [r14+1B8h]                                                ; +0x4b, 0x18000f87b\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x52, 0x18000f882\nlea     rdx, [r14+18Ch]                                                ; +0x58, 0x18000f888\nmov     rbx, rax                                                       ; +0x5f, 0x18000f88f\nlea     rcx, [rsp+68h+var_28]                                          ; +0x62, 0x18000f892\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x67, 0x18000f897\nmovzx   r9d, sil                                                       ; +0x6d, 0x18000f89d\nmov     [rsp+68h+var_48], rbx                                          ; +0x71, 0x18000f8a1\nmov     r8, rax                                                        ; +0x76, 0x18000f8a6\nmov     rdx, rbp                                                       ; +0x79, 0x18000f8a9\nmov     rcx, r14                                                       ; +0x7c, 0x18000f8ac\ncall    qword ptr [rdi+428h]                                           ; +0x7f, 0x18000f8af\nmov     rax, [r14]                                                     ; +0x85, 0x18000f8b5\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x88, 0x18000f8b8\nmov     rcx, r14                                                       ; +0x8d, 0x18000f8bd\ncall    qword ptr [rax+138h]                                           ; +0x90, 0x18000f8c0\nmov     rdi, [rsp+68h+var_18]                                          ; +0x96, 0x18000f8c6\nmov     rsi, [rsp+68h+arg_10]                                          ; +0x9b, 0x18000f8cb\nmov     rbp, [rsp+68h+arg_8]                                           ; +0xa3, 0x18000f8d3\nadd     rsp, 58h                                                       ; +0xa8, 0x18000f8d8\npop     r14                                                            ; +0xac, 0x18000f8dc\npop     rbx                                                            ; +0xae, 0x18000f8de\nretn                                                                   ; +0xaf, 0x18000f8df", "xrefs": ["<???> @ 0x180029f28", "<???> @ 0x180030930", "<???> @ 0x180030940", "<???> @ 0x180032408", "<???> @ 0x18004beb8"], "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"}