{"type": "func", "start": 6442490752, "end": 6442491041, "name": "cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition", "pseudocode": "// \n// cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition from 0x180009b80 to 0x180009ca1 (289 bytes)\n// \n// 4 xrefs:\n// > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan @ 0x180009d11\n// > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchMoved @ 0x180009d6a\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b9cc\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\nchar __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition(\n        __int64 a1,\n        float *a2,\n        char a3)\n{\n  __int64 v6; // rax\n  float v7; // xmm6_4\n  float v8; // xmm7_4\n  float v9; // xmm2_4\n  float v10; // xmm2_4\n  float v11; // xmm6_4\n  float *v13; // rax\n  _BYTE v14[16]; // [rsp+20h] [rbp-38h] BYREF\n  char v15; // [rsp+60h] [rbp+8h] BYREF\n\n  v6 = cocos2d::CCNode::boundingBox(*(_QWORD *)(a1 + 480), v14);\n  v7 = *(float *)(a1 + 516);\n  v8 = (float)(*(float *)(v6 + 8) * 0.5) + *(float *)(a1 + 512);\n  v9 = a2[1] - (float)((float)(*(float *)(cocos2d::CCNode::boundingBox(*(_QWORD *)(a1 + 480), v14) + 12) * 0.5) + v7);\n  v10 = (float)(v9 * v9) + (float)((float)(*a2 - v8) * (float)(*a2 - v8));\n  if ( v10 < 0.0 )\n    v11 = sqrtf(v10);\n  else\n    v11 = fsqrt(v10);\n  if ( (float)(*(float *)(cocos2d::CCNode::boundingBox(*(_QWORD *)(a1 + 480), v14) + 8) * 0.5) < v11 && !a3 )\n    return 0;\n  v13 = (float *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, (const struct cocos2d::CCPoint *)a2);\n  cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(a1, v13);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 256);\n  return 1;\n}", "assembly": "; \n; cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition from 0x180009b80 to 0x180009ca1 (289 bytes)\n; \n; 4 xrefs:\n; > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan @ 0x180009d11\n; > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchMoved @ 0x180009d6a\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b9cc\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; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180009b80\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180009b85\npush    rdi                                                            ; +0xa, 0x180009b8a\nsub     rsp, 50h                                                       ; +0xb, 0x180009b8b\nmov     rsi, rdx                                                       ; +0xf, 0x180009b8f\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x12, 0x180009b92\nmov     rbx, rcx                                                       ; +0x17, 0x180009b97\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x1a, 0x180009b9a\nmov     rcx, [rcx+1E0h]                                                ; +0x1f, 0x180009b9f\nlea     rdx, [rsp+58h+var_38]                                          ; +0x26, 0x180009ba6\nmovzx   edi, r8b                                                       ; +0x2b, 0x180009bab\ncall    cs:?boundingBox@CCNode@cocos2d@@QEAA?AVCCRect@2@XZ; cocos2d::CCNode::boundingBox(void) ; +0x2f, 0x180009baf\nmov     rcx, [rbx+1E0h]                                                ; +0x35, 0x180009bb5\nlea     rdx, [rsp+58h+var_38]                                          ; +0x3c, 0x180009bbc\nmovss   xmm6, dword ptr [rbx+204h]                                     ; +0x41, 0x180009bc1\nmovss   xmm7, dword ptr [rax+8]                                        ; +0x49, 0x180009bc9\nmulss   xmm7, cs:dword_18002BBD8                                       ; +0x4e, 0x180009bce\naddss   xmm7, dword ptr [rbx+200h]                                     ; +0x56, 0x180009bd6\ncall    cs:?boundingBox@CCNode@cocos2d@@QEAA?AVCCRect@2@XZ; cocos2d::CCNode::boundingBox(void) ; +0x5e, 0x180009bde\nmovss   xmm1, dword ptr [rsi]                                          ; +0x64, 0x180009be4\nmovss   xmm2, dword ptr [rsi+4]                                        ; +0x68, 0x180009be8\nsubss   xmm1, xmm7                                                     ; +0x6d, 0x180009bed\nmovss   xmm0, dword ptr [rax+0Ch]                                      ; +0x71, 0x180009bf1\nmulss   xmm0, cs:dword_18002BBD8                                       ; +0x76, 0x180009bf6\nmulss   xmm1, xmm1                                                     ; +0x7e, 0x180009bfe\naddss   xmm0, xmm6                                                     ; +0x82, 0x180009c02\nsubss   xmm2, xmm0                                                     ; +0x86, 0x180009c06\nxorps   xmm0, xmm0                                                     ; +0x8a, 0x180009c0a\nmulss   xmm2, xmm2                                                     ; +0x8d, 0x180009c0d\naddss   xmm2, xmm1                                                     ; +0x91, 0x180009c11\nucomiss xmm0, xmm2                                                     ; +0x95, 0x180009c15\nja      short loc_180009C23                                            ; +0x98, 0x180009c18\nxorps   xmm6, xmm6                                                     ; +0x9a, 0x180009c1a\nsqrtss  xmm6, xmm2                                                     ; +0x9d, 0x180009c1d\njmp     short loc_180009C2E                                            ; +0xa1, 0x180009c21\nmovaps  xmm0, xmm2; X                                                  ; +0xa3, 0x180009c23\ncall    sqrtf                                                          ; +0xa6, 0x180009c26\nmovaps  xmm6, xmm0                                                     ; +0xab, 0x180009c2b\nmov     rcx, [rbx+1E0h]                                                ; +0xae, 0x180009c2e\nlea     rdx, [rsp+58h+var_38]                                          ; +0xb5, 0x180009c35\ncall    cs:?boundingBox@CCNode@cocos2d@@QEAA?AVCCRect@2@XZ; cocos2d::CCNode::boundingBox(void) ; +0xba, 0x180009c3a\nmovss   xmm1, dword ptr [rax+8]                                        ; +0xc0, 0x180009c40\nmulss   xmm1, cs:dword_18002BBD8                                       ; +0xc5, 0x180009c45\ncomiss  xmm1, xmm6                                                     ; +0xcd, 0x180009c4d\njnb     short loc_180009C5B                                            ; +0xd0, 0x180009c50\ntest    dil, dil                                                       ; +0xd2, 0x180009c52\njnz     short loc_180009C5B                                            ; +0xd5, 0x180009c55\nxor     al, al                                                         ; +0xd7, 0x180009c57\njmp     short loc_180009C87                                            ; +0xd9, 0x180009c59\nmov     rdx, rsi                                                       ; +0xdb, 0x180009c5b\nlea     rcx, [rsp+58h+arg_0]                                           ; +0xde, 0x180009c5e\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xe3, 0x180009c63\nmov     rdx, rax                                                       ; +0xe9, 0x180009c69\nmov     rcx, rbx                                                       ; +0xec, 0x180009c6c\ncall    ?updateSliderPosition@CCControlSaturationBrightnessPicker@extension@cocos2d@@IEAAXVCCPoint@3@@Z; cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(cocos2d::CCPoint) ; +0xef, 0x180009c6f\nmov     rax, [rbx]                                                     ; +0xf4, 0x180009c74\nmov     edx, 100h                                                      ; +0xf7, 0x180009c77\nmov     rcx, rbx                                                       ; +0xfc, 0x180009c7c\ncall    qword ptr [rax+440h]                                           ; +0xff, 0x180009c7f\nmov     al, 1                                                          ; +0x105, 0x180009c85\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x107, 0x180009c87\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x10c, 0x180009c8c\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x111, 0x180009c91\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x116, 0x180009c96\nadd     rsp, 50h                                                       ; +0x11b, 0x180009c9b\npop     rdi                                                            ; +0x11f, 0x180009c9f\nretn                                                                   ; +0x120, 0x180009ca0", "xrefs": ["cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan @ 0x180009d11", "cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchMoved @ 0x180009d6a", "<???> @ 0x180032408", "<???> @ 0x18004b9cc"], "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"}