{"type": "func", "start": 6442515776, "end": 6442515925, "name": "cocos2d::extension::CCScale9Sprite::setCapInsets", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::setCapInsets from 0x18000fd40 to 0x18000fdd5 (149 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800278d0\n// > <???> @ 0x18002e448\n// > <???> @ 0x18002e458\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049fd8\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\nvoid __fastcall cocos2d::extension::CCScale9Sprite::setCapInsets(__int64 *a1, const struct cocos2d::CCRect *a2)\n{\n  __int64 v4; // rdi\n  __int64 v5; // rax\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  _BYTE v8[16]; // [rsp+30h] [rbp-28h] BYREF\n  _BYTE v9[24]; // [rsp+40h] [rbp-18h] BYREF\n  char v10; // [rsp+60h] [rbp+8h] BYREF\n\n  if ( a1[55] )\n  {\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v10, (const struct cocos2d::CCSize *)((char *)a1 + 108));\n    v4 = *a1;\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, a2);\n    v6 = v5;\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, (const struct cocos2d::CCRect *)((char *)a1 + 396));\n    (*(void (__fastcall **)(__int64 *, __int64, __int64, _QWORD, __int64))(v4 + 1048))(\n      a1,\n      a1[55],\n      v7,\n      *((unsigned __int8 *)a1 + 412),\n      v6);\n    (*(void (__fastcall **)(__int64 *, char *))(*a1 + 296))(a1, &v10);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCScale9Sprite::setCapInsets from 0x18000fd40 to 0x18000fdd5 (149 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800278d0\n; > <???> @ 0x18002e448\n; > <???> @ 0x18002e458\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049fd8\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_10], rbx                                              ; +0x0, 0x18000fd40\npush    rsi                                                            ; +0x5, 0x18000fd45\nsub     rsp, 50h                                                       ; +0x6, 0x18000fd46\ncmp     qword ptr [rcx+1B8h], 0                                        ; +0xa, 0x18000fd4a\nmov     rbx, rdx                                                       ; +0x12, 0x18000fd52\nmov     rsi, rcx                                                       ; +0x15, 0x18000fd55\njz      short loc_18000FDCA                                            ; +0x18, 0x18000fd58\nlea     rdx, [rcx+6Ch]                                                 ; +0x1a, 0x18000fd5a\nmov     [rsp+58h+arg_8], rdi                                           ; +0x1e, 0x18000fd5e\nlea     rcx, [rsp+58h+arg_0]                                           ; +0x23, 0x18000fd63\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0x28, 0x18000fd68\nmov     rdi, [rsi]                                                     ; +0x2e, 0x18000fd6e\nlea     rcx, [rsp+58h+var_28]                                          ; +0x31, 0x18000fd71\nmov     rdx, rbx                                                       ; +0x36, 0x18000fd76\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x39, 0x18000fd79\nlea     rdx, [rsi+18Ch]                                                ; +0x3f, 0x18000fd7f\nmov     rbx, rax                                                       ; +0x46, 0x18000fd86\nlea     rcx, [rsp+58h+var_18]                                          ; +0x49, 0x18000fd89\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x4e, 0x18000fd8e\nmovzx   r9d, byte ptr [rsi+19Ch]                                       ; +0x54, 0x18000fd94\nmov     rcx, rsi                                                       ; +0x5c, 0x18000fd9c\nmov     rdx, [rsi+1B8h]                                                ; +0x5f, 0x18000fd9f\nmov     r8, rax                                                        ; +0x66, 0x18000fda6\nmov     [rsp+58h+var_38], rbx                                          ; +0x69, 0x18000fda9\ncall    qword ptr [rdi+418h]                                           ; +0x6e, 0x18000fdae\nmov     rax, [rsi]                                                     ; +0x74, 0x18000fdb4\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x77, 0x18000fdb7\nmov     rcx, rsi                                                       ; +0x7c, 0x18000fdbc\ncall    qword ptr [rax+128h]                                           ; +0x7f, 0x18000fdbf\nmov     rdi, [rsp+58h+arg_8]                                           ; +0x85, 0x18000fdc5\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x8a, 0x18000fdca\nadd     rsp, 50h                                                       ; +0x8f, 0x18000fdcf\npop     rsi                                                            ; +0x93, 0x18000fdd3\nretn                                                                   ; +0x94, 0x18000fdd4", "xrefs": ["<???> @ 0x1800278d0", "<???> @ 0x18002e448", "<???> @ 0x18002e458", "<???> @ 0x18002fdf8", "<???> @ 0x180049fd8"], "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"}