{"type": "func", "start": 6442493840, "end": 6442494129, "name": "cocos2d::extension::CCControlSlider::needsLayout", "pseudocode": "// \n// cocos2d::extension::CCControlSlider::needsLayout from 0x18000a790 to 0x18000a8b1 (289 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800284c0\n// > <???> @ 0x180030310\n// > <???> @ 0x180030320\n// > <???> @ 0x180032408\n// > <???> @ 0x18004ba98\n// > <???> @ 0x18004baa4\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:37 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCControlSlider::needsLayout(cocos2d::extension::CCControlSlider *this)\n{\n  __int64 v2; // rcx\n  float v3; // xmm6_4\n  const struct cocos2d::CCPoint *v4; // rax\n  float *v5; // rax\n  __int64 v6; // rcx\n  __int64 v7; // rax\n  float v8[2]; // [rsp+30h] [rbp-38h] BYREF\n  _BYTE v9[4]; // [rsp+38h] [rbp-30h] BYREF\n  float v10; // [rsp+3Ch] [rbp-2Ch]\n  _BYTE v11[16]; // [rsp+40h] [rbp-28h] BYREF\n  float v12; // [rsp+70h] [rbp+8h] BYREF\n\n  v2 = *((_QWORD *)this + 62);\n  if ( v2 && *((_QWORD *)this + 64) )\n  {\n    if ( *((_QWORD *)this + 63) )\n    {\n      v3 = (float)(*((float *)this + 118) - *((float *)this + 119))\n         / (float)(*((float *)this + 120) - *((float *)this + 119));\n      v4 = (const struct cocos2d::CCPoint *)(*(__int64 (**)(void))(*(_QWORD *)v2 + 200LL))();\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, v4);\n      v5 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 64) + 320LL))(*((_QWORD *)this + 64));\n      v6 = *((_QWORD *)this + 62);\n      v12 = v3 * *v5;\n      (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, &v12);\n      cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, (const struct cocos2d::CCRect *)(*((_QWORD *)this + 63) + 424LL));\n      v7 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, v8[0], v8[1], v12, v10);\n      cocos2d::CCRect::operator=(v8, v7);\n      (*(void (__fastcall **)(_QWORD, float *, _QWORD, _BYTE *))(**((_QWORD **)this + 63) + 984LL))(\n        *((_QWORD *)this + 63),\n        v8,\n        *(unsigned __int8 *)(*((_QWORD *)this + 63) + 440LL),\n        v9);\n    }\n  }\n}", "assembly": "; \n; cocos2d::extension::CCControlSlider::needsLayout from 0x18000a790 to 0x18000a8b1 (289 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800284c0\n; > <???> @ 0x180030310\n; > <???> @ 0x180030320\n; > <???> @ 0x180032408\n; > <???> @ 0x18004ba98\n; > <???> @ 0x18004baa4\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:37 +0000\n; \npush    rbx                                                            ; +0x0, 0x18000a790\nsub     rsp, 60h                                                       ; +0x2, 0x18000a792\nmov     rbx, rcx                                                       ; +0x6, 0x18000a796\nmov     rcx, [rcx+1F0h]                                                ; +0x9, 0x18000a799\ntest    rcx, rcx                                                       ; +0x10, 0x18000a7a0\njz      loc_18000A8AB                                                  ; +0x13, 0x18000a7a3\ncmp     qword ptr [rbx+200h], 0                                        ; +0x19, 0x18000a7a9\njz      loc_18000A8AB                                                  ; +0x21, 0x18000a7b1\ncmp     qword ptr [rbx+1F8h], 0                                        ; +0x27, 0x18000a7b7\njz      loc_18000A8AB                                                  ; +0x2f, 0x18000a7bf\nmovss   xmm1, dword ptr [rbx+1DCh]                                     ; +0x35, 0x18000a7c5\nmovss   xmm0, dword ptr [rbx+1E0h]                                     ; +0x3d, 0x18000a7cd\nmov     rax, [rcx]                                                     ; +0x45, 0x18000a7d5\nsubss   xmm0, xmm1                                                     ; +0x48, 0x18000a7d8\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0x4c, 0x18000a7dc\nmovss   xmm6, dword ptr [rbx+1D8h]                                     ; +0x51, 0x18000a7e1\nsubss   xmm6, xmm1                                                     ; +0x59, 0x18000a7e9\ndivss   xmm6, xmm0                                                     ; +0x5d, 0x18000a7ed\ncall    qword ptr [rax+0C8h]                                           ; +0x61, 0x18000a7f1\nmov     rdx, rax                                                       ; +0x67, 0x18000a7f7\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x6a, 0x18000a7fa\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x6f, 0x18000a7ff\nmov     rcx, [rbx+200h]                                                ; +0x75, 0x18000a805\nmov     rax, [rcx]                                                     ; +0x7c, 0x18000a80c\ncall    qword ptr [rax+140h]                                           ; +0x7f, 0x18000a80f\nmov     rcx, [rbx+1F0h]                                                ; +0x85, 0x18000a815\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x8c, 0x18000a81c\nmulss   xmm6, dword ptr [rax]                                          ; +0x91, 0x18000a821\nmovss   [rsp+68h+arg_0], xmm6                                          ; +0x95, 0x18000a825\nmov     rax, [rcx]                                                     ; +0x9b, 0x18000a82b\ncall    qword ptr [rax+0B8h]                                           ; +0x9e, 0x18000a82e\nmov     rdx, [rbx+1F8h]                                                ; +0xa4, 0x18000a834\nlea     rcx, [rsp+68h+var_38]                                          ; +0xab, 0x18000a83b\nadd     rdx, 1A8h                                                      ; +0xb0, 0x18000a840\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0xb7, 0x18000a847\nmovss   xmm0, [rsp+68h+var_2C]                                         ; +0xbd, 0x18000a84d\nlea     rcx, [rsp+68h+var_28]                                          ; +0xc3, 0x18000a853\nmovss   xmm3, [rsp+68h+arg_0]                                          ; +0xc8, 0x18000a858\nmovss   xmm2, [rsp+68h+var_34]                                         ; +0xce, 0x18000a85e\nmovss   xmm1, [rsp+68h+var_38]                                         ; +0xd4, 0x18000a864\nmovss   [rsp+68h+var_48], xmm0                                         ; +0xda, 0x18000a86a\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xe0, 0x18000a870\nmov     rdx, rax                                                       ; +0xe6, 0x18000a876\nlea     rcx, [rsp+68h+var_38]                                          ; +0xe9, 0x18000a879\ncall    cs:??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0xee, 0x18000a87e\nmov     rcx, [rbx+1F8h]                                                ; +0xf4, 0x18000a884\nlea     r9, [rsp+68h+var_30]                                           ; +0xfb, 0x18000a88b\nlea     rdx, [rsp+68h+var_38]                                          ; +0x100, 0x18000a890\nmov     rax, [rcx]                                                     ; +0x105, 0x18000a895\nmovzx   r8d, byte ptr [rcx+1B8h]                                       ; +0x108, 0x18000a898\ncall    qword ptr [rax+3D8h]                                           ; +0x110, 0x18000a8a0\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0x116, 0x18000a8a6\nadd     rsp, 60h                                                       ; +0x11b, 0x18000a8ab\npop     rbx                                                            ; +0x11f, 0x18000a8af\nretn                                                                   ; +0x120, 0x18000a8b0", "xrefs": ["<???> @ 0x1800284c0", "<???> @ 0x180030310", "<???> @ 0x180030320", "<???> @ 0x180032408", "<???> @ 0x18004ba98", "<???> @ 0x18004baa4"], "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"}