{"type": "func", "start": 6442514704, "end": 6442514970, "name": "cocos2d::extension::CCScale9Sprite::updateCapInset", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::updateCapInset from 0x18000f910 to 0x18000fa1a (266 bytes)\n// \n// 6 xrefs:\n// > cocos2d::extension::CCScale9Sprite::setInsetLeft @ 0x18000fc38\n// > cocos2d::extension::CCScale9Sprite::setInsetTop @ 0x18000fc48\n// > cocos2d::extension::CCScale9Sprite::setInsetRight @ 0x18000fc58\n// > cocos2d::extension::CCScale9Sprite::setInsetBottom @ 0x18000fc68\n// > <???> @ 0x180032408\n// > <???> @ 0x18004bee8\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\nvoid __fastcall cocos2d::extension::CCScale9Sprite::updateCapInset(cocos2d::extension::CCScale9Sprite *this)\n{\n  float v2; // xmm4_4\n  void *v3; // rdx\n  float v4; // xmm0_4\n  float v5; // xmm3_4\n  float v6; // xmm1_4\n  float v7; // xmm2_4\n  float v8; // xmm0_4\n  float v9; // xmm3_4\n  void *v10; // rax\n  __int64 v11; // rbx\n  __int64 v12; // rax\n  _BYTE v13[16]; // [rsp+30h] [rbp-28h] BYREF\n  _BYTE v14[24]; // [rsp+40h] [rbp-18h] BYREF\n\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v13);\n  v2 = *((float *)this + 94);\n  if ( v2 == 0.0 && *((float *)this + 95) == 0.0 && *((float *)this + 96) == 0.0 && *((float *)this + 97) == 0.0 )\n  {\n    v3 = &unk_18004A600;\n  }\n  else\n  {\n    v4 = *((float *)this + 102);\n    v5 = *((float *)this + 101);\n    if ( *((_BYTE *)this + 412) )\n    {\n      v6 = *((float *)this + 97);\n      v7 = *((float *)this + 94);\n      v8 = (float)(v4 - *((float *)this + 95)) - v6;\n      v9 = (float)(v5 - *((float *)this + 96)) - v2;\n    }\n    else\n    {\n      v7 = *((float *)this + 95);\n      v6 = *((float *)this + 94);\n      v9 = (float)(v5 - v2) - *((float *)this + 96);\n      v8 = (float)(v4 - v7) - *((float *)this + 97);\n    }\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, v6, v7, v9, v8);\n    v3 = v10;\n  }\n  cocos2d::CCRect::operator=(v13, v3);\n  v11 = *(_QWORD *)this;\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, (const struct cocos2d::CCRect *)v13);\n  (*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *, __int64))(v11 + 912))(this, v12);\n}", "assembly": "; \n; cocos2d::extension::CCScale9Sprite::updateCapInset from 0x18000f910 to 0x18000fa1a (266 bytes)\n; \n; 6 xrefs:\n; > cocos2d::extension::CCScale9Sprite::setInsetLeft @ 0x18000fc38\n; > cocos2d::extension::CCScale9Sprite::setInsetTop @ 0x18000fc48\n; > cocos2d::extension::CCScale9Sprite::setInsetRight @ 0x18000fc58\n; > cocos2d::extension::CCScale9Sprite::setInsetBottom @ 0x18000fc68\n; > <???> @ 0x180032408\n; > <???> @ 0x18004bee8\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, 0x18000f910\npush    rdi                                                            ; +0x5, 0x18000f915\nsub     rsp, 50h                                                       ; +0x6, 0x18000f916\nmov     rdi, rcx                                                       ; +0xa, 0x18000f91a\nlea     rcx, [rsp+58h+var_28]                                          ; +0xd, 0x18000f91d\ncall    cs:??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void)   ; +0x12, 0x18000f922\nmovss   xmm4, dword ptr [rdi+178h]                                     ; +0x18, 0x18000f928\nxorps   xmm1, xmm1                                                     ; +0x20, 0x18000f930\nucomiss xmm4, xmm1                                                     ; +0x23, 0x18000f933\njp      short loc_18000F970                                            ; +0x26, 0x18000f936\njnz     short loc_18000F970                                            ; +0x28, 0x18000f938\nmovss   xmm0, dword ptr [rdi+17Ch]                                     ; +0x2a, 0x18000f93a\nucomiss xmm0, xmm1                                                     ; +0x32, 0x18000f942\njp      short loc_18000F970                                            ; +0x35, 0x18000f945\njnz     short loc_18000F970                                            ; +0x37, 0x18000f947\nmovss   xmm0, dword ptr [rdi+180h]                                     ; +0x39, 0x18000f949\nucomiss xmm0, xmm1                                                     ; +0x41, 0x18000f951\njp      short loc_18000F970                                            ; +0x44, 0x18000f954\njnz     short loc_18000F970                                            ; +0x46, 0x18000f956\nmovss   xmm0, dword ptr [rdi+184h]                                     ; +0x48, 0x18000f958\nucomiss xmm0, xmm1                                                     ; +0x50, 0x18000f960\njp      short loc_18000F970                                            ; +0x53, 0x18000f963\njnz     short loc_18000F970                                            ; +0x55, 0x18000f965\nlea     rdx, unk_18004A600                                             ; +0x57, 0x18000f967\njmp     short loc_18000F9E5                                            ; +0x5e, 0x18000f96e\ncmp     byte ptr [rdi+19Ch], 0                                         ; +0x60, 0x18000f970\nlea     rcx, [rsp+58h+var_18]                                          ; +0x67, 0x18000f977\nmovss   xmm0, dword ptr [rdi+198h]                                     ; +0x6c, 0x18000f97c\nmovss   xmm3, dword ptr [rdi+194h]                                     ; +0x74, 0x18000f984\njz      short loc_18000F9B3                                            ; +0x7c, 0x18000f98c\nsubss   xmm0, dword ptr [rdi+17Ch]                                     ; +0x7e, 0x18000f98e\nsubss   xmm3, dword ptr [rdi+180h]                                     ; +0x86, 0x18000f996\nmovss   xmm1, dword ptr [rdi+184h]                                     ; +0x8e, 0x18000f99e\nmovaps  xmm2, xmm4                                                     ; +0x96, 0x18000f9a6\nsubss   xmm0, xmm1                                                     ; +0x99, 0x18000f9a9\nsubss   xmm3, xmm4                                                     ; +0x9d, 0x18000f9ad\njmp     short loc_18000F9D6                                            ; +0xa1, 0x18000f9b1\nmovss   xmm2, dword ptr [rdi+17Ch]                                     ; +0xa3, 0x18000f9b3\nsubss   xmm3, xmm4                                                     ; +0xab, 0x18000f9bb\nsubss   xmm0, xmm2                                                     ; +0xaf, 0x18000f9bf\nmovaps  xmm1, xmm4                                                     ; +0xb3, 0x18000f9c3\nsubss   xmm3, dword ptr [rdi+180h]                                     ; +0xb6, 0x18000f9c6\nsubss   xmm0, dword ptr [rdi+184h]                                     ; +0xbe, 0x18000f9ce\nmovss   [rsp+58h+var_38], xmm0                                         ; +0xc6, 0x18000f9d6\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xcc, 0x18000f9dc\nmov     rdx, rax                                                       ; +0xd2, 0x18000f9e2\nlea     rcx, [rsp+58h+var_28]                                          ; +0xd5, 0x18000f9e5\ncall    cs:??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0xda, 0x18000f9ea\nmov     rbx, [rdi]                                                     ; +0xe0, 0x18000f9f0\nlea     rdx, [rsp+58h+var_28]                                          ; +0xe3, 0x18000f9f3\nlea     rcx, [rsp+58h+var_18]                                          ; +0xe8, 0x18000f9f8\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0xed, 0x18000f9fd\nmov     rdx, rax                                                       ; +0xf3, 0x18000fa03\nmov     rcx, rdi                                                       ; +0xf6, 0x18000fa06\ncall    qword ptr [rbx+390h]                                           ; +0xf9, 0x18000fa09\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xff, 0x18000fa0f\nadd     rsp, 50h                                                       ; +0x104, 0x18000fa14\npop     rdi                                                            ; +0x108, 0x18000fa18\nretn                                                                   ; +0x109, 0x18000fa19", "xrefs": ["cocos2d::extension::CCScale9Sprite::setInsetLeft @ 0x18000fc38", "cocos2d::extension::CCScale9Sprite::setInsetTop @ 0x18000fc48", "cocos2d::extension::CCScale9Sprite::setInsetRight @ 0x18000fc58", "cocos2d::extension::CCScale9Sprite::setInsetBottom @ 0x18000fc68", "<???> @ 0x180032408", "<???> @ 0x18004bee8"], "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"}